calc.texi (Customizing Calc): Rearrange description of new
[bpt/emacs.git] / src / ChangeLog
CommitLineData
7815fe19 12010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5
KH
2
3 * charset.c: Include <stdlib.h>
4 (struct charset_sort_data): New struct.
5 (charset_compare): New function.
6 (Fsort_charsets): New funciton.
7 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
8
9 * coding.c (decode_coding_iso_2022): Fix checking of dimension
10 number in CTEXT extended segment.
11
7815fe19 122010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
13
14 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
15 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
16
7815fe19 172010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
18
19 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
20 (Fhash_table_size): Fix typos in docstrings.
21 (Fmake_hash_table): Doc fix.
22
7815fe19 232010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
24
25 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
26 Doc fix (bug#5625).
27
7815fe19 282010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
29
30 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
31 the MSDOS definition.
32
1b6d8cf0
DN
332010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
34
675e2c69
DN
35 Use const char* instead of char*.
36 * xterm.c (x_create_toolkit_scroll_bar):
37 * xfont.c (xfont_list_pattern):
38 * xfns.c (x_default_scroll_bar_color_parameter)
39 (xic_create_fontsetname, x_default_font_parameter)
40 (x_screen_planes):
41 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
42 (store_mode_line_string, decode_mode_spec, display_string):
43 * menu.c (digest_single_submenu):
44 * keymap.h (initial_define_key, initial_define_lispy_key):
45 * keymap.c (initial_define_key, initial_define_lispy_key):
46 * image.c (image_error, image_keyword):
47 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
48 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
49 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
50 (ftfont_list, ftfont_match):
51 * frame.c (frame_parm_table):
52 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
53 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
54 (font_add_log, font_deferred_log):
55 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
56 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
57 (font_add_log, font_deferred_log):
58 * emacs.c (argmatch):
59 * dispextern.h (struct it):
60 * coding.c (ENCODE_DESIGNATION):
61 * charset.c (define_charset_internal): Use const.
62
25717ca1
DN
63 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
64
1b6d8cf0
DN
65 * xrdb.c: Remove include guard. Remove
66 DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
67 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
68 realloc->xrealloc instead of using #defines.
69
efb41e21
EZ
702010-08-08 Eli Zaretskii <eliz@gnu.org>
71
cd21226d
EZ
72 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
73 * editfns.c (Fline_beginning_position, Fline_end_position): State
74 in the doc strings that start and end of line are in the logical
75 order.
76
efb41e21
EZ
77 * xdisp.c (display_line): Move the handling of overlay arrow after
78 the call to find_row_edges. (Bug#6699)
79
746812d9
CY
802010-08-07 Chong Yidong <cyd@stupidchicken.com>
81
82 * keyboard.c (command_loop_1):
83 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
84
9852377f
CY
852010-08-07 Chong Yidong <cyd@stupidchicken.com>
86
87 * insdel.c (prepare_to_modify_buffer): Save active region text to
88 Vsaved_region_selection.
89
90 * xselect.c (QPRIMARY): Move to keyboard.c.
91
92 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
93 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
94 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 95
0e9c8657
JB
962010-08-07 Juanma Barranquero <lekktu@gmail.com>
97
98 * alloc.c (lisp_malloc):
99 * buffer.c (set_buffer_internal, set_buffer_internal_1):
100 * charset.h (emacs_mule_charset):
101 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
102 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
103 (bitch_at_user):
104 * lisp.h (Fcheck_coding_system, Fget_text_property)
105 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
106 Remove duplicate declarations.
107
648801d1
DN
1082010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
109
32bc6709
DN
110 * process.c: Simplify include logic.
111
3ef1d108
DN
112 * keyboard.h (quit_char): Add declaration.
113 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
114 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
115 Add declarations.
3ef1d108
DN
116 * sysdep.c:
117 * w32.c: Remove the above declarations.
118
97ec208f
DN
119 Remove extern declarations in .c files, .h files have them.
120 * xterm.c:
121 * xdisp.c:
97ec208f
DN
122 * msdos.c:
123 * image.c:
124 * gtkutil.c:
125 * fileio.c:
126 * eval.c: Remove declarations.
127
94eed851
DN
128 * frame.c (frame_params): Make const.
129
36e053eb
DN
130 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
131
0e843971
DN
132 * emacs.c (emacs_copyright, emacs_version): Make static.
133 (Vinitial_window_system, Vauto_save_list_file_name)
134 (Vinhibit_redisplay): Remove declarations.
135 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
136 for AIX.
137
648801d1
DN
138 Use const for some arrays and functions.
139 * xterm.h (xg_set_icon_from_xpm_data):
140 * xfns.c (xg_set_icon_from_xpm_data):
141 * term.c (fkeys):
142 * keyboard.c (lispy_accent_keys, lispy_function_keys)
143 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
144 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
145 (frame.c frame_parms):
146 * emacs-icon.h (gnu_xpm_bits):
147 * callint.c (callint_argfuns): Use const.
148
8646d999
J
1492010-08-06 Jan Djärv <jan.h.d@swipnet.se>
150
151 * sysdep.c: Move include term.h last of includes (Bug#6812).
152
cb4545ad
EZ
1532010-08-06 Eli Zaretskii <eliz@gnu.org>
154
155 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
156
157 * msdos.c (IT_display_cursor): Log cursor position on termscript.
158
159 * .gdbinit (pgx): Display the avoid_cursor_p flag.
160
da7e2be6
JB
1612010-08-06 Juanma Barranquero <lekktu@gmail.com>
162
163 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
164
3d608a86
J
1652010-08-06 Jan Djärv <jan.h.d@swipnet.se>
166
7908fb60
J
167 * xterm.h (x_get_focus_frame): Declare.
168
169 * keyboard.h (poll_for_input_1): Unconditionally declare.
170
4094bf36
J
171 * nsterm.h (x_set_menu_bar_lines): Declare.
172
173 * window.c: Don't include menu.h, it depends on lots of other .h-files.
174
3d608a86
J
175 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
176
177 * window.c: Include menu.h.
178
179 * unexmacosx.c (print_region_list, print_regions)
180 (build_region_list, find_emacs_zone_regions)
181 (unexec_regions_merge, read_load_commands, dump_it)
182 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
183
184 * term.c: Check HAVE_SYS_IOCTL_H.
185
686b968e 186 * sysdep.c: Check HAVE_TERM_H.
3d608a86 187
686b968e 188 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
189
190 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
191 (ns_ring_bell, ns_defined_color, hide_hourglass)
192 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
193 Convert to ANSI C prototypes.
194 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
195 before code.
196
197 * nsterm.h : Include sysselect.h.
198 (x_sync, x_get_focus_frame, x_set_mouse_position)
199 (x_set_mouse_pixel_position, x_make_frame_visible)
200 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
201 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
202 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
203 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 204 Declare.
3d608a86
J
205
206 * nsmenu.m (popup_activated, name_is_separator)
207 (syms_of_nsmenu): Convert to ANSI C prototypes.
208 (runMenuAt): Prototypes and move declarations before code.
209
210 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
211
212 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
213 prototypes.
214
215 * nsfns.m (have_menus_p, ns_display_info_for_name)
216 (x_set_cursor_type, ns_appkit_version_str)
217 (ns_appkit_version_int, ns_do_applescript)
218 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
219 (syms_of_nsfns): Convert to ANSI C prototypes.
220
221 * menu.h (x_set_menu_bar_line): Declare.
222 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
223
224 * lisp.h (fmod_float): Declare.
225
226 * image.c (xpm_scan, xpm_make_color_table_v)
227 (xpm_put_color_table_v, xpm_get_color_table_v)
228 (xpm_make_color_table_h, xpm_put_color_table_h)
229 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
230 (xpm_load): Convert to ANSI C prototypes.
231
232 * emacs.c: Include nsterm.h if HAVE_NS.
233
234 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
235
fce70521
DN
2362010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
237
238 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
239 subprocesses, only MSDOS does not define HAVE_SOCKETS.
240 (socket_options): Use const char* for name.
241
a11889ab
JB
2422010-08-06 Juanma Barranquero <lekktu@gmail.com>
243
244 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
245
246 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
247 Don't declare xmalloc_widget_value and digest_single_submenu.
248
249 * w32font.c (Qlatin): Remove declaration.
250
251 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
252
c95b508f 253 * dired.c (compile_pattern): Restore declaration.
a11889ab 254
6254cdda
DN
2552010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
256
04bab72c
DN
257 Remove extern declarations in .c files, .h files have them.
258 * data.c:
259 * dired.c:
260 * editfns.c:
261 * filelock.c:
262 * fns.c:
263 * font.c:
264 * fontset.c:
265 * frame.c:
266 * fringe.c:
267 * ftfont.c:
268 * gtkutil.c:
269 * indent.c:
270 * keyboard.c:
271 * keymap.c:
272 * lread.c:
273 * menu.c:
274 * print.c:
275 * search.c:
276 * sound.c:
277 * window.c:
278 * xdisp.c:
279 * xfaces.c:
280 * xfns.c:
281 * xfont.c:
282 * xftfont.c:
283 * xmenu.c:
284 * xterm.c: Remove declarations.
285
dff94ed5
DN
286 Cleanup syssignal.h.
287 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
288 (main_thread): Move down to remove #ifdef.
289 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
290 Remove conditional definition following unconditional ones.
291
99f3388e
DN
292 * lisp.h: Remove HAVE_SHM code, unused.
293 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
294 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
295 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
296 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
297 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
298 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
299 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
300 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
301 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
302 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
303 (Qwindow_scroll_functions, Vafter_load_alist)
304 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
305 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
306 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
307 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
308 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
309 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
310 (initial_argv, last_nonmenu_event, load_in_progress)
311 (noninteractive_need_newline, scroll_margin): Add declarations.
312
313 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
314 declarations, menu.h has them.
315 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
316 (Vinput_method_function, Qinput_method_function)
317 (Qevent_symbol_element_mask, last_event_timestamp):
318 * dispextern.h (Voverflow_newline_into_fringe):
319 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
320 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
321 (syms_of_w32font, syms_of_nsfont):
322 * fontset.h (find_font_encoding, Qlatin):
323 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
324 (Vtool_bar_mode, set_frame_menubar):
325 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
326 * xterm.h (Qx_gtk_map_stock):
327 * keymap.h (meta_prefix_char): Add declarations.
328
9f5dd6f2
DN
329 * term.c: Remove dead code.
330
6254cdda
DN
331 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
332 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
333 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
334 which is what was there before BSD_PGRPS was removed.
335
29cf3e20
EZ
3362010-08-05 Eli Zaretskii <eliz@gnu.org>
337
338 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
339
340 * unexcoff.c: Renamed from unexec.c.
341
aaa0a19a
SM
3422010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
343
344 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
345
8d1d9587
JB
3462010-08-03 Johan Bockgård <bojohan@gnu.org>
347
348 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 349 (Bug#6744)
8d1d9587 350
9a747ba6
JD
3512010-08-02 Jan Djärv <jan.h.d@swipnet.se>
352
4d464ae4
JD
353 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
354 to TRUE if depth of screen is < 16.
355
ac01763e
JD
356 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
357 USE_GTK_TOOLTIP.
e0d62a9b
JB
358 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
359 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 360 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
361 USE_GTK_TOOLTIP.
362 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
363
364 * xterm.h (USE_GTK_TOOLTIP): New define.
365 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
366
9a747ba6
JD
367 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
368 to Control-D (Bug#6771).
369
7b0815ba
JB
3702010-08-02 Juanma Barranquero <lekktu@gmail.com>
371
372 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
373 Wording by Drew Adams <drew.adams@oracle.com>.
374
aa1859f5
J
3752010-08-01 Jan Djärv <jan.h.d@swipnet.se>
376
377 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
378 ttip_lbl.
379
380 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
381 calling gtk_widget_queue_draw.
382 (x_free_frame_resources): Call xg_free_frame_widgets.
383
384 * xfns.c (x_gtk_use_system_tooltips): New variable.
385 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
386 new gtkutil tooltip functions to show the tooltip.
387 (Fx_hide_tip): Call xg_hide_tooltip.
388 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
389
390 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
391 (xg_show_tooltip, xg_hide_tooltip): Declare.
392
393 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
394 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
395 New functions.
aa1859f5
J
396 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
397 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
398 Remove code that is commented out.
399
76417ef4
SM
4002010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
401
402 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
403
16041401
CY
4042010-07-31 Chong Yidong <cyd@stupidchicken.com>
405
406 * xselect.c (x_own_selection): Use list4.
407
2c09a58f
DN
4082010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
409
410 * buffer.c (Qwindow): Do not define, already defined in data.c.
411 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
412
59df9fdd 4132010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 414
59df9fdd
JB
415 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
416 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
417 * config.in: Undef HAVE_DIRENT_H.
1c97e857 418 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 419 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 420
1b231651
DN
4212010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
422
423 Rename s/usg5-4.h -> s/usg5-4-common.h.
424 * s/usg5-4.h: Rename file to ...
425 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
426 * s/unixware.h:
427 * s/sol2-6.h:
428 * s/irix6-5.h: Update includes accordingly.
429
bfeabdc3
JD
4302010-07-29 Jan Djärv <jan.h.d@swipnet.se>
431
2ebf1083
J
432 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
433
bfeabdc3 434 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
435 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
436 Remove toolbar_height.
437 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
438 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
439 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
440 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
441
442 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
443
444 * xfns.c (x_set_tool_bar_position): New function.
445 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
446 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 447 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
448
449 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
450 and FRAME_TOOLBAR_LEFT_WIDTH.
451
452 * gtkutil.h (xg_change_toolbar_position): Declare.
453
454 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
455 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
456 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
457 (xg_create_frame_widgets): Create a hobox for placing widgets
458 vertically. Use gtk_box_pack_start.
459 (xg_height_or_width_changed): Renamed from xg_height_changed.
460 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
461 (xg_update_frame_menubar, free_frame_menubar): Change to
462 xg_height_or_width_changed.
463 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
464 size correctly. Remove hardcoded 4, instead use handlebox size -
465 toolbar size.
466 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 467 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
468 (xg_pack_tool_bar): POS is a new parameter.
469 Set orientation of tool bar based on pos.
470 Only make handlebox_widget if NULL.
471 Check if tool bar goes to vbox or hbox depending on pos.
472 (xg_update_tool_bar_sizes): New function.
686b968e 473 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
474 height, call xg_update_tool_bar_sizes instead.
475 (free_frame_tool_bar): Remove from hbox or vbox depending on
476 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
477 (xg_change_toolbar_position): New function.
478
479 * frame.h (struct frame): Add tool_bar_position.
480 (Qbottom): Declare.
481
482 * frame.c (Qtool_bar_position): New variable.
483 (make_frame): Set tool_bar_position to Qtop.
484 (frame_parms): Add tool-bar-position.
485 (x_report_frame_params): Store tool_bar_position.
486 (x_set_fringe_width): Reset wm size hint after fringe changes.
487
26469a38
DN
4882010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
489
490 Make lisp_time_argument declaration work on all systems.
491 * lisp.h (lisp_time_argument): Move declaration ...
492 * systime.h (lisp_time_argument): ... here
493 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
494
8848b728
JD
4952010-07-29 Jan Djärv <jan.h.d@swipnet.se>
496
497 * vm-limit.c (POINTER): Add typedef for it.
498 (start_of_data): Change return type from POINTER to char *.
499
500 * frame.h (Qtty_color_mode): Move declaration out of ifdef
501 HAVE_WINDOW_SYSTEM.
502
76fd1ee9
DN
5032010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
504
0441987e
DN
505 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
506 Remove reference to __osf__, unused.
507
56a000c7
DN
508 * mem-limits.h: Remove duplicated includes.
509 (NULL): Remove definition, unused.
510 (POINTER): Remove definition.
511 (start_of_data): Use char* in prototype, as the function
512 definition does.
513
e6cba650
DN
514 Remove extern declarations from .c files, and them to .h files.
515 * keyboard.h (Qhelp_echo, waiting_for_input)
516 (input_available_clear_time, ignore_mouse_drag_p)
517 (Vdouble_click_time, real_this_command, Vthis_original_command):
518 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
519 (Voverriding_local_map_menu_flag):
520 * lisp.h (Qinteractive_form, use_file_dialog)
521 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
522 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
523 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
524 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
525 (Qfunction, debug_on_next_call, Qfield)
526 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
527 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
528 (Qfile_directory_p, Qinsert_file_contents)
529 (Qcompletion_ignore_case, Qcompletion_ignore_case)
530 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
531 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
532 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
533 (Qminibuffer_prompt)
534 (Vtemporary_file_directory,char_ins_del_vector, Qface):
535 * xterm.h (gray_bitmap_width, gray_bitmap_height)
536 (gray_bitmap_bits, xic_create_fontsetname):
537 * coding.h (Vtranslation_table_for_input): Add extern declarations.
538
539 * xsmfns.c (Vuser_login_name):
540 * xrdb.c (Vdouble_click_time):
541 * xfaces.c (xic_create_fontsetname):
542 * w32select.c (waiting_for_input):
543 * print.c (minibuffer_auto_raise):
544 * msdos.c (Qhelp_echo):
545 * macros.c (real_this_command):
546 * keymap.c (Voverriding_local_map):
547 * xterm.c (poll_for_input_1, gray_bitmap_width)
548 (gray_bitmap_height, gray_bitmap_bits;
549 * xmenu.c ( Voverriding_local_map)
550 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
551 (use_file_dialog, Xt_app_con):
552 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
553 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
554 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
555 (Qtool_bar_lines, ignore_mouse_drag_p):
556 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
557 (Qrear_nonsticky, nconc2):
558 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
559 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
560 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
561 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
562 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
563 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
564 (gc_in_progress):
565 * doc.c (Voverriding_local_map, Qremap):
566 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
567 (Vcompletion_regexp_list):
568 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
569 (Qcompletion_ignore_case):
570 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
571 (Vhistory_length, Vthis_original_command, real_this_command)
572 (Qface, Qminibuffer_prompt, history_delete_duplicates):
573 * image.c (Qrisky_local_variable):
574 * fontset.c (QCname):
575 * fns.c (minibuffer_auto_raise, QCname):
576 * dispnew.c (char_ins_del_cost):
577 * composite.c (font_fill_lglyph_metrics):
578 * cmds.c (Qface, Vtranslation_table_for_input):
579 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
580 * ccl.c (charset_unicode):
581 * callproc.c (Vtemporary_file_directory):
582 * buffer.c (emacs_strerror): Remove extern declarations.
583
584 * data.c (Qwindow): Make non-static, used from other files too.
585 * frame.c (validate_x_resource_name): Remove shadow definition for i.
586
76fd1ee9
DN
587 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
588 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
589 * s/usg5-4.h (COFF):
590 * s/template.h:
591 * s/msdos.h (COFF, NO_REMAP):
592 * s/ms-w32.h (NO_REMAP):
593 * s/hpux10-20.h (NO_REMAP):
594 * m/sparc.h (SEGMENT_MASK):
595 * m/m68k.h (NO_REMAP):
596 * m/intel386.h (SEGMENT_MASK):
597 * m/arm.h (NO_REMAP):
598 * m/alpha.h (COFF):
599 * m/template.h: Remove references to unused defines.
600
8a52f00a
JD
6012010-07-28 Jan Djärv <jan.h.d@swipnet.se>
602
603 * xsettings.c (Ftool_bar_get_system_style): Also check for
604 Qtext_image_horiz.
605
606 * xdisp.c (Qtext_image_horiz): Define.
607 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 608 to documentation of tool-bar-style.
8a52f00a
JD
609
610 * lisp.h (Qtext_image_horiz): Declare.
611
612 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
613 style text_image_horiz.
614
89dc303e
DN
6152010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
616
60799703
DN
617 * emacs.c (Fkill_emacs): Remove return statement.
618
37254dc1
DN
619 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
620 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
621 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
622 local extern declarations.
623
71c7345a
DN
624 * xmenu.c: Do not included lwlib.h, not needed.
625
6ba577cb
DN
626 * m/iris4d.h (XUINT, XSET): Remove, not needed.
627
fdb183d6
DN
628 * process.c: Move definitions earlier to minimize #ifdefs.
629
630 * xterm.h (x_get_customization_string, x_load_resources)
631 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
632 (x_check_errors, x_property_data_to_lisp, defined_color)
633 (xic_set_xfontset, x_defined_color): Use const.
634
635 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
636 (x_text_icon, x_check_errors, x_connection_closed): Use const.
637
638 * xselect.c (selection_data_to_lisp_data)
639 (x_property_data_to_lisp):
640 * xrdb.c (x_get_string_resource, file_p)
641 (x_get_customization_string, magic_file_p, search_magic_path)
642 (get_system_app, get_user_app, x_load_resources, x_get_resource)
643 (x_get_string_resource): Use const.
644
645 * xfns.c: Include xlwmenu.h when USE_LUCID.
646 (x_defined_color, xic_set_xfontset): Use const.
647 (Fx_hide_tip): Remove local extern declaration.
648
649 * xfaces.c (Qmouse_face): Remove declaration.
650 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 651 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
652
653 * xdisp.c (do_mouse_tracking): Remove declaration.
654 (add_to_log): Use const.
655
656 * minibuf.c (Qmouse_face): Remove declaration.
657
658 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
659
660 * keyboard.h (do_mouse_tracking): Add declaration.
661
662 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
663 (QCdata, QCtype, Qcenter): Remove declarations.
664
665 * frame.c (x_get_resource_string, x_get_string_resource)
666 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
667 (x_default_parameter): Use const.
668
669 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
670 (QCheight, QCsize, QCname): Remove declarations.
671
672 * emacs.c (main): Remove local extern declaration.
673
674 * editfns.c (region_limit, syms_of_editfns): Remove local extern
675 declarations.
676
677 * dispnew.c: Remove duplicate #include <unistd.h>.
678 (update_window, update_frame_1, init_display): Remove local extern
679 declarations.
680
681 * dispextern.h (add_to_log): Remove declaration.
682 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
683 (x_frame_get_and_record_arg, x_default_parameter): Add const.
684
685 * dired.c (scmp): Add const.
686 (directory_files_internal): Remove local extern declaration.
687
688 * data.c (Finteractive_form): Use const.
689
690 * composite.c (syms_of_composite): Remove local extern declarations.
691
692 * charset.c (add_to_log): Remove declaration.
693
694 * character.c (strwidth, parse_str_to_multibyte): Add const.
695
696 * character.h (strwidth, parse_str_to_multibyte): Likewise.
697
698 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
699
89dc303e 700 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
701 (Lisp_Subr): Make doc and intspec constant.
702 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
703 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
704 (QCheight, QCsize, QCname, QCwidth, QCforeground)
705 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
706 (display_arg): Add declarations.
89dc303e 707
0ed082fe 7082010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
709
710 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
711
0ed082fe
JB
712 * window.c (Fwindow_height): Doc fix (bug#6518).
713
7142010-07-27 Juanma Barranquero <lekktu@gmail.com>
715
716 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
717
ccaf0336
DN
7182010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
719
977105dc
DN
720 * keyboard.c (Ftop_level, Fexit_recursive_edit)
721 (Fabort_recursive_edit): Remove return statements in NO_RETURN
722 functions.
723
f5ada890
DN
724 * frame.h (Qtty_color_mode): Add declaration.
725
ccaf0336
DN
726 * lisp.h (Ftop_level, Fexit_recursive_edit)
727 (Fabort_recursive_edit): Mark as NO_RETURN.
728
dfe3c90f
KH
7292010-07-26 Kenichi Handa <handa@m17n.org>
730
731 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 732 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 733
7d383292
JB
7342010-07-26 Juanma Barranquero <lekktu@gmail.com>
735
736 * lread.c (unreadpure, mapatoms_1): Make static.
737
da31e629
JB
7382010-07-25 Juanma Barranquero <lekktu@gmail.com>
739
740 * terminfo.c (tparam): Fix prototype of tparm.
741
7bfa6d77
AS
7422010-07-25 Andreas Schwab <schwab@linux-m68k.org>
743
dcc19aac
AS
744 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
745 find start of text segment.
746 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
747 is defined.
748
7bfa6d77
AS
749 * callproc.c (set_initial_environment): Avoid unbalanced braces.
750
63f9a672
KB
7512010-07-25 Ken Brown <kbrown@cornell.edu>
752
753 * vm-limit.c (check_memory_limits): Fix previous change;
754 accidentally reverted an earlier change.
755
24933075
KB
7562010-07-25 Ken Brown <kbrown@cornell.edu>
757
758 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
759 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
760
361358ea
JB
7612010-07-25 Juanma Barranquero <lekktu@gmail.com>
762
763 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
764 * dired.c (opendir, readdir): Fix prototypes.
765 * editfns.c (w32_get_internal_run_time): Fix prototypes.
766 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
767 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
768 (telldir): Remove declaration.
769 * ralloc.c (real_morecore, __morecore): Fix prototypes.
770 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
771 * syssignal.h (strsignal): Fix prototype.
772 * term.c (tparam): Fix prototype.
773 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
774 (term_get_fkeys): Set inside "#ifndef DOS_NT".
775 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
776 and __morecore.
777 * w32gui.h (XParseGeometry): Fix prototype.
778 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
779 * w32term.c (my_set_focus): Declare inside #if 0.
780 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
781 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
782 (drain_message_queue, get_next_msg, post_msg, parse_button)
783 (ClipboardSequence_Proc): Fix prototypes.
784 (wait_for_sync): Remove declaration.
785
630b9592
JB
7862010-07-24 Juanma Barranquero <lekktu@gmail.com>
787
788 * w32fns.c (w32_to_x_color): Remove, unused.
789
6a0d6611
AS
7902010-07-24 Andreas Schwab <schwab@linux-m68k.org>
791
792 * lisp.h: Remove leftover P_.
793
4e8608ff
DN
7942010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
795
796 * ecrt0.c, unexalpha.c: Remove files, unused.
797
c8197983
AS
7982010-07-24 Andreas Schwab <schwab@linux-m68k.org>
799
800 * cmds.c (internal_self_insert): Make static.
801 * lisp.h (internal_self_insert): Remove declaration.
802
97b372d7
JB
8032010-07-23 Juanma Barranquero <lekktu@gmail.com>
804
33ac0414
JB
805 * alloc.c (free_float):
806 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
807 * frame.c (delete_frame_handler):
808 * ralloc.c (reorder_bloc):
809 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
810 Remove unused static functions.
811
94da8397
JB
812 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
813 it is called only from NS code.
814
2e6c8532
JB
815 * w32term.c (my_set_focus): #ifdef away; it is called only from
816 "#ifdef 0" code.
817
97b372d7
JB
818 * w32fns.c (x_edge_detection):
819 * xfaces.c (may_use_scalable_font_p):
820 Remove obsolete static declarations.
821
7c3320d8
JB
8222010-07-20 Juanma Barranquero <lekktu@gmail.com>
823
824 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
825 (emacs_blocked_realloc, uninterrupt_malloc):
826 * fringe.c (w32_reset_fringes):
827 * image.c (convert_mono_to_color_image, lookup_rgb_color)
828 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
829 * sound.c (be2hs, do_play_sound):
830 * vm-limit.c (get_lim_data, ret_lim_data):
831 * w32term.c (x_free_frame_resources):
832 * xfaces.c (x_create_gc, x_free_gc):
833 Convert definitions to standard C.
834
d5273788
SM
8352010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
836
837 * eval.c (Feval, Ffuncall): Use the new names.
838
839 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
840 (DEFUN): Add braces around the union initialisation and use ## to
841 specify the right union alternative and avoid a cast.
842
8d16a259
JB
8432010-07-18 Juanma Barranquero <lekktu@gmail.com>
844
845 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
846
3b8eff32
CY
8472010-07-17 Chong Yidong <cyd@stupidchicken.com>
848
849 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
850
499322ce
J
8512010-07-17 Jan Djärv <jan.h.d@swipnet.se>
852
853 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
854 is related to the menu bar (Bug#6499).
a628ad9d 855 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 856
f6003da5 8572010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
858
859 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
860
861 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
862
863 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
864 i.e. don't put back ButtonRelease (Bug#6608).
865
866 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
867 instead of Window. Call xg_event_is_for_menubar when
868 USE_GTK (Bug#6499).
869
870 * gtkutil.h (xg_event_is_for_menubar): Declare.
871
872 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
873
f6003da5 8742010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
875
876 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
877 when it's the same as the old foreground. (Bug#6609)
878
23243f29
J
8792010-07-16 Jan Djärv <jan.h.d@swipnet.se>
880
881 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
882 widget is non-null (Bug#6645).
883
2b23d2a6
AS
8842010-07-15 Andreas Schwab <schwab@linux-m68k.org>
885
01b564ff
AS
886 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
887 Convert old-style definition.
888
2b23d2a6
AS
889 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
890 timestamp argument.
891
c4affd2c
EZ
8922010-07-15 Eli Zaretskii <eliz@gnu.org>
893
894 * fringe.c (update_window_fringes): Restore mistakenly reverted
895 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
896
cf28cebc
J
8972010-07-14 Jan Djärv <jan.h.d@swipnet.se>
898
899 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
900 (SET_SAVED_KEY_EVENT): Remove (not used).
901 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
902 remove size parameter.
903 (handle_one_xevent): Check popup_activated () for menu for Xt also.
904 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
905 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
906 ButtonRelease.
6b2c4bd9
J
907 (x_set_window_size_1): scroll_bar_actual_width is always
908 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
909
910 * xdisp.c (pending_menu_activation): Remove extern declaration.
911 (prepare_menu_bars): Remove setting of pending_menu_activation.
912
913 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
914 (x_activate_menubar): Set popup_activated_flag for Xt also.
915 Remove setting of pending_menu_activation.
cf28cebc
J
916 (set_frame_menubar): Remove check of pending_menu_activation.
917 Declare menubar_size before code. Correct spelling in comment.
918
f6c1c771
KH
9192010-07-14 Kenichi Handa <handa@m17n.org>
920
921 * font.c (font_open_entity): Cancel previous change.
922 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
923
20477505
EZ
9242010-07-13 Eli Zaretskii <eliz@gnu.org>
925
77defa9a
EZ
926 Remove subprocesses #ifdefs.
927 * process.c <inhibit_sentinels>: Move to the common part.
928 (Fwaiting_for_user_input_p): Move to the common part; return nil
929 if async subprocesses aren't supported.
930 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
931 MS-DOS. Remove "#ifdef subprocesses".
932 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
933 (gettimeofday): Remove "#ifdef subprocesses".
934 (wait_without_blocking): Remove function.
935 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
936 Remove "#ifdef subprocesses".
937 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
938 compiled on MS-DOS.
939 * callproc.c (Fcall_process) [!MSDOS]: Don't call
940 wait_for_termination on MS-DOS.
941 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
942 initialization of inhibit_sentinels.
943 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
944 subprocesses" conditional.
945 * callproc.c (Fcall_process) [!subprocesses]: Don't call
946 wait_for_termination, since `buffer' cannot be an integer when
947 async subprocesses are not supported
948 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
949 for ifdefing away the call to Fprocess_status.
950
20477505
EZ
951 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
952 away the entire body of the function.
953
b3ffc17c
DN
9542010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
955
01faa934
DN
956 Remove subprocesses #ifdefs from term.c.
957 * process.c (add_keyboard_wait_descriptor)
958 (delete_keyboard_wait_descriptor): Move to common section, do
959 nothing when subprocesses is not defined.
a628ad9d
JB
960 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
961 Remove subprocesses #ifdefs.
01faa934 962
b3ffc17c
DN
963 Convert maybe_fatal to standard C.
964 * lisp.h (verror): Declare.
965 * eval.c (verror): New function containing the code from ...
966 (error): ... this. Call verror.
967 * term.c (vfatal): New function containing the code from ...
968 (fatal): ... this. Call vfatal.
969 (maybe_fatal): Convert to standard C, use variable number of
970 arguments. Declare as non-return.
971 (init_tty): Fix maybe_fatal call.
972
0521f580
DN
9732010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
974
975 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
976 (_scroll_bar_note_movement): Convert definitions to standard C.
977 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
978 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
979
ebd15611
DN
9802010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
981
982 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
983 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
984 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
985 (xaw_jump_callback, xaw_scroll_callback)
986 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
987 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
988 definitions to standard C.
989 * xmenu.c (menubar_id_to_frame, popup_get_selection)
990 (popup_activate_callback, popup_deactivate_callback)
991 (menu_highlight_callback, menubar_selection_callback)
992 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
993 (free_frame_menubar, popup_selection_callback, as)
994 (create_and_show_popup_menu, dialog_selection_callback)
995 (create_and_show_dialog):
996 * xfns.c (hack_wm_protocols, x_window):
997 * xfaces.c (x_update_menu_appearance):
998 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
999 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1000 (set_frame_size, update_wm_hints, setup_frame_gcs)
1001 (update_various_frame_slots, update_from_various_frame_slots)
1002 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1003 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1004 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1005
de06a2dd
AS
10062010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1007
a628ad9d 1008 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1009
fc549af9
EZ
10102010-07-12 Eli Zaretskii <eliz@gnu.org>
1011
1012 * process.c (setup_process_coding_systems): Move to the part
1013 shared by non-subprocesses systems, and make its body empty when
1014 subprocesses is not defined.
1015 (close_process_descs): Move to the part shared by non-subprocesses
1016 systems.
1408902e
EZ
1017 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1018 ANSI C.
fc549af9 1019
d5a3eaaf
AS
10202010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1021
1022 * editfns.c (transpose_markers): Convert old-style definition.
1023 * emacs.c (abort, shut_down_emacs, fixup_locale)
1024 (synchronize_system_time_locale)
1025 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1026 * floatfns.c (extract_float, matherr, init_floatfns)
1027 (syms_of_floatfns): Likewise.
1028 * fns.c (make_hash_table): Likewise.
1029 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1030 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1031 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1032 (ftfont_variation_glyphs): Likewise.
1033 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1034 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1035 * lread.c (read_filtered_event): Likewise.
1036 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1037 * process.c (wait_reading_process_output): Likewise.
1038 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1039 * search.c (search_buffer, boyer_moore): Likewise.
1040 * syntax.c (scan_sexps_forward): Likewise.
1041 * xdisp.c (try_scrolling): Likewise.
1042 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1043 (face_at_string_position): Likewise.
1044 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1045 * xselect.c (x_get_window_property, receive_incremental_selection)
1046 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1047 Likewise.
1048 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1049
6f704c76
DN
10502010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1051
ded80a25
DN
1052 * callproc.c (child_setup): Remove subprocesses conditional.
1053 Remove code dealing with SET_EMACS_PRIORITY, unused.
1054
49d937f4 1055 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1056 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1057
1058 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1059 (__do_global_dtors, __main): Use void in definition.
1060 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1061 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1062 the only users from ...
1063 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1064 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1065 (HAVE_VOLATILE): Remove, unused.
1066
6f704c76
DN
1067 Convert more function definitions to standard C.
1068 * xdisp.c (window_box_edges, handle_single_display_spec)
1069 (display_string): Convert definition to standard C.
1070 * scroll.c (do_direct_scrolling, scrolling_1):
1071 * dispnew.c (allocate_matrices_for_frame_redisplay)
1072 (mirrored_line_dance):
1073 * coding.c (code_convert_string):
1074 * charset.c (map_charset_chars):
1075 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1076 (Fregister_ccl_program, Fregister_code_conversion_map):
1077 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1078 (head_table): Make static and const.
1079
e6cfa7c3
AS
10802010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1081
1082 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1083 (PROFILING_LDFLAGS): Set from substitution.
1084 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1085 CFLAGS last.
1086
892dd565
KH
10872010-07-12 Kenichi Handa <handa@m17n.org>
1088
6f2cdcd1
KH
1089 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1090 (shortlisp): Likewise.
1091
892dd565
KH
1092 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1093
1094 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1095 of FONT_ENTITY_INDEX.
1096 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1097 property, get the property value dynamically.
1098 (Ffont_put): Accept font-entity and font-object too.
1099 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1100 return value changed.
1101 (syms_of_font): Adjusted for the above change.
1102
ae96d47a
AS
11032010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1104
c8fc18ee
AS
1105 * blockinput.h: Remove obsolete comment.
1106
89887d67
AS
1107 * lisp.h: Include <stddef.h>.
1108 (OFFSETOF): Don't define.
1109 (VECSIZE): Use offsetof instead of OFFSETOF.
1110 (PSEUDOVECSIZE): Likewise.
1111 * process.c (conv_sockaddr_to_lisp): Likewise.
1112 * alloc.c: Don't include <stddef.h>.
1113 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1114
ae96d47a
AS
1115 * process.c: Remove obsolete comment.
1116
635c0aa1
CY
11172010-07-11 Chong Yidong <cyd@stupidchicken.com>
1118
1119 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1120
a64df650
AS
11212010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1122
8966b757
AS
1123 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1124 index, rindex.
1125 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1126 * editfns.c (Fuser_full_name, Fformat): Likewise.
1127 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1128 * fileio.c (Ffile_symlink_p): Likewise.
1129 * filelock.c (current_lock_owner): Likewise.
1130 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1131 * fontset.c (fontset_pattern_regexp): Likewise.
1132 * lread.c (read1): Likewise.
1133 * sysdep.c (init_system_name): Likewise.
1134 * xfns.c (select_visual): Likewise.
1135 * s/hpux10-20.h (index, rindex): Don't define.
1136 * s/ms-w32.h (index): Likewise.
1137 * s/usg5-4.h: Likewise.
1138
cf237e27
AS
1139 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1140
a8fe7202
AS
1141 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1142 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1143 (egetenv): Likewise.
1144 * doprnt.c (doprnt): Likewise.
1145 * editfns.c (set_time_zone_rule, format2): Likewise.
1146 * emacs.c (decode_env_path): Likewise.
1147 * eval.c (signal_error, error): Likewise.
1148 * insdel.c (replace_range_2): Likewise.
1149 * keyboard.c (cmd_error_internal): Likewise.
1150 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1151 * print.c (write_string, write_string_1, print_error_message):
1152 Likewise.
1153 * vm-limit.c (warn_function, memory_warnings): Likewise.
1154 * xdisp.c (message1, message1_nolog, message_with_string)
1155 (vmessage, message, message_nolog): Likewise.
1156 * emacs.c: Remove duplicate declaration.
1157 * keyboard.h: Likewise.
1158 * lisp.h: Update prototypes.
1159
bb8e180f
AS
1160 * eval.c: Fix indentation problem.
1161
83380e65
AS
1162 * keyboard.c: Include "process.h"
1163
a64df650
AS
1164 * eval.c: Remove obsolete noinline declaration.
1165 * fns.c: Likewise.
1166
6a8033e1
KR
11672010-07-11 Ken Raeburn <raeburn@raeburn.org>
1168
1169 * doprnt.c (doprnt): Take a va_list argument instead of count and
1170 pointer.
1171 * eval.c (error): Change to a standard-C variadic function.
1172 * xdisp.c (vmessage): Renamed from message, made static, and
1173 changed to take a va_list argument.
1174 (message): New variadic wrapper.
1175 (message_nolog): Now a variadic function, calling vmessage.
1176 * lisp.h: Include stdarg.h for va_list.
1177 (doprnt, error, message, message_nolog): Decls updated.
1178
462aa963
EZ
11792010-07-11 Eli Zaretskii <eliz@gnu.org>
1180
1181 * process.c (syms_of_process) <delete-exited-processes>: Define
1182 even if !subprocesses.
1183 (delete_exited_processes): Ditto.
1184
1185 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1186 (delete_exited_processes): Don't define.
1187
48104462
CY
11882010-07-10 Chong Yidong <cyd@stupidchicken.com>
1189
1190 * frame.c (make_frame): Initialize menu_bar_lines and
1191 tool_bar_lines members.
1192 (make_initial_frame, make_terminal_frame): Initialize
1193 menu_bar_lines using value of menu-bar-mode.
1194
1195 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1196
f388c88a
EZ
11972010-07-10 Eli Zaretskii <eliz@gnu.org>
1198
1199 * process.c: Reshuffle #include's. Condition some of the global
1200 and static variables on `subprocesses'.
1201 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1202 Leave only one implementation.
1203 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1204 (kill_buffer_processes, Flist_system_processes)
1205 (Fprocess_attributes, init_process, syms_of_process): Unify the
1206 implementations for with subprocesses and without them.
1207
723f5a07
J
12082010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1209
1210 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1211 correct size for Motif.
1212 (free_frame_menubar): Call x_set_window_size to update frame size.
1213
1214 * xfns.c (x_window): Set borderWidth to 0 for pane and
1215 EmacsFrame. Frame size calculation is wrong otherwise.
1216
2536a4b7
MA
12172010-07-09 Michael Albinus <michael.albinus@gmx.de>
1218
1219 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1220 allows to suppress errors when polling in Emacs' main loop.
1221 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1222 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1223 (Fdbus_method_error_internal, Fdbus_send_signal)
1224 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1225 (Fdbus_register_method): Use it. (Bug#6579)
1226
5842a27b
DN
12272010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1228
1229 * alloc.c: Convert DEFUNs to standard C.
1230 * buffer.c:
1231 * bytecode.c:
1232 * callint.c:
1233 * callproc.c:
1234 * casefiddle.c:
1235 * casetab.c:
1236 * category.c:
1237 * character.c:
1238 * charset.c:
1239 * chartab.c:
1240 * cmds.c:
1241 * coding.c:
1242 * composite.c:
1243 * data.c:
1244 * dbusbind.c:
1245 * dired.c:
1246 * dispnew.c:
1247 * doc.c:
1248 * dosfns.c:
1249 * editfns.c:
1250 * emacs.c:
1251 * eval.c:
1252 * fileio.c:
1253 * filelock.c:
1254 * floatfns.c:
1255 * fns.c:
1256 * font.c:
1257 * fontset.c:
1258 * frame.c:
1259 * fringe.c:
1260 * image.c:
1261 * indent.c:
1262 * insdel.c:
1263 * keyboard.c:
1264 * keymap.c:
1265 * lread.c:
1266 * macros.c:
1267 * marker.c:
1268 * menu.c:
1269 * minibuf.c:
1270 * msdos.c:
1271 * nsfns.m:
1272 * nsmenu.m:
1273 * nsselect.m:
1274 * print.c:
1275 * process.c:
1276 * search.c:
1277 * sound.c:
1278 * syntax.c:
1279 * term.c:
1280 * terminal.c:
1281 * textprop.c:
1282 * undo.c:
1283 * w16select.c:
1284 * w32console.c:
1285 * w32fns.c:
1286 * w32font.c:
1287 * w32menu.c:
1288 * w32proc.c:
1289 * w32select.c:
1290 * window.c:
1291 * xdisp.c:
1292 * xfaces.c:
1293 * xfns.c:
1294 * xmenu.c:
1295 * xselect.c:
1296 * xsettings.c:
1297 * xsmfns.c: Likewise.
1298
d568829b
EZ
12992010-07-08 Eli Zaretskii <eliz@gnu.org>
1300
1301 * process.c (kbd_is_on_hold, hold_keyboard_input)
1302 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1303
52214050
J
13042010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1305
1306 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1307 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1308 unless USE_LUCID.
1309
313d9eb2
DN
13102010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1311
a628ad9d
JB
1312 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1313 declaration.
d8825aa3 1314
295d0d8f
DN
1315 Clean up include guards.
1316 * tparam.c: Remove include guards for config.h, string.h and code
1317 that assumes #ifndef emacs.
1318 * termcap.c:
1319 * unexalpha.c:
1320 * sysdep.c:
1321 * filemode.c:
1322 * filelock.c:
1323 * bidi.c: Likewise.
1324
49d9e6b0
DN
1325 Remove prefix-args.c
1326 * prefix-args.c: Remove file.
1327 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1328 * Makefile.in (temacs${EXEEXT}): Remove references to
1329 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1330 (mostlyclean): Remove reference to prefix-args.
1331 (prefix-args): Remove.
1332
313d9eb2
DN
1333 Simplify cstart_of_data, start_of_code and related code.
1334 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1335 (start_of_data): Merge into start_of_data function.
1336 * sysdep.c (start_of_text): Remove. Move simplified versions of
1337 it in the only users: unexaix.c and unexec.c.
1338 (read_input_waiting): Remove local declaration of quit_char.
1339 (start, etext): Remove declarations.
1340 (start_of_data): Merge with the version in mem-limits.h and move
1341 to vm-limits.c.
1342 * vm-limit.c (start_of_data): Merged and simplified version of the
1343 code formerly in mem-limits.h and sysdep.c.
1344 * unexec.c (start): New declaration, moved from sysdep.c.
1345 (start_of_text): Simplified version of the code formerly in sysdep.c.
1346 * unexaix.c (start_of_text): Simplified version of the code
1347 formerly in sysdep.c.
1348 * m/alpha.h (HAVE_TEXT_START): Remove.
1349 (TEXT_START): Move ...
1350 * unexalpha.c (TEXT_START): ... here.
1351 * s/hpux10-20.h (TEXT_START): Remove.
1352 * s/darwin.h (TEXT_START):
1353 * m/mips.h (TEXT_START):
1354 * m/macppc.h (HAVE_TEXT_START):
1355 * m/m68k.h (TEXT_START):
1356 * m/iris4d.h (TEXT_START):
1357 * m/intel386.h (TEXT_START):
1358 * m/ibmrs6000.h (TEXT_START):
1359 * m/ia64.h (HAVE_TEXT_START):
1360 * s/msdos.h (TEXT_START): Likewise.
1361
72af86bd
AS
13622010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1363
1364 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1365 (overrun_check_free, xstrdup, allocate_string)
1366 (allocate_string_data, compact_small_strings, Fmake_string)
1367 (make_unibyte_string, make_multibyte_string)
1368 (make_string_from_bytes, make_specified_string, make_float)
1369 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1370 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1371 memcpy, memmove, memset, memcmp.
1372 * atimer.c (start_atimer, set_alarm): Likewise.
1373 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1374 (mmap_realloc, init_buffer_once): Likewise.
1375 * callint.c (Fcall_interactively): Likewise.
1376 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1377 (getenv_internal_1): Likewise.
1378 * casefiddle.c (casify_object): Likewise.
1379 * ccl.c (ccl_driver): Likewise.
1380 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1381 * charset.c (load_charset_map_from_file)
1382 (load_charset_map_from_file, load_charset_map_from_vector)
1383 (Fdefine_charset_internal): Likewise.
1384 * cm.c (Wcm_clear): Likewise.
1385 * coding.c (decode_eol, decode_coding_object)
1386 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1387 * data.c (Faset): Likewise.
1388 * dired.c (directory_files_internal, file_name_completion_stat):
1389 Likewise.
1390 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1391 (clear_glyph_row, copy_row_except_pointers)
1392 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1393 (save_current_matrix, restore_current_matrix)
1394 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1395 (mirror_line_dance, scrolling_window): Likewise.
1396 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1397 Likewise.
1398 * doprnt.c (doprnt): Likewise.
1399 * editfns.c (Fuser_full_name, make_buffer_string_both)
1400 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1401 * emacs.c (sort_args): Likewise.
1402 * eval.c (Fapply, Ffuncall): Likewise.
1403 * fileio.c (Ffile_name_directory, make_temp_name)
1404 (Fexpand_file_name, search_embedded_absfilename)
1405 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1406 (auto_save_error): Likewise.
1407 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1408 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1409 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1410 (Fmake_hash_table): Likewise.
1411 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1412 * ftfont.c (ftfont_text_extents): Likewise.
1413 * getloadavg.c (getloadavg): Likewise.
1414 * image.c (define_image_type, make_image, make_image_cache)
1415 (x_create_x_image_and_pixmap, xbm_image_p)
1416 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1417 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1418 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1419 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1420 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1421 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1422 Likewise.
1423 * indent.c (scan_for_column, compute_motion): Likewise.
1424 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1425 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1426 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1427 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1428 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1429 (store_user_signal_events, menu_bar_items, tool_bar_items)
1430 (process_tool_bar_item, append_tool_bar_item)
1431 (read_char_minibuf_menu_prompt, read_key_sequence)
1432 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1433 Likewise.
1434 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1435 Likewise.
1436 * lisp.h (STRING_COPYIN): Likewise.
1437 * lread.c (Fload, read1, oblookup): Likewise.
1438 * msdos.c (Frecent_doskeys): Likewise.
1439 * nsfns.m (Fx_create_frame): Likewise.
1440 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1441 Likewise.
1442 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1443 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1444 Likewise.
1445 * nsmenu.m (ns_update_menubar): Likewise.
1446 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1447 * print.c (print_unwind, printchar, strout, print_string)
1448 (print_error_message): Likewise.
1449 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1450 (Fmake_network_process, Fnetwork_interface_list)
1451 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1452 (init_process): Likewise.
1453 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1454 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1455 Likewise.
1456 * scroll.c (do_scrolling, do_direct_scrolling)
1457 (scrolling_max_lines_saved): Likewise.
1458 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1459 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1460 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1461 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1462 (emacs_set_tty): Likewise.
1463 * term.c (encode_terminal_code, calculate_costs)
1464 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1465 Likewise.
1466 * termcap.c (tgetst1, gobble_line): Likewise.
1467 * termhooks.h (EVENT_INIT): Likewise.
1468 * tparam.c (tparam1): Likewise.
1469 * unexalpha.c (unexec): Likewise.
1470 * unexec.c (write_segment): Likewise.
1471 * unexmacosx.c (unexec_write_zero): Likewise.
1472 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1473 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1474 * w32font.c (w32font_list_family, w32font_text_extents)
1475 (w32font_list_internal, w32font_match_internal)
1476 (w32font_open_internal, compute_metrics, Fx_select_font):
1477 Likewise.
1478 * w32menu.c (set_frame_menubar, add_menu_item)
1479 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1480 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1481 * w32uniscribe.c (uniscribe_list_family): Likewise.
1482 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1483 * window.c (make_window, replace_window, set_window_buffer)
1484 (Fsplit_window): Likewise.
1485 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1486 (add_to_log, message3, x_consider_frame_title)
1487 (append_space_for_newline, extend_face_to_end_of_line)
1488 (decode_mode_spec_coding, init_glyph_string): Likewise.
1489 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1490 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1491 (face_attr_equal_p, make_realized_face, make_face_cache)
1492 (free_realized_faces, lookup_named_face, smaller_face)
1493 (face_with_height, lookup_derived_face)
1494 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1495 (Finternal_set_font_selection_order, realize_default_face)
1496 (compute_char_face, face_at_buffer_position)
1497 (face_for_overlay_string, face_at_string_position, merge_faces):
1498 Likewise.
1499 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1500 (Fx_window_property, x_create_tip_frame)
1501 (Fx_backspace_delete_keys_p): Likewise.
1502 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1503 (xfont_text_extents): Likewise.
1504 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1505 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1506 * xselect.c (x_queue_event, x_get_window_property)
1507 (receive_incremental_selection): Likewise.
1508 * xsmfns.c (x_session_check_input): Likewise.
1509 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1510 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1511 Likewise.
1512 * character.h (BCOPY_SHORT): Removed.
1513 * config.in: Regenerate.
1514 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1515 * emacs.c (main) [PROFILING]: Don't declare
1516 dump_opcode_frequencies.
1517 * lisp.h (safe_bcopy): Remove declaration.
1518 (memset) [!HAVE_MEMSET]: Declare.
1519 (memcpy) [!HAVE_MEMCPY]: Likewise.
1520 (memmove) [!HAVE_MEMMOVE]: Likewise.
1521 (memcmp) [!HAVE_MEMCMP]: Likewise.
1522 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1523 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1524 Don't define.
1525 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1526 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1527 (BCOPY_DOWNWARD_SAFE): Don't define.
1528 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1529 (memcpy) [!HAVE_MEMCPY]: Define.
1530 (memmove) [!HAVE_MEMMOVE]: Define.
1531 (memcmp) [!HAVE_MEMCMP]: Define.
1532
cb768704
J
15332010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1534
1535 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1536 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1537 New functions.
cb768704
J
1538 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1539 select on empty input mask.
1540 (init_process): Initialize kbd_is_on_hold to 0.
1541
1542 * process.h (hold_keyboard_input, unhold_keyboard_input)
1543 (kbd_on_hold_p): Declare.
1544
1545 * keyboard.c (input_available_signal): Declare.
1546 (kbd_buffer_nr_stored): New function.
1547 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1548 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1549 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1550 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1551 (tty_read_avail_input): If input is on hold, return.
1552 Don't read more that free slots in kbd_buffer (Bug#6571).
1553
3a8ce822
EZ
15542010-07-07 Eli Zaretskii <eliz@gnu.org>
1555
1556 * msdos.h:
1557 * msdos.c:
1558 * dosfns.c:
1559 * w16select.c: Convert function definitions to ANSI C.
1560
a628ad9d
JB
1561 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1562 Remove unused prototypes.
3a8ce822 1563
cf84bb53
JB
15642010-07-07 Juanma Barranquero <lekktu@gmail.com>
1565
1566 * coding.c, sysdep.c: Convert some more functions to standard C.
1567
1a4990fb
JB
15682010-07-07 Juanma Barranquero <lekktu@gmail.com>
1569
1570 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1571 (encode_coding_object): Use SPECPDL_INDEX.
1572 (syms_of_coding): Use DOS_NT.
1573
c0f2f16b
DN
15742010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1575
48fb6855
DN
1576 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1577
c0f2f16b
DN
1578 Make the function member of Lisp_Subr use standard C prototypes.
1579 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1580 (DECL_ALIGN): Add a cast for the function.
1581 * eval.c (Feval, Ffuncall): Use the proper type for each type
1582 function call.
1583
67aecef9
CY
15842010-07-06 Chong Yidong <cyd@stupidchicken.com>
1585
1586 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1587 fringe face id, so face-remapping-alist works (Bug#6091).
1588
b56ceb92
JB
15892010-07-06 Juanma Barranquero <lekktu@gmail.com>
1590
1591 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1592 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1593 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1594
7af07b96
AS
15952010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1596
1597 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1598 * lisp.h: Declare x_get_keysym_name.
1599 * keyboard.c (modify_event_symbol): Don't declare
1600 x_get_keysym_name here.
1601
69e24e34
DN
16022010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1603
1604 * ecrt0.c: Revert conversion to standard C.
1605
d3da34e0 16062010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1607
1608 * vm-limit.c (memory_warnings):
1609 * keyboard.c (modify_event_symbol):
1610 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1611 (round2, emacs_rint):
1612 * process.c (send_process, old_sigpipe): Convert function
1613 definitions and declarations to standard C.
1614
16152010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1616
1617 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1618 * xdisp.c: Convert function definitions to standard C.
1619
1620 * cm.c (cmputc): Arg C is now int, not char.
1621 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1622
00be444c
J
16232010-07-05 James Cloos <cloos@jhcloos.com>
1624
1625 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1626
1627 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1628 _NET_WM_ICON_NAME atoms.
1629
1630 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1631 and _NET_WM_ICON_NAME properties, too, matching what is
1632 done in the Gtk+ case.
1633
e4c8d29a
J
16342010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1635
ff919460
J
1636 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1637
e4c8d29a
J
1638 * xsmfns.c (SSDATA): New macro.
1639 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1640 passed to strlen/strcpy/strcat.
1641 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1642 7:th arg to XChangeProperty to (unsigned char *)
1643
1644 * xsettings.c (something_changedCB, parse_settings)
1645 (apply_xft_settings): Reformat prototype.
1646 (something_changedCB, init_gconf): Remove unused variable i.
1647 (read_settings): Remove unused variable long_len.
1648
1649 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1650 (xg_get_image_for_pixmap, create_dialog)
1651 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1652 (menuitem_highlight_callback, make_menu_item)
1653 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1654 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1655 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1656 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1657 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1658 (xg_tool_bar_item_expose_callback): Reformat prototype.
1659 (xg_update_menubar): GList *group => GSList *group.
1660 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1661 before use.
1662 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1663 to GTK_IMAGE (wimage).
1664
dd4c5104
DN
16652010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1666
898b4c5c
DN
1667 * atimer.c: Use "" instead of <> for local includes for
1668 consistency with the rest of the code.
1669
dd4c5104
DN
1670 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1671 * xrdb.c (get_system_name):
1672 * window.c (shrink_windows):
1673 * syntax.c (forw_comment):
1674 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1675 (ins_del_costs):
1676 * mem-limits.h (start_of_data):
1677 * lread.c (readevalloop):
1678 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1679 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1680 * frame.c (x_get_focus_frame):
1681 * floatfns.c (fmod_float):
1682 * fileio.c (choose_write_coding_system):
1683 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1684 (malloc_initialize_hook, sort_args, synchronize_locale):
1685 * doprnt.c (doprnt):
1686 * dired.c (compile_pattern):
1687 * data.c (fmod_float):
1688 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1689 (map_char_table_for_charset):
1690 * charset.c (define_charset_internal):
1691 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1692 to standard C.
1693
9a39b306 16942010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1695 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1696
1697 * lread.c (read1): Fix up last change to not mess up `c'.
1698
e6cb2cbb
JB
16992010-07-04 Juanma Barranquero <lekktu@gmail.com>
1700
1701 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1702
438105ed
JB
17032010-07-04 Juanma Barranquero <lekktu@gmail.com>
1704
1705 Fix prototypes.
1706
e5447b22 1707 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1708 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1709 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1710 arg, as required by internal_condition_case_1.
dcc7404b 1711 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1712 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1713 (analyse_first): Fix "const const".
e5447b22 1714 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1715 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1716 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1717
971de7fb
DN
17182010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1719
1720 * alloc.c: Convert function definitions to standard C.
1721 * atimer.c:
1722 * bidi.c:
1723 * bytecode.c:
1724 * callint.c:
1725 * callproc.c:
1726 * casefiddle.c:
1727 * casetab.c:
1728 * category.c:
1729 * ccl.c:
1730 * character.c:
1731 * charset.c:
1732 * chartab.c:
1733 * cmds.c:
1734 * coding.c:
1735 * composite.c:
1736 * data.c:
1737 * dbusbind.c:
1738 * dired.c:
1739 * dispnew.c:
1740 * doc.c:
1741 * doprnt.c:
1742 * ecrt0.c:
1743 * editfns.c:
1744 * fileio.c:
1745 * filelock.c:
1746 * filemode.c:
1747 * fns.c:
1748 * font.c:
1749 * fontset.c:
1750 * frame.c:
1751 * fringe.c:
1752 * ftfont.c:
1753 * ftxfont.c:
1754 * gtkutil.c:
1755 * indent.c:
1756 * insdel.c:
1757 * intervals.c:
1758 * keymap.c:
1759 * lread.c:
1760 * macros.c:
1761 * marker.c:
1762 * md5.c:
1763 * menu.c:
1764 * minibuf.c:
1765 * prefix-args.c:
1766 * print.c:
1767 * ralloc.c:
1768 * regex.c:
1769 * region-cache.c:
1770 * scroll.c:
1771 * search.c:
1772 * sound.c:
1773 * strftime.c:
1774 * syntax.c:
1775 * sysdep.c:
1776 * termcap.c:
1777 * terminal.c:
1778 * terminfo.c:
1779 * textprop.c:
1780 * tparam.c:
1781 * undo.c:
1782 * unexelf.c:
1783 * window.c:
1784 * xfaces.c:
1785 * xfns.c:
1786 * xfont.c:
1787 * xftfont.c:
1788 * xgselect.c:
1789 * xmenu.c:
1790 * xrdb.c:
1791 * xselect.c:
1792 * xsettings.c:
1793 * xsmfns.c:
1794 * xterm.c: Likewise.
1795
ae492bec
EZ
17962010-07-03 Eli Zaretskii <eliz@gnu.org>
1797
76ea4cc9
EZ
1798 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1799 frames other than the initial one. Fix reversal of colors when
1800 `reverse' is specified in the frame parameters. Call
1801 update_face_from_frame_parameter instead of
1802 internal-set-lisp-face-attribute. Initialize screen colors from
1803 initial_screen_colors[] when f->default_face_done_p is zero,
1804 instead of depending on being called with default-frame-alist as
1805 the alist argument.
1806
1807 * xfaces.c (update_face_from_frame_parameter): Move out of
1808 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1809 with HAVE_WINDOW_SYSTEM.
1810
1e6255ae
EZ
1811 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1812 to menu-bar-mode, if not set in the frame parameters or in
1813 default-frame-alist.
1814
ae492bec
EZ
1815 * w32console.c (sys_tputs): Adjust argument list to prototype in
1816 term.c.
1817
3a35a84c
JB
18182010-07-03 Juanma Barranquero <lekktu@gmail.com>
1819
1820 * lisp.h (memory_warnings): Fix prototype.
1821
1822 * cm.h (evalcost): Fix prototype.
1823
1824 * cm.c (evalcost): Fix arg type.
1825
c532d349
DN
18262010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1827
1828 * term.c (term_clear_mouse_face, Fidentity):
1829 * syssignal.h (signal_handler_t):
1830 * lisp.h (memory_warnings):
1831 * coding.h (preferred_coding_system):
1832 * cm.h (evalcost):
1833 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1834
c0b36d46
EZ
18352010-07-02 Eli Zaretskii <eliz@gnu.org>
1836
1837 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1838 from prototypes.
1839
1840 * msdos.h (load_pixmap): Don't define away.
1841
383e0970
J
18422010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1843
f57e2426
J
1844 * lisp.h:
1845 * atimer.h: Remove define for P_.
1846
1847 * alloc.c: Remove __P and P_ from .c and .m files.
1848 * atimer.c:
1849 * buffer.c:
1850 * callint.c:
1851 * category.c:
1852 * charset.c:
1853 * chartab.c:
1854 * cm.c:
1855 * coding.c:
1856 * composite.c:
1857 * data.c:
1858 * dired.c:
1859 * dispnew.c:
1860 * doc.c:
1861 * editfns.c:
1862 * emacs.c:
1863 * eval.c:
1864 * fileio.c:
1865 * filelock.c:
1866 * fns.c:
1867 * font.c:
1868 * fontset.c:
1869 * frame.c:
1870 * ftfont.c:
1871 * ftxfont.c:
1872 * gmalloc.c:
1873 * gtkutil.c:
1874 * image.c:
1875 * indent.c:
1876 * intervals.c:
1877 * keyboard.c:
1878 * keymap.c:
1879 * lread.c:
1880 * marker.c:
1881 * menu.c:
1882 * minibuf.c:
1883 * print.c:
1884 * process.c:
1885 * scroll.c:
1886 * search.c:
1887 * sound.c:
1888 * strftime.c:
1889 * syntax.c:
1890 * sysdep.c:
1891 * term.c:
1892 * terminal.c:
1893 * textprop.c:
1894 * unexalpha.c:
1895 * w32console.c:
1896 * w32fns.c:
1897 * w32font.c:
1898 * w32menu.c:
1899 * w32term.c:
1900 * w32uniscribe.c:
1901 * window.c:
1902 * xdisp.c:
1903 * xfaces.c:
1904 * xfns.c:
1905 * xfont.c:
1906 * xftfont.c:
1907 * xmenu.c:
1908 * xselect.c:
1909 * xterm.c: Likewise.
1910
383e0970 1911 Remove P_ and __P macros.
f57e2426
J
1912 * atimer.h: Remove P_ and __P macros.
1913 * buffer.h:
383e0970
J
1914 * category.h:
1915 * ccl.h:
1916 * character.h:
1917 * charset.h:
1918 * cm.h:
1919 * coding.h:
1920 * composite.h:
1921 * dispextern.h:
1922 * disptab.h:
9e892c8d 1923 * dosfns.h:
383e0970
J
1924 * font.h:
1925 * fontset.h:
1926 * frame.h:
1927 * gtkutil.h:
1928 * indent.h:
1929 * intervals.h:
1930 * keyboard.h:
1931 * keymap.h:
1932 * lisp.h:
1933 * macros.h:
1934 * md5.h:
1935 * menu.h:
1936 * msdos.h:
1937 * nsterm.h:
1938 * puresize.h:
1939 * region-cache.h:
1940 * syntax.h:
1941 * syssignal.h:
1942 * systime.h:
1943 * termhooks.h:
9e892c8d 1944 * w32font.h:
383e0970
J
1945 * w32term.h:
1946 * widget.h:
1947 * window.h:
1948 * xgselect.h:
1949 * xsettings.h:
1950 * xterm.h: Likewise.
1951
98601119
DN
19522010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1953
d9170db5
DN
1954 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1955
98601119
DN
1956 Cleanup old code.
1957 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1958 * syssignal.h: Remove code for Lynx, not supported anymore.
1959 * vm-limit.c: Remove unused code the depends on emacs not being
1960 defined and NO_LIM_DATA being defined.
1961 * mem-limits.h: Remove dead code.
1962
1f984e12
J
19632010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1964
c49d071a
J
1965 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1966
9d5405ec
J
1967 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1968 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1969
7a18115b
J
1970 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1971 parameters, they are already absolute.
1972
a628ad9d
JB
1973 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1974 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1975
a628ad9d 1976 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1977
a628ad9d
JB
1978 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1979 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1980
a628ad9d
JB
1981 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1982 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1983
c1ef4455
CY
19842010-06-30 Chong Yidong <cyd@stupidchicken.com>
1985
1986 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1987 check default-frame-alist.
1988
ce8f5a9a
AS
19892010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1990
1991 * process.c (create_process): Avoid using invalid file descriptors.
1992
1993 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1994
bf935339
J
19952010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1996
1997 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1998 Improve documentation. Return font regardless of use_system_font.
1999 (syms_of_xsettings): Improve documentation for font-use-system-font.
2000
7c33a057
CY
20012010-07-10 Chong Yidong <cyd@stupidchicken.com>
2002
2ec1b5ee
CY
2003 * xfaces.c (realize_face): Garbage the frame if a face is removed
2004 (Bug#6593).
2005
20062010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2007
2008 * keyboard.c: Remove duplicate <setjmp.h>.
2009 (read_key_sequence): Remove volatile qualifiers.
2010
20112010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2012
2013 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2014 (struct glyph_row): New members left_fringe_offset and
2015 right_fringe_offset.
2016
2017 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2018 specially.
2019 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2020 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2021
2022 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2023 Take account of bitmap offset.
2ec1b5ee
CY
2024 (draw_window_fringes): Take account of window vscroll.
2025 (update_window_fringes): Likewise. Extend top-aligned top indicator
2026 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2027 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2028 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2029
20302010-07-04 Juanma Barranquero <lekktu@gmail.com>
2031
2032 * w32fns.c (Qtooltip): Declare.
2033 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2034
20352010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2036
2037 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2038 grab on just Press (Bug#6499).
2039
20402010-07-02 Chong Yidong <cyd@stupidchicken.com>
2041
2042 * frame.c (Qtooltip): New var.
2043 (delete_frame): Use it. Fix faulty if statement. Don't update
2044 mode line for tooltip frames. Suggested by Martin Rudalics.
2045
2046 * xfns.c (x_create_tip_frame):
2047 * w32fns.c (x_create_tip_frame): Use it.
2048
20492010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2050
2051 * xftfont.c (xftfont_open): Check font width one by one also when
2052 spacing is dual.
2053
2054 * ftfont.c (ftfont_open): Ditto.
2055
6259c2ec
GM
20562010-06-30 Glenn Morris <rgm@gnu.org>
2057
a46007e9
GM
2058 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2059
6259c2ec
GM
2060 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2061
2062 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2063 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2064 * s/darwin.h (SYSTEM_MALLOC):
2065 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2066
5d1d3d04
J
20672010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2068
2069 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2070 (ns_get_screen): Don't assign integer to f.
2071 (Fx_display_color_cells): Declarations before statements.
2072
e547b051
J
20732010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2074
5fc8e5bc
J
2075 * xfns.c (x_default_font_parameter): Remove got_from_system
2076 (Bug#6526).
2077
e547b051
J
2078 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2079 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2080 defines based on what configure finds.
2081
2082 * xterm.c (XTflash): Use gtk_widget_get_window.
2083 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2084 gtk_adjustment_get_page_size.
2085 (handle_one_xevent): Use gtk_widget_get_mapped.
2086 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2087 messages.
2088
2089 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2090
2091 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2092 HAVE_GTK_FILE_SELECTION_NEW.
2093
2094 * gtkutil.c (xg_display_open, xg_display_close): Remove
2095 HAVE_GTK_MULTIDISPLAY, it is always defined.
2096 (xg_display_open): Return type is void.
2097 (gtk_widget_set_has_window)
2098 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2099 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2100 (gtk_adjustment_set_page_increment)
2101 (gtk_adjustment_get_step_increment): #define these if not found
2102 by configure.
2103 (remove_submenu): New define based on Gtk+ version.
2104 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2105 gtk_widget_get_window.
2106 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2107 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2108 (create_dialog): Use gtk_dialog_get_action_area and
2109 gtk_dialog_get_content_area.
2110 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2111 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2112 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2113 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2114 g_object_ref and g_object_unref.
2115 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2116 gtk_widget_get_sensitive.
2117 (xg_update_submenu): Use remove_submenu.
2118 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2119 properties instead to get old x and y position.
2120 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2121 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2122 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2123 (xg_get_tool_bar_widgets): New function.
2124 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2125 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2126 (toolbar_set_orientation): New #define based on if configure
2127 finds gtk_orientable_set_orientation.
2128 (xg_create_tool_bar): Call toolbar_set_orientation.
2129 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2130 instead of gtk_box_pack_start_defaults.
2131
b9229673
CY
21322010-06-28 Chong Yidong <cyd@stupidchicken.com>
2133
2134 * cmds.c (Fdelete_backward_char): Move into Lisp.
2135
bbc803b0
DN
21362010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2137
2138 * s/freebsd.h (BSD4_2): Remove redundant definition.
2139 bsd-common.h defines it already.
2140
6431f2e6
CY
21412010-06-27 Chong Yidong <cyd@stupidchicken.com>
2142
2143 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2144 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2145 tool-bar-mode, which are now set using these X resources at
2146 startup, to determine the defaults (Bug#2249).
2147
2148 * w32fns.c (Fx_create_frame):
2149 * nsfns.m (Fx_create_frame): Likewise.
2150
2151 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2152
8c079ebb
JB
21532010-06-24 Juanma Barranquero <lekktu@gmail.com>
2154
2155 * gtkutil.c (xg_update_scrollbar_pos):
2156 Avoid C99 mid-block variable declaration.
2157
e9b7ab96
JD
21582010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2159
bc869eca
JD
2160 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2161
2b7e356a 2162 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2163
2164 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2165 if height is less than scroll bar min size.
2166 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2167
e9b7ab96
JD
2168 * xfns.c (x_default_font_parameter): Try to open font from system
2169 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2170
a628ad9d 21712010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2172
2173 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2174
70c4cfbb
EZ
21752010-06-20 Eli Zaretskii <eliz@gnu.org>
2176
2177 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2178 most-positive-fixnum, be extra accurate when scrolling window
2179 start, to avoid missing the cursor line.
2180
ad5a12b5
EZ
21812010-06-19 Eli Zaretskii <eliz@gnu.org>
2182
2183 * xdisp.c (try_scrolling): Compute the limit for searching point
2184 in forward scroll from scroll_max, instead of an arbitrary limit
2185 of 10 screen lines. See
2186 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2187 and
2188 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2189 for details.
2190
2a64315a 21912010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2192
2193 * editfns.c (Fbyte_to_string): Pacify compiler.
2194
288cf4e9
SM
21952010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2196
2197 * lread.c (read1): Phase out old-style backquotes a bit more.
2198
6e6e5760
EZ
21992010-06-12 Eli Zaretskii <eliz@gnu.org>
2200
cbc4fd20
EZ
2201 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2202 bidimirror.h.
2203
2204 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2205
317fbf33
EZ
2206 * bidi.c (bidi_initialize): Remove explicit initialization of
2207 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2208 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2209 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2210
2211 * biditype.h: New file.
2212
cbc4fd20
EZ
2213 * bidimirror.h: New file.
2214
6e6e5760
EZ
2215 * window.c (syms_of_window): Doc fix (bug#6409).
2216
4176cba2
RF
22172010-06-12 Romain Francoise <romain@orebokech.com>
2218
2219 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2220 ediff-hook.
2221
cb4bfcb5
GM
22222010-06-10 Glenn Morris <rgm@gnu.org>
2223
64c60c2f
GM
2224 * editfns.c (Fbyte_to_string): Pacify compiler.
2225
cb4bfcb5
GM
2226 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2227
2ec1b5ee
CY
22282010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2229
2230 * alloc.c (Fmake_byte_code): Don't access undefined argument
2231 (Bug#6517).
2232
22332010-06-25 Chong Yidong <cyd@stupidchicken.com>
2234
2235 * xdisp.c (next_element_from_image): Ensure that after-strings are
2236 read the next time we hit handle_stop (Bug#1336).
2237
22382010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2239
2240 * lread.c (read1): Signal error if #s is not followed by paren.
2241
22422010-06-19 Chong Yidong <cyd@stupidchicken.com>
2243
2244 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2245
2246 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2247
22482010-06-15 Glenn Morris <rgm@gnu.org>
2249
2250 * editfns.c (Fbyte_to_string): Pacify compiler.
2251
e454a4a3
SM
22522010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2253
2254 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2255 Check `object's type before accessing its guts.
2256
c1b1acc2
DN
22572010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2258
2259 * s/usg5-4.h: Fix previous change.
2260 Suggested by Lawrence Mitchell <wence@gmx.li>
2261
657d4c0b
AS
22622010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2263
2264 * minibuf.c (Fall_completions): Add more checks.
2265
9b27fd9f
JB
22662010-06-08 Juanma Barranquero <lekktu@gmail.com>
2267
2268 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2269
a99ebb40
DN
22702010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2271
d7c5d87d
DN
2272 * lread.c (X_OK): Remove, unused.
2273
0263a941
DN
2274 * dispnew.c: Remove obsolete comment.
2275
a99ebb40
DN
2276 Remove INCLUDED_FCNTL.
2277 * xterm.c (INCLUDED_FCNTL):
2278 * callproc.c (INCLUDED_FCNTL):
2279 * alloc.c (INCLUDED_FCNTL):
2280 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2281 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2282
13b5221f
MR
22832010-06-07 Martin Rudalics <rudalics@gmx.at>
2284
2285 * window.c (Fselect_window): Move `record_buffer' up to the
2286 beginning of this function, so the buffer gets recorded
2287 even if the selected window does not change.
2288 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2289
5220357f
JB
22902010-06-07 Juanma Barranquero <lekktu@gmail.com>
2291
2292 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2293 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2294
3085237c
DN
22952010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2296
2297 Remove BSTRING related code, all platforms define it.
2298 * s/usg5-4.h (BSTRING): Remove definition.
2299 * s/template.h (BSTRING):
2300 * s/msdos.h (BSTRING):
2301 * s/ms-w32.h (BSTRING):
2302 * s/hpux10-20.h (BSTRING):
2303 * s/gnu-linux.h (BSTRING):
2304 * s/darwin.h (BSTRING):
2305 * s/cygwin.h (BSTRING):
2306 * s/bsd-common.h (BSTRING):
2307 * s/aix4-2.h (BSTRING): Likewise.
2308 * sysdep.c: Remove code depending on BSTRING not being defined.
2309
409f2919
JB
23102010-06-05 Juanma Barranquero <lekktu@gmail.com>
2311
2312 Remove obsolete macro BASE_LEADING_CODE_P.
2313 * character.h (BASE_LEADING_CODE_P): Remove.
2314 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2315 * buffer.c (Fset_buffer_multibyte):
2316 * indent.c (scan_for_column, compute_motion):
2317 * insdel.c (count_combining_before, count_combining_after):
2318 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2319
087fc47a
JB
23202010-06-04 Juanma Barranquero <lekktu@gmail.com>
2321
2322 Turn `directory-sep-char' into a noop.
2323
2324 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2325 (DIRECTORY_SEP): Define unconditionally.
2326
2327 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2328
2329 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2330 call dostounix_filename directly.
2331
2332 * fileio.c (CORRECT_DIR_SEPS): Remove.
2333 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2334 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2335 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2336 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2337
2338 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2339 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2340
0eb7675e
AS
23412010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2342
a628ad9d
JB
2343 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2344 (Bug#6346)
0eb7675e 2345
78edd3b7
JB
23462010-06-03 Juanma Barranquero <lekktu@gmail.com>
2347
2348 * ccl.c (Fccl_program_p): Fix typo in docstring.
2349
eb697db5
DN
23502010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2351
2352 Move UNEXEC definition to autoconf.
2353 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2354 * s/sol2-10.h (UNEXEC):
2355 * s/irix6-5.h (UNEXEC):
2356 * s/hpux10-20.h (UNEXEC):
2357 * s/gnu-linux.h (UNEXEC):
2358 * s/darwin.h (UNEXEC):
2359 * s/cygwin.h (UNEXEC):
2360 * s/bsd-common.h (UNEXEC):
2361 * s/aix4-2.h (UNEXEC):
2362 * m/alpha.h (UNEXEC): Likewise.
2363 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2364
aa3830c4
JB
23652010-06-03 Juanma Barranquero <lekktu@gmail.com>
2366
2367 Remove obsolete pre-unicode2 macros.
2368 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2369 * composite.c (composition_reseat_it):
2370 * data.c (Faset):
2371 * fns.c (Ffillarray):
2372 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2373 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2374
d234d13e
JL
23752010-06-03 Juri Linkov <juri@jurta.org>
2376
2377 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2378 (Fswitch_to_buffer): Remove unused variable `err'.
2379
0d4bcf4d
GM
23802010-06-03 Glenn Morris <rgm@gnu.org>
2381
e23dc1e2
GM
2382 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2383
05b09564
GM
2384 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2385 now that AH_BOTTOM does it.
2386
824e2978
GM
2387 * m/hp800.h (HAVE_ALLOCA):
2388 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2389
0d4bcf4d
GM
2390 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2391 Remove NOT_C_CODE tests, it is always true now.
2392
c55d2abf
DN
23932010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2394
08a494a3
DN
2395 Fix config.h includes.
2396 * xsettings.c:
2397 * xgselect.c:
2398 * nsterm.m:
2399 * nsselect.m:
2400 * nsimage.m:
2401 * nsfont.m:
2402 * nsfns.m:
2403 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2404 other files do.
2405
75934b1d
DN
2406 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2407
9f32a766
DN
2408 * s/sol2-6.h: Remove obsolete comments.
2409
c55d2abf
DN
2410 Remove unnecessary alloca.h includes.
2411 * keymap.c: Do not include alloca.h, config.h does that.
2412 * sysdep.c: Likewise. Do not define fwrite, not used.
2413
06ac62b4
SM
24142010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2415
2416 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2417 the HAVE_TERMIO where it belongs (bug#6149).
2418
1ab8293c
SM
24192010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2420
2421 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2422 of bug#6305).
2423
6dcfd253
EZ
24242010-05-30 Eli Zaretskii <eliz@gnu.org>
2425
2426 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2427 state is always cached (bug#6306).
2428
6d26bbb2
EZ
24292010-05-29 Eli Zaretskii <eliz@gnu.org>
2430
06fa4a23
EZ
2431 Fix cursor motion in bidi-reordered continued lines.
2432 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2433 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2434 over continuation lines in bidi-reordered buffers. Return
2435 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2436 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2437
f5783df3
MA
24382010-05-28 Michael Albinus <michael.albinus@gmx.de>
2439
2440 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2441
7d56b2dd
KH
24422010-05-28 Kenichi Handa <handa@m17n.org>
2443
2444 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2445 Don't sheck SPEC if it is nil.
2446 (font_list_entities): Call font_delete_unmatched if
b925d231 2447 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2448
e58d4ff7
GM
24492010-05-28 Glenn Morris <rgm@gnu.org>
2450
2451 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2452
f1a5d776
CY
24532010-05-27 Chong Yidong <cyd@stupidchicken.com>
2454
2455 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2456 whether to trash.
2457 (internal_delete_file, Frename_file): Callers changed.
2458 (delete_by_moving_to_trash): Doc fix.
2459 (Fdelete_directory_internal): Don't move to trash.
2460
2461 * callproc.c (delete_temp_file):
2462 * buffer.c (Fkill_buffer): Callers changed.
2463
2464 * lisp.h: Update prototype.
2465
f44a59e6
CY
24662010-05-27 Chong Yidong <cyd@stupidchicken.com>
2467
2468 * xdisp.c (redisplay_window): After redisplay, check if point is
2469 still valid before setting it (Bug#6177).
2470
81ac4f35
GM
24712010-05-27 Glenn Morris <rgm@gnu.org>
2472
2473 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2474 Convert comments to Makefile format.
2475
2476 * Makefile.in (bootstrap-clean): No more Makefile.c.
2477
ccd89fb3
GM
24782010-05-26 Glenn Morris <rgm@gnu.org>
2479
90278cb6
GM
2480 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2481 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2482
ccd89fb3
GM
2483 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2484 Remove.
2485 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2486
b7050583
KH
24872010-05-26 Kenichi Handa <handa@m17n.org>
2488
2489 * composite.c (composition_compute_stop_pos): Fix condition for
2490 backward scanning.
2491
e5458003
GM
24922010-05-25 Glenn Morris <rgm@gnu.org>
2493
c345fe90
GM
2494 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2495 Move before TEMACS_LDFLAGS.
2496 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2497 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2498
2e0689ab
GM
2499 * Makefile.in (NOT_C_CODE): No longer define.
2500 (config.h): No longer include.
2501
8009a5e8
GM
2502 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2503 variables it may reference.
2504
e5458003
GM
2505 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2506 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2507
10f72a37
KH
25082010-05-25 Kenichi Handa <handa@m17n.org>
2509
2510 * dispextern.h (struct composition_it): New members rule_idx and
2511 charpos.
2512
2513 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2514 that the character positions of IT point the last character of the
2515 current grapheme cluster.
2516 (next_element_from_composition): Don't change character positions
2517 of IT.
2518 (append_composite_glyph): Set glyph->charpos to
2519 it->cmp_it.charpos.
2520
2521 * composite.c (autocmp_chars): Change the first argument to RULE,
2522 and try composition with RULE only.
2523 (composition_compute_stop_pos): Record the index number of the
2524 composition rule in CMP_IT->rule_idx.
2525 (composition_reseat_it): Call autocmp_chars repeatedly until the
2526 correct rule of the composition is found.
2527 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2528 is at the last character of the current grapheme cluster when
2529 CMP_IT->reversed_p is nonzero.
2530
171eda53 25312010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2532
171eda53
SM
2533 * editfns.c (Fbyte_to_string): New function.
2534
66a9f7f4
SM
25352010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2536
2537 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2538 Suggested by Masatake YAMATO <yamato@redhat.com>.
2539
d8c315d1
EZ
25402010-05-23 Eli Zaretskii <eliz@gnu.org>
2541
171eda53 2542 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2543
f5b416d2 25442010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2545
2546 * s/netbsd.h: If terminfo is found, use it in preference to
2547 termcap. (Bug#6190) [Backport from trunk]
2548
0416466c
EZ
25492010-05-19 Eli Zaretskii <eliz@gnu.org>
2550
11117830 2551 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2552
2553 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2554 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2555 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2556 and maxpos members instead of start.pos and end.pos, respectively.
2557
2558 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2559 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2560 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2561 (try_window_reusing_current_matrix, try_window_id):
2562 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2563 (init_from_display_pos, init_iterator): Use EMACS_INT for
2564 character and byte positions.
66a9f7f4 2565 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2566 arguments for minimum and maximum buffer positions seen by
2567 display_line for this row. Don't use iterator to find the
2568 position following the maximum one; instead, increment the
11117830
EZ
2569 position found by display_line directly. Fix logic; eol_pos
2570 should be tested before the rest. Handle the case of characters
2571 delivered from display vector (bug#6036). Fix tests related to
2572 it->method. Handle the truncated_on_right_p rows.
2573 (RECORD_MAX_MIN_POS): New macro.
2574 (display_line): Use it to record the minimum and maximum buffer
2575 positions for glyphs in the row being assembled. Record the
2576 position of the newline that terminates the line. If word wrap is
2577 in effect, restore minimum and maximum positions seen up to the
2578 wrap point, when iterator returns to it.
2579 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2580 row and cursor not already at point. Restore original pre-bidi
2581 code for unidirectional buffers.
d36fe237
EZ
2582
2583 * dispnew.c (increment_row_positions, check_matrix_invariants):
2584 Increment and check row->start.pos and row->end.pos, in addition
2585 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2586
11117830
EZ
2587 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2588 Display truncated_on_left_p and truncated_on_right_p flags.
2589 Formatting fixes.
2590 (pmtxrows): Display the ordinal number of each row. Don't display
2591 rows beyond the last one.
2592
2593 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2594 it is not copied by bidi_copy_it.
2595
6e83d800
EZ
25962010-05-22 Eli Zaretskii <eliz@gnu.org>
2597
2598 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2599 (Bug#6237)
2600
110683ad
CY
26012010-05-22 Chong Yidong <cyd@stupidchicken.com>
2602
2603 * image.c (Fimage_flush): Rename from image-refresh.
2604
98fe5161
CY
26052010-05-21 Chong Yidong <cyd@stupidchicken.com>
2606
2607 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2608 just one window.
2609
2610 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2611 (clear_image_cache): If the number of cached images is unusually
2612 large, decrease the cache eviction delay (Bug#6230).
2613
e8752c66
GM
26142010-05-21 Glenn Morris <rgm@gnu.org>
2615
66dbf213
GM
2616 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2617 Move these rules to ns.mk.
2618 * ns.mk: New file.
2619
04384b2d
GM
2620 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2621
e8752c66
GM
2622 * Makefile.in (CANNOT_DUMP): New, set by configure.
2623 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2624
2e2bbddb
JL
26252010-05-20 Juri Linkov <juri@jurta.org>
2626
2627 * fileio.c (Fdelete_file): Change interative spec to use
2628 `read-file-name' like in `find-file-read-args' where the default
2629 value is `default-directory' instead of `buffer-file-name'.
2630 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2631
31c4aaf6
KR
26322010-05-20 Kevin Ryde <user42@zip.com.au>
2633
2634 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2635 (Voverriding_terminal_local_map, Vsystem_key_alist)
2636 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2637
9d5cf9b6
GM
26382010-05-20 Glenn Morris <rgm@gnu.org>
2639
2640 * Makefile.in (DEPDIR): New constant.
2641 (DEPFLAGS): Set with configure, not cpp.
2642 (MKDEPDIR): New, set by configure.
2643 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2644 (clean): Use $DEPDIR.
2645 (deps_frag): Include from configure.
2646 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2647 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2648
ead6f8f5
EZ
2649 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2650 reallocation of the cache. (Bug#6210)
2651
7f34aec3
GM
26522010-05-19 Glenn Morris <rgm@gnu.org>
2653
d494e8f2
GM
2654 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2655
c1d0dcfd
GM
2656 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2657 (GNULIB_VAR): Remove.
2658 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2659
2660 * m/ibms390x.h (LINKER):
2661 * m/macppc.h (LINKER) [GNU_LINUX]:
2662 * s/aix4-2.h (ORDINARY_LINK):
2663 * s/cygwin.h (LINKER):
2664 * s/darwin.h (ORDINARY_LINK):
2665 * s/gnu.h (ORDINARY_LINK):
2666 * s/netbsd.h (LINKER):
2667 * s/usg5-4.h (ORDINARY_LINK):
2668 Move to configure.
2669
7f34aec3
GM
2670 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2671
754790b6
CY
26722010-05-18 Chong Yidong <cyd@stupidchicken.com>
2673
2674 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2675 prevent stack overflow if number of arguments is too large
2676 (Bug#6214).
2677
161e44d1
JB
26782010-05-18 Juanma Barranquero <lekktu@gmail.com>
2679
2680 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2681
be4ff9da
GM
26822010-05-18 Glenn Morris <rgm@gnu.org>
2683
9539dc5d
GM
2684 * s/gnu-linux.h: Combine two conditionals.
2685
2686 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2687 $(POST_ALLOC_OBJ).
2688
40dc6bf4
GM
2689 * Makefile.in (RALLOC_OBJ): New, set by configure.
2690 (rallocobj): Replace with the previous variable.
2691 (otherobj): Use $RALLOC_OBJ.
2692
2693 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2694 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2695
be4ff9da
GM
2696 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2697 (gmallocobj, vmlimitobj): Replace with previous two variables.
2698 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2699
16455a85
GM
27002010-05-17 Glenn Morris <rgm@gnu.org>
2701
2702 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2703 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2704
5fdb7468
GM
27052010-05-16 Glenn Morris <rgm@gnu.org>
2706
7ca1f3f9
GM
2707 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2708
7541dad5
GM
2709 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2710
da53fab9
GM
2711 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2712 trailing "/".
2713
b02a6645
GM
2714 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2715 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2716
8877ca0f
GM
2717 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2718 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2719 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2720 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2721 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2722
5fdb7468
GM
2723 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2724 Remove ${STARTFLAGS}, nothing ever sets it.
2725
95adb4b1
DN
27262010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2727
2728 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2729
676b6304
GM
27302010-05-16 Glenn Morris <rgm@gnu.org>
2731
9beab9ce
GM
2732 * Makefile.in (LIBX_BASE): Always define.
2733
8a95f0e7
GM
2734 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2735
676b6304
GM
2736 * Makefile.in (LIBXT): Always define.
2737
6e546d18
GM
27382010-05-15 Glenn Morris <rgm@gnu.org>
2739
4235ca47 2740 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2741
6e546d18
GM
2742 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2743 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2744
8c5ff6dd
KR
27452010-05-15 Ken Raeburn <raeburn@raeburn.org>
2746
560bb7ae 2747 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2748 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2749
8b4eb796
KR
2750 * emacs.c (main): Initialize initial-environment and
2751 process-environment before generating from env, not after.
2752
8c5ff6dd
KR
2753 Handle --version reasonably in CANNOT_DUMP configuration.
2754 * emacs.c (emacs_version, emacs_copyright): New string variables.
2755 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2756 (syms_of_emacs): Defvar them, and initialize them from the C
2757 string variables.
2758 (main): If initialization hasn't been done, print initial version
2759 info from the C strings, instead of starting an interactive session.
2760
dbd3f723
EZ
27612010-05-15 Eli Zaretskii <eliz@gnu.org>
2762
d20e1419
EZ
2763 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2764 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2765 (bidi_paragraph_init): Remove redundant assertion that we are at
2766 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2767
2768 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2769 (syms_of_xdisp): Defsubr it.
2770
d36fe237
EZ
2771 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2772
dbd3f723
EZ
2773 * Makefile.in: Fix MSDOS-related comments.
2774
02be533b
GM
27752010-05-15 Glenn Morris <rgm@gnu.org>
2776
1a82cca9
GM
2777 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2778 (really-lwlib, really-oldXMenu): Always define.
2779 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2780
3df7b338
GM
2781 * Makefile.in: Simplify cpp conditional.
2782
2b5f541b
GM
2783 * Makefile.in (${ns_appdir}): Simplify using umask.
2784
02be533b
GM
2785 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2786
4e2db1fe
SM
27872010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2788
2789 * eval.c (specbind): Remove left-over duplicate test.
2790 Disallow let-binding frame-local vars. Add comment.
2791
4b292a22
EZ
27922010-05-14 Eli Zaretskii <eliz@gnu.org>
2793
2fe72643 2794 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2795 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2796 (bidi_init_it): Call it.
2797 (bidi_cache_iterator_state): Enlarge the cache if needed.
2798
4e2db1fe 2799 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2800 bidi_get_next_char_visually. All callers changed.
2801
82ebc97b
KH
28022010-05-14 Kenichi Handa <handa@m17n.org>
2803
2804 * dispextern.h (struct composition_it): New member reversed_p.
2805
2806 * composite.c (composition_compute_stop_pos): Search backward if
2807 ENDPOS < CHARPOS.
2808 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2809 Set CMP_IT->reversed_p.
b4b6e17e 2810 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2811
4e2db1fe
SM
2812 * xdisp.c (set_iterator_to_next):
2813 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2814 scanning backward. Call composition_compute_stop_pos if scan
2815 direction is changed.
2816 (next_element_from_buffer): Call composition_compute_stop_pos with
2817 negative ENDPOS if we are scanning backward.
2818 (next_element_from_composition): Pay attention to
2819 IT->cmp_it.reversed_p.
2820
0e5d7800
KH
28212010-05-14 Kenichi Handa <handa@m17n.org>
2822
560bb7ae 2823 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2824
cb027b32
GM
28252010-05-14 Glenn Morris <rgm@gnu.org>
2826
177b0288
GM
2827 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2828
fbc00890
GM
2829 * Makefile.in (mktime, X11, register): Move undefs to configure.
2830
f14d1dfd
GM
2831 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2832 (MSDOS_X_OBJ): New variable.
2833 (MSDOS_SUPPORT_REAL): New constant.
2834 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2835 (obj): Use MSDOS_X_OBJ.
2836 (lisp): Use MSDOS_SUPPORT as a variable.
2837
11842bd8
GM
2838 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2839 (GPM_MOUSE_SUPPORT): Now it's a constant.
2840 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2841 not cpp.
2842
489d31a4 2843 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2844 (ns_appresdir): Remove, unused.
e20f1f07 2845
489d31a4
GM
2846 * Makefile.in (SHELL): Move outside cpp section.
2847
cb027b32
GM
2848 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2849
5a903aa9
GM
28502010-05-13 Glenn Morris <rgm@gnu.org>
2851
3369c79f
GM
2852 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2853 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2854
d5e982a6
GM
2855 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2856 HAVE_WINDOW_SYSTEM must be too.
2857
6192e163
GM
2858 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2859 (lisp): Remove WINNT_SUPPORT.
2860
472c5d6b
GM
2861 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2862 Let configure set these variables (to empty) in this case as well.
2863
0116466b
GM
2864 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2865 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2866
5a903aa9
GM
2867 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2868 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2869 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2870 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2871 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2872 the values output by configure.
5a903aa9
GM
2873 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2874
1a0d7c06
GM
28752010-05-12 Glenn Morris <rgm@gnu.org>
2876
b5457f14
GM
2877 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2878 (LINKER_WAS_SPECIFIED): Remove.
2879
1a0d7c06
GM
2880 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2881 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2882 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2883 * s/cygwin.h (LIB_GCC):
2884 * s/freebsd.h (LIB_GCC):
2885 * s/gnu-linux.h (LIB_GCC):
2886 * s/msdos.h (LIB_GCC):
2887 * s/netbsd.h (LIB_GCC):
2888 Move to configure.
2889
3ffd4615 28902010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2891
2892 * ftfont.c: Fix incorrect parentheses of #if condition for
2893 definining M17N_FLT_USE_NEW_FEATURE.
2894
acddf8ae
GM
28952010-05-11 Glenn Morris <rgm@gnu.org>
2896
2897 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2898 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2899
ae5e04fa
EZ
29002010-05-10 Eli Zaretskii <eliz@gnu.org>
2901
2902 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2903 unibyte buffers. See
2904 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2905
7490175b
GM
29062010-05-10 Glenn Morris <rgm@gnu.org>
2907
97efb629
GM
2908 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2909 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2910 (LIBES): Use LIBS_SYSTEM as a variable.
2911 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2912 * s/aix4-2.h (LIBS_SYSTEM):
2913 * s/freebsd.h (LIBS_SYSTEM):
2914 * s/hpux10-20.h (LIBS_SYSTEM):
2915 * s/sol2-6.h (LIBS_SYSTEM):
2916 * s/unixware.h (LIBS_SYSTEM):
2917 Move to configure.
2918
7490175b
GM
2919 * s/aix4-2.h (MAIL_USE_LOCKF):
2920 * s/bsd-common.h (MAIL_USE_FLOCK):
2921 * s/darwin.h (MAIL_USE_FLOCK):
2922 * s/gnu-linux.h (MAIL_USE_FLOCK):
2923 * s/irix6-5.h (MAIL_USE_FLOCK):
2924 * s/template.h (MAIL_USE_FLOCK):
2925 Move to configure.
2926
0235128c 29272010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2928
2929 * Version 23.2 released.
2930
0235128c 29312010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2932
2933 * composite.c (autocmp_chars): Save point as marker before calling
2934 auto-composition-function (Bug#5984).
2935
2936 * lisp.h (restore_point_unwind): Add prototype.
2937
2938 * fileio.c (restore_point_unwind): Remove static attribute.
2939
0235128c 29402010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2941
2942 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2943 new feature of libotf and m17n-flt.
0235128c
SM
2944 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2945 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2946 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2947 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2948 that OUT is NULL. Use OTF_drive_gsub_with_log and
2949 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2950 OTF_drive_gpos.
2951 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2952 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2953 Setup mflt_enable_new_feature and mflt_try_otf.
2954
4721152c
J
29552010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2956
2957 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2958
2959 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2960 box and toolbar (Bug #6139).
2961 (xg_create_tool_bar): Remove comment (Bug #6139).
2962 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2963 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2964
ee0a16cf
JB
29652010-05-08 Juanma Barranquero <lekktu@gmail.com>
2966
2967 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2968 Update dependencies.
2969
96d79611
EZ
29702010-05-08 Eli Zaretskii <eliz@gnu.org>
2971
2972 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2973 R2L lines.
2974
40c17879
GM
29752010-05-08 Glenn Morris <rgm@gnu.org>
2976
7b42b29f
GM
2977 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2978
40c17879
GM
2979 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2980 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2981 (termcapobj): Replace with TERMCAP_OBJ.
2982 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2983 (LIBES): Use LIBS_TERMCAP as a variable.
2984
2985 * s/freebsd.h (osreldate.h): No longer include, since this file
2986 does not use __FreeBSD_version any more.
2987
2988 * s/aix4-2.h (TERMINFO):
2989 * s/cygwin.h (TERMINFO):
2990 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2991 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2992 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2993 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2994 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2995 * s/irix6-5.h (TERMINFO):
2996 * s/netbsd.h (LIBS_TERMCAP):
2997 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2998 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2999 * s/usg5-4.h (TERMINFO):
3000 Move to configure.
3001
94b612ad
SM
30022010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3003
3004 * eval.c (unbind_to): Don't unbind a local binding into the global
3005 binding when the local binding disappeared. Inversely, don't unbind
3006 a global binding into a newly created local binding.
3007 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3008 can specify the frame to use, when applicable. Adjust callers.
3009
15e12598 30102010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3011 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3012
3013 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3014
f724825e
EZ
30152010-05-07 Eli Zaretskii <eliz@gnu.org>
3016
5cba3209
EZ
3017 * w32fns.c: Include w32.h.
3018 (Fw32_shell_execute): Decode the error message before passing it
3019 to `error'. (Bug#6126)
3020
d16bdfc3
EZ
3021 * msdos.c (dos_set_window_size):
3022 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3023 instead of `XSYMBOL (foo)->value'.
3024
59d93e87
EZ
30252010-05-07 Eli Zaretskii <eliz@gnu.org>
3026
9fdec8bc
EZ
3027 Fix the MS-DOS build, broken by autoconfiscation.
3028
3029 * Makefile.in: Don't use Make-style comments past the "start of
3030 cpp stuff" line.
3031 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3032
3033 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3034 edited directly by msdos/sed1v2.inp).
f724825e 3035
2f86b22b
GM
30362010-05-07 Glenn Morris <rgm@gnu.org>
3037
3038 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3039 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3040 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3041 move out of cpp section.
3042 * s/freebsd.h (LD_SWITCH_SYSTEM):
3043 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3044 * s/netbsd.h (LD_SWITCH_SYSTEM):
3045 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3046
49ebbd65
DN
30472010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3048
3049 Define LIB_STANDARD and START_FILES using autoconf.
3050 * s/usg5-4.h (LIB_STANDARD):
3051 * s/netbsd.h (START_FILES):
3052 * s/irix6-5.h (LIB_STANDARD):
3053 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3054 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3055 * s/freebsd.h (START_FILES):
3056 * s/darwin.h (START_FILES):
3057 * s/cygwin.h (START_FILES):
3058 * s/aix4-2.h (LIB_STANDARD):
3059 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3060 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3061 autoconf, not cpp.
3062
d43c06d6
DN
30632010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3064
28823648
DN
3065 Remove NEED_BSDTTY and NEED_UNISTD_H.
3066 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3067 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3068 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3069 <sys/ptyio.h> and <unistd.h>.
3070
aca00430
DN
3071 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3072
d43c06d6
DN
3073 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3074 * s/gnu.h (START_FILES): Remove empty definition.
3075
3e56b11d
JD
30762010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3077
3078 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3079
e3cf0cde
GM
30802010-05-06 Glenn Morris <rgm@gnu.org>
3081
3082 * Makefile.in (CPP, LN_S): Remove unused variables.
3083
774b9a60
SM
30842010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3085
3086 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3087
4ab92842
LM
30882010-05-05 Lawrence Mitchell <wence@gmx.li>
3089
3090 * m/sparc.h: Fix typo in earlier change.
3091
178f2507
SM
30922010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3093
3094 Misc tweaks.
3095 * eval.c (Fdefvaralias): Remove unintended nested if.
3096 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3097
80f00217 30982010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3099
3100 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3101
ef03a4e6
DN
31022010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3103
58eb6cf0
DN
3104 Remove BSD_PGRPS.
3105 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3106 * s/gnu-linux.h (BSD_PGRPS): Remove.
3107 * term.c (dissociate_if_controlling_tty):
3108 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3109 (init_sys_modes, reset_sys_modes):
3110 * emacs.c (main):
3111 * callproc.c (Fcall_process, child_setup): Remove code depending
3112 on BSD_PGRPS.
3113
ef03a4e6
DN
3114 Remove POSIX_SIGNALS.
3115 * s/usg5-4.h (POSIX_SIGNALS):
3116 * s/netbsd.h (POSIX_SIGNALS):
3117 * s/msdos.h (POSIX_SIGNALS):
3118 * s/ms-w32.h (POSIX_SIGNALS):
3119 * s/hpux11.h (POSIX_SIGNALS):
3120 * s/gnu.h (POSIX_SIGNALS):
3121 * s/gnu-linux.h (POSIX_SIGNALS):
3122 * s/freebsd.h (POSIX_SIGNALS):
3123 * s/darwin.h (POSIX_SIGNALS):
3124 * s/cygwin.h (POSIX_SIGNALS):
3125 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3126 * s/unixware.h:
3127 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3128 * process.c (create_process):
3129 * syssignal.h:
3130 * sysdep.c (wait_for_termination, init_signals):
3131 * process.c (create_process):
3132 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3133 remove all code that assumes the contrary.
3134
49628785
GM
31352010-05-04 Glenn Morris <rgm@gnu.org>
3136
27a2cdfc
GM
3137 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3138 variable.
3139 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3140 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3141 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3142 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3143 LD_SWITCH_SYSTEM_tmp.
3144 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3145 New variables, set by configure.
3146
eb21eab5
GM
3147 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3148 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3149 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3150 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3151 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3152
49628785
GM
3153 * s/aix4-2.h (C_SWITCH_SYSTEM):
3154 * m/alpha.h (C_SWITCH_MACHINE):
3155 Move to configure.in.
3156 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3157 New variables, set by configure.
3158 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3159 $c_switch_machine and $c_switch_system.
3160
7dff330b
DN
31612010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3162
3163 * s/hpux10-20.h (LIB_STANDARD): New definition.
3164 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3165 on it, not used anymore.
3166
53967e09
CY
31672010-05-03 Chong Yidong <cyd@stupidchicken.com>
3168
3169 * eval.c (internal_condition_case_n): Rename from
3170 internal_condition_case_2.
3171 (internal_condition_case_2): New function.
3172
3173 * xdisp.c (safe_call): Use internal_condition_case_n.
3174
3175 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3176 (internal_delete_file, Frename_file): Callers changed.
3177
3178 * buffer.c (Fkill_buffer):
3179 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3180
3181 * lisp.h: Update prototypes.
3182
3dee6fdb
GM
31832010-05-03 Glenn Morris <rgm@gnu.org>
3184
3185 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3186 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3187 (LIBXT): Set with configure, not cpp.
3188 (LIBX): Remove.
3189 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3190
a101e0fb
DN
31912010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3192
3193 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3194 The FreeBSD is not needed, the default works, Solaris version is
3195 not needed, and the remaining case is not supported by configure.
3196
f63d0028
JD
31972010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3198
3199 * xsmfns.c (CHDIR_OPT): New define.
3200 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3201 restarting emacs.
3202
3203 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3204 shut_down_emacs.
3205
3206 * emacs.c (USAGE1): Mention --chdir.
3207 (main): Handle --chdir.
3208 (standard_args): Add --chdir.
3209 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3210 #5552).
3211
e4814a9f
DN
32122010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3213
cd03c74a
DN
3214 Remove LD_SWITCH_MACHINE.
3215 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3216 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3217
c3a398a1
DN
3218 Clean up IRIX code.
3219 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3220 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3221
87e7285c
DN
3222 Clean up AIX code.
3223 * m/ibmrs6000.inp: Remove file, unused.
3224 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3225 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3226 definition ...
3227 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3228
80f00217
JB
3229 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3230 unused.
e4814a9f 3231
59ca28de
EZ
32322010-05-01 Eli Zaretskii <eliz@gnu.org>
3233
197daef4
EZ
3234 Emulate POSIX_SIGNALS on MS-Windows.
3235
3236 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3237 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3238
3239 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3240 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3241 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3242
80f00217
JB
3243 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3244 New stubs.
197daef4 3245
af7c7572
EZ
3246 Miscellaneous fixes of bidi display.
3247
59ca28de
EZ
3248 * xdisp.c (find_row_end): New function, refactored from display_line.
3249 (display_line): Use it.
017ea819
EZ
3250 (extend_face_to_end_of_line): In almost-filled rows, extend only
3251 if the row is R2L and not continued.
166e930d 3252 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3253 Preserve overlay and string info in row->end.
166e930d
EZ
3254 (insert_left_trunc_glyphs): Support addition of left truncation
3255 glyphs to R2L rows.
b47e0dcf 3256 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3257 glyph between adjacent windows. Fix a crash when a display string
3258 is continued to the next line. Don't return zero if cursor was
3259 found by `cursor' property of a display string.
b47e0dcf
EZ
3260 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3261 test for that explicitly.
59ca28de 3262
7acac9f4
GM
32632010-05-01 Glenn Morris <rgm@gnu.org>
3264
3265 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3266 for clarity.
3267 (OTHER_OBJ): Remove.
3268 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3269 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3270
45841e65
KK
32712010-05-01 Karel Klíč <kklic@redhat.com>
3272
3273 * fileio.c (Ffile_selinux_context): Context functions may return null.
3274
afc61943
DN
32752010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3276
80f00217 3277 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3278
5a1bb006
GM
32792010-04-30 Glenn Morris <rgm@gnu.org>
3280
3281 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3282 (OTHER_OBJ): Define as a separate variable, for clarity.
3283
210af043
J
32842010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3285
3286 * xsettings.c: include limits.h and update file comment.
3287
0a7df391
GM
32882010-04-30 Glenn Morris <rgm@gnu.org>
3289
d5096f16
GM
3290 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3291 Set with configure, not cpp.
3292 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3293
7eb1ac33
GM
3294 * Makefile.in (mallocobj): Remove.
3295 (otherobj): Simplify using @OTHER_OBJ@.
3296
517d086b
GM
3297 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3298 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3299 Don't bother making nsgui.h dependency platform-specific.
3300
0a7df391
GM
3301 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3302
d6d23852
SM
33032010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3304
d2630aef
SM
3305 * process.c (read_process_output, exec_sentinel): Don't burp if the
3306 sentinel/filter kills the current buffer (bug#6060).
3307
f9dddf52 3308 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3309 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3310 Remove unused var `args'.
3311 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3312 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3313 * doc.c (store_function_docstring): Use XSETCAR.
3314
f1e3642a
GM
33152010-04-28 Glenn Morris <rgm@gnu.org>
3316
faf535f8
GM
3317 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3318 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3319
c40f9449
GM
3320 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3321
658f86ca
GM
3322 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3323 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3324
bc0b5f61
GM
3325 * Makefile.in (FONT_OBJ): New, set by configure.
3326 (FONT_DRIVERS): Use $FONT_OBJ.
3327
294c50a0
GM
3328 * Makefile.in (LIBXMU): Set with configure, not cpp.
3329 * s/aix4-2.h (LIBXMU):
3330 * s/hpux10-20.h (LIBXMU):
3331 Remove definition, now set in configure.
3332
e6ec4e99
GM
3333 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3334
f1e3642a
GM
3335 * m/amdx86-64.h [i386]: Move this test to configure.in.
3336
c6ea2936
GM
33372010-04-27 Glenn Morris <rgm@gnu.org>
3338
8fdac2c3
GM
3339 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3340 * s/unixware.h (NEED_LIBW): Remove definition.
3341
986fb647
GM
3342 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3343 (TOOLKIT_LIBW): New, set by configure.
3344 (@X_TOOLKIT_TYPE@): No longer define it.
3345
c6ea2936
GM
3346 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3347 (MOTIF_LIBW): Set with configure, not cpp.
3348 * s/aix4-2.h (LIB_MOTIF):
3349 * s/gnu-linux.h (LIB_MOTIF):
3350 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3351
aaa36002
DN
33522010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3353
3354 Reduce CPP usage.
3355 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3356 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3357 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3358 definitions and undefs. Inline definitions in the only user.
3359 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3360
b678dd8b
GM
33612010-04-27 Glenn Morris <rgm@gnu.org>
3362
76cda504
GM
3363 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3364 since the defaults (set by the system file) are fine in most cases.
3365 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3366 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3367 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3368 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3369 Remove definitions, since they are set correctly in s/gnu-linux.h.
3370 * s/freebsd.h (START_FILES, LIB_STANDARD):
3371 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3372 * s/hpux10-20.h (START_FILES):
3373 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3374 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3375
b678dd8b
GM
3376 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3377 (MOTIF_LIBW): Use $LIBXP.
3378 (otherobj): Use $WIDGET_OBJ.
3379
9452ded1
DN
33802010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3381
7e10844c
DN
3382 * Makefile.in (LIBS_MACHINE): Remove, unused.
3383
9452ded1
DN
3384 Use autoconf instead of cpp for LIB_MATH.
3385 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3386 * s/cygwin.h (LIB_MATH): Likewise.
3387 * Makefile.in (LIB_MATH): Do not define with cpp.
3388 (LIBES): Use autoconf for LIB_MATH.
3389
fcebfc6a
KH
33902010-04-26 Kenichi Handa <handa@m17n.org>
3391
3392 * composite.c (Ffind_composition_internal): Fix the return value
3393 for an automatic composition.
3394
39e2ad1b
DN
33952010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3396
3397 Remove all NO_ARG_ARRAY uses.
3398 * fns.c (concat2, concat3, nconc2):
3399 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3400 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3401 * m/xtensa.h (NO_ARG_ARRAY):
3402 * m/template.h (NO_ARG_ARRAY):
3403 * m/sparc.h (NO_ARG_ARRAY):
3404 * m/sh3.h (NO_ARG_ARRAY):
3405 * m/mips.h (NO_ARG_ARRAY):
3406 * m/macppc.h (NO_ARG_ARRAY):
3407 * m/iris4d.h (NO_ARG_ARRAY):
3408 * m/intel386.h (NO_ARG_ARRAY):
3409 * m/ibms390x.h (NO_ARG_ARRAY):
3410 * m/ibms390.h (NO_ARG_ARRAY):
3411 * m/ibmrs6000.h (NO_ARG_ARRAY):
3412 * m/ia64.h (NO_ARG_ARRAY):
3413 * m/hp800.h (NO_ARG_ARRAY):
3414 * m/arm.h (NO_ARG_ARRAY):
3415 * m/amdx86-64.h (NO_ARG_ARRAY):
3416 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3417
adf4f59c
EZ
34182010-04-25 Eli Zaretskii <eliz@gnu.org>
3419
6bdf5d65
EZ
3420 * xdisp.c (display_line): Don't assume 2nd call to
3421 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3422 (iterate_out_of_display_property): New function, body from pop_it.
3423 (pop_it): Use it.
adf4f59c 3424
dfbbda83
GM
34252010-04-24 Glenn Morris <rgm@gnu.org>
3426
3427 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3428 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3429 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3430 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3431
2d4018aa
EZ
34322010-04-24 Eli Zaretskii <eliz@gnu.org>
3433
a49884a6
EZ
3434 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3435 use `get_next_display_element' and `set_iterator_to_next' to
3436 advance to the next character, when looking for the character that
3437 begins the next row.
3438
76db6fcc 3439 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3440 definition of "struct Lisp_Symbol".
3441
70eab5c1
GM
34422010-04-24 Glenn Morris <rgm@gnu.org>
3443
3444 * Makefile.in (CRT_DIR): New variable, set by configure.
3445 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3446 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3447
1ad4cc3d
DN
34482010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3449
e769f484
DN
3450 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3451
4196ff33
DN
3452 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3453
879b0ee4
DN
3454 Remove redundant flags.
3455 * s/freebsd.h (C_SWITCH_SYSTEM):
3456 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3457 * s/netbsd.h (C_SWITCH_SYSTEM):
3458 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3459 of these.
3460
03cbbcb8
DN
3461 Simplify m/intel386.h.
3462 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3463 user: ecrt0.c.
3464 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3465 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3466 the only user: s/unixware.h.
3467 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3468 from m/intel386.h.
3469 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3470 moved here from m/intel386.h.
3471
1ad4cc3d
DN
3472 * m/mips.h: Remove #if 0 code.
3473
8785b888
EZ
34742010-04-23 Eli Zaretskii <eliz@gnu.org>
3475
728588cc
EZ
3476 Fix display of composed characters from L2R scripts in bidi buffers.
3477 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3478 After advancing IT past the composition, resync the bidi iterator
3479 with IT's position. (Bug#5977)
3480
a63f80b4
DN
34812010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3482
3483 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3484 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3485
ff5dec5c
SM
34862010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3487
3488 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3489
8785b888
EZ
34902010-04-23 Eli Zaretskii <eliz@gnu.org>
3491
58ccf243 3492 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3493 * xdisp.c (pop_it): When the stack is popped after displaying
3494 from a string, bidi-iterate to exit from the text portion covered
3495 by the `display' property or overlay. (Bug#5988, bug#5920)
3496
feeb1604
DN
34972010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3498
8e324eb6
DN
3499 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3500 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3501
809fcaba
DN
3502 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3503 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3504
ed710380
DN
3505 Simplify STARTFILES definition.
3506 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3507 relying on Makefile.in to define it.
3508 * s/cygwin.h (START_FILES): Likewise.
3509 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3510
feeb1604
DN
3511 Clean up Solaris code.
3512 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3513 (LIB_MOTIF): Remove, configure takes care of this.
3514 (NOT_USING_MOTIF): Remove, unused.
3515 * xrdb.c: Remove #if 0-ed #include.
3516 (SYSV): Remove conditional for old SysV.
3517 * sysdep.c (closedir): Remove conditional code for Solaris,
3518 Solaris has closedir.
3519
a0d0b563
JD
35202010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3521
3522 * xsettings.c (read_and_apply_settings): Check if current_font is
3523 NULL before strcmp (Bug#6001).
3524
56bae7c7
DN
35252010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3526
3527 Clean up HP-UX files.
3528 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3529 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3530 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3531 * s/hpux10-20.h: ... to the only user, here.
3532
372b7a95
EZ
35332010-04-21 Eli Zaretskii <eliz@gnu.org>
3534
3535 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3536 use buffer-local values of paragraph-start and paragraph-separate.
3537 <paragraph_start_re, paragraph_separate_re>: Rename from
3538 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3539 (Bug#5992)
3540
f904c0f9
JD
35412010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3542
3543 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3544 current_tool_bar_style are new.
3545 (store_config_changed_event): Rename from store_font_changed_event.
3546 (XSETTINGS_TOOL_BAR_STYLE): New define.
3547 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3548 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3549 HAVE_XFT.
3550 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3551 store_config_changed_event.
f904c0f9
JD
3552 (parse_settings): Rename from parse_xft_settings. Read
3553 non-xft xsettings outside #ifdef HAVE_XFT.
3554 (read_settings): Renamed from read_xft_settings.
3555 (apply_xft_settings): Take current settings as parameter. Do not
3556 call read_(xft)_settings.
3557 (read_and_apply_settings): New function.
3558 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3559 read_and_apply_settings if there are settings to be read.
3560 (init_xsettings): Renamed from init_xfd_settings.
3561 Call read_and_apply_settings unconditionally.
3562 (xsettings_initialize): Call init_xsettings.
3563 (Ftool_bar_get_system_style): New function.
3564 (syms_of_xsettings): Define Qmonospace_font_name and
3565 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3566 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3567 dynamic-setting.
31a01b90 3568 Move misplaced HAVE_GCONF
f904c0f9
JD
3569
3570 * xsettings.h (Ftool_bar_get_system_style): Declare.
3571
3572 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3573 Qtext, Qboth, Qboth_horiz are new.
3574 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3575 Vtool_bar_style, tool_bar_max_label_size.
3576
3577 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3578
3579 * keyboard.c: QClabel is new.
3580 (parse_tool_bar_item): Take out QClabel from tool bar items.
3581 Try to construct a label if ther is no QClabel.
3582 (syms_of_keyboard): Intern :label as QClabel.
3583
3584 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3585 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3586 New.
3587
3588 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3589 dynamic-setting.el.
3590
3591 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3592 (xg_make_tool_item, xg_show_toolbar_item): New function.
3593 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3594 Call xg_make_tool_item to make a tool bar item.
3595 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3596
3597 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3598 into account for toolbars.
3599
c632dfda
JD
36002010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3601
3602 * data.c (make_blv): Declarations before code (Bug#5993).
3603
10efe302
GM
36042010-04-21 Glenn Morris <rgm@gnu.org>
3605
3606 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3607 Define using autoconf, not cpp.
3608 (LIBXSM): New variable, set by autoconf.
3609 (LIBXT): Use $LIBXSM.
3610
4285ac5a
DN
36112010-04-21 Dan Nicolaescu <local_user@dannlt>
3612
3ec759e7
DN
3613 Remove NOMULTIPLEJOBS, unused.
3614 * s/template.h (NOMULTIPLEJOBS):
3615 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3616
4285ac5a
DN
3617 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3618 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3619 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3620 detects -znocombreloc and passes it to the linker
3621 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3622
2807228d
GM
36232010-04-21 Glenn Morris <rgm@gnu.org>
3624
3625 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3626
574c05e2
KK
36272010-04-21 Karel Klíč <kklic@redhat.com>
3628
3629 * Makefile.in (LIBSELINUX_LIBS): New.
3630 (LIBES): Add $LIBSELINUX_LIBS.
3631 * eval.c, lisp.h (call7): New function.
3632 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3633 (Ffile_selinux_context, Fset_file_selinux_context):
3634 New functions.
3635 (Fcopy_file): New parameter preserve-selinux-context.
3636 (Frename_file): Preserve selinux context when renaming by copy-file.
3637
91eac4bb 36382010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3639 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3640
50426a04
JB
3641 Don't depend on cm.c or termcap.c on Windows, use stubs.
3642 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3643 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3644 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3645 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3646 (sys_tputs, sys_tgetstr): New stubs.
3647 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3648 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3649
938efb77
JB
36502010-04-20 Juanma Barranquero <lekktu@gmail.com>
3651
3652 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3653
b4bf28b7
SM
36542010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3655
8b1e1112
SM
3656 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3657 Just signal a warning rather than an error when inside a let.
3658 (Fmake_variable_frame_local): Add the same test.
3659
933ac235
SM
3660 * font.c (syms_of_font): Make the style table vars read-only.
3661
b4bf28b7
SM
3662 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3663 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3664
3665 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3666
93d68d0c
EZ
36672010-04-20 Eli Zaretskii <eliz@gnu.org>
3668
3669 Fix R2L paragraph display on TTY.
3670
3671 * xdisp.c (unproduce_glyphs): New function.
3672 (display_line): Use it when produced glyphs are discarded from R2L
3673 glyph rows.
3674 (append_composite_glyph): In R2L rows, prepend the glyph rather
3675 than appending it.
3676
3677 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3678 rather than append it. Set up the resolved_level and bidi_type
3679 attributes of the appended glyph.
283ccc18
EZ
3680 (produce_special_glyphs): Mirror the backslash continuation
3681 character in R2L lines.
93d68d0c 3682
283ccc18 3683 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3684
283ccc18
EZ
3685 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3686 append_stretch_glyph.
3687 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3688 off-by-one error in computing x at end of text in the row.
3689 (append_stretch_glyph): In reversed row, prepend the glyph rather
3690 than append it. Set resolved_level and bidi_type of the glyph.
3691 (extend_face_to_end_of_line): If the row is reversed, prepend a
3692 stretch glyph whose width is such that the rightmost glyph will be
3693 drawn at the right margin of the window. Fix off-by-one error on
3694 TTY frames in testing whether a line needs face extension. Fix
3695 face extension at ZV. If this is the last glyph row, use
3696 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3697 region face.
3698 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3699 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3700 row->continuation_lines_width.
283ccc18
EZ
3701 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3702 are at ZV. Fixes a crash when reseated to ZV by
3703 try_window_reusing_current_matrix.
45903529
EZ
3704 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3705 which happens with R2L glyph rows. Fixes a crash when inserting a
3706 character at end of an R2L line.
283ccc18
EZ
3707 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3708 treat them as having zero-width characters. Improve comments.
3709 Don't reverse pos_before and pos_after for reversed glyph rows.
3710 Set cursor.x to negative value when the cursor might be on the
3711 left fringe.
3712 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3713 left fringe, not the right one.
f951a506
EZ
3714 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3715 (erase_phys_cursor): For reversed cursor_row, support cursor on
3716 the left fringe.
3717
283ccc18
EZ
3718 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3719 of continuation indicators on the fringes.
3720 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3721 left fringe.
3722
f951a506
EZ
3723 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3724 draw cursor on the left fringe.
3725
3726 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3727 cursor on the left fringe.
3728
f951a506
EZ
3729 * dispnew.c (update_text_area): Handle reversed desired rows when
3730 the cursor is on the left fringe.
3731 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3732 below, not by 0, for when the cursor is on the left fringe.
3733
3bb49aaf
JD
37342010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3735
3736 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3737 widget is a scrollbar.
3738
c0be27fd
KH
37392010-04-20 Kenichi Handa <handa@m17n.org>
3740
3741 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3742 only when the arg CHARSET_LIST is nil.
3743
ce5b453a
SM
37442010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3745
3746 Make variable forwarding explicit rather the using special values.
3747 Basically, this makes the structure of buffer-local values and object
3748 forwarding explicit in the type of Lisp_Symbols rather than use
3749 special Lisp_Objects for that. This tends to lead to slightly more
3750 verbose code, but is more C-like, simpler, and makes it easier to make
3751 sure we handled all cases, among other things by letting the compiler
3752 help us check it.
3753 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3754 Removing forwarding objects.
3755 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3756 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3757 explicit rather than hiding them inside Lisp_Object "values".
3758 (XFWDTYPE): New macro.
3759 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3760 (XBUFFER_LOCAL_VALUE): Remove.
3761 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3762 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3763 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3764 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3765 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3766 Remove the Lisp_Misc_* header.
3767 (struct Lisp_Buffer_Local_Value): Redefine.
3768 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3769 (struct Lisp_Misc_Any): Add filler to get the right size.
3770 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3771 Lisp_Intfwd.
3772 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3773 (DEFVAR_KBOARD): Allocate a forwarding object.
3774 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3775 (let_shadows_global_binding_p): New function.
3776 (union Lisp_Val_Fwd): New type.
3777 (make_blv): New function.
3778 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3779 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3780 (swap_in_symval_forwarding, find_symbol_value, Fset)
3781 (let_shadows_buffer_binding_p, set_internal, default_value)
3782 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3783 (Fkill_local_variable, Fmake_variable_frame_local)
3784 (Flocal_variable_p, Flocal_variable_if_set_p)
3785 (Fvariable_binding_locus):
3786 * xdisp.c (select_frame_for_redisplay):
3787 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3788 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3789 * frame.c (store_frame_param):
3790 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3791 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3792 value structure.
3793 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3794 (clone_per_buffer_values): Only adjust markers into the current buffer.
3795 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3796 (Fbuffer_local_value, set_buffer_internal_1)
3797 (swap_out_buffer_local_variables):
3798 Adapt to the new symbol value structure.
3799 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3800 (defvar_per_buffer): Take a new arg for the fwd object.
3801 (buffer_lisp_local_variables): Return a proper alist (different fix
3802 for bug#4138).
3803 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3804 (Fgarbage_collect): Don't handle buffer_defaults specially.
3805 (mark_object): Handle new symbol value structure rather than the old
3806 special Lisp_Misc_* objects.
3807 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3808 * term.c (set_tty_color_mode):
3809 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3810 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3811 a buffer_local_flags.
3812 * print.c (print_object): Get rid of impossible forwarding objects.
3813
fd3998ff
EZ
38142010-04-19 Eli Zaretskii <eliz@gnu.org>
3815
3816 * bidi.c (bidi_get_type, bidi_get_category)
3817 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3818 (bidi_type_of_next_char, bidi_level_of_next_char):
3819 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3820
e42cd1a7
JB
38212010-04-19 Juanma Barranquero <lekktu@gmail.com>
3822
3823 * dired.c (Ffile_attributes): Fix typo in docstring.
3824
6e104790 38252010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3826
3827 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3828 NSInteger (Bug#5811).
3829
6e104790 38302010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3831
3832 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3833 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3834
6e104790 38352010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3836
3837 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3838
6e104790
SM
38392010-04-19 Chong Yidong <cyd@stupidchicken.com>
3840
3841 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3842 terminal frames (Bug#5837).
3843
37dcfea0
EZ
38442010-04-19 Eli Zaretskii <eliz@gnu.org>
3845
d1da276f
EZ
3846 * .gdbinit (xsubchartable): New command.
3847
37dcfea0
EZ
38482010-04-19 Eli Zaretskii <eliz@gnu.org>
3849
3850 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3851 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3852 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3853 and
3854 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3855
e9515805
SM
38562010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3857
3858 * alloc.c (Fpurecopy): Hash-cons if requested.
3859 (syms_of_alloc): Update purify-flag docstring.
3860
22aa44a8
JD
38612010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3862
3863 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3864 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3865
ebb5722e
EZ
38662010-04-17 Eli Zaretskii <eliz@gnu.org>
3867
3868 Fix a crash when an NSM character is inserted at BEGV.
3869
3870 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3871 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3872 NEUTRAL_B or UNKNOWN_BT.
3873
0f4442ef
EZ
38742010-04-16 Eli Zaretskii <eliz@gnu.org>
3875
3876 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3877 other rows with cursor unless they are different from this row and
3878 this row is part of a continued line. (Bug#5943)
3879
7d4e45f8
DN
38802010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3881
3882 * s/freebsd.h: Restore osreldate.h include.
3883 Suggested by Naohiro Aota.
3884
5ba5ec85
J
38852010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3886
3887 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3888
20af301d
CY
38892010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3890
3891 * s/cygwin.h: Avoid linking against static libgcc.
3892
a4b000fb
JL
38932010-04-15 Juri Linkov <juri@jurta.org>
3894
3895 * window.c: Add Qscroll_command.
3896 Remove Vscroll_preserve_screen_position_commands.
3897 (window_scroll_pixel_based, window_scroll_line_based): Check the
3898 `scroll-command' property on the last command instead of searching
3899 the last command in Vscroll_preserve_screen_position_commands.
3900 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3901 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3902 (scroll-preserve-screen-position): Doc fix.
3903 (Vscroll_preserve_screen_position_commands): Remove variable.
3904
bc319ba4
DN
39052010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3906
6bb24457
DN
3907 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3908
19d4c244
DN
39092010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3910
3911 Reduce cpp use in Makefile.in.
3912 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3913 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3914 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3915 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3916 (CRT0_COMPILE): Remove, inline it in the only user.
3917
32129746
JL
39182010-04-14 Juri Linkov <juri@jurta.org>
3919
3920 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3921 `scroll-up-command' and `M-v' from `scroll-down' to
3922 `scroll-down-command'.
3923
9013a7f8
JL
39242010-04-14 Juri Linkov <juri@jurta.org>
3925
3926 * window.c (Vscroll_preserve_screen_position_commands): New variable
3927 with the default value as the list of Qscroll_down and Qscroll_up.
3928 (window_scroll_pixel_based, window_scroll_line_based): Search the
3929 last command in the list Vscroll_preserve_screen_position_commands
3930 instead of comparing with Qscroll_up and Qscroll_down.
3931
4bef8d26
JD
39322010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3933
92848133
JD
3934 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3935 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3936 does that.
3937
4bef8d26
JD
3938 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3939 to zero.
3940
58b963f7
SM
39412010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3942
84164a0d
SM
3943 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3944
2b0a91e7
SM
3945 Try to solve the problem of spurious EOF chars in long lines of text
3946 sent to interactive subprocesses.
3947 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3948 (system_process_attributes): Remove unused var `ttotal'.
3949 * process.c (send_process): Don't bother breaking long line with EOF
3950 chars when talking to ttys any more.
3951 (wait_reading_process_output): Output a warning when called in such
3952 a way that it could block without being interruptible.
3953
58b963f7
SM
3954 Try to detect file modification within the same second.
3955 * buffer.h (struct buffer): New field modtime_size.
3956 * buffer.c (reset_buffer): Initialize it.
3957 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3958 (Fverify_visited_file_modtime): Check it.
3959 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3960 (Fset_visited_file_modtime): Set (or clear) it.
3961
01f5787b
SM
39622010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3963
3964 * process.c (status_notify): Remove unused var `ro'.
3965
83725342
JD
39662010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3967
3968 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3969 more than one visual (Bug#5938).
3970
b9465836
DN
39712010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3972
50426a04
JB
3973 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3974 Undefine.
b9465836 3975
8d9c8ece
DN
39762010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3977
b1f52161
DN
3978 Remove C_SWITCH_SYSTEM_TEMACS.
3979 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3980 (malloc, realloc, free): Use emacs, not temacs for conditional
3981 definition.
3982
3983 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3984 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3985
8d9c8ece
DN
3986 Use autoconf, not cpp for some variables.
3987 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3988 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3989 (ALL_CFLAGS): Use them as make variables.
3990 (really-lwlib, really-oldXMenu): Do not pass them.
3991
1ecb2d3f
JD
39922010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3993
3994 * xmenu.c (apply_systemfont_to_dialog): New.
3995 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3996
3a4fa2f2
SM
39972010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3998
97e53006
SM
3999 * process.c (exec_sentinel): Preserve current-buffer.
4000
3a4fa2f2
SM
4001 * process.c (read_process_output): Move the save-current-buffer to
4002 apply to both the filter and the non-filter branches.
4003
88df7221
DN
40042010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4005
4006 * s/msdos.h (UNEXEC): New definition.
4007
5634ff85
YM
40082010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4009
6eff5c3d
YM
4010 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4011 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4012
4013 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4014 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4015 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4016 TRY_WINDOW_CHECK_MARGINS.
4017
4018 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4019 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4020 width only when it is for padding.
5634ff85 4021
b13aef54
J
40222010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4023
4024 * xfns.c (Fx_show_tip): Call try_window in a loop until
4025 fonts_changed_p is zero (Bug#2423).
4026
21d28484
EZ
40272010-04-08 Eli Zaretskii <eliz@gnu.org>
4028
4029 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4030 the end of TEXT_AREA. (Bug#5856)
4031
0269ef77
JD
40322010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4033
4034 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4035 HAVE_GCONF.
4036
5930fe97
EZ
40372010-04-08 Eli Zaretskii <eliz@gnu.org>
4038
4039 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4040 prev.orig_type, for resolving type of NSM. (Bug#5858)
4041
99852628
JD
40422010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4043
4044 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4045 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4046 in current_font.
4047 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4048 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4049 New functions.
4050 (syms_of_xsettings): Initialize current_font.
4051 defsubr Sfont_get_system_normal_font.
99852628 4052
686b968e
JB
4053 * xsettings.h (Ffont_get_system_normal_font)
4054 (xsettings_get_system_normal_font): Declare.
99852628
JD
4055
4056 * xfns.c (extern xlwmenu_default_font): Remove.
4057 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4058 to xlwmenu.c.
4059
4060 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4061 menu items in UTF-8.
4062
4063 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4064 (apply_systemfont_to_menu): New function.
4065 (set_frame_menubar, create_and_show_popup_menu): Call
4066 apply_systemfont_to_menu.
4067
7fc874c4
J
40682010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4069
4070 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4071 FRAME_LINE_TO_PIXEL_Y.
4072
4073 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4074 pixelwidth/height.
4075
863bf481
DN
40762010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4077
5e5a3b92
DN
4078 Simplify code for HP machines.
4079 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4080 for GNU_LINUX, not needed.
4081 (UNEXEC, NEED_BSDTTY): Move definitions...
4082 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4083
863bf481
DN
4084 * m/iris4d.h (UNEXEC): Move definition ...
4085 * s/irix6-5.h (UNEXEC): ... here.
4086
3e6bec3b
JD
40872010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4088
4089 * xfns.c (set_machine_and_pid_properties): New function.
4090 (Fx_create_frame): Call set_machine_and_pid_properties.
4091
2912322b
SM
40922010-04-03 Eli Zaretskii <eliz@gnu.org>
4093
1502b819
EZ
4094 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4095 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4096 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4097
2912322b
SM
4098 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4099 in this function. (Bug#5703)
4100
41012010-04-03 Chong Yidong <cyd@stupidchicken.com>
4102
4103 * nsterm.h: Fix last change.
4104
c435b432
DN
41052010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4106
a568f507
DN
4107 * m/intel386.h (NO_REMAP): Move definition ...
4108 * s/msdos.h (NO_REMAP): ... here.
4109
4cd9f6c2
DN
4110 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4111
c435b432
DN
4112 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4113 used on those platforms.
4114
42a2c622
DN
41152010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4116
4117 Remove extern errno declarations.
4118 * xterm.c:
4119 * xrdb.c:
4120 * w32term.c:
4121 * unexec.c:
4122 * unexaix.c:
4123 * sysdep.c:
4124 * process.c:
4125 * lread.c:
4126 * keyboard.c:
4127 * floatfns.c:
4128 * filelock.c:
4129 * fileio.c:
4130 * emacs.c (main):
4131 * ecrt0.c:
4132 * dispnew.c:
4133 * callproc.c:
4134 * buffer.c: Remove errno extern declarations.
4135 * s/netbsd.h (NEED_ERRNO): Remove.
4136
8224f93d
DN
41372010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4138
4139 Remove all uses of LIBX11_SYSTEM.
4140 * Makefile.in (LIBX11_SYSTEM): Remove.
4141 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4142 instead.
4143
814062c7
EZ
41442010-04-01 Eli Zaretskii <eliz@gnu.org>
4145
ed68db4d
EZ
4146 Remove support for DJGPP v1.x (bug#5813).
4147
4148 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4149 * s/msdos.h:
4150 * unexec.c (make_hdr, copy_text_and_data):
4151 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4152 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4153 (IT_set_terminal_modes, __write, _rename, gethostname)
4154 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4155 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4156 the value of __DJGPP__.
ed68db4d
EZ
4157 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4158 compatibility code.
8224f93d
DN
4159 * lread.c:
4160 * gmalloc.c (memalign):
4161 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4162 * emacs.c (main):
4163 * dosfns.c (init_dosfns):
ed68db4d
EZ
4164 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4165
52f4d8d5
EZ
41662010-04-01 Eli Zaretskii <eliz@gnu.org>
4167
814062c7
EZ
4168 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4169 string with `cursor' property comes from an `after-string'
4170 overlay. (Bug#5816)
4171
0dc2e11d
GM
41722010-04-01 Glenn Morris <rgm@gnu.org>
4173
4174 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4175 Define as Makefile variables.
4176 (LIBX): Use above variables rather than directly using autoconf.
4177
1d29df59
DN
41782010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4179
4180 Clean up BSD_SYSTEM use.
4181 * xterm.c:
4182 * process.c:
4183 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4184 for including <sys/ioctl.h>.
4185 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4186 code is only used for MSDOS.
4187
1546c559
JL
41882010-03-31 Juri Linkov <juri@jurta.org>
4189
4190 * image.c: Add `Qextension_data'.
4191 (syms_of_image): Initialize and staticpro `Qextension_data'.
4192 (Fimage_metadata): Rename from `Fimage_extension_data'.
4193 (gif_load): Put GIF extension data to the property
4194 `Qextension_data'.
4195
6521c534
CY
41962010-03-31 Chong Yidong <cyd@stupidchicken.com>
4197
4198 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4199 * nsterm.h: Fix prototype.
4200
52c30783
EZ
42012010-03-31 Eli Zaretskii <eliz@gnu.org>
4202
4203 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4204 trailing whitespace in right-to-left rows.
4205
855a0da7
SM
42062010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4207
4208 Get rid of the direct_output optimizations.
4209 * keyboard.c (nonundocount): Remove extern declaration.
4210 (command_loop_1): Remove brittle optimisation for cheap and
4211 common operations.
4212 * xdisp.c (redisplay_internal): Don't bother checking
4213 redisplay_performed_directly_p any more.
4214 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4215 any more.
4216 * dispnew.c (redisplay_performed_directly_p)
4217 (direct_output_for_insert, direct_output_forward_char):
4218 * dispextern.h (redisplay_performed_directly_p)
4219 (direct_output_for_insert, direct_output_forward_char): Remove.
4220 * cmds.c (nonundocount): Make it static.
4221
85738751 42222010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4223
4224 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4225
85738751 42262010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4227
4228 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4229 invisible (Bug#5766).
4230
85738751 42312010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4232
855a0da7
SM
4233 * xdisp.c (x_consider_frame_title, update_window_cursor):
4234 Remove HAVE_NS conditionals.
194d44e7 4235 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4236
4237 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4238 filename for the title.
4239 (ns_set_doc_edited): Do nothing if the selected window is a
4240 minibuffer window.
4241
4242 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4243 ns_set_doc_edited.
4244
4245 * nsterm.m: Remove unneeded prototype.
4246
85738751 42472010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4248
4249 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4250 in the DOC file. (Bug#5336)
4251
85738751 42522010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4253
4254 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4255
75d1428c
SM
42562010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4257
4258 * window.c (keys_of_window): Remove redundant/overridden bindings.
4259
82043cfb
EZ
42602010-03-30 Eli Zaretskii <eliz@gnu.org>
4261
4262 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4263 Restore original behavior when the iterator is not bidi_p.
4264
b5dd0ae7
DN
42652010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4266
4267 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4268
bd924a5d
EZ
42692010-03-30 Eli Zaretskii <eliz@gnu.org>
4270
4271 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4272 are outside the range of cached character positions.
4273
3580374b
JB
42742010-03-30 Juanma Barranquero <lekktu@gmail.com>
4275
4276 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4277
a7b02820
EZ
42782010-03-30 Eli Zaretskii <eliz@gnu.org>
4279
4280 Initial support for bidirectional editing.
4281
4282 * Makefile.in (obj): Include bidi.o.
4283 (bidi.o): New target.
4284
4285 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4286 ($(BLD)/bidi.$(O)): New target.
4287
4288 * bidi.c: New file.
4289
4290 * buffer.h (struct buffer): New members bidi_display_reordering
4291 and bidi_paragraph_direction.
4292
4293 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4294 and bidi_paragraph_direction.
4295 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4296 and bidi-paragraph-direction.
4297 (Fbuffer_swap_text): Swap the values of
4298 bidi_display_reordering and bidi_paragraph_direction.
4299
4300 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4301 (bidi_type_t, bidi_dir_t): New types.
4302 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4303 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4304 prev_stop, base_level_stop, and eol_pos.
4305 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4306 (IT_STACK_SIZE): Enlarge to 5.
4307 (struct glyph_row): New member reversed_p.
4308 <string_buffer_position>: Update prototype.
4309 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4310 glyph_row if bidi_it.paragraph_dir == R2L.
4311 (struct glyph): New members resolved_level and bidi_type.
4312
4313 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4314 processing or buffer's direction is right-to-left.
4315 (prepare_desired_row): Preserve the reversed_p flag.
4316 (row_equal_p): Compare the reversed_p attributes as well.
4317
4318 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4319 bidi_init_it and set it->paragraph_embedding from the current
4320 buffer's value of bidi_paragraph_direction.
4321 (reseat_1): Initialize bidi_it.first_elt.
4322 (set_iterator_to_next, next_element_from_buffer): Use the value of
4323 paragraph_embedding to determine the paragraph direction.
4324 (set_iterator_to_next): Under bidi reordering, call
4325 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4326 new_paragraph flag is set in the bidi iterator.
4327 (next_element_from_buffer): If bidi_it.first_elt is set,
4328 initialize paragraph direction and find the first character to
4329 display in the visual order. If reseated to a middle of a line,
4330 prime the bidi iterator starting at the line's beginning. Handle
4331 the situation where we overstepped stop_charpos due to
4332 non-linearity of the bidi iteration. Likewise for when we back up
4333 beyond the previous stop_charpos. When moving across stop_charpos,
4334 record it in prev_stop.
4335 (display_line): Set row->end and it->start for the next row to the
4336 next character in logical order. Always extend reversed_p rows to
4337 the end of line, even if they end at ZV. Copy the reversed_p flag
4338 to the next glyph row. Keep calling set_cursor_from_row for
4339 bidi-reordered rows even if we already have a possible candidate
4340 for cursor position. Set row_end after all the row's glyphs have
4341 been produced, by looping over the glyphs. Record the position
4342 after EOL in it->eol_pos, and use it to set end_pos of the last
4343 row produced for a continued line.
4344 <Qright_to_left, Qleft_to_right>: New variables.
4345 (syms_of_xdisp): Initialize and staticpro them.
4346 (string_buffer_position_lim): New function.
4347 (string_buffer_position): Most of code moved to
4348 string_buffer_position_lim. Last argument and return value are
4349 now EMACS_INT; all callers changed.
4350 (set_cursor_from_row): Rewritten to support bidirectional text and
4351 reversed glyph rows.
4352 (text_outside_line_unchanged_p, try_window_id): Disable
4353 optimizations if we are reordering bidirectional text and the
4354 paragraph direction can be affected by the change.
4355 (append_glyph, append_composite_glyph)
4356 (produce_image_glyph, append_stretch_glyph): Set the
4357 resolved_level and bidi_type members of each glyph.
4358 (append_glyph): If the glyph row is reversed, prepend the glyph
4359 rather than appending it.
4360 (handle_stop_backwards): New function.
4361 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4362 (reseat): call handle_stop_backwards to recompute prev_stop and
4363 base_level_stop for the new position.
4364 (handle_invisible_prop): Under bidi iteration, skip invisible text
4365 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4366 paragraph direction. Update IT->prev_stop after skipping
4367 invisible text.
4368 (move_it_in_display_line_to): New variables prev_method
4369 and prev_pos. Compare for strict equality in
4370 BUFFER_POS_REACHED_P.
4371 (try_cursor_movement): Examine all the candidate rows that occlude
4372 point, to return the best match. If rows are bidi-reordered
4373 and point moved backwards, back up to the row that is not a
4374 continuation line, and start looking for a suitable row from
4375 there.
4376
4377 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4378 rather than appending, if the glyph_row's reversed_p flag is set.
4379 Set the resolved_level and bidi_type members of each glyph.
4380
4381 * .gdbinit (pbiditype): New command.
4382 (pgx): Use it to display bidi level and type of the glyph.
4383 (pitx): Display some bidi information about the iterator.
4384 (prowlims, pmtxrows): New commands.
4385
32a8894e
DN
43862010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4387
4388 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4389 * s/usg5-4.h (LIBS_DEBUG):
4390 * s/irix6-5.h (C_DEBUG_SWITCH):
4391 * s/gnu-linux.h (LIBS_DEBUG):
4392 * s/darwin.h (LIBS_DEBUG):
4393 * s/bsd-common.h (LIBS_DEBUG):
4394 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4395 * m/iris4d.h (LIBS_DEBUG):
4396 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4397
4398 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4399 (LIBS_DEBUG): Remove definition.
4400
649dbf36
CY
44012010-03-27 Chong Yidong <cyd@stupidchicken.com>
4402
4403 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4404 Windows.
4405
cad4261f
YM
44062010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4407
4408 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4409 `connect' (Bug#5723).
4410
cd591dbc
HE
44112010-03-25 Helmut Eller <eller.helmut@gmail.com>
4412
4413 * process.c (Fmake_network_process): Call `select' for interrupted
4414 `connect' rather than creating new socket (Bug#5173).
4415
e867cb5d 44162010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4417
4418 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4419
4420 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4421
4422 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4423
e867cb5d 44242010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4425
4426 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4427 XLoadQueryFont.
4428
e867cb5d 44292010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4430
4431 * coding.c (decode_coding_ccl): Fix previous change for the
4432 multibyte case.
fb608df3
KH
4433 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4434 case that the output buffer is fullfilled.
4435 (encode_coding): Setup ccl program here.
fbdc1721 4436
5845f0ed
DN
44372010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4438
814fb708
DN
4439 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4440
5845f0ed
DN
4441 Simplify LIBS_MACHINE definitions.
4442 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4443 * m/iris4d.h (LIBS_MACHINE): Likewise.
4444 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4445 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4446 * s/netbsd.h: Remove commented out code.
5845f0ed 4447
b7064064
DN
44482010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4449
df7734b2
DN
4450 Remove dead code dealing with POSIX_SIGNALS.
4451 * atimer.c (set_alarm): Remove dead code, all USG systems define
4452 POSIX_SIGNALS.
4453 * data.c (arith_error): Likewise.
4454 * keyboard.c (input_available_signal, handle_user_signal)
4455 (interrupt_signal): Likewise.
4456 * process.c (sigchld_handler): Likewise.
4457 (create_process): Remove if 0 code. Remove HPUX conditional when
4458 !defined (POSIX_SIGNALS), it cannot be true.
4459 * syssignal.h: Remove USG5_4 and USG conditionals when
4460 !POSIX_SIGNALS, they cannot be true.
4461
b7064064
DN
4462 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4463 NO_SOCK_SIGIO, not used anymore.
4464
55da5ee3
DN
44652010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4466
0be96e3a
DN
4467 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4468 support vax on BSDs.
4469
55da5ee3
DN
4470 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4471 * s/aix4-2.h (ORDINARY_LINK): ... here.
4472
c0282183
AS
44732010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4474
82c3d67a
AS
4475 * Makefile.in (abs_builddir): Define.
4476 (bootstrap_exe): Use it.
4477 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4478
3613edce
SM
44792010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4480
4481 * Makefile.in (bootstrap_exe): Use an absolute name.
4482
7f110ddc
DN
44832010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4484
22e87574
DN
4485 Remove support for old GNU/Linux using libc version 5.
4486 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4487 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4488
05a670e6
DN
4489 Consolidate redundant definitions in s/bsd-common.h.
4490 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4491 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4492 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4493 doing it in all files that include this one.
4494 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4495 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4496 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4497 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4498 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4499 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4500 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4501 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4502 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4503
2968f561
DN
4504 Consolidate redundant definitions.
4505 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4506 it's undefined in all files that include this one.
4507 (POSIX_SIGNALS): Define here instead of doing it in all files that
4508 include this one.
4509 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4510 (POSIX_SIGNALS): Do not define.
4511 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4512 (POSIX_SIGNALS): Do not define.
4513 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4514 (POSIX_SIGNALS): Do not define.
4515
15d25dc0
DN
4516 Remove support for old UNIX System V systems.
4517 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4518 * s/usg-5-4-2.h: Remove.
4519
07e339e4
DN
4520 Remove support for Solaris on PPC and for old versions.
4521 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4522 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4523 that cancel each other.
4524 * s/sol2-3.h:
4525 * s/sol2-4.h:
4526 * s/sol2-5.h: Remove.
4527 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4528 (NO_REMAP): Remove, unused.
4529 (UNEXEC): Move definition ...
4530 * s/aix4-2.h (UNEXEC): ... here.
4531
7f110ddc
DN
4532 * s/openbsd.h: Remove support for non-ELF and for systems that do
4533 not support shared libraries.
4534 * s/netbsd.h:
4535 * s/freebsd.h: Likewise.
4536
605f35cd
DN
45372010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4538
4539 Remove non-working support for lynxos 3.0.
4540 * s/lynxos.h: Remove file.
4541
4542 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4543 COFF_BSD_SYMBOLS, nothing defines it anymore.
4544
aed71cf4
DN
45452010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4546
4547 Remove obsolete uses of HAVE_SHM.
4548 * emacs.c (standard_args):
4549 (Fdump_emacs):
4550 (syms_of_emacs): Remove code depending on HAVE_SHM.
4551
4552 * alloc.c: Remove HAVE_SHM dependent definition.
4553
4554 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4555
aded53ff
GM
45562010-03-18 Glenn Morris <rgm@gnu.org>
4557
17284745
GM
4558 * emacs.c (USAGE4): Hard-code bug address.
4559 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4560 (bug_reporting_address): Remove.
4561 (main): Don't call bug_reporting_address.
4562
aded53ff
GM
4563 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4564 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4565
303500aa
CY
45662010-03-15 Chong Yidong <cyd@stupidchicken.com>
4567
4568 * xfns.c (Fx_create_frame):
4569 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4570 on left.
4571
cef3058f
CY
45722010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4573
4574 * editfns.c (Fformat): Account for string precision when computing
4575 field width (Bug#5710).
4576
a647d59d
CY
45772010-03-12 Chong Yidong <cyd@stupidchicken.com>
4578
4fa42018
CY
4579 * xfns.c (Fx_create_frame): Set default to Qright.
4580
a647d59d
CY
4581 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4582 all window systems.
4583
6da23aaa
EZ
45842010-03-12 Eli Zaretskii <eliz@gnu.org>
4585
a96f6398 4586 These changes remove termcap.c from the build on Posix platforms.
83d02def 4587 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4588 (MSDOS_OBJ): ...to here.
4589 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4590 now identical to when LIBS_TERMCAP is defined.
4591
4592 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4593
4594 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4595
a96f6398 4596 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4597
288f9fc0
CY
45982010-03-10 Chong Yidong <cyd@stupidchicken.com>
4599
4600 * Branch for 23.2.
4601
d48cd3f4
SM
46022010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4603
4604 Cleanup setup of gl_state in various parts of the code.
4605 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4606 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4607 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4608 (skip_chars):
4609 * regex.c (regex_compile): Use it.
4610 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4611 it's now set in regex_compile when/if we need it.
4612
618db430
SM
46132010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4614
c0335e02
SM
4615 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4616 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4617 (QUIT): Use it to consolidate code and remove redundancy.
4618 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4619
254c06a8
SM
4620 * regex.c (regex_compile): Setup gl_state as well.
4621
618db430
SM
4622 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4623 (in_classes): Use CONSP before XCAR/XCDR.
4624
233f0c9f
CY
46252010-03-03 Chong Yidong <cyd@stupidchicken.com>
4626
4627 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4628 definitions, so that keyboard macros are correctly handled
4629 (Bug#5481).
4630
75f80e63
EZ
46312010-03-02 Eli Zaretskii <eliz@gnu.org>
4632
4633 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4634 text that could be relocated inside the call to emacs_mule_char.
4635 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4636 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4637
dcfb9bc4
KH
46382010-03-02 Kenichi Handa <handa@m17n.org>
4639
fc9a17bc
KH
4640 * character.c (parse_str_as_multibyte): Fix handling of the
4641 multibyte form of raw-bytes.
4642 (str_as_multibyte): Likewise.
4643
dcfb9bc4
KH
4644 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4645 form of raw-bytes.
4646
412c01b6
CY
46472010-02-28 Chong Yidong <cyd@stupidchicken.com>
4648
4649 * charset.c (load_charset_map_from_file)
4650 (load_charset_map_from_vector): Zero out allocated
4651 charset_map_entries before using them.
4652
df7e1ea0
AS
46532010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4654
4655 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4656
fe69a722
CY
46572010-02-27 Chong Yidong <cyd@stupidchicken.com>
4658
4ed28cf4
CY
4659 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4660 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4661
7379cfce
KH
46622010-02-26 Kenichi Handa <handa@m17n.org>
4663
f88cc4d6
KH
4664 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4665
7379cfce
KH
4666 * xdisp.c (reseat_to_string): Fix previous change.
4667
cf2fdcfb
CY
46682010-02-26 David Reitter <david.reitter@gmail.com>
4669
4670 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4671 Lisp_Object (Bug#4736).
4672
cc6c7c75
KH
46732010-02-25 Kenichi Handa <handa@m17n.org>
4674
4675 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4676
32e737d7
JD
46772010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4678
4679 * xterm.c (XTflash): Move declarations before statements.
4680
4681 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4682 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4683 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4684 (xg_create_tool_bar): Remove unused variables.
4685 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4686 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4687
676cae9f
CY
46882010-02-21 Chong Yidong <cyd@stupidchicken.com>
4689
4690 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4691
886cc2b8
SM
46922010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4693
4694 * term.c (fatal): Add a final \n if needed (bug#5596).
4695
ddb2d8e2
CY
46962010-02-18 Chong Yidong <cyd@stupidchicken.com>
4697
4698 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4699
2a4f8d3d
GM
47002010-02-18 Glenn Morris <rgm@gnu.org>
4701
4702 * callint.c (Finteractive): Doc fix.
4703
ebaf11b6
KH
47042010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4705
886cc2b8
SM
4706 * coding.c (record_conversion_result):
4707 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4708 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4709 memory allocation error.
4710
d0396581
KH
47112010-02-17 Kenichi Handa <handa@m17n.org>
4712
886cc2b8
SM
4713 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4714 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4715 (decode_coding): Setup ccl program here. Keep looping when the
4716 decoder stopped because the output buffer is
4717 fullfilled (bug#5534).
4718
4719 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4720
98599f74
JD
47212010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4722
471e4f04 4723 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4724 bug #5571.
886cc2b8 4725 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4726 overdrawn.
98599f74 4727
182659ae
JD
47282010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4729
4730 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4731 doing_interact here.
4732 (ice_connection_closed): New function.
4733 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4734 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4735 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4736 returns I/O error.
4737 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4738 bug #5512.
4739
9be32c4e 47402010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4741
4742 * nsfont.m (nsfont_open): The system's value for the font descent
4743 is negative, so round it down to avoid clipping.
4744
a2f3eb19
CY
47452010-02-06 Chong Yidong <cyd@stupidchicken.com>
4746
4747 * charset.c (load_charset_map_from_file)
4748 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4749 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4750
3088147c
CY
47512010-02-05 Chong Yidong <cyd@stupidchicken.com>
4752
4753 * charset.c (load_charset_map_from_file): Allocate large
4754 charset_map_entries structure on the heap rather than the stack.
4755 (Bug#5526).
4756
b57d9029
KH
47572010-01-31 Kenichi Handa <handa@m17n.org>
4758
4759 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4760 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4761
c67d885b
CY
47622010-01-31 Chong Yidong <cyd@stupidchicken.com>
4763
4764 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4765 <deactivated@gmail.com> (Bug#3605).
4766
8fab2362
CY
47672010-01-31 David De La Harpe Golden <david@harpegolden.net>
4768
4769 * fileio.c (Frename_file): Correctly rename symlinks to
4770 directories (Bug#5496).
4771
cb2a62f2
CY
47722010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4773
4774 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4775
944c7a26
AS
47762010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4777
4778 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4779
c024ac08
CY
47802010-01-29 Chong Yidong <cyd@stupidchicken.com>
4781
4782 * frame.c (DEFAULT_ROWS): Change default to 35.
4783
4784 * xfns.c (x_default_font_parameter): Change default XFT font to
4785 monospace-10 (Bug#3643).
4786
af93af83
EZ
47872010-01-29 Eli Zaretskii <eliz@gnu.org>
4788
4789 * w32inevt.c (key_event): Remove unnecessary comparison of
4790 event->uChar.AsciiChar with 128.
4791
ca0eb708
CY
47922010-01-28 Chong Yidong <cyd@stupidchicken.com>
4793
b242dbfc
CY
4794 * fileio.c (Frename_file): Fix last change (Bug#5487).
4795
ca0eb708
CY
4796 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4797
4798 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4799
45d45af5
JD
48002010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4801
4802 * xfns.c (Fx_create_frame): Remove window size matching code from
4803 2010-01-15.
a73f9c9d 4804 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4805
7e233730
JR
48062010-01-27 Jason Rumney <jasonr@gnu.org>
4807
4808 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4809 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4810
86e893e3
KH
48112010-01-27 Kenichi Handa <handa@m17n.org>
4812
4813 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4814 pattern string (Bug#4209).
86e893e3 4815
8719abec
CY
48162010-01-27 David De La Harpe Golden <david@harpegolden.net>
4817
4818 * fileio.c (Frename_file): Call copy-directory and
4819 delete-directory for directories, in order to handle cross-device
4820 renaming (Bug#3353).
4821
844794c8
JD
48222010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4823
aa3e13b5 4824 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4825 sizes 24 and 10. Bug #3643.
844794c8 4826
bd4b5750
SM
48272010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4828
8dc1adf6 4829 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4830 * keymap.c (shadow_lookup): Add `remap' arg.
4831 (describe_map, describe_vector): Update calls to shadow_lookup.
4832 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4833 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4834 perform remapping during shadow_lookup check of remapped_sequences.
4835
285d07e2
CY
48362010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4837
4838 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4839 png_check_sig, which has been removed in libpng 1.4.
4840
c6d09b8d
CY
48412010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4842
4843 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4844 lacks this header file).
4845
3d782998
YM
48462010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4847
4848 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4849 as in Emacs 22.
4850
2aff7c53
YM
48512010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4852
4853 * lisp.h (make_pure_string): String pointer arg now points to const.
4854
4855 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4856 args now point to const.
4857
74327f7a
EZ
48582010-01-22 Eli Zaretskii <eliz@gnu.org>
4859
4860 * lread.c (Fload): Don't treat files without .elc extension as
4861 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4862 them. (bug#5303)
4863
4d1e6632
KH
48642010-01-20 Kenichi Handa <handa@m17n.org>
4865
4866 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4867 treat the source as actual byte sequence.
4868
1fdede8f
AM
48692010-01-19 Alan Mackenzie <acm@muc.de>
4870
4871 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4872 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4873 `signal_after_change_p' to `coherent_change_p', and make the
4874 invocation of `modify_region' conditional on it.
4875
67477f30
JD
48762010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4877
4878 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4879 for debug purpose.
4880 (syms_of_xsettings): Declare xft-settings.
4881
244b023e
CY
48822010-01-18 Chong Yidong <cyd@stupidchicken.com>
4883
4884 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4885
617364fe
CY
48862010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4887
4888 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4889
4fe22cdf
CY
48902010-01-16 Chong Yidong <cyd@stupidchicken.com>
4891
4892 * emacs.c (standard_args): Adjust arg priorities to reflect how
4893 they are processed in startup.el.
4894
e118d2be
AS
48952010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4896
4897 * Makefile.in (lisp, shortlisp): Update.
4898
523ae620
SM
48992010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4900
4901 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4902 code, link the new kboard into all_kboard before running Lisp code,
4903 and protect the new terminal with GCPRO (Bug#5365).
4904 (x_term_init): Remove unused var `atom'.
4905 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4906
f0d13888
JD
49072010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4908
4909 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4910 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4911 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4912 this. Bug #3643.
f0d13888 4913
cc320f07
KH
49142010-01-15 Kenichi Handa <handa@m17n.org>
4915
4916 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4917
7ffdf101
CY
49182010-01-15 Chong Yidong <cyd@stupidchicken.com>
4919
4920 * nsterm.m (Qnone): Define.
4921
4922 * nsfns.m (Qnone): Move definition to nsterm.m.
4923
d12bd917
KH
49242010-01-14 Kenichi Handa <handa@m17n.org>
4925
4926 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4927 systems.
4928
d9a7c140
KH
49292010-01-14 Kenichi Handa <handa@m17n.org>
4930
4931 Make auto-composition work on all buffers even if they are
4932 fundamental mode.
4933
4934 * composite.c (Vauto_composition_mode): New variable.
4935 (composition_compute_stop_pos): Check Vauto_composition_mode
4936 instead of Vauto_composition_function.
4937 (composition_adjust_point, Ffind_composition_internal): Likewise.
4938 (syms_of_composite): Declare Lisp variable
4939 "auto-composition-mode" here.
4940
63286bb2
CY
49412010-01-13 Chong Yidong <cyd@stupidchicken.com>
4942
4943 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4944 during call to vendor-specific-keysyms (Bug#5365).
4945
c2623ee7
YM
49462010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4947
4948 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4949 Call SIGNAL_THREAD_CHECK (Bug#5333).
4950
4951 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4952 Call SIGNAL_THREAD_CHECK.
4953
0b5397c2
SM
49542010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4955
4956 Try to fix bug#5314. This is probably not the final word, tho.
4957 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4958 recent-auto-save-p as a side-effect.
4959 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4960 * buffer.c (Fkill_buffer, reset_buffer):
4961 * editfns.c (Fsubst_char_in_region):
4962 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4963 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4964
dc954cb2
KH
49652010-01-13 Kenichi Handa <handa@m17n.org>
4966
4967 Display buffer name, etc. in mode line by composing correctly.
4968
4969 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4970 STRING is not nil.
0b5397c2 4971 (display_mode_element): Adjust for the change of
dc954cb2
KH
4972 decode_mode_spec and display_line.
4973 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4974 (display_string): Handle the case that STRING is non-null and
4975 LISP_STRING is not nil.
4976
0b5397c2
SM
4977 * xterm.c (x_draw_composite_glyph_string_foreground):
4978 Pay attention to s->face->overstrike.
dc954cb2
KH
4979
4980 * composite.c (composition_reseat_it): Don't check PT if STRING is
4981 non nil.
4982
4a00eaca
YM
49832010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4984
4985 * keyboard.c (read_char): Don't apply previous change when current
4986 buffer is unchanged by command execution.
4987
60abb287
JD
49882010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4989
4990 * keyboard.c (read_char): Return after executing from special map.
4991
893db5bc
GM
49922010-01-12 Glenn Morris <rgm@gnu.org>
4993
4994 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4995 bug-gnu-emacs rather than emacs-pretest-bug.
4996
4d03ece0
CY
49972010-01-11 Chong Yidong <cyd@stupidchicken.com>
4998
4999 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5000 initializing the Lisp variables that depend on them.
5001
1df47e38
YM
50022010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5003
5004 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5005 Clear areas that will not be updated after change of menu bar lines.
5006 Clear the menu bar window's current matrix when the window gets empty.
5007
2f1c6384
CY
50082010-01-09 Chong Yidong <cyd@stupidchicken.com>
5009
e398c61c
CY
5010 * intervals.h, textprop.c (extend_property_ranges): Return value
5011 and args changed. Discard properties that begin at or after the
5012 new end (Bug#5306).
5013
5014 * editfns.c (Fformat): Caller changed.
5015
e5a29a10
CY
5016 * nsterm.m (ns_set_default_prefs): Delete function.
5017 (syms_of_nsterm): Initialize ns_command_modifier,
5018 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5019 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5020
2f1c6384
CY
5021 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5022 position (Bug#4040).
5023
d427a9fa
EZ
50242010-01-09 Eli Zaretskii <eliz@gnu.org>
5025
5026 * editfns.c (Ffloat_time): Doc fix.
5027
21b9df2f
JD
50282010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5029
5030 * xfns.c (Fx_create_frame): Don't create frame larger than display
5031 by default bug#3643.
5032
4b00d3b1
YM
50332010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5034
5035 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5036 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5037 windows above internal border.
5038
5039 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5040 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5041 windows above internal border.
5042
5043 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5044 tool bar windows specially.
5045
5046 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5047
5048 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5049 specially.
5050 (XTflash): Take account of menu bar height.
5051
5052 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5053 specially.
5054
5075d853
JD
50552010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5056
ac146f82 5057 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5058 also be true before we can return early (bug #5339).
5059
474217c8
CY
50602010-01-06 David Reitter <david.reitter@gmail.com>
5061
5062 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5063 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5064 (Bug#3233).
5065
c0e6d47d
JD
50662010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5067
d0cf45b7
JD
5068 * font.c (font_open_entity): Enable chache and call cached_font_ok
5069 for the driver if defined.
5070 (QCuser_spec): New symbol.
5071 (font_spec_from_name): Save name as user-spec.
5072 (font_load_for_lface): Keep user-spec instead of name.
5073 (font_open_by_name): Save name as user-spec.
5074 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5075 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5076
5077 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5078 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5079 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5080
5081 * font.h (struct font_driver): Add cached_font_ok.
5082
c0e6d47d
JD
5083 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5084
7c583cd8
JD
50852010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5086
5087 * xterm.c (x_new_font): Move code for setting rows/cols before
5088 resizing ...
ac146f82 5089 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5090
5091 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5092 (xg_frame_resized, xg_frame_set_char_size):
5093 Call xg_clear_under_internal_border.
7c583cd8 5094 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5095
03f77f0a
CY
50962010-01-05 Chong Yidong <cyd@stupidchicken.com>
5097
5098 * keyboard.c (read_key_sequence): Catch keyboard switch after
5099 making a new tty frame (Bug#5095).
5100
2a1ef5be
KH
51012010-01-05 Kenichi Handa <handa@m17n.org>
5102
5103 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5104
e3eb1dae
SM
51052010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5106
5107 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5108 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5109 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5110
777013f2
MA
51112010-01-03 Michael Albinus <michael.albinus@gmx.de>
5112
5113 * dbusbind.c (xd_add_watch): Improve debug message.
5114 (xd_remove_watch): Improve debug message. If DATA is the session
5115 bus, unset D-Bus session environment.
5116 (Fdbus_init_bus): Pass the bus as argument to
5117 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5118
8932b1c2
CY
51192010-01-01 Chong Yidong <cyd@stupidchicken.com>
5120
87231e2c
CY
5121 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5122
4801c5fa
CY
5123 * lread.c (syms_of_lread): Make it clearer that these are the
5124 names of loaded files (Bug#5068).
5125
8932b1c2
CY
5126 * eval.c (run_hook_with_args): Handle the case where the global
5127 value has the obsolete single-function form (Bug#5026).
5128
11e3c684
CY
51292009-12-27 Chong Yidong <cyd@stupidchicken.com>
5130
5131 * minibuf.c (Fall_completions): Minor optimization.
5132
5b28ce35
EZ
51332009-12-26 Eli Zaretskii <eliz@gnu.org>
5134
5ce6e4f4
JB
5135 * .gdbinit (pgx): Fix display of composite glyphs.
5136 Display cmp.from and cmp.to as well.
5137 (pitx): Fix last change.
5b28ce35 5138
bcffff46
KH
51392009-12-25 Kenichi Handa <handa@m17n.org>
5140
5141 * composite.h (composition_adjust_point): Update prototype.
5142
5143 * composite.c (composition_reseat_it): Don't make a composition
5144 spanning over point.
5145 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5146 composable characters.
5147 (composition_adjust_point): New arg NEW_PT. Callers changed.
5148
5149 * keyboard.c (command_loop_1): Force redisplay if the last point
5150 was within a composition.
5151 (adjust_point_for_property): Don't adjust point for automatic
5152 composition when called after buffer modification.
5153
3f670e9a
EZ
51542009-12-19 Eli Zaretskii <eliz@gnu.org>
5155
5ce6e4f4
JB
5156 * .gdbinit (pitx): Don't use enum names, use their values.
5157 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5158 (pgx): Don't use enum names, use their values.
5159 (pitmethod): New helper command.
5160 (pitx): Use it to display iteration method.
5161 (pgrowit): New command.
5162
ad903955
EZ
5163 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5164
3f670e9a
EZ
5165 Update dependencies in Makefile.in.
5166
5167 * Makefile.in (alloc.o): Depend on termhooks.h.
5168 (atimer.o): Depend on blockinput.h.
5169 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5170 and frame.h.
5171 (callint.o): Depend on systime.h, coding.h, and composite.h.
5172 (callproc.o): Depend on buffer.h.
5173 (casefiddle.o): Don't depend on charset.h.
5174 (casetab.o): Depend on character.h.
5175 (ccl.o): Depend on composite.h.
5176 (chartab.o): Depend on ccl.h.
5177 (cm.o): Depend on dispextern.h.
5178 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5179 (coding.o): Don't depend on $(INTERVALS_H).
5180 (composite.o): Don't depend on dispextern.h explicitly (it's in
5181 $(INTERVALS_H)). Depend on ccl.h.
5182 (data.o): Depend on systime.h, coding.h, composite.h,
5183 dispextern.h, font.h, and ccl.h.
5184 (dired.o): Depend on composite.h.
5185 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5186 composite.h (it's in $(INTERVALS_H)).
5187 (doc.o): Depend on systime.h, coding.h, and composite.h.
5188 (editfns.o): Don't depend explicitly on dispextern.h.
5189 (emacs.o): Depend on frame.h and coding.h.
5190 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5191 (fileio.o): Depend on frame.h and commands.h. Don't depend
5192 explicitly on dispextern.h.
5193 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5194 composite.h.
5195 (fns.o): Don't depend on termhooks.h.
5196 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5197 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5198 coding.h, $(INTERVALS_H), window.h, xterm.h.
5199 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5200 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5201 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5202 fontset.h, ccl.h, and ftfont.h.
5203 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5204 (gtkutil.o): Depend on dispextern.h and composite.h.
5205 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5206 termhooks.h, and ccl.h.
5207 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5208 (intervals.o): Depend on systime.h and coding.h.
5209 (keyboard.o): Depend on composite.h and coding.h.
5210 (keymap.o): Depend on coding.h and frame.h.
5211 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5212 (macros.o): Depend on systime.h, coding.h, and composite.h.
5213 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5214 and atimer.h.
5215 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5216 dispextern.h explicitly.
0b5397c2
SM
5217 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5218 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5219 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5220 (regex.o): Don't depend on charset.h.
5221 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5222 (search.o): Don't depend explicitly on composite.h.
5223 (sound.o): Depend on atimer.h and systime.h.
5224 (syntax.o): Don't depend explicitly on composite.h.
5225 (sysdep.o): Depend on coding.h and composite.h.
5226 (term.o): Depend on xterm.h and buffer.h.
5227 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5228 (textprop.o): Don't depend on dispextern.h explicitly.
5229 (undo.o): Depend on dispextern.h.
5230 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5231 dispextern.h and composite.h explicitly.
5232 (xdisp.o): Depend on ccl.h.
5233 (xfaces.o): Depend on coding.h and ccl.h.
5234 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5235 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5236 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5237 ftfont.h.
5238 (xgselect.o): New dependency.
5239 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5240 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5241 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5242 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5243 (xsmfns.o): Depend on frame.h and dispextern.h.
5244 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5245 sysselect.h.
5246
7a6f7fea
AS
52472009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5248
5249 * font.c (Fclear_font_cache): Pass correct cache argument to
5250 font_clear_cache.
5251
f4c21026
AS
52522009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5253
5254 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5255 twice.
5256
f7ab0997
CY
52572009-12-15 Chong Yidong <cyd@stupidchicken.com>
5258
5259 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5260 calling file-remote-p. Reported by Jim Meyering.
5261
fa8e045a
MA
52622009-12-15 Michael Albinus <michael.albinus@gmx.de>
5263
5264 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5265 avoid compiler warnings. (Bug #5217)
fa8e045a 5266
a63dba42
KH
52672009-12-14 Kenichi Handa <handa@m17n.org>
5268
5269 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5270 in 8-bit encoding.
5271
5ce6e4f4 52722009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5273
5274 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5275 tooltip windows.
5276
223e5fc6
JD
52772009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5278
36acb2a7
JD
5279 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5280 Xatom_net_window_type.
5281
5282 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5283 Xatom_net_window_type.
5284
b8f00677
JD
5285 * xterm.c (my_log_handler): New function.
5286 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5287 so we can filter out buggy messages. (Bug #5120).
b8f00677 5288
e5f0bc9a
JD
5289 * xterm.c (xg_scroll_callback): Parameter list changed,
5290 use parameter GtkScrollType to determine scroll/line/page.
5291 Only allow dragging if a button < 4 is grabbed (bug #5177).
5292 (xg_end_scroll_callback): New function.
5293 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5294 xg_create_scroll_bar.
5295
5296 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5297 (scroll_end_callback): Remove.
5298 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5299 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5300 bug #5177.
e5f0bc9a
JD
5301 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5302 bug #5177.
5303
5304 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5305 (xg_create_scroll_bar): Add GCallback end_callback.
5306
223e5fc6
JD
5307 * xftfont.c (QClcdfilter): New variable.
5308 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5309 (syms_of_xftfont): Initialize QClcdfilter.
5310
3c055b77
JD
53112009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5312
5313 * xsettings.c (struct xsettings): Add member seen.
5314 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5315 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5316 (apply_xft_settings): Only update Xft settings with what member seen
5317 indicates as new.
5318
05fe33ff
EZ
53192009-12-12 Eli Zaretskii <eliz@gnu.org>
5320
c4cc8b9a 5321 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5322 (struct glyph): Use EMACS_INT for charpos.
5323 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5324 region_beg_charpos, region_end_charpos,
5325 redisplay_end_trigger_charpos, and also for
5326 iterator_stack_entry.end_charpos and
5327 iterator_stack_entry.stop_charpos.
5328
e8d7886a
JD
53292009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5330
5ce6e4f4 5331 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5332 (xg_create_scroll_bar): Call scroll_end_callback on button release
5333 event (bug #5177).
5334 (xg_event_is_for_scrollbar): != replaced with ==.
5335
d0db2ec8
KH
53362009-12-12 Kenichi Handa <handa@m17n.org>
5337
5338 * ftfont.c (struct ftfont_info): New member matrix.
5339 (ftfont_open): Setup xftfont_info->matrix.
5340 (MFLTFontFT): New member matrix.
5341 (FLOOR, CEIL, ROUND): New macros.
5342 (ftfont_get_metrics): Handle matrix transformation.
5343 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5344
5345 * xftfont.c (struct xftfont_info): New member matrix.
5346 (xftfont_open): Setup xftfont_info->matrix.
5347
53482009-12-10 Kenichi Handa <handa@m17n.org>
5349
5350 * xdisp.c (append_space_for_newline): Consider face-remapping.
5351
2cc7b62f
AS
53522009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5353
b87dd913
AS
5354 * xsettings.c: Include "keyboard.h".
5355
eba5eb94
AS
5356 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5357
2cc7b62f
AS
5358 Fix implicit function declarations.
5359 * cmds.c: Include "frame.h".
5360 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5361 * frame.h: Move declaration of delete_frame outside of
5362 HAVE_WINDOW_SYSTEM.
5363
a4ef73c8
CY
53642009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5365
5366 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5367
5368 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5369 GTK builds.
5370
944a300c
AS
53712009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5372
5373 * unexelf.c (unexec): Don't search for .data twice.
5374
022eef62
CY
53752009-12-05 Chong Yidong <cyd@stupidchicken.com>
5376
426ac949
CY
5377 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5378 if push failed.
5379 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5380 of push_display_prop (Bug#5000).
5381
022eef62
CY
5382 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5383 value of font_list_entities (Bug#5085).
5384
be95bee9
JB
53852009-12-04 Juanma Barranquero <lekktu@gmail.com>
5386
5387 Fix `string-to-number' to deal consistently with integers and floats.
5388 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5389 trailing characters, not just whitespace.
5390 (read1): Pass new arg 0 to keep old behavior.
5391 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5392 trailing chars, as it is already done for integers. Doc fixes.
5393 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5394
24c2d7ce
EZ
53952009-12-04 Eli Zaretskii <eliz@gnu.org>
5396
0b5397c2
SM
5397 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5398 Delete unused enumeration value.
24c2d7ce 5399
7e694795
EZ
54002009-12-03 Eli Zaretskii <eliz@gnu.org>
5401
5402 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5403
84b31826
SM
54042009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5405
5406 * process.c (Fmake_network_process): Fix up the tests for
5407 "connectionless socket", so they DTRT for seqpacket sockets as well.
5408
f00c449b
SM
54092009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5410
5411 * process.c (Qseqpacket): New symbol.
5412 (HAVE_SEQPACKET): New macro.
5413 (Fmake_network_process): Accept new :type `seqpacket'.
5414 (init_process): Add `seqpacket' feature when applicable.
5415 (syms_of_process): Initialize Qseqpacket.
5416
8096a0ff
YM
54172009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5418
5419 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5420 if entity is Qnil.
5421
3e0de07f
SM
54222009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5423
5424 * print.c (print_preprocess): Preprocess the key_and_value table of
5425 hashtables, even tho they're "hidden" (bug#5082).
5426
abeafb2a
JD
54272009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5428
5429 * frame.c (frame_make_pointer_invisible)
5430 (frame_make_pointer_visible): Declare f before statements.
5431
4bf47195
EZ
54322009-11-28 Eli Zaretskii <eliz@gnu.org>
5433
5434 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5435 omitted dependencies on lisp.h.
5436
c525b3f2
JD
54372009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5438
ece2d4ed
JD
5439 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5440 is NULL.
5441
5442 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5443
5444 * frame.c (frame_make_pointer_invisible)
3e0de07f 5445 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5446 frame.
5447
c525b3f2
JD
5448 * search.c (simple_search): Remove warning by making *p const.
5449
2f00e299
DN
54502009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5451
5452 * xdisp.c (power_letter): Remove duplicate const.
5453
084b049b
JD
54542009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5455
a1fadc6f
JD
5456 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5457
5ce6e4f4 5458 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5459 defaults (bug #5025).
5460
28259cac
SM
54612009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5462
5463 * insdel.c (adjust_markers_for_delete): Move it in the
5464 right direction! (bug#4803)
5465
e8e14166
YM
54662009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5467
5468 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5469
5470 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5471
86677b58
GM
54722009-11-24 Glenn Morris <rgm@gnu.org>
5473
5474 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5475
581e51e8
JD
54762009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5477
cfc86c7a
JD
5478 * Makefile.in: Must create deps for ecrt0.o in its rule.
5479
581e51e8
JD
5480 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5481 because that is what Gtk+ font dialog understands.
5482
5483 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5484 of Fcopy_sequence.
5485 (font_open_by_name): Put name given into QCname for font-object returned.
5486
5487 * frame.c (x_set_font): Save original font name as frame parameter
5488 font-parameter.
5489
5490 * xsettings.c (set_default_xft_settings): New function.
5491 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5492 is found.
5493
8b264ecb
AS
54942009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5495
5496 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5497 searching backwards through multibyte buffer.
5498
872870b2
JD
54992009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5500
5501 * xterm.c: #include xgselect.h.
5502 (x_initialize): Call xgselect_initialize.
5503
5504 * xsettings.c (something_changedCB): C++ comments => C comments.
5505 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5506 does that now.
5507
5508 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5509 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5510 (scroll_bar_button_cb): Remove.
5ce6e4f4 5511 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5512 event.
5513 (xg_create_scroll_bar): Don't bind button-press-event and
5514 button-release-event.
5515
5516 * process.c: Include xgselect.h if defined (USE_GTK) ||
5517 defined (HAVE_GCONF).
5518 (wait_reading_process_output): Call xg_select for the same condition.
5519
5520 * xgselect.c (xg_select): New function to better integrate with
5521 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5522
5523 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5524
5525 * Makefile.in (XOBJ): Add xgselect.o.
5526
62a6e103
AS
55272009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5528
0b5397c2
SM
5529 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5530 Remove ignored second argument. All callers changed.
62a6e103
AS
5531 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5532 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5533 * xdisp.c (string_char_and_length): Likewise.
5534
b0ca0f33
DN
55352009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5536
5537 * xterm.c (x_new_font):
5538 * print.c (print_object):
5539 * cmds.c (Fself_insert_command): Move declarations before statements.
5540
dd5a6279
CY
55412009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5542
5543 * s/cygwin.h: Remove unneeded linker flags.
5544
4a8e097d
JD
55452009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5546
0d1d0d26
JD
5547 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5548
5549 * xsettings.h: Declare xsettings_get_system_font.
5550
5551 * xsettings.c (xsettings_get_system_font): New function.
5552 (init_gconf): No use initiating gconf unless we have Xft also.
5553 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5554 HAVE_GCONF.
5555
4a8e097d
JD
5556 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5557 add a blank entry so it doesn't collapse into nothing.
5558
8ab1650e
SM
55592009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5560
5561 * lread.c (Funintern): Comment out last change.
5562
82c602f0
RS
55632009-11-19 Richard Stallman <rms@gnu.org>
5564
5565 * lread.c (Funintern): Error if symbol is t or nil.
5566
87e32266
SM
55672009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5568
5569 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5570 representation of Lisp integers.
5571 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5572
1b9ac145
AS
55732009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5574
5575 * lisp.h: Remove declaration of Ffont_get_system_font.
5576 * xfns.c: Move include of "xsettings.h".
5577 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5578
dfb3c4c6
JD
55792009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5580
87e32266
SM
5581 * xsettings.c (something_changedCB, Ffont_get_system_font):
5582 Check use_system_font.
dfb3c4c6
JD
5583 (syms_of_xsettings): DEFVAR font-use-system-font.
5584
9370c1d8
AS
55852009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5586
25fe851a
AS
5587 * xfns.c (x_default_font_parameter): Remove dead assignment.
5588
9370c1d8
AS
5589 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5590
637fa988
JD
55912009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5592
87e32266 5593 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5594 not have FC_LCD_*. #define them if not there.
a6eb20d8 5595
87e32266 5596 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5597
637fa988
JD
5598 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5599
5600 * xterm.c (handle_one_xevent): Call xft_settings_event for
5601 ClientMessage, PropertyNotify and DestroyNotify.
5602 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5603 Call xsettings_initialize.
5604
5605 * xftfont.c (xftfont_fix_match): New function.
5606 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5607 Call xftfont_fix_match after XftFontMatch.
5608
5609 * xfont.c (xfont_driver): Initialize all members.
5610
87e32266
SM
5611 * xfns.c (x_default_font_parameter):
5612 Try font from Ffont_get_system_font.
637fa988
JD
5613 Do not get font from x_default_parameter if we got one from
5614 Ffont_get_system_font.
87e32266 5615 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5616
5617 * w32font.c (w32font_driver): Initialize all members.
5618
5619 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5620
5621 * lisp.h: Declare syms_of_xsettings.
5622
87e32266
SM
5623 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5624 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5625
5626 * ftfont.c (ftfont_filter_properties): New function.
5627
5628 * frame.c (x_set_font): Remove unused variable lval.
5629
87e32266 5630 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5631
5632 * font.c (font_put_extra): Don't return if val is nil, it means
5633 boolean option is off.
5634 (font_parse_fcname): Collect all extra properties in extra_props
5635 and call filter_properties for all drivers with extra_props and
5636 font as parameter.
87e32266
SM
5637 (font_open_entity): Do not use cache, it does not pick up new
5638 fontconfig settings like hinting.
637fa988
JD
5639 (font_load_for_lface): If spec had a name in it, store it in entity.
5640
a73f9c9d 5641 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5642
5643 * config.in: HAVE_GCONF is new.
5644
5645 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5646 xsettings.o is new.
5647
5a942932
KH
56482009-11-17 Kenichi Handa <handa@m17n.org>
5649
5650 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5651 back to the default font in case that no suitable font is found.
5652
b7c7a4d1
SM
56532009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5654
5655 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5656 Suggested by Chad Brown <yandros@mit.edu>.
5657 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5658
072f1e39
JD
56592009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5660
5661 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5662
5d1e70a2
AS
56632009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5664
87e32266 5665 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5666
a53cfbe5
JD
56672009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5668
473a99b7
JD
5669 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5670 has a parent.
5671
a53cfbe5 5672 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5673 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5674
5675 * config.in: Generated (AUTO_DEPEND).
5676
f04bb9b2
MA
56772009-11-13 Michael Albinus <michael.albinus@gmx.de>
5678
b7c7a4d1 5679 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5680 Vdbus_registered_functions_table, because it contains also
5681 properties. Fix docstring.
b7c7a4d1 5682 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5683
8f11f7ec
SM
56842009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5685
5686 * alloc.c (mark_object): Don't reprocess marked strings.
5687 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5688 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5689
8a605fe8
KH
56902009-11-13 Kenichi Handa <handa@m17n.org>
5691
8f11f7ec 5692 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5693 semantics of Vword_combining_categories.
5694 (Vword_combining_categories): Describe the slight change of the
5695 semantics.
5696
241c4680
EZ
56972009-11-13 Eli Zaretskii <eliz@gnu.org>
5698
5699 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5700
5701 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5702
5d58e44c
SM
57032009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5704
5705 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5706
5e13f9d3
JB
57072009-11-12 Juanma Barranquero <lekktu@gmail.com>
5708
5709 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5710
cf54c754
DR
57112009-11-11 David Reitter <david.reitter@gmail.com>
5712
5713 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5714 variables to fix 2009-11-09 change.
5715
a4ada374
DN
57162009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5717
91433552
DN
5718 * process.c (ifflag_def): Make flag_sym constant.
5719 (Fnetwork_interface_info): Use a constant pointer.
5720 (ifflag_table):
5721 * xfns.c (cursor_bits):
5722 * xdisp.c (power_letter):
5723 * termcap.c (speeds, esctab):
5724 * sysdep.c (baud_convert):
5725 * keyboard.c (lispy_accent_codes, modifier_names):
5726 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5727 (jpeg_format, tiff_format, gif_format, svg_format)
5728 (interlace_start, interlace_increment, gs_format):
5729 * gtkutil.c (separator_names):
5730 * fringe.c (swap_nibble):
5731 * fns.c (base64_value_to_char, base64_char_to_value):
5732 * fileio.c (make_temp_name_tbl):
5733 * coding.c (suffixes): Make constant.
5734
f4265f6c
DN
5735 * frame.c (make_initial_frame):
5736 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5737 build_string.
5738 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5739
04420943
DN
5740 * s/freebsd.h:
5741 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5742
0a5d24ae
DN
5743 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5744 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5745
a4ada374
DN
5746 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5747 * xterm.c (syms_of_xterm):
5748 * xfaces.c (syms_of_xfaces):
5749 * xdisp.c (syms_of_xdisp):
5750 * lread.c (syms_of_lread):
5751 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5752 build_string.
91433552 5753
a4ada374
DN
5754 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5755
af98fc7f
SM
57562009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5757
8ab1650e 5758 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5759
e90292a9
JD
57602009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5761
5762 * keyboard.h: Declare timer_check.
5763
5764 * keyboard.c (timer_check_2): New function that does what the old
5765 timer_check did.
5766 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5767 returned, i.e. don't return -1 with timers pending.
5768
5769 * process.c: Remove extern declaration of timer_check.
5770
5771 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5772 even if timer_check returned -1.
5773
af98fc7f
SM
5774 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5775 xg_dialog_data.
e90292a9
JD
5776 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5777 the event loop.
5778 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5779 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5780 Destroy the dialog after xg_dialog_run.
5781
045b83c0
SM
57822009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5783
5784 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5785
1fb99a3a
JD
57862009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5787
5788 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5789
04e452cb
JB
57902009-11-09 Juanma Barranquero <lekktu@gmail.com>
5791
5792 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5793
ef7417fd
SM
57942009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5795
5796 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5797 w32menu.c, and nsmenu.m.
5798 Simplify the obsolete case where position is nil.
5799 (cleanup_popup_menu): New function, moved from nsmenu.m.
5800 (struct skp): Remove slot `notreal'.
5801 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5802 adjust callers.
5803 (single_menu_item): Adjust call to parse_menu_item.
5804 (syms_of_menu): Defsubr x-popup-menu.
5805 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5806 (keymap_panes): Don't export any more.
5807 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5808 (xmenu_show): Declare.
5809 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5810 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5811 * keyboard.h (parse_menu_item): Update declaration.
5812 * xmenu.c (Fx_popup_menu): Remove.
5813 (syms_of_xmenu): Don't defsubr x-popup-menu.
5814 * w32menu.c (Fx_popup_menu): Remove.
5815 (syms_of_w32menu): Don't defsubr x-popup-menu.
5816 * nsmenu.m (cleanup_popup_menu): Remove.
5817 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5818 moved to menu.c's Fx_popup_menu.
5819 (Fx_popup_menu): Remove.
5820 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5821 menu_items (it's done in menu.c already).
5822
424d6179
SM
58232009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5824
5825 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5826 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5827
c0df13a6 58282009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5829
5830 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5831 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5832 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5833 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5834
2de9f71c
SM
58352009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5836
5837 Let integers use up 2 tags to give them one extra bit and thus double
5838 their range.
5839 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5840 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5841 New macros.
5842 (enum Lisp_Type): Use them. Give explicit values.
5843 (Lisp_Type_Limit): Remove.
5844 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5845 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5846 Pay attention to USE_2_TAGS_FOR_INTS.
5847 (INTEGERP): Use LISP_INT_TAG_P.
5848 * fns.c (internal_equal): Simplify the default case.
5849 (sxhash): Use case_Lisp_Int.
5850 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5851 any more.
5852 (Ftype_of): Use case_Lisp_Int.
5853 (store_symval_forwarding): Take into account the fact that Ints can
5854 now have more than one tag.
5855 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 5856 (buffer_slot_type_mismatch):
2de9f71c
SM
5857 * xfaces.c (face_attr_equal_p):
5858 * print.c (print_object):
5859 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5860 Use case_Lisp_Int.
5861
323637a2
EZ
58622009-11-06 Eli Zaretskii <eliz@gnu.org>
5863
7ac65b38
EZ
5864 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5865
323637a2
EZ
5866 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5867 warning.
5868
e511451f
JD
58692009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5870
5871 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5872
5873 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5874
5875 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5876 ButtonPressRelease and MotionNotify (bug#4870).
5877
5e2327cf
DN
58782009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5879
5adc433e
DN
5880 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5881
d67b4f80
DN
5882 * xterm.c (syms_of_xterm):
5883 * xselect.c (syms_of_xselect):
5884 * xmenu.c (syms_of_xmenu):
5885 * xfns.c (syms_of_xfns):
5886 * xfaces.c (syms_of_xfaces):
5887 * xdisp.c (syms_of_xdisp):
5888 * window.c (syms_of_window):
5889 * w32fns.c (syms_of_w32fns):
5890 * undo.c (syms_of_undo):
5891 * textprop.c (syms_of_textprop):
5892 * terminal.c (syms_of_terminal):
5893 * syntax.c (syms_of_syntax):
5894 * sound.c (syms_of_sound):
5895 * search.c (syms_of_search):
5896 * print.c (syms_of_print):
5897 * minibuf.c (syms_of_minibuf):
5898 * macros.c (syms_of_macros):
5899 * keymap.c (syms_of_keymap, initial_define_key)
5900 (initial_define_lispy_key):
5901 * keyboard.c (syms_of_keyboard):
5902 * insdel.c (syms_of_insdel):
5903 * image.c (syms_of_image):
5904 * fringe.c (syms_of_fringe):
5905 * frame.c (syms_of_frame):
5906 * fontset.c (syms_of_fontset):
5907 * fns.c (syms_of_fns):
5908 * fns.c (syms_of_fns):
5909 * fileio.c (syms_of_fileio):
5910 * fileio.c (syms_of_fileio):
5911 * eval.c (syms_of_eval):
5912 * doc.c (syms_of_doc):
5913 * dispnew.c (syms_of_display):
5914 * dired.c (syms_of_dired):
5915 * dbusbind.c (syms_of_dbusbind):
5916 * data.c (syms_of_data):
5917 * composite.c (syms_of_composite):
5918 * coding.c (syms_of_coding):
5919 * cmds.c (syms_of_cmds):
5920 * charset.c (define_charset_internal, syms_of_character):
5921 * ccl.c (syms_of_ccl):
5922 * category.c (syms_of_category, init_category_once):
5923 * casetab.c (syms_of_casetab):
5924 * casefiddle.c (syms_of_casefiddle):
5925 * callint.c (syms_of_callint):
5926 * bytecode.c (syms_of_bytecode):
5927 * buffer.c (keys_of_buffer, syms_of_buffer):
5928 * alloc.c (syms_of_alloc):
5929 * process.c (syms_of_process, init_process):
5930 * lread.c (syms_of_lread, init_obarray):
5931 * font.c (build_style_table):
5932 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5933 intern_c_string, calls to make_pure_string with
5934 make_pure_c_string. Use pure_cons instead of Fcons.
5935
5e2327cf
DN
5936 * process.c (socket_options): Make it const.
5937 (set_socket_option, init_process): Use a const pointer.
5938
5939 * lread.c (intern_c_string): New function.
5940 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5941 (defvar_int): Uset it. Make the name const char*.
5942
5943 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5944 (defvar_int): Update prototypes.
5945 (DEFUN, EXFUN): Support for prototypes is now required.
5946 (intern_c_string): New prototype.
5947 (struct Lisp_Subr): Make symbol_name constant.
5948
5949 * font.c (struct table_entry): Remove unused member. Make NAMES
5950 constant.
5951 (weight_table, slant_table, width_table): Make constant.
5952
5953 * emacs.c (struct standard_args): Make name and longname constant.
5954
5955 * character.h (DEFSYM): Use intern_c_string.
5956
a56eaaef
DN
59572009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5958
5959 * alloc.c (make_pure_c_string): New function.
5960
5961 * eval.c (Fautoload): Purecopy all arguments.
5962
f6a07420
KH
59632009-11-05 Kenichi Handa <handa@m17n.org>
5964
5965 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5966 the buffer in case of replace.
5967
5d28d4b1
DN
59682009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5969
5970 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5971
b349d111
SM
59722009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5973
d528b1ce
SM
5974 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5975 when applicable (bug#4851).
5976
b349d111
SM
5977 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5978 (P_): Support for prototypes is now required.
5979
c38eb027
CY
59802009-10-31 Chong Yidong <cyd@stupidchicken.com>
5981
5982 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5983 (Bug#4827).
5984
0405f8d9
EZ
59852009-10-30 Eli Zaretskii <eliz@gnu.org>
5986
d528b1ce 5987 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5988
ca0a881a
DN
59892009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5990
5991 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5992
d528b1ce
SM
5993 * lread.c (Fload): Purecopy the file name when building
5994 Vpreloaded_file_list.
ca0a881a 5995
47e0e0e4
JR
59962009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5997
5998 * w32fns.c (syms_of_w32fns): Change default value of
5999 w32-scroll-lock-modifier to nil. (Bug#2827)
6000
057bce6f
JB
60012009-10-26 Juanma Barranquero <lekktu@gmail.com>
6002
782a943e 6003 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6004
242bc74c
AS
60052009-10-26 Andreas Schwab <schwab@redhat.com>
6006
6007 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6008
522d013a
JB
60092009-10-26 Juanma Barranquero <lekktu@gmail.com>
6010
6011 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6012 For delta < 0, skip check that only makes sense when the mini-window
6013 is going to be enlarged. (Bug#4534)
6014
18060980
CY
60152009-10-25 Chong Yidong <cyd@stupidchicken.com>
6016
6017 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6018 string in menu maps (Bug#4471).
6019
fec8f0fe
CY
60202009-10-24 Chong Yidong <cyd@stupidchicken.com>
6021
6022 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6023 FRAME_NS_VIEW on terminal frames (Bug#4765).
6024
10d66ec0
AS
60252009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6026
1cae01f7
AS
6027 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6028 DBUS_TYPE_UINTnn separately to get proper sign extension.
6029
58a12889
AS
6030 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6031 can properly handle unsigned types.
d528b1ce 6032 (make_uid, make_gid): Remove.
58a12889 6033
987c9327
AS
6034 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6035 types again.
6036
522d013a 6037 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6038 (system_process_attributes): Likewise.
6039
905a9ed3
DN
60402009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6041
6042 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6043
6044 * eval.c (Fautoload): Purecopy the filename. Simplify.
6045
6046 * category.c (Fdefine_category): Purecopy docstring.
6047
a599b3e8
AS
60482009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6049
7b792fc9
AS
6050 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6051
a599b3e8
AS
6052 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6053
b35ac83e
CY
60542009-10-23 Chong Yidong <cyd@stupidchicken.com>
6055
6056 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6057 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6058 (Bug#4775).
6059
e8903e00
SM
60602009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6061
6062 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6063 (init_fileio_once):
6064 * lisp.h (init_fileio_once): Remove.
6065 * emacs.c (main): Don't call init_fileio_once.
6066
8f43cbf3
DN
60672009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6068
6069 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6070
26898943
AS
60712009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6072
6073 * doprnt.c (doprnt): Fix overflow check.
6074
5c646d5a
JD
60752009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6076
3132a7ea
JD
6077 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6078
5c646d5a
JD
6079 * xterm.h (x_wait_for_event): Declare it.
6080
6081 * xterm.c (pending_event_wait): New variable.
6082 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6083 see pending_event_wait.eventtype.
6084 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6085 (x_new_font): Call change_frame_size with new rows/columns before we
6086 try to resize the frame.
5c646d5a 6087 (x_wait_for_event): New function.
d528b1ce
SM
6088 (x_set_window_size_1): Don't change gravity unless change_gravity
6089 is set.
5c646d5a
JD
6090 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6091 don't change frame size, instead wait for the ConfigureNotify.
6092 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6093 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6094 (x_initialize): Initialize pending_event_wait.
6095
6096 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6097 size.
6098
6099 * widget.c (EmacsFrameSetValues): Add comment.
6100 (EmacsFrameSetCharSize): Just call x_set_window_size.
6101
6102 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6103 x_wait_for_event.
d528b1ce 6104 (flush_and_sync): Remove again.
5c646d5a
JD
6105 (xg_get_font_name): Suggest monospace if no previous font is known.
6106
e9c1637d
SM
61072009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6108
6109 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6110 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6111
5a72cccb
YM
61122009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6113
6114 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6115 processing pending events when event is filtered for input method.
ab04798f 6116 (Bug#3681)
5a72cccb 6117
2629aa37
JB
61182009-10-20 Juanma Barranquero <lekktu@gmail.com>
6119
6120 * fns.c: Add #endif accidentally removed in previous change.
6121
c3417a74
DN
61222009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6123
6124 * fns.c: Remove code for unsupported system: MAC_OS.
6125 * image.c: Likewise. Include setjmp.h.
6126
9685cef2
JD
61272009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6128
6129 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6130 pixel -1 (bug #4742).
6131
d7306fe6
DN
61322009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6133
019d2c4c
DN
6134 * process.c (create_pty): Remove conditionals for no longer
6135 supported systems: UNIPLUS and RTU.
6136
ee6bacd4
DN
6137 * xterm.c:
6138 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6139
d7306fe6
DN
6140 * alloc.c: Do not define struct catchtag.
6141 * eval.c: Move struct catchtag definition ...
6142 * lisp.h: ... here.
6143
6144 * image.c: Move png.h #include earlier to avoid warnings.
6145
6146 * xterm.c:
6147 * xsmfns.c:
6148 * xselect.c:
6149 * xrdb.c:
6150 * xmenu.c:
6151 * xftfont.c:
6152 * xfont.c:
6153 * xfns.c:
6154 * xfaces.c:
6155 * xdisp.c:
6156 * window.c:
6157 * widget.c:
6158 * w32xfns.c:
6159 * w32uniscribe.c:
6160 * w32term.c:
6161 * w32select.c:
6162 * w32reg.c:
6163 * w32proc.c:
6164 * w32menu.c:
6165 * w32inevt.c:
6166 * w32heap.c:
6167 * w32font.c:
6168 * w32fns.c:
6169 * w32console.c:
6170 * w32.c:
6171 * w16select.c:
6172 * vm-limit.c:
6173 * unexsol.c:
6174 * unexec.c:
6175 * unexcw.c:
6176 * unexaix.c:
6177 * undo.c:
6178 * tparam.c:
6179 * textprop.c:
6180 * terminfo.c:
6181 * terminal.c:
6182 * termcap.c:
6183 * term.c:
6184 * syntax.c:
6185 * sound.c:
6186 * sheap.c:
6187 * search.c:
6188 * scroll.c:
6189 * region-cache.c:
6190 * regex.c:
6191 * ralloc.c:
6192 * process.c:
6193 * print.c:
b024548b
DN
6194 * nsterm.m:
6195 * nsselect.m:
6196 * nsmenu.m:
6197 * nsimage.m:
6198 * nsfont.m:
6199 * nsfns.m:
d7306fe6
DN
6200 * msdos.c:
6201 * minibuf.c:
6202 * menu.c:
6203 * marker.c:
6204 * macros.c:
6205 * keymap.c:
6206 * keyboard.c:
6207 * intervals.c:
6208 * insdel.c:
6209 * indent.c:
6210 * gtkutil.c:
6211 * ftxfont.c:
6212 * ftfont.c:
6213 * fringe.c:
6214 * frame.c:
6215 * fontset.c:
6216 * font.c:
6217 * fns.c:
6218 * floatfns.c:
6219 * filelock.c:
6220 * fileio.c:
6221 * emacs.c:
6222 * editfns.c:
6223 * dosfns.c:
6224 * doprnt.c:
6225 * doc.c:
6226 * dispnew.c:
6227 * dired.c:
6228 * dbusbind.c:
6229 * data.c:
6230 * composite.c:
6231 * coding.c:
6232 * cmds.c:
6233 * cm.c:
6234 * chartab.c:
6235 * charset.c:
6236 * character.c:
6237 * ccl.c:
6238 * category.c:
6239 * casetab.c:
6240 * casefiddle.c:
6241 * callproc.c:
6242 * callint.c:
6243 * bytecode.c:
6244 * buffer.c:
6245 * atimer.c: Include setjmp.h. (Bug#4643)
6246
fd5f21e6
SM
62472009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6248
4c0354d7
SM
6249 Remove leftover table unibyte_to_multibyte_table.
6250 * character.c (unibyte_to_multibyte_table): Remove.
6251 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6252 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6253 * character.h (UNIBYTE_TO_CHAR): New macro.
6254 (MAKE_CHAR_MULTIBYTE): Use it.
6255 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6256 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6257 (message_dolog, set_message_1):
6258 * search.c (Freplace_match):
6259 * editfns.c (Fcompare_buffer_substrings):
6260 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6261 (concat):
6262 * insdel.c (copy_text, count_size_as_multibyte):
6263 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6264 * term.c (produce_glyphs):
6265 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6266 * regex.c (RE_CHAR_TO_MULTIBYTE):
6267 * cmds.c (internal_self_insert):
6268 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6269
fd5f21e6
SM
6270 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6271
4418646e
DN
62722009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6273
6274 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6275
35f5c1d2
JB
62762009-10-16 Juanma Barranquero <lekktu@gmail.com>
6277
6278 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6279
a0cd8f6b
AR
62802009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6281
6282 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6283 still needed under Tiger.
6284
6285 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6286
6287 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6288 __Apple__.
6289
6290 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6291
01a8d3fa
KH
62922009-10-15 Kenichi Handa <handa@m17n.org>
6293
6294 * print.c (print_object): Escape a symbol like "2E10" too.
6295
bf6c75c9 62962009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6297
6298 Cleanups and changes for 64-bit compile under Snow Leopard.
6299 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6300
6301 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6302
c5959062 6303 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6304 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6305 cast argument.
6306 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6307 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6308
6309 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6310
6311 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6312 where appropriate.
6313
6314 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6315 where appropriate.
6e4780c5
JB
6316 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6317 Use stringWithUTF8String.
bf6c75c9
AR
6318 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6319
6e4780c5
JB
6320 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6321 Add formal protocol mention to inheritance.
bf6c75c9
AR
6322 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6323
6e4780c5
JB
6324 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6325 Fix printf format.
bf6c75c9
AR
6326 (ns_query_color): Use CGFloat where appropriate.
6327 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6328 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6329 argument.
6330
3d87f118
AR
6331 * config.in (NS_HAVE_NSINTEGER): Drop.
6332
a95c8102
AR
6333 * dbusbind.c (dbus-method-return-internal)
6334 (dbus-method-error-internal): Use long format in printf, and cast
6335 argument.
6336
6337 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6338 in printf, and cast argument.
6339
6873acca 6340 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6341 cast argument.
6342
9ec6f100
GM
63432009-10-11 Glenn Morris <rgm@gnu.org>
6344
6345 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6346
5be883cd
JD
63472009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6348
6349 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6350 menu bar with a small width so it doesn't enlarge the frame.
6351
d7a39b51
JB
63522009-10-08 Juanma Barranquero <lekktu@gmail.com>
6353
6354 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6355
0c2b6f8e
GM
63562009-10-06 Glenn Morris <rgm@gnu.org>
6357
6358 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6359 SOME_MACHINE_LISP (this enters indirectly via DOC).
6360
e02131a2
EZ
63612009-10-05 Eli Zaretskii <eliz@gnu.org>
6362
6363 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6364
b4744254
EZ
63652009-10-04 Eli Zaretskii <eliz@gnu.org>
6366
6367 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6368 Doc fix.
6369
dbf64827
JB
63702009-10-03 Martin Rudalics <rudalics@gmx.at>
6371
6372 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6373
e9a0aef8
MA
63742009-10-02 Michael Albinus <michael.albinus@gmx.de>
6375
d528b1ce 6376 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6377 used anymore outside fileio.c.
6378
6379 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6380
64eb2b56
JB
63812009-10-01 Juanma Barranquero <lekktu@gmail.com>
6382
6383 * lisp.h (Qdelete_directory_internal):
6384 Declare, instead of Qdelete_directory.
6385
6386 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6387
9d28c33e
SM
63882009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6389
6390 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6391
9d8f3bd9
MA
63922009-10-01 Michael Albinus <michael.albinus@gmx.de>
6393
9d28c33e 6394 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6395 Fdelete_directory. It is not a command anymore. It has no file
6396 name handler.
6397
9694740b
SM
63982009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6399
6400 * xdisp.c (get_next_display_element): Use an enum in last change.
6401
748e162f
KH
64022009-09-28 Kenichi Handa <handa@m17n.org>
6403
9694740b 6404 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6405 unibyte_display_via_language_environment in handling
6406 Vnobreak_char_display.
6407
17efd58d
AR
64082009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6409
6410 * nsterm.h (ns_app_name): New extern variable.
6411
6412 * nsterm.m (ns_app_name): New variable.
6413 (ns_term_init): Set and use it.
6414 (ns_term_shutdown): Use it.
6415
6416 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6417 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6418
6419 * nsfns.m (ns_set_name_iconic, ns_set_name)
6420 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6421 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6422
9694740b
SM
6423 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6424 Remove double-casting in client_data comparison.
31c2d412 6425
3208cb35
YM
64262009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6427
6428 * keyboard.c (make_lispy_event): Remember last wheel direction.
6429 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6430
b7d552d6
GM
64312009-09-26 Glenn Morris <rgm@gnu.org>
6432
6433 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6434 internal.elc. Add term/pc-win.elc.
6435 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6436 term/x-win.elc.
6437 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6438 term/w32-win.elc.
6439 (NS_SUPPORT): New.
6440 (lisp): Add NS_SUPPORT.
6441 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6442
4ff670a8
DR
64432009-09-25 David Reitter <david.reitter@gmail.com>
6444
6445 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6446 on Mac OS X 10.6+ (bug#4513).
6447
feabfb6c
JB
64482009-09-24 Juanma Barranquero <lekktu@gmail.com>
6449
6450 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6451 some parts of Emacs code (like font selection) don't grok them.
6452 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6453
de59072a
AS
64542009-09-24 Andreas Schwab <schwab@redhat.com>
6455
6456 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6457
a489517b
JB
64582009-09-24 Juanma Barranquero <lekktu@gmail.com>
6459
6460 * dired.c (Fdirectory_files): Fix typo in docstring.
6461
0592970c
AR
64622009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6463
6464 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6465 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6466 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6467 under GNUstep.
6468 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6469
6470 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6471 glyph advancement.
6472
48e8a88b
AR
64732009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6474
6475 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6476 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6477
6478 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6479 deleted (bug #4492).
6480
e14f0a78
AR
6481 * nsfont.m (Vns_reg_to_script): New lisp variable.
6482 (syms_of_nsfont): Declare it.
6483 (ns_registry_to_script): New function.
6484 (ns_get_req_script): Call it.
6485 (ns_findfonts): Don't give up on non-unicode registry.
6486
6487 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6488
5b650faa
SM
64892009-09-20 Tom Tromey <tromey@redhat.com>
6490
6491 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6492 batch mode (bug#4228).
6493
a489517b 64942009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6495
6496 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6497 carefully. (Bug #4339)
0bae4e09 6498
fcfe06f3
CY
64992009-09-18 Chong Yidong <cyd@stupidchicken.com>
6500
d798ba87 6501 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6502
31642728
AR
65032009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6504
6505 * emacs.c (inhibit_x_resources): Update doc string for NS.
6506 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6507 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6508
6509 * nsterm.h (ns_no_defaults): Remove.
6510
6511 * nsterm.m (ns_no_defaults): Remove.
6512 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6513 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6514 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6515 don't update the NSWindow itself.
6516 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6517 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6518
6519 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6520 ns_use_qd_smoothing.
6521
6522 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6523 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6524 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6525 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6526
8686ac71
JB
65272009-09-17 Juanma Barranquero <lekktu@gmail.com>
6528
6529 * emacs.c (inhibit_x_resources): New variable.
6530 (main) [HAVE_NS]: Don't process --quick command line option.
6531 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6532
6533 * lisp.h (inhibit_x_resources): Declare it extern.
6534
6535 * w32reg.c (x_get_string_resource):
6536 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6537
e227ba05
EZ
65382009-09-17 Eli Zaretskii <eliz@gnu.org>
6539
362654a6
JB
6540 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6541 Add lisp/term/internal.elc.
e227ba05 6542
742d40e8
SM
65432009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6544
6545 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6546 (bug#4461).
6547
005bd5a2
DN
65482009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6549
6550 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6551
6552 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6553 (OBJECTS_MACHINE): Remove, unused.
6554
f9af9719
SM
65552009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6556
6557 * frame.c (x_get_resource_string): Remove unused.
6558
0307c7d2
JD
65592009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6560
6561 * xterm.c (x_new_font): Call change_frame_size before calling
6562 x_set_window_size, in case frame size won't change.
6563
6564 * frame.c (x_set_font): Remove dead code.
6565
428b13d6
SM
65662009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6567
6568 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6569
5766c380
SM
65702009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6571
6572 * lread.c (Fload): Don't output a message after loading an obsolete
6573 package any more (done in Lisp now).
6574
2fd0161b
CY
65752009-09-12 Chong Yidong <cyd@stupidchicken.com>
6576
6577 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6578
bc5e75b6
SM
65792009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6580
6581 * keymap.c (Fwhere_is_internal): Use nconc2.
6582
c31c985e
AM
65832009-09-11 Alan Mackenzie <acm@muc.de>
6584
6585 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6586 batch mode.
6587
78012bd2
AS
65882009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6589
6590 * xdisp.c (display_mode_element): Detect cycles.
6591
9d889332
SM
65922009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6593
6594 * keymap.c (where_is_internal): Don't erroneously return nil right after
6595 filling the cache.
6596 (where_is_internal_1): Fix up typo.
6597
7ab5d780
GM
65982009-09-11 Glenn Morris <rgm@gnu.org>
6599
6600 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6601 share a common doc-string.
6602
5238a749
SM
66032009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6604
66d77eda
SM
6605 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6606 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6607
5238a749
SM
6608 * keymap.c (QCadvertised_binding): New constant.
6609 (syms_of_keymap): Initialize it.
6610 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6611 if applicable.
6612
19f48442
SM
66132009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6614
50d4ba39
SM
6615 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6616 (parse_menu_item): Streamline since bindings are recomputed all the
6617 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6618 more and don't support lmenu's menu-alias any more either.
6619
a88a5372
SM
6620 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6621 (where_is_internal): Strip it down to only traverse the keymaps.
6622 Move the cache handling from Fwhere_is_internal to here.
6623 (Fwhere_is_internal): Move the handling of remapping and the choice of
6624 the best binding from where_is_internal to here.
6625 Unify the cached/noncached paths, so remapping is also handled
6626 correctly when the cache is used, and so the cache can be used to
6627 speed up remap-handling when applicable.
6628 Give preference to non-remapped bindings.
6629 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6630 non-remapped bindings.
6631 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6632 command remapping.
6633
19f48442
SM
6634 * xdisp.c (display_mode_element): Move list length limit from 50 to
6635 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6636
599498c3 66372009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6638
6639 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6640
f9b7b5ac
SM
66412009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6642
a53af587
JB
6643 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6644 (Bug#4334)
6645
f9b7b5ac
SM
6646 * keymap.c (where_is_internal): Filter out shadowed remappings.
6647 Assume that where_is_internal returns unshadowed bindings to simplify
6648 the code and get rid of the gotos. Use ASIZE.
6649
04f4b72d
JD
66502009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6651
4da146f2
JD
6652 * xterm.c (x_focus_changed): If we get a focusout and pointer
6653 is invisible, make it visible.
6654
04f4b72d
JD
6655 * xterm.h: Remove condition for declaration of
6656 x_*_window_to_frame.
6657
7cef7ce3
SM
66582009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6659
6660 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6661 initial terminal as well.
6662
a54fa5b7
JD
66632009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6664
6665 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6666 x_menubar_window_to_frame.
a54fa5b7 6667
50426a04 6668 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6669 (XTmouse_position): Do not return valid positions
6670 for clicks in the menubar and the toolbar for Gtk+.
6671
6672 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6673 if the widget for the event has the same top level as a frame,
6674 return the frame.
6675 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6676 internal windows, bug #4122.
6677 (x_non_menubar_window_to_frame): Remove.
6678
5a021dd0
GM
66792009-09-02 Glenn Morris <rgm@gnu.org>
6680
6681 * buffer.c (default-major-mode): Move most of the doc from here...
6682 (major-mode): ... to here.
6683
548fe2f3
NR
66842009-08-30 Nick Roberts <nickrob@snap.net.nz>
6685
6686 * process.c (wait_reading_process_output): Keep the descriptor
6687 when pty is used by a non-child process, e.g., in I/O buffer of
6688 GDB this allows inferior to be restarted.
6689
e0840eef
EZ
66902009-08-29 Eli Zaretskii <eliz@gnu.org>
6691
6692 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6693 both branches into one.
6694
82e98df4
SM
66952009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6696
6697 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6698 (main): Use enable-multibyte-characters rather than
6699 default-enable-multibyte-characters. Output a warning message when
6700 running a unibyte session.
6701
890617cb
YM
67022009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6703
6704 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6705 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6706 (copy_data_segment): Also copy __program_vars section.
6707 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6708 (dump_it) [LC_DYLD_INFO]: Use it.
6709
6710 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6711
e7adeadc
EZ
67122009-08-28 Eli Zaretskii <eliz@gnu.org>
6713
6714 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6715 $(SRC)/buildobj.h.
6716 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6717 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6718 $(SRC)/buildobj.h.
6719 (clean): Add buildobj.h.
6720
3ed8bbdc
TZ
67212009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6722
6723 * print.c (print_object): Set escapeflag to 1 when printing
6724 hashtable keys and values.
6725
155a6764
SM
67262009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6727
6728 * lread.c (read_integer): Use doubles (and potentially return a float
6729 number) as we do in string-to-number.
6730 (read1): Use strtol to read integers, signal errors on strtol's
6731 overflow and use floats if strtol's output is too large for
6732 Elisp integers.
6733
877610de
EZ
67342009-08-27 Eli Zaretskii <eliz@gnu.org>
6735
6736 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6737 (make-buildobj-SH): Fix last change.
6738 (SRC): Move to before where it's first used.
6739
ef73e7be
KH
67402009-08-27 Kenichi Handa <handa@m17n.org>
6741
550c8289
KH
6742 * process.c (send_process): Use encode_coding_object instead of
6743 encode_coding_string to perform eol-conversion even if the string
6744 is unibyte.
6745
60afa08d
KH
6746 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6747 character.
6748
ef73e7be 6749 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6750 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6751
7b3a82d7
DN
67522009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6753
5654bf63
DN
6754 * callproc.c (Fcall_process): Remove always true #if.
6755
7b3a82d7
DN
6756 * lisp.h: Replace #if 0 code for checking with text pointing to
6757 the --enable-checking configure flag.
6758
6759 * emacs.c (main): Mention the --enable-profiling configure flag
6760 instead of using CFLAGS.
6761
878bde49
KR
67622009-08-26 Ken Raeburn <raeburn@raeburn.org>
6763
6764 * Makefile.in (buildobj.h): New target.
6765 (doc.o): Depend on it.
6766 (temacs${EXEEXT}): Don't generate buildobj.lst.
6767 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6768 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6769 ($(BLD)/doc.$(O)): Depend on it.
6770 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6771 provided by Eli Zaretskii.)
6772 ($(TEMACS)): Don't generate buildobj.lst.
6773 * doc.c: Include buildobj.h.
6774 (buildobj): New static variable.
6775 (Fsnarf_documentation): Use it, instead of opening and reading
6776 buildobj.lst.
6777
1574224c
MA
67782009-08-25 Michael Albinus <michael.albinus@gmx.de>
6779
6780 * dbusbind.c (Fdbus_call_method)
6781 (Fdbus_call_method_asynchronously): Use English numeric format for
6782 timeout values in doc string.
6783
d9da2f45
KH
67842009-08-25 Kenichi Handa <handa@m17n.org>
6785
ef73e7be
KH
6786 * alloc.c (mark_char_table): New function.
6787 (mark_object): Use mark_char_table for a char-table.
6788
d9da2f45
KH
6789 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6790 (CHAR_TABLE_REF): Use it.
6791
c8edcc01
KR
67922009-08-23 Ken Raeburn <raeburn@raeburn.org>
6793
6794 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6795 before invoking the newly build emacs to check for load-path
6796 shadowing.
6797
7763401b
GM
67982009-08-22 Glenn Morris <rgm@gnu.org>
6799
6800 * Makefile.in (bootstrap_exe): New variable.
6801 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6802 Use ${bootstrap_exe}.
6803
729eadda
EZ
68042009-08-22 Eli Zaretskii <eliz@gnu.org>
6805
6806 * coding.h (encode_coding_string): Don't encode unibyte strings.
6807 (Bug#4047)
6808
eb4c6ace
MA
68092009-08-22 Michael Albinus <michael.albinus@gmx.de>
6810
6811 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6812
6813 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6814 intended as hotfix only.
6815 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6816
36e34d1b
AR
68172009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6818
6819 * nsterm.m (ns_get_color): Update documentation properly for last
6820 change, and clean up loose ends in the code left by it. Fix
6821 longstanding bug with 16-bit hex parsing, and add support for
6822 yet another X11 format (rgb:r/g/b) for compatibility.
6823 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6824 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6825
f983eb8a
SM
68262009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6827
6828 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6829
3f56d3c6
MA
68302009-08-20 Michael Albinus <michael.albinus@gmx.de>
6831
6832 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6833 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6834 (xd_initialize, xd_pending_messages): Check, whether
6835 $DBUS_SESSION_BUS_ADDRESS is set.
6836
fb641d68
YM
68372009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6838
6839 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6840
6841 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6842
cf59a374
GM
68432009-08-20 Glenn Morris <rgm@gnu.org>
6844
6845 * emacs.c (system-type): Doc fix.
6846
1373f3be
SM
68472009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6848
6849 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6850 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6851
058ed861
MA
68522009-08-18 Michael Albinus <michael.albinus@gmx.de>
6853
1373f3be
SM
6854 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6855 New functions.
058ed861
MA
6856 (xd_initialize): Revert change from 2009-08-16.
6857
563a866e 68582009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6859
6860 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6861 font-group vector, return nil.
5fc05db0 6862
e42bdf01
CY
68632009-08-17 Chong Yidong <cyd@stupidchicken.com>
6864
6865 * process.c (status_notify): Don't perform redisplay.
6866 (Fdelete_process, list_processes_1, process_send_signal):
6867 Expliticly perform redisplay.
6868 (wait_reading_process_output): Always check process status, but
6869 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6870
4230ab74
KR
68712009-08-17 Ken Raeburn <raeburn@raeburn.org>
6872
1373f3be 6873 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6874 (XFLOAT_INIT): New macro for storing a float value.
6875 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6876 * fns.c (sxhash): Copy out the value of a float in order to
6877 examine its bytes.
6878 * dbusbind.c (xd_append_arg): Likewise.
6879
4230ab74
KR
6880 * emacs.c (main): Don't call syms_of_data twice.
6881
a0645cdd
MA
68822009-08-16 Michael Albinus <michael.albinus@gmx.de>
6883
6884 * dbusbind.c (xd_initialize): Add connection file descriptor to
6885 input_wait_mask, in order to let select() detect, whether a new
6886 message has been arrived.
ca4f31ea 6887 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6888
485db0ba
MA
68892009-08-15 Michael Albinus <michael.albinus@gmx.de>
6890
1373f3be
SM
6891 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6892 New functions.
485db0ba
MA
6893
6894 * lisp.h (xd_pending_messages): Declare.
6895
6896 * keyboard.c (readable_events): Call xd_pending_messages.
6897
b5b98ff4
CY
68982009-08-15 Chong Yidong <cyd@stupidchicken.com>
6899
1373f3be 6900 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6901
f8354c6e
CY
6902 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6903
b5b98ff4
CY
6904 * buffer.c (set_buffer_internal_1)
6905 (swap_out_buffer_local_variables): Check for unbound local
6906 variables (Bug#4138).
6907
8b9fc636
EZ
69082009-08-14 Eli Zaretskii <eliz@gnu.org>
6909
6910 * process.c (create_pty): Fix last change.
6911
ce959360
CY
69122009-08-13 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6915 (xbm_load_image): Caller changed.
64b807c9 6916 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6917
c7baf7e9
NR
69182009-08-13 Nick Roberts <nickrob@snap.net.nz>
6919
6920 * process.c (create_pty): New function.
6921 (Fstart_process): Use it to allow Emacs to just associate a pty
6922 with the buffer. See associated change in gdb-mi.el.
6923 (list_processes_1): Deal with no program name.
6924 (start_process_unwind): Use pid == -2 to mean no process.
6925
1ac9108a
SM
69262009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6927
6928 * cmds.c (nonundocount): New global variable.
6929 (keys_of_cmds): Initialize it.
6930 (Fself_insert_command): Use it to combine upto 20 sequential chars
6931 into a single undo entry, just like the Qself_insert_command code in
6932 keyboard.c does.
6933 Call frame_make_pointer_invisible, also like the Qself_insert_command
6934 code in keyboard.c does.
6935 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6936 than its own local replacement for it.
6937
e267324c
KR
69382009-08-10 Ken Raeburn <raeburn@raeburn.org>
6939
1ac9108a 6940 * fns.c (concat): Don't re-set string length to its current value.
77437343 6941
1ac9108a
SM
6942 * coding.h (decode_coding_string, encode_coding_string):
6943 Use SBYTES macro.
f0bed503 6944
1ac9108a 6945 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6946 (doprnt): Merge with doprnt1, discarding lispstrings code.
6947 * lisp.h (doprnt_lisp): Don't declare.
6948
416e006d
JL
69492009-08-07 Juri Linkov <juri@jurta.org>
6950
6951 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6952
6f7d5780
DN
69532009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6954
6955 * print.c (syms_of_print): Undo previous change.
6956
f19a0f5b
TZ
69572009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6958
6959 * lread.c (read1, syms_of_lread): Read hashtables back from the
6960 readable format.
6961
6962 * print.c (print_preprocess, print_object): Print hashtables fully
6963 and readably.
6964 (syms_of_print): Provide 'hashtable-print-readable.
6965
b9173dc2
AR
69662009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6967
6968 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6969 no family set.
6970 (nsfont_open): Handle case when entity has no family.
6971
1586503c
AR
69722009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6973
6974 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6975 element, not a list, for match case.
6976
087048cd
KH
69772009-07-28 Kenichi Handa <handa@m17n.org>
6978
6979 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6980 rigidly.
6981
6982 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6983 font_parse_xlfd. Check font properties more rigidly.
6984
780c2506
DN
69852009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6986
31fd7c5c
JB
6987 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6988 bsd-common.h.
780c2506 6989
a8c0cc18
KH
69902009-07-27 Kenichi Handa <handa@m17n.org>
6991
6992 * xfaces.c (face_with_height): Call font_clear_prop.
6993
4fbe2306
CY
69942009-07-26 Chong Yidong <cyd@stupidchicken.com>
6995
111d9af3
CY
6996 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6997
6998 * xterm.c (x_term_init): Use Qx.
6999
4fbe2306
CY
7000 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7001
1ac9108a 7002 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7003 (ns_get_color): Revert 2009-07-16 change.
7004
beb0b7f9
EZ
70052009-07-25 Eli Zaretskii <eliz@gnu.org>
7006
7007 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7008 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7009
2baf5e76
KR
70102009-07-25 Ken Raeburn <raeburn@raeburn.org>
7011
1ac9108a
SM
7012 * coding.h (decode_coding_string, encode_coding_string):
7013 Use SCHARS macro.
8890e5f5 7014
2baf5e76 7015 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7016 (load_depth): Delete.
2baf5e76
KR
7017 (Qload_in_progress): New variable.
7018 (load_unwind): Don't reference load_depth or load_in_progress.
7019 (Fload): Likewise; specbind Qload_in_progress instead.
7020 (init_lread): Don't initialize load_depth.
7021 (syms_of_lread): Initialize and protect Qload_in_progress.
7022
1395c6f5
AR
70232009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7024
7025 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7026
4e2f36cf
AR
70272009-07-23 Yavor Doganov <yavor@gnu.org>
7028
7029 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7030
5dd9a6f7
AR
70312009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7032
7033 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7034 Bugs 3792, 3720, 2402.
7035 (ns_lookup_indexed_color): Check for bad index.
7036 (ns_index_color): Init unused slot to 0.
7037 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7038 Bug 3714, possibly 3082.
5dd9a6f7 7039
c902b920
JR
70402009-07-22 Jason Rumney <jasonr@gnu.org>
7041
1ac9108a
SM
7042 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7043 Position IME window at cursor (Bug#2570).
c902b920
JR
7044 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7045 (globals_of_w32fns): Dynamically load functions required above.
7046
7047 * w32term.c (w32_draw_window_cursor): Send message to reposition
7048 any IME window.
7049
090101cf
CY
70502009-07-21 Chong Yidong <cyd@stupidchicken.com>
7051
7052 * fileio.c: Revert 2009-07-16 changes.
7053 (Vauto_save_include_big_deletions): New variable.
7054 (Fdo_auto_save): Disable auto-save only if
7055 auto-save-include-big-deletions is nil.
7056
e6583e3d
CY
70572009-07-21 Chong Yidong <cyd@stupidchicken.com>
7058
7059 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7060 the overflowed pixels into account (Bug#3879).
7061
ece435a5
KR
70622009-07-21 Ken Raeburn <raeburn@raeburn.org>
7063
7064 * lread.c (load_depth): New variable.
7065 (Fload, load_unwind, init_lread): Set it to the load recursion
7066 depth; set load_in_progress as a simple boolean based on the
7067 current load_depth. (Bug#3892)
7068
40b2d973
AR
70692009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7070
7071 * nsfont.m (ns_has_attribute): Remove.
7072 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7073
10be7e0d
JL
70742009-07-18 Juri Linkov <juri@jurta.org>
7075
7076 * process.c (Fset_process_query_on_exit_flag): Mention killing
7077 a buffer in docstring.
7078
fa055055
KH
70792009-07-17 Kenichi Handa <handa@m17n.org>
7080
7081 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7082
042f7b69
YM
70832009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7084
7085 * nsfns.m (Fns_set_alpha): Remove function.
7086 (syms_of_nsfns): Don't defsubr it.
7087
7088 * nsterm.m (ns_get_color): Remove incompatible color formats.
7089 (ns_color_to_lisp): Generate #rrggbb color format string.
7090
4be941e3
RS
70912009-07-16 Richard Stallman <rms@gnu.org>
7092
7093 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7094 (Fset_buffer_auto_saved): Handle save_length = -2.
7095
4e6b227d
CY
70962009-07-16 Chong Yidong <cyd@stupidchicken.com>
7097
7098 * xterm.c (Qx_gtk_map_stock): New var.
7099
7100 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7101 of calling intern each time.
7102
a1856973
YM
71032009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7104
7105 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7106 does tiling.
7107
7108 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7109
497e54d8
KH
71102009-07-14 Kenichi Handa <handa@m17n.org>
7111
72d36834
KH
7112 * font.c (font_vconcat_entity_vectors): New function.
7113 (struct font_sort_data): New member font_driver_preference.
7114 (font_compare): Check font_driver_preference.
7115 (font_sort_entities): The format of the first argument changed.
7116 (font_delete_unmatched): Likewise.
7117 (font_list_entities): The return type changed.
7118 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7119 (font_find_for_lface): Adjuste for the above changes.
7120 Don't suppress the checking of C even if the repertory supports it.
7121 (Flist_fonts): Adjust for the above changes.
72d36834 7122
1ac9108a
SM
7123 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7124 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7125 Reject a font who has adstyle property that is different from a
7126 langname derived from registry property.
1ac9108a 7127 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7128
b6046155
EZ
71292009-07-13 Eli Zaretskii <eliz@gnu.org>
7130
7131 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7132 local copy of dirfilename.
7133
fb6b6049
KH
71342009-07-13 Kenichi Handa <handa@m17n.org>
7135
e2402a5e
KH
7136 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7137 against max_char.
7138
fb6b6049
KH
7139 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7140 calling XSYMBOL (sym).
7141
65156807
EZ
71422009-07-11 Eli Zaretskii <eliz@gnu.org>
7143
1ac9108a
SM
7144 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7145 New function.
7146 (directory_files_internal) [WINDOWSNT]:
7147 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7148 the filesystem of the directory is fast or slow.
7149
7150 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7151 file name.
7152 (is_slow_fs): New function.
7153 (stat): Use it to determine whether to issue more system calls to
7154 get accurate file attributes, when w32-get-true-file-attributes is
7155 `local'.
7156
e0ab5fcf
JD
71572009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7158
7159 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7160 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7161 parameter font-parameter as default to the font dialog.
7162
784ceded
KH
71632009-07-10 Kenichi Handa <handa@m17n.org>
7164
7165 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7166
fb8edc0b
EZ
71672009-07-09 Eli Zaretskii <eliz@gnu.org>
7168
1ac9108a 7169 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7170
fb8edc0b
EZ
7171 * w32.c (stat): Treat UNC file names as residing on remote
7172 drives. (Bug#3542)
7173
635c75b1
KH
71742009-07-09 Kenichi Handa <handa@m17n.org>
7175
7176 * fontset.c (fontset_find_font): Fix previous change.
7177
c1d5ce94
MA
71782009-07-08 Michael Albinus <michael.albinus@gmx.de>
7179
7180 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7181 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7182 error flag.
7183
edb61b39
KH
71842009-07-08 Kenichi Handa <handa@m17n.org>
7185
374bf7e4
KH
7186 * fontset.c (fontset_find_font): Fix the logic of handling
7187 charset_matched.
7188 (font_for_char): Delete unused var.
7189 (generate_ascii_font_name): Delete it.
7190
edb61b39
KH
7191 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7192
7193 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7194 (encode_coding_sjis): Fix the code range check.
7195
0f3f018c
CY
71962009-07-07 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7199 (Fexpand_file_name): Copy string data properly (Bug#3772).
7200
fcaf6f3a
JD
72012009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7202
7203 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7204 first MapNotify.
7205
6809ca75
KH
72062009-07-07 Kenichi Handa <handa@m17n.org>
7207
7208 * character.h (unibyte_has_multibyte_table): Delete extern.
7209 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7210
7211 * charset.c (Fset_charset_priority): Update charset_unibyte.
7212 (syms_of_charset): Initialize charset_unibyte.
7213
7214 * character.c (unibyte_has_multibyte_table): Delete it.
7215 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7216 charset_unibyte.
7217 (multibyte_char_to_unibyte_safe): Likewise.
7218 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7219
1ac9108a 7220 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7221 (x_produce_glyphs): Likewise.
7222
7223 * .gdbinit (xcharset): Fix the treating $arg0.
7224
ad9e2d54
EZ
72252009-07-04 Eli Zaretskii <eliz@gnu.org>
7226
7227 Emulation of `getloadavg' on MS-Windows.
50426a04 7228 * w32.c: Include float.h.
ad9e2d54
EZ
7229 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7230 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7231 (get_native_system_info, get_system_times): New functions.
7232 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7233 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7234 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7235 g_b_init_get_system_times, and num_of_processors.
7236
0a3472c7
JR
72372009-07-03 Jason Rumney <jasonr@gnu.org>
7238
7239 * w32term.c (w32_initialize): Use standard types.
7240
80904120
EZ
72412009-07-03 Eli Zaretskii <eliz@gnu.org>
7242
7243 * dired.c (Ffile_attributes): Decode user and group names by the
7244 locale's encoding. (Bug#3443)
7245
6978862d
DN
72462009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7247
f8d23104
DN
7248 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7249 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7250
7251 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7252
7253 * term.c (init_tty): Remove spurious #ifdef.
7254
6978862d
DN
7255 * m/mips.h: Mention this file is also used for netbsd.
7256 * m/pmax.h: Remove file.
7257
e044e4fc
JD
72582009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7259
7260 * xterm.h (struct x_display_info): Add invisible_cursor.
7261 (struct x_output): Add current_cursor.
7262
7263 * xterm.c (XTtoggle_invisible_pointer): New function.
7264 (x_define_frame_cursor): Don't define cursor if invisible or the
7265 same as before. Set current_cursor.
7266 (x_create_terminal): Set toggle_invisible_pointer_hook.
7267
7268 * xfns.c (make_invisible_cursor): New function.
7269 (x_set_mouse_color): Call make_invisible_cursor.
7270 Set current_cursor.
7271 (x_window): Set current_cursor.
7272
7273 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7274
7275 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7276 inserting a character.
7277 (read_avail_input): Call frame_make_pointer_visible.
7278
7279 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7280 (frame_make_pointer_invisible, frame_make_pointer_visible):
7281 New functions.
e044e4fc
JD
7282 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7283
7284 * frame.h: Declare frame_make_pointer_invisible and
7285 frame_make_pointer_visible.
7286 (struct frame): Add pointer_invisible.
7287
574c8efa
JD
72882009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7289
7b507248
JD
7290 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7291 frame isn't visible.
7292 (xg_frame_resized): If width/height is -1, get size of window
7293 from X server.
7294
7295 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7296 for MapNotify.
7297
835bdaa7 7298 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7299 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7300 (flush_and_sync): Reintroduce.
574c8efa 7301
3f1c6666 73022009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7303
31fd7c5c 7304 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7305
7306 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7307 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7308
7309 * frame.h: Declare Qsticky.
7310
cad9ef74
JD
7311 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7312
7313 * nsfns.m (ns_frame_parm_handlers): Ditto.
7314
7315 * frame.c: Declare Qsticky.
7316 (frame_parms): Add sticky.
7317
7318 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7319
7320 * xterm.h: Declare x_set_sticky.
7321
7322 * xterm.c (x_set_sticky): New function.
7323
69b16610
JD
7324 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7325 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7326 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7327
7328 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7329
7330 * frame.c: Qmaximized is new.
7331 (x_set_frame_parameters): Do not handle fullscreen specially.
7332 Only set width and height if explicitly set.
7333 (x_set_fullscreen): Handle Qmaximized.
7334 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7335 (syms_of_frame): Initialize Qmaximized.
7336
1ac9108a
SM
7337 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7338 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7339
7340 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7341 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7342 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7343 set gravity to NorthWestGravity when USE_GTK.
7344 (set_wm_state): New function.
31fd7c5c 7345 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7346 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7347 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7348 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7349 to x_real_positions and x_fullscreen_adjust.
7350
7351 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7352 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7353 flush_and_sync.
7354 (xg_height_changed): New function.
7355 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7356 and gtk_window_set_policy. Set frame gravity after parsing the
7357 geometry string.
3f1c6666
JD
7358 (xg_update_frame_menubar, free_frame_menubar)
7359 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7360 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7361 Remove calls to xg_frame_set_char_size.
7362
fd503d99
KH
73632009-07-01 Kenichi Handa <handa@m17n.org>
7364
7365 * keyboard.c (decode_keyboard_code): New function.
7366 (tty_read_avail_input): Decode the input bytes if necessary.
7367
1ac9108a
SM
7368 * coding.c (setup_coding_system):
7369 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7370 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7371 use Qno_conversion.
7372
24ed93fb
YM
73732009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7374
7375 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7376
99061dfc
CY
73772009-06-30 Chong Yidong <cyd@stupidchicken.com>
7378
1ac9108a 7379 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7380
ff90fbde
JR
73812009-06-30 Jason Rumney <jasonr@gnu.org>
7382
7383 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7384 is already loaded.
7385 Set user model ID if supported (bug#1849).
7386
5f445726
JM
73872009-06-29 Jim Meyering <meyering@redhat.com>
7388
7389 Remove useless if-before-xfree test.
7390 * nsfont.m (nsfont_close): Remove useless test.
7391 * term.c (delete_tty): Likewise.
7392 * w32.c (system_process_attributes): Likewise.
7393 * w32font.c (w32font_close): Likewise.
7394 * xfaces.c (x_free_gc): Likewise.
7395 * xselect.c (buffer): Likewise.
7396
b9607587
AS
73972009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7398
7399 * process.c (send_process): Keep decoded string in a local
7400 variable and protect it from GC. (Bug#3521)
7401
89ba96f4
EZ
74022009-06-28 Eli Zaretskii <eliz@gnu.org>
7403
7404 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7405 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7406
098a1589
CY
74072009-06-28 Chong Yidong <cyd@stupidchicken.com>
7408
485422be
CY
7409 * xdisp.c (start_display, handle_face_prop)
7410 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7411 (redisplay_window, try_window_id, produce_image_glyph):
7412 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7413
098a1589
CY
7414 * xterm.c (x_update_window_begin, x_new_focus_frame)
7415 (x_scroll_bar_handle_click, handle_one_xevent)
7416 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7417 (x_make_frame_visible, x_make_frame_invisible)
7418 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7419 code chunks that are now obsolete.
7420
78c38319
MA
74212009-06-28 Michael Albinus <michael.albinus@gmx.de>
7422
7423 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7424 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7425 for hours, when optimzation is enabled.
7426 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7427 (xd_read_message): Make them static.
7428
4189ed40
CY
74292009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7430
7431 * term.c (turn_on_face): Allow simultaneously bold and dim
7432 terminal faces (Bug#3530).
7433
cd9b5e16
CY
74342009-06-27 Chong Yidong <cyd@stupidchicken.com>
7435
4e23bedb
CY
7436 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7437
cd9b5e16
CY
7438 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7439 truncation glyphs (Bug#3686).
7440
07cc3c35
GM
74412009-06-27 Glenn Morris <rgm@gnu.org>
7442
7443 * m/pmax.h: Restore file, with only netbsd portions.
7444
31fd7c5c 74452009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7446
cd9b5e16 7447 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7448
42d4a64f
KH
74492009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7450
7451 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7452 the arg FORCE_SYMBOL.
7453
930fe55b 74542009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7455
7456 * fontset.c (fontset_find_font): When a usable rfont_def is found
7457 in a fallback font-group, make it the first element of the group.
7458
57ebc3fd
CY
74592009-06-24 Chong Yidong <cyd@stupidchicken.com>
7460
7461 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7462
f084f942
KH
74632009-06-24 Kenichi Handa <handa@m17n.org>
7464
7465 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7466 set for C.
7467 (fontset_font): Record the availability of a font for C both in
7468 the realized fontsets of the current one and the default one.
7469
2f686c87
DN
74702009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7471
7472 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7473 conditional, it is always defined on AIX.
7474
666e158e
MB
74752009-06-23 Miles Bader <miles@gnu.org>
7476
7477 * window.c (Vrecenter_redisplay): New variable.
7478 (syms_of_window): Initialize it.
7479 (Qtty): New extern declaration.
7480 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7481
c6da7cd2
JM
74822009-06-23 Jim Meyering <meyering@redhat.com>
7483
1ac9108a
SM
7484 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7485 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7486 pointer dereferences are guaranteed to be valid.
c6da7cd2 7487
678dca3d
KH
74882009-06-23 Kenichi Handa <handa@m17n.org>
7489
74d75424
KH
7490 * emacs.c (main): Call init_font ().
7491
7492 * font.h (Vfont_log): Extern it.
7493 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7494
7495 * font.c (font_sort_entities, font_list_entities)
7496 (font_matching_entity, font_open_entity)
7497 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7498 (Vfont_log): Delete static.
7499 (font_log_env_checked): Delete this variable.
7500 (font_add_log): Don't check font_log_env_checked.
7501 (font_deferred_log): Check Vfont_log.
7502 (init_font): New function.
7503
678dca3d
KH
7504 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7505
7506 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7507
7508 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7509
7510 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7511
7512 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7513 (face_for_char): Don't call font_deferred_log here.
7514 (font_for_char): Likewise.
7515
8a668709
CY
75162009-06-22 Chong Yidong <cyd@stupidchicken.com>
7517
9a01ee33
CY
7518 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7519 rather than its background_width for drawing the overline and
7520 underline (Bug#489).
7521
7522 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7523 rather than its background_width for drawing the overline and
7524 underline (Bug#489).
ec7c9926
CY
7525 (xg_default_icon_file): New variable.
7526 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7527 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7528
8a668709
CY
7529 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7530 (load_overlay_strings): Remove externs.
7531 (fast_find_position): Function deleted.
7532 (mouse_face_from_buffer_pos): New function, based on
7533 fast_find_position. Correctly handle before-strings,
7534 display-strings, and after-strings (Bug#1220).
7535 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7536
4d4c02d8
CY
75372009-06-21 Chong Yidong <cyd@stupidchicken.com>
7538
1ac9108a 7539 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7540 (move_it_in_display_line_to, move_it_in_display_line_to)
7541 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7542
70243478
CY
75432009-06-21 Chong Yidong <cyd@stupidchicken.com>
7544
7545 * Branch for 23.1.
7546
13087e59
JR
75472009-06-21 Jason Rumney <jasonr@gnu.org>
7548
7549 * w32term.c (keyboard_codepage): New static variable.
7550 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7551 (w32_read_socket) [WM_CHAR]: Use it to decode character
7552 input (bug#3237).
7553 (w32_initialize): Initialize it.
7554 (codepage_for_locale): New function.
7555
4735b74e
KR
75562009-06-20 Ken Raeburn <raeburn@raeburn.org>
7557
7558 * process.c (status_message): Pass Faset index argument as a lisp
7559 object, so as to work with USE_LISP_UNION_TYPE.
7560
0e727afa
YM
75612009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7562
7563 * coding.c (Ffind_coding_systems_region_internal):
7564 Cache checked characters.
7565
cf299835
KH
75662009-06-18 Kenichi Handa <handa@m17n.org>
7567
1ac9108a 7568 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7569
90f20d94
AS
75702009-06-18 Andreas Schwab <aschwab@redhat.com>
7571
7572 * xdisp.c (redisplay_internal): Check that the frame is still
7573 live after redisplay of its windows.
7574 (redisplay_windows): Check that the window is still live.
7575
7f1faf1c
KH
75762009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7577
7578 * coding.c (detect_coding_utf_16): Fix previous change.
7579
cc13543e
KH
75802009-06-16 Kenichi Handa <handa@m17n.org>
7581
7582 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7583 UTF-16 by checking the dispersion of Eth and Oth bytes.
7584
977b85f4
AS
75852009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7586
7587 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7588
66bd43d1
KH
75892009-06-15 Kenichi Handa <handa@m17n.org>
7590
7591 * process.c (status_message): Fix previous change. Be sure to
7592 decode a localized string.
7593
cb5ca9c5
YM
75942009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7595
7596 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7597 add comment explaining why.
7598
ec7709ba 75992009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7600
ec7709ba 7601 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7602
4b7f335c
AR
76032009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7604
7605 * nsfont.m (ns_attribute_value): Remove.
7606 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7607 (ns_has_attribute): Shrink the normal range.
7608 (ns_findfonts): Don't worry about requested spec in determining
7609 need for synthItal.
e41820ee 7610 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7611
73b26103
SZ
76122009-06-14 Seiji Zenitani <zenitani@mac.com>
7613
7614 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7615
5753e4da
KH
76162009-06-11 Kenichi Handa <handa@m17n.org>
7617
7618 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7619 overhang for the static composition case.
7620
3561b671
KH
76212009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7622
5753e4da
KH
7623 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7624 overhang for the automatic composition case.
7625
3561b671
KH
7626 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7627 composition case.
7628
852bbd41
CY
76292009-06-10 Chong Yidong <cyd@stupidchicken.com>
7630
7631 * xdisp.c (get_next_display_element): When handling wrap-prefix
7632 and line-prefix, treat \n as a control character (bug#3502).
7633
9903d1e6
KH
76342009-06-10 Kenichi Handa <handa@m17n.org>
7635
7636 * font.c (font_parse_family_registry): Fix for one-char foundry.
7637 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7638
0bcbaaaa
CY
76392009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7640
7641 * process.c (status_message): Fix handling of multibyte signal
7642 string (Bug#3499).
7643
40aa3f13
JM
76442009-06-09 Jim Meyering <meyering@redhat.com>
7645
1f80c7e2
CY
7646 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7647 color name is missing.
40aa3f13 7648
72d51285
KH
76492009-06-09 Kenichi Handa <handa@m17n.org>
7650
7651 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7652 FROM-CODE and TO-CODE are codepoints of CHARSET.
7653
c1d04d84
AR
76542009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7655
7656 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7657
76582009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7659
7660 Changes to support :script/:lang/:otf in NS font driver.
7661 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7662 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7663 indicate not part of font driver interface, and change callers.
7664 (ns_get_family): Remove pointless null check.
7665 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7666 ns_spec_to_descriptor, ns_descriptor_to_entity.
7667 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7668 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7669 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7670 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7671 (ns_get_req_script, ns_accumulate_script_ranges)
7672 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7673 New functions.
7674 (nsfont_list, nsfont_match): Use ns_findfonts.
7675 (nsfont_open): Use font descriptor instead of traits.
7676 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7677 (dump_glyphstring): Rename to ns_dump_glyphstring.
7678
c7eb9816
AR
7679 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7680
c1d04d84
AR
7681 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7682
7683 * fontset.c (fontset_from_font): Remove NS-specific code.
7684
ec7709ba 76852009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7686
7687 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7688 nonactive windows.
7689
31fd7c5c 76902009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7691
1ac9108a 7692 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7693
68852c13 76942009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7695
7696 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7697
6756cd1d
CY
76982009-06-07 Chong Yidong <cyd@stupidchicken.com>
7699
7700 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7701 account for the overflowing of newlines into the last glyph on the
7702 display line (Bug#3482).
7703
28bf482a
DR
77042009-06-05 David Reitter <david.reitter@gmail.com>
7705
ec7709ba
JB
7706 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7707 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7708 Fns_selection_exists_p, Fns_selection_owner_p.
7709
fdb55376
JR
77102009-06-03 Jason Rumney <jasonr@gnu.org>
7711
7712 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7713 available. (Bug#3379)
7714
05129fbe
KH
77152009-05-29 Kenichi Handa <handa@m17n.org>
7716
1ac9108a
SM
7717 * coding.c (get_translation_table):
7718 Check Venable_character_translation.
05129fbe 7719
ec7709ba 77202009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7721
ec7709ba
JB
7722 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7723 (x_make_frame_visible): Move frame to front rather than calling
15891144 7724 ns_raise_frame().
ec7709ba 7725 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7726 isn't key window.
ec7709ba 7727 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7728 drawRect may be called by NSView even if the frame is hidden.
7729
ec7709ba
JB
7730 * nsfns.m (Fx_create_frame): Follow other ports in
7731 determining visibility; default to t. Ensure async_visible is set.
15891144 7732
21f73755
EZ
77332009-05-23 Eli Zaretskii <eliz@gnu.org>
7734
7735 * dired.c (Ffile_attributes): Doc fix.
7736
34001e41
CY
77372009-05-22 Chong Yidong <cyd@stupidchicken.com>
7738
7739 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7740
46306a17
SM
77412009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7742
7743 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7744 and xfont_scratch_props.
7745 (syms_of_xfont): Do it here instead.
7746 (xfont_find_ccl_program): Delete, unused.
7747 (xfont_open): Delete unused var `i'.
7748
ef6e0694
KH
77492009-05-21 Kenichi Handa <handa@m17n.org>
7750
7751 * fontset.c (Qlatin): Don't make it static.
7752
46306a17
SM
7753 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7754 New functions.
ef6e0694
KH
7755 (xfont_scripts_cache, xfont_scratch_props): New variables.
7756 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7757 (xfont_list_pattern): Argument changed. Callers changed.
7758 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7759 (xfont_list): Don't reject a font spec with :script property.
7760 (xfont_has_char): Fix setting of encoding.
7761 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7762 xfont_scratch_props.
7763
77642009-05-19 Kenichi Handa <handa@m17n.org>
7765
46306a17 7766 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7767 Callers changed.
7768
77692009-05-18 Kenichi Handa <handa@m17n.org>
7770
7771 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7772
ac71ced7
SM
77732009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7774
7775 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7776 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7777
1c6d1051
YM
77782009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7779
7780 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7781 (x_delete_terminal): Dissociate resource database from display and
7782 then call XrmDestroyDatabase before closing display.
7783
9b9b779c
AR
77842009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7785
7786 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7787 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7788 whether selected frame is viable before raising it (based on patch
7789 by David Reitter), and improve commentary.
7790 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7791
cccd42d5
KH
77922009-05-15 Kenichi Handa <handa@m17n.org>
7793
7794 * font.c (Ffont_spec): Check arguments.
7795
337fbd17
CY
77962009-05-14 Chong Yidong <cyd@stupidchicken.com>
7797
7798 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7799 weight when testing attributes (Bug#3282).
7800
47a6002f
JD
78012009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7802
7803 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7804 what we expect to get in the next ConfigureNotify event.
7805
9cb363db
YM
7806 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7807 before Xft one (Bug#1696).
7808
b9126609
CY
78092009-05-07 David Reitter <david.reitter@gmail.com>
7810
7811 * nsfns.m (Fx_display_planes): Compute bitplanes using
7812 NSBitsPerPixelFromDepth (Bug#3207).
7813
27a69fd9
CY
78142009-05-10 Chong Yidong <cyd@stupidchicken.com>
7815
7816 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7817
00f37552
TTN
78182009-05-10 Ulrich Mueller <ulm@gentoo.org>
7819
7820 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7821
2d82a920
DR
78222009-05-07 David Reitter <david.reitter@gmail.com>
7823
ec7709ba
JB
7824 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7825 Respect mouse face background.
2d82a920 7826
46b0d52d
DR
78272009-05-07 David Reitter <david.reitter@gmail.com>
7828
ec7709ba
JB
7829 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7830 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7831 in ns_update_begin and ns_update_end.
7832
ce1b23bb
SM
78332009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7834
5996e1b7
SM
7835 * nsfns.m (ns_get_screen): Rewrite.
7836 Don't presume selected-frame is of type `ns'.
7837
ba98e3a0
SM
7838 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7839 all drivers.
7840
ce1b23bb
SM
7841 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7842
bcda200f
YM
78432009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7844
7845 * keyboard.h (add_user_signal): Fix typo in extern.
7846
7847 * lisp.h (add_user_signal): Remove extern.
7848
7849 * unexelf.c (unexec): Consider a section to precede the .bss section
7850 if its addresses overlap that of .bss.
7851 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7852 instead of dumping process.
7853
864660a2
SM
78542009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7855
7856 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7857
50da4e56
SM
78582009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7859
7860 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7861
51520a1a
DN
78622009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7863
7864 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7865 any statements.
7866
409ea3a1
AS
78672009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7868
59c4c60f
AS
7869 * process.c (read_process_output): Make sure the current buffer is
7870 always restored.
7871
409ea3a1
AS
7872 * coding.c (record_conversion_result): Don't modify
7873 Vlast_code_conversion_error for successful result.
7874 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7875
56f00ed2
KH
78762009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7877
7878 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7879 (load_charset_map): Remove unnecessary code.
56f00ed2 7880
4491c9d2
DR
78812009-04-30 David Reitter <david.reitter@gmail.com>
7882
35f5b128 7883 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7884 through f24.
7885
6970f632
CY
78862009-04-30 Chong Yidong <cyd@stupidchicken.com>
7887
7888 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7889
7890 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7891 face_at_buffer_position.
7892 (face_before_or_after_it_pos, get_next_display_element)
7893 (note_mouse_highlight): Update face_at_buffer_position call.
7894
7895 * term.c (term_mouse_highlight):
7896 * msdos.c (IT_note_mouse_highlight):
7897 * fontset.c (Finternal_char_font):
35f5b128 7898 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7899
7900 * dispextern.h (face_at_buffer_position): Update prototype.
7901
0c616f63
KH
79022009-04-30 Kenichi Handa <handa@m17n.org>
7903
35f5b128 7904 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7905
ad3aaf33
AS
79062009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7907
7908 * callproc.c (Fcall_process): Fix GC protection. Make sure
7909 current buffer is always restored.
7910
c3c963a0
YM
79112009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7912
7913 * atimer.c (init_atimer): Also clear stopped_atimers.
7914
7915 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7916
7e3386cb
YM
7917 * process.c (create_process): Clean up merger residues of
7918 2008-07-17 change.
7919
91f68422
CY
79202009-04-29 Ulrich Mueller <ulm@gentoo.org>
7921
7922 * lread.c (Vread_circle): New variable.
7923 (read1): Disable recursive read if Vread_circle is nil.
7924
24b34550
KH
79252009-04-29 Kenichi Handa <handa@m17n.org>
7926
7927 * fontset.h (set_default_ascii_font): Delete extern.
7928
7929 * fontset.c (set_default_ascii_font): Delete this unused function.
7930
7931 * frame.c (x_set_font): When ARG is a font-object, check if the
7932 font-object matches with the ASCII font-spec of the frame's
9c358bda 7933 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7934
77bf07e1
AS
79352009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7936
7937 * fns.c (Flocale_info): Protect vector from GC during decoding.
7938
7939 * process.c (Fstart_process): Protect argv strings from GC during
7940 encoding.
7941
2c55aacf
AS
79422009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7943
7944 * sysdep.c: Include <ctype.h>.
7945
b892d3c9
DR
79462009-04-27 David Reitter <david.reitter@gmail.com>
7947
35f5b128 7948 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7949 Remove commented-out code.
7950
9d0644c4
JB
79512009-04-26 Johan Bockgård <bojohan@gnu.org>
7952
7953 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7954
b7053016
JR
79552009-04-25 Jason Rumney <jasonr@gnu.org>
7956
7957 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7958
4e8231f3
YM
79592009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7960
7961 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7962 Swap bytes in short integer if fringe bitmap width > 8.
7963
493dcf2c
KH
79642009-04-23 Kenichi Handa <handa@m17n.org>
7965
7966 * xfaces.c (Fx_list_fonts): If a font size is specified in
7967 PATTERN, set it in returned scalable fonts.
7968
401e9e57
CY
79692009-04-22 Chong Yidong <cyd@stupidchicken.com>
7970
708e05dc
CY
7971 * keyboard.c (Fset_input_meta_mode): Doc fix.
7972
7973 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7974
1ac9108a 7975 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7976
7977 * coding.c (Fterminal_coding_system): Doc fix.
7978
7979 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7980 (Fx_display_pixel_height, Fx_display_planes)
7981 (Fx_display_color_cells, Fx_server_max_request_size)
7982 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7983 (Fx_display_mm_height, Fx_display_mm_width)
7984 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7985 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7986 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7987 (check_x_display_info): Handle terminal objects instead of
7988 terminal ids.
7989
401e9e57
CY
7990 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7991 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7992 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7993 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7994
df80c7f0
KH
79952009-04-21 Kenichi Handa <handa@m17n.org>
7996
5a8f12af 7997 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7998 (font_score): Check AVGWIDTH too.
908567ef 7999
df80c7f0
KH
8000 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8001 worst case.
1ac9108a
SM
8002 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8003 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8004
705af33f
JR
80052009-04-19 Jason Rumney <jasonr@gnu.org>
8006
8007 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8008 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8009
8010 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8011 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8012 get_phys_cursor_geometry.
8013
b71ac3dd 8014 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8015 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8016 using get_phys_cursor_geometry.
8017
8018 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8019 correctly calculated.
8020
dc2933eb
JD
80212009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8022
1ac9108a
SM
8023 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8024 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8025 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8026 is deprecated.
8027
973e7849
AS
80282009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8029
8030 * font.c (font_put_frame_data): Use xfree instead of free.
8031
314d66f4
JB
80322009-04-17 Juanma Barranquero <lekktu@gmail.com>
8033
8034 * w32font.c (Qja, Qko): Remove declarations.
8035 (syms_of_w32font): Don't DEFSYM them.
8036
cf702558
CY
80372009-04-17 Chong Yidong <cyd@stupidchicken.com>
8038
8039 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8040
8041 * font.h (Qja, Qko): Extern them.
8042
8043 * ftfont.c (Qja, Qko): Remove declarations.
8044
8045 * xfont.c (Qja, Qko): Remove declarations.
8046
b50504f5
KH
80472009-04-17 Kenichi Handa <handa@m17n.org>
8048
bde25748
KH
8049 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8050 string from a vector to handle Latin-1 characters correctly.
8051
b50504f5
KH
8052 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8053 entity even if the cache hits.
8054
f4646fff
AS
80552009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8056
8057 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8058 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8059
e7deaab0
AS
8060 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8061 * lisp.h: Adjust prototypes.
8062
0a0e7d49
CY
80632009-04-16 Chong Yidong <cyd@stupidchicken.com>
8064
8065 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8066 change (Bug#3003).
8067
3c908a57
KH
80682009-04-16 Kenichi Handa <handa@m17n.org>
8069
1ac9108a 8070 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8071
8072 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8073 adstyle.
8074
8075 * ftfont.c (Qja, Qko): Don't make them static.
8076 (enum ftfont_cache_for): New enum.
8077 (fc_charset_table): Undo the previous change.
8078 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8079 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8080 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8081 non-scarable font, try to get AVERAGE_WIDTH.
8082 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8083 Change ft_face_cache from a list of a hash-table. Don't check
8084 `ja' and `ko' adstyle here.
8085 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8086 FTFONT_CACHE_FOR_CHARET.
8087 (ftfont_get_charset): Undo the previous change.
1ac9108a 8088 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8089 (ftfont_close): Likewise.
8090 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8091
8092 * font.c (font_sort_entites): Change the meaning of the arg
8093 BEST-ONLY. Don't optimize for VEC of lenght 1.
8094 (font_select_entity): Just return the value of font_sort_entites.
8095
8096 * xfaces.c (merge_face_vectors): Reflect font properties in
8097 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8098 font_clear_prop if a face attribute doesn't change.
8099
3c908a57
KH
8100 * charset.h (charset_ksc5601): Extern it.
8101
8102 * charset.c (charset_ksc5601): New variable.
8103 (Fdefine_charset_internal): Set charset_ksc5601.
8104 (init_charset_once): Initialize charset_ksc5601 to -1.
8105
d65859c3
DN
81062009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8107
8108 * fileio.c (history_delete_duplicates): Remove unused declaration.
8109
8110 * callint.c (history_delete_duplicates): New declaration.
8111 (Fcall_interactively): Remove command history duplicates when
8112 history_delete_duplicates is true.
8113
3ba010e5
EZ
81142009-04-14 Eli Zaretskii <eliz@gnu.org>
8115
8116 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8117
06f19b91
KH
81182009-04-14 Kenichi Handa <handa@m17n.org>
8119
8120 * font.c (Ffont_info): Fix docstring. Fix the second element of
8121 the returned value (bug#2949).
8122
2cce8bfc
CY
81232009-04-14 Chong Yidong <cyd@stupidchicken.com>
8124
8125 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8126
d156542d
KH
81272009-04-14 Kenichi Handa <handa@m17n.org>
8128
8129 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8130 encoding charset is ascii_compatible.
8131
8132 * charset.c (Fdefine_charset_internal): Make charset
8133 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8134 code_offset is 0, and covers all ASCII characters.
8135
86fa089e
SM
81362009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8137
8138 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8139 (ns_string_to_pasteboard_internal):
8140 * nsmenu.m (process_dialog):
8141 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8142 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8143 * lisp.h (Fx_load_color_file): Declare.
8144
a8a3728b
KH
81452009-04-13 Kenichi Handa <handa@m17n.org>
8146
1ac9108a 8147 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8148 (font_select_entity): Suppress the code to optimize for the same
8149 kind of fonts.
8150 (font_load_for_lface): Get a font that supports at least ASCII
8151 characters.
8152
8153 * ftfont.c (Qja, Qko): New variables.
8154 (fc_charset_table): Delete uniquifier data for iso8859-1.
8155 (ftfont_get_latin1_charset): New function.
8156 (get_adstyle_property): New function.
8157 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8158 bitmap fonts.
8159 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8160 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8161 `ko' or `ja'.
8162 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8163 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8164 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8165 property.
8166 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8167 (syms_of_ftfont): DEFSYM Qja and Qko.
8168
483670b5
KH
81692009-04-09 Kenichi Handa <handa@m17n.org>
8170
12b55765
KH
8171 * charset.c (map_charset_chars): For a charset of `superset'
8172 method, fix calculation of code range.
8173
483670b5
KH
8174 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8175 from the list of extra properties.
8176 (font_clear_prop): Be sure to delete `:name' font property.
8177
57d3b93b
KH
81782009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8179
b4b2c2ca
YM
8180 * dispnew.c (redraw_overlapping_rows): Fix detection of
8181 overlapping for topmost and bottommost rows.
8182
1ac9108a 8183 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8184
472c3609
JR
81852009-04-06 Jason Rumney <jasonr@gnu.org>
8186
8187 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8188
ab193662
KH
81892009-04-06 Kenichi Handa <handa@m17n.org>
8190
8191 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8192
8193 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8194
0c26f026
KH
81952009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8196
8197 * ftfont.c (ftfont_open): Fix checking of the return value of
8198 FT_Load_Char. Fix setting font->underline_thickness.
8199
e173bbce
CY
82002009-04-04 Chong Yidong <cyd@stupidchicken.com>
8201
8202 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8203 (Fterminal_parameters, Fterminal_parameter)
8204 (Fset_terminal_parameter): In doc string, refer to terminal
8205 objects rather than terminal ids.
8206
693a2698
EZ
82072009-04-04 Eli Zaretskii <eliz@gnu.org>
8208
8209 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8210 ret_lim_data. (Bug#2867)
8211
d5221487
CY
82122009-04-03 Chong Yidong <cyd@stupidchicken.com>
8213
8214 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8215 so they don't get wider than the window, matching 2006-01-23
8216 change to the partner function in xdisp.c (Bug#2800).
8217
223509a3
KH
82182009-04-03 Kenichi Handa <handa@m17n.org>
8219
8220 * print.c (print_object): Make each lowest sub_char_table start a
8221 new line (Bug#2866).
8222
74fcd0b1
KH
82232009-04-02 Kenichi Handa <handa@m17n.org>
8224
8225 * fontset.c (fontset_font): Record no-font when a fontset
8226 explicitly tells not to try another font-specs.
8227
c542407d
SM
82282009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8229
8230 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8231
e3869731
KH
82322009-03-30 Kenichi Handa <handa@m17n.org>
8233
d8d2f142
KH
8234 * fontset.c (fontset_from_font): Specify only registry in a
8235 font-spec for all characters supported by that registry.
8236
e3869731
KH
8237 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8238 even if HAVE_M17N_FLT is not defined.
8239
5da5f805
CY
82402009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8241
8242 * ftfont.c: Conditionalize prototyping and use of
8243 ftfont_variation_glyphs.
8244
ab226c50
SM
82452009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8246
9628fed7
SM
8247 * frame.c (delete_frame): Work around compiler bug.
8248
8249 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8250 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8251 Some more EMACS_INT.
8252 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8253
8254 * xdisp.c (dump_glyph): Fix typo.
8255
ae19ba7c
SM
8256 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8257 (adjust_markers_gap_motion, adjust_markers_for_delete)
8258 (adjust_markers_for_insert, adjust_point)
8259 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8260 (make_gap, copy_text, count_size_as_multibyte, insert)
8261 (insert_and_inherit, insert_before_markers)
8262 (insert_before_markers_and_inherit, insert_1)
8263 (count_combining_before, count_combining_after, insert_1_both)
8264 (insert_from_string, insert_from_string_before_markers)
8265 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8266 (insert_from_buffer_1, adjust_after_replace)
8267 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8268 (replace_range_2, del_range, del_range_1, del_range_byte)
8269 (del_range_both, del_range_2, modify_region)
8270 (prepare_to_modify_buffer, signal_before_change)
8271 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8272 for buffer positions and sizes.
8273 * lisp.h: Adjust prototypes accordingly.
8274
8275 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8276 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8277 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8278
ab226c50
SM
8279 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8280
46dfb8fb
JD
82812009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8282
8283 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8284 lines and columns so we keep the same pixel height and width.
8285
8286 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8287 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8288 (x_handle_net_wm_state): New function to update frame parameter
8289 fullscreen.
8290 (x_term_init): Initialize atoms for _NET_WM_STATE.
8291
8292 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8293
d347e494
SM
82942009-03-27 Kevin Ryde <user42@zip.com.au>
8295
8296 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8297 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8298 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8299 (Fgpm_mouse_stop): Pass that new parameter.
8300 * termhooks.h (close_gpm): Adjust prototype.
8301
84db11d6
SM
83022009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8303
c95a5008
SM
8304 * lisp.h (Fx_focus_frame): Declare.
8305
84db11d6
SM
8306 * callint.c (Fcall_interactively): For '^' just delegate the work to
8307 handle-shift-selection.
8308 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8309
0a1958d6
CY
83102009-03-24 Chong Yidong <cyd@stupidchicken.com>
8311
0bfdff23
CY
8312 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8313
0a1958d6
CY
8314 * data.c (Qinteractive_form): New variable.
8315 (Finteractive_form): Use it.
8316
8317 * eval.c (Fcommandp): Use Qinteractive_form.
8318
58aec0d6
JR
83192009-03-24 Jason Rumney <jasonr@gnu.org>
8320
8321 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8322 Calculate total size precisely. Decode environment variables
8323 before substituting. (Bug#38)
8324
553dd618
KH
83252009-03-24 Kenichi Handa <handa@m17n.org>
8326
8327 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8328 encoding (Bug#2722).
553dd618 8329
c39ea606
JD
83302009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8331
8332 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8333 that gdpy is set.
8334
bc9b2b5e
AM
83352009-03-22 Alan Mackenzie <acm@muc.de>
8336
8337 * callint.c (Finteractive): Clarify the doc string - even
8338 promptless elements need \n separators.
8339
9f995a76
JR
83402009-03-22 Jason Rumney <jasonr@gnu.org>
8341
8342 * w32term.c (syms_of_w32term): Doc fix for
8343 x-use-underline-position-properties.
8344
22749e9a
EZ
83452009-03-21 Eli Zaretskii <eliz@gnu.org>
8346
8347 * w32.c (getpwuid): Change argument type to unsigned.
8348 (struct w32_id): Change type of `rid' member to unsigned.
8349 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8350 argument ID to unsigned. All callers changed.
8351 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8352
e00553bf
EZ
83532009-03-20 Eli Zaretskii <eliz@gnu.org>
8354
8355 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8356 negative, produce a float value.
8357
8358 * dired.c (make_uid, make_gid): New functions.
8359 (Ffile_attributes): Use them to avoid negative UID and GID.
8360
f761d6b6
JB
83612009-03-20 Juanma Barranquero <lekktu@gmail.com>
8362
8363 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8364 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8365 Fix typos in docstrings.
8366
d507f8d7
KH
83672009-03-19 Kenichi Handa <handa@m17n.org>
8368
8369 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8370 changed, use font_load_for_lface to get a new font object.
8371 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8372
8373 * frame.c (x_set_font): Handle the case that ARG is a cons.
8374
c68845e0
GM
83752009-03-19 Glenn Morris <rgm@gnu.org>
8376
8377 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8378
bfa49dd1
CY
83792009-03-19 Chong Yidong <cyd@stupidchicken.com>
8380
8381 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8382
8458d4c1
KH
83832009-03-19 Kenichi Handa <handa@m17n.org>
8384
8385 * charset.c (load_charset_map_from_file): When a mapfile can't be
8386 loaded, signal an error.
8387
78e7d1fe
EZ
83882009-03-18 Eli Zaretskii <eliz@gnu.org>
8389
8390 * dired.c (Ffile_attributes): Make sure UID and GID are always
8391 positive, even if the value is too large for a positive EMACS_INT.
8392 Doc fix.
8393
8394 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8395
5da9fdfa
YM
83962009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8397
8398 * xmenu.c (xdialog_show): Move Fredisplay call ...
8399 (Fx_popup_dialog): ... here.
8400
7519c40d
SM
84012009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8402
8403 * dired.c (file_name_completion): Disable the first optimization just
8404 installed, since it is not implemented correctly.
8405
2cd298e2
SM
84062009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8407
8408 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8409 only if the entry can affect bestmatch.
2cd298e2
SM
8410 Stop the search early, as Ftry_completion already does.
8411
48d37adf
CY
84122009-03-17 Chong Yidong <cyd@stupidchicken.com>
8413
e10c9c93 8414 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8415
9286b16a
CY
84162009-03-15 Chong Yidong <cyd@stupidchicken.com>
8417
8418 * keyboard.c (parse_menu_item): Don't display remappings as menu
8419 equivalent bindings (Bug#788).
8420
f7b146dc
JR
84212009-03-15 Jason Rumney <jasonr@gnu.org>
8422
8423 * w32term.h (WM_EMACS_PAINT): New message.
8424 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8425 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8426 before passing to lisp thread. (Bug#950)
8427
f761d6b6 84282009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8429
d93f9575
CY
8430 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8431 variable as it was never reset.
8432 (ns_term_init): Remove initialization of Lisp-settable defaults
8433 and ns_expand_space.
8434 (-setPanelFromDefaultValues): Remove ns_expand_space.
8435 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8436 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8437 i.e. no additional spacing, similar to Carbon port.
8438
d93f9575
CY
8439 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8440 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8441
305018ec
JD
84422009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8443
8444 * sound.c (alsa_configure): Remove call to deprecated
8445 snd_pcm_sw_params_set_xfer_align.
8446
f761d6b6 84472009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8448
8449 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8450 after clicking in a detached tool bar.
8451 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8452
46e722a9
SM
84532009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8454
348db3dd
SM
8455 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8456 int/Lisp_Object mixup).
46e722a9 8457
a3d16f39
KH
84582009-03-13 Kenichi Handa <handa@m17n.org>
8459
8460 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8461 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8462 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8463 (set_fontset_font): Change ARG to a vector. Handle range_list in
8464 ARG correctly.
8465 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8466 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8467 the above change.
8468 (fontset_from_font): Fix previous change.
fe24f56a 8469 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8470 entry. If FONTSET is the default fontset, don't set the extra
8471 slot of the returning char-table.
8472
b066e6b6
JB
84732009-03-12 Juanma Barranquero <lekktu@gmail.com>
8474
8475 * nsfns.m (Fx_close_connection): Doc fix.
8476 (Fns_do_applescript): Reflow docstring.
8477 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8478 (Fx_display_pixel_width, Fx_display_pixel_height)
8479 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8480 Fix typos in docstrings.
8481 (Fns_set_alpha): Fix typos in error messages.
8482
d472514e 84832009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8484
d472514e 8485 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8486 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8487 were used for such events.
8488
d472514e
JB
8489 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8490 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8491
d472514e 8492 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8493 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8494
fb930676
KH
84952009-03-11 Kenichi Handa <handa@m17n.org>
8496
ff85581a
KH
8497 * font.h (font_open_by_spec): Extern it.
8498
c50b7e98
KH
8499 * font.c (font_open_by_spec): New function.
8500 (font_open_by_name): Use font_open_by_spec.
8501
fb930676
KH
8502 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8503 fontset of the frame.
8504
8505 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8506 modify the default font of frames that use this fontset.
8507 (num_auto_fontsets): New variable.
8508 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8509 name. Be sure to set FONTSET_ASCII to the correct font name.
8510 (update_auto_fontset_alist): New function.
8511
df4e8455
JB
85122009-03-11 Juanma Barranquero <lekktu@gmail.com>
8513
8514 * makefile.w32-in: Update dependencies.
8515
0a375797
AR
85162009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8517
8518 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8519
61313fa3
SM
85202009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8521
8522 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8523
b55103fb
CY
85242009-03-10 Chong Yidong <cyd@stupidchicken.com>
8525
8526 * lread.c (Feval_buffer): Doc fix.
8527
dde2559c
KH
85282009-03-09 Kenichi Handa <handa@m17n.org>
8529
8530 * charset.c (Qfile_name_handler_alist): Extern it.
8531 (load_charset_map_from_file): Temporarily bind
8532 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8533
df4e8455 85342009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8535
47f588bb
GM
8536 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8537 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8538
4ddf94bd
AR
85392009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8540
4c9bdfc2
AR
8541 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8542 (x_set_window_size): Change back to calculated method of setting
8543 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8544 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8545 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8546
fe41ae9e
AR
8547 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8548
4c9bdfc2
AR
8549 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8550 accelerator in parens under GNUstep.
8551
825d0875
KH
85522009-03-06 Kenichi Handa <handa@m17n.org>
8553
8554 These changes are to detect incorrect composition sequence without
f3b3be74 8555 looking ahead the source. (Bug#2370)
825d0875
KH
8556
8557 * coding.h: Include "composite.h".
8558 (enum compisition_state): New enum.
8559 (struct compisition_status): New struct.
8560 (struct iso_2022_spec): New member cmp_status.
8561 (struct emacs_mule_spec): New struct.
8562 (struct coding_system): New members ctext_extended_segment_len and
8563 embedded_utf_8. Change the union member
8564 spec.emacs_mule_full_support to spec.emacs_mule.
8565
8566 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8567 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8568 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8569 (ADD_COMPOSITION_DATA): New arg nbytes.
8570 (emacs_mule_char): New arg cmp_status.
8571 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8572 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8573 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8574 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8575 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8576 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8577 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8578 (EMACS_MULE_COMPOSITION_END): New macro.
8579 (emacs_mule_finish_composition): New function.
8580 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8581 (decode_coding_emacs_mule): Avoid long looking ahead while
8582 handling composition.
8583 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8584 (ENCODE_COMPOSITION_RULE): New macro.
8585 (finish_composition): New function.
8586 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8587 (DECODE_COMPOSITION_START): New implementation.
8588 (DECODE_COMPOSITION_END): Likewise.
8589 (STORE_COMPOSITION_RULE): New macro.
8590 (decode_coding_iso_2022): Avoid long looking ahead while handling
8591 composition, CTEXT extended segment, and embedded UTF-8.
8592 (setup_coding_system): For a coding of type iso-2022, reset
8593 CODING_ISO_EXTSEGMENT_LEN (coding) and
8594 CODING_ISO_EMBEDDED_UTF_8 (coding).
8595 (get_translation): Delete arguments last_block, from_nchars,
8596 to_nchars. Callers changed.
8597 (produce_chars): Don't modify charbuf. Adjusted for the change of
8598 get_translation.
98a326f7 8599 (produce_composition): Adjust for the new annotation sequence.
825d0875 8600 (handle_composition_annotation): Likewise.
98a326f7 8601 (consume_chars): Adjust for the change of get_translation.
825d0875 8602
ccbc4452
AR
86032009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8604
4ddf94bd 8605 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8606
988a7ddb
KH
86072009-03-05 Kenichi Handa <handa@m17n.org>
8608
8609 * font.c (font_select_entity): New function.
8610 (font_find_for_lface): Use font_select_entity to select a font.
8611
8612 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8613 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8614 font with C restriction.
8615
98a326f7 86162009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8617
be1bce46 8618 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8619
10ea2b82
JR
86202009-03-04 Jason Rumney <jasonr@gnu.org>
8621
2c93b248 8622 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8623 characters that have already been read. (Bug#2569)
2c93b248 8624
10ea2b82
JR
8625 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8626 Log an error message if check_image_size failed.
8627 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8628 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8629
71a0c011
EZ
86302009-03-02 Eli Zaretskii <eliz@gnu.org>
8631
8632 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8633 when decoding process output.
8634
2f63bba8
RS
86352009-03-01 Richard M Stallman <rms@gnu.org>
8636
8637 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8638
8639 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8640
0a9564cb
EZ
86412009-02-28 Eli Zaretskii <eliz@gnu.org>
8642
8643 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8644 (decode_coding_emacs_mule, decode_coding_iso_2022)
8645 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8646 (decode_coding_raw_text, decode_coding_charset)
8647 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8648 Honor inhibit-eol-conversion. (Bug #2186)
8649
449148b3
JR
86502009-02-28 Jason Rumney <jasonr@gnu.org>
8651
8652 * coding.c (detect_coding_charset): If not checking latin extra,
8653 fail on characters between 0x80 and 0xA0. (Bug#2354)
8654
a4aee864
EZ
86552009-02-28 Eli Zaretskii <eliz@gnu.org>
8656
8657 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8658 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8659
d88bee5a
GM
86602009-02-27 Glenn Morris <rgm@gnu.org>
8661
8662 * callint.c (Finteractive): Doc fix.
8663
a808f22d
KH
86642009-02-27 Kenichi Handa <handa@m17n.org>
8665
8666 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8667
caf8d60c
CY
86682009-02-27 Chong Yidong <cyd@stupidchicken.com>
8669
8670 * font.c (font_style_to_value): Set value for unknown symbols to
8671 100 instead of 255.
b61137ea
CY
8672 (weight_table, slant_table, width_table): Treat "unspecified" as
8673 the default value.
caf8d60c 8674
1a0de25c
JB
86752009-02-26 Juanma Barranquero <lekktu@gmail.com>
8676
8677 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8678
8fc45744
JB
86792009-02-25 Juanma Barranquero <lekktu@gmail.com>
8680
107bd7d1
JB
8681 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8682 error as soon as a recursive load is detected.
8fc45744 8683
f097e223
AR
86842009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8685
8686 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8687 before caching.
8688
8810a12f
KH
86892009-02-24 Kenichi Handa <handa@m17n.org>
8690
8691 * fontset.c (fontset_find_font): Fix the condition for checking
8692 unavailable font.
8693
2c7d1565
GM
86942009-02-24 Glenn Morris <rgm@gnu.org>
8695
8696 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8697 whitespace that confuses documentation.
8698
a20878b6
MB
86992009-02-23 Miles Bader <miles@gnu.org>
8700
8701 * process.c (Flist_system_processes, Fprocess_attributes)
8702 (syms_of_process): Rename `system-process-attributes' to
8703 `process-attributes'.
8704
b3b58c01
AS
87052009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8706
1b3b981b
AS
8707 * coding.h (struct coding_system): Make safe_charsets a pointer to
8708 unsigned char.
8709 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8710 being 255.
8711 (SAFE_CHARSET_P): Likewise.
8712 (setup_iso_safe_charsets): Properly setup safe_charsets.
8713 (Fdefine_coding_system_internal): Likewise.
8714 (setup_coding_system): Likewise. Remove unneeded casts.
8715 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8716 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8717 unneeded casts.
8718
b3b58c01
AS
8719 * insdel.c (del_range_2): Don't modify gap contents when called
8720 from decode_coding_object. (Bug#1809)
8721
0b6f228c
CY
87222009-02-21 Chong Yidong <cyd@stupidchicken.com>
8723
8724 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8725 Qfont_object.
8726 (Ftype_of): Recognize font objects.
8727
8728 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8729
8730 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8731 moved to data.c.
8732
52f8870b
AR
87332009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8734
8735 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8736 async_iconified. Based on a patch by Christian Lynbech
8737 <christian.lynbech@tieto.com>.
8738 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8739
7087d5e9
GM
87402009-02-20 Glenn Morris <rgm@gnu.org>
8741
8742 * syntax.c (Fskip_chars_forward): Fix doc typo.
8743
41d2ceef
CY
87442009-02-20 Chong Yidong <cyd@stupidchicken.com>
8745
8746 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8747
1a3b7ca6
CY
87482009-02-19 Chong Yidong <cyd@stupidchicken.com>
8749
8750 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8751
73cce38d
KH
87522009-02-19 Kenichi Handa <handa@m17n.org>
8753
8754 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8755 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8756
a51092ee
DN
87572009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8758
8759 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8760
c423ecca
KH
87612009-02-18 Kenichi Handa <handa@m17n.org>
8762
8763 * font.c (font_check_otf_features): Fix handling of `nil' element.
8764 (Ffont_spec): Describe :lang and :otf in the docstring.
8765
4c1958f4
AS
87662009-02-16 Andreas Schwab <schwab@suse.de>
8767
8768 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8769 string.
8770
5704f39a
KH
87712009-02-16 Kenichi Handa <handa@m17n.org>
8772
8773 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8774 (Bug#1723)
5704f39a 8775
8f0085aa
CY
87762009-02-14 Chong Yidong <cyd@stupidchicken.com>
8777
a057d86a 8778 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8779
8780 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8781 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8782
aff01dd9
EZ
87832009-02-14 Eli Zaretskii <eliz@gnu.org>
8784
8785 * msdos.c (MAX_SCREEN_BUF): New macro.
8786 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8787 Encode the entire run of glyphs sharing the same face, instead of
8788 doing that one glyph at a time (fixes a bug with displaying
8789 double-size characters).
8790
ba301db3
AR
87912009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8792
8793 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8794
8795 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8796 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8797 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8798
8799 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8800 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8801
51d861de
SM
88022009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8803
ac146f82 8804 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8805 invisible areas.
8806
7fed8996
JR
88072009-02-12 Jason Rumney <jasonr@gnu.org>
8808
631ea4fb
JR
8809 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8810 (add_font_entity_to_list): Call check_face_name even when family
8811 is unspecified.
8812
cb4a3e42
JR
8813 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8814 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8815 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8816
7fed8996 8817 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8818 raster fonts. (Bug#2219)
7fed8996 8819
895416e3
KH
88202009-02-12 Kenichi Handa <handa@m17n.org>
8821
8822 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8823 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8824 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8825 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8826 (find_automatic_composition): While looking forward and backward,
8827 check static composition. Fix where to stop looking forward.
8828 (composition_adjust_point): Fix checking of static composition.
8829 (Fcomposition_get_gstring): Pay attention to
1dacf998 8830 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8831
8832 * lisp.h (fast_looking_at): Extern it.
8833
8834 * search.c (fast_looking_at): New function.
8835
51d861de 8836 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8837 <struct glyph>.u.cmp.to.
8838 (append_composite_glyph): Likewise.
8839
51d861de 8840 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8841 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8842 composition.
51d861de 8843 (append_composite_glyph): Adjust for the change of
895416e3
KH
8844 <strcut glyph>.u.cmp.to.
8845
8510724d
JB
88462009-02-11 Juanma Barranquero <lekktu@gmail.com>
8847
8848 * casetab.c (init_casetab_once):
8849 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8850 * font.c (font_update_lface):
8851 * fontset.c (Fnew_fontset):
8852 * ftfont.c (ftfont_drive_otf):
8853 * xfont.c (xfont_open):
8854 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8855
294fa707
SM
88562009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8857
8858 * fileio.c (Fwrite_region): !NILP -> CONSP.
8859
b5bfebec
AS
88602009-02-10 Andreas Schwab <schwab@suse.de>
8861
8862 * process.c (send_process): Properly relocate pointer into data
adab88bd 8863 when using encoded data. (Bug#2272)
b5bfebec 8864
cb84a2be
KH
88652009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8866
8867 * coding.c (detect_coding_charset): Fix previous change.
8868
89e09428
JR
88692009-02-08 Jason Rumney <jasonr@gnu.org>
8870
8871 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8872 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8873
4470a277
AS
88742009-02-07 Andreas Schwab <schwab@suse.de>
8875
8876 * unexelf.c (unexec): Fix error message.
8877
3175b12a
AR
88782009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8879
8880 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8881 when modal window is active. (Bug #2152)
3175b12a
AR
8882 (applicationShouldTerminate:): Remove now-unneeded while loop
8883 around NSRunAlertPanel.
8884
8885 * nsmenu.m (popupSession): New file-global variable.
8886 (pop_down_menu): End the popupSession before closing dialog.
8887 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8888 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8889 don't query NSApp for events (just sleep instead).
8890
8434d0b8
EZ
88912009-02-07 Eli Zaretskii <eliz@gnu.org>
8892
51d861de
SM
8893 * coding.c (syms_of_coding) <translation-table-for-input>:
8894 Modify doc string to discourage use for character code unification.
8434d0b8 8895
aa82edfd
CY
88962009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8897
8898 * atimer.c (run_timers): Update pending_atimers.
8899
2d283c7c
CY
89002009-02-06 Chong Yidong <cyd@stupidchicken.com>
8901
eb306cab
CY
8902 * image.c (svg_load_image): Fix last change.
8903
2d283c7c
CY
8904 * xfns.c (Fx_create_frame): Signal an error if no font is
8905 found (Bug#2147).
8906
4d8e170e
JB
89072009-02-05 Juanma Barranquero <lekktu@gmail.com>
8908
8909 * character.c (syms_of_character) <script-representative-chars>:
8910 Fix typo in docstring.
8911
c96169a0
AR
89122009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8913
8914 * nsmenu.m (pop_down_menu): New function.
8915 (ns_popup_dialog): Call it on unwind.
8916 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8917 call timer_check() (Bug#2154).
8918 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8919 handling_signal is set.
8920 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8921
31fd7c5c 8922 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8923
8924 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8925
8926 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8927
51d861de
SM
8928 * keyboard.c (poll_for_input_1, handle_async_input):
8929 Set handling_signal under HAVE_NS.
c96169a0 8930
aacd8ba1
GM
89312009-02-04 Glenn Morris <rgm@gnu.org>
8932
8933 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8934
4cb75c4b
KH
89352009-02-04 Kenichi Handa <handa@m17n.org>
8936
8937 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8938
8939 * charset.c (Fchar_charset): New optional arg restriction.
8940
8941 * coding.h (coding_system_charset_list): Extern it.
8942
8943 * coding.c (coding_system_charset_list): New function.
8944
8945 * composite.c: Include coding.h and termhooks.h.
8946 (composition_gstring_p): Fix for the terminal case.
8947 (composition_gstring_width): Likewise.
8948 (fill_gstring_body): Likewise.
8949 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8950 the frame.
8951 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8952 is within a composition.
867d4bb3 8953 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8954
8955 * term.c (encode_terminal_code): Fix handling of composition.
8956 (produce_composite_glyph): For static composition, get pixel_width
8957 from struct composition.
8958
826ba17e
AS
89592009-02-02 Andreas Schwab <schwab@suse.de>
8960
8961 * unexelf.c (unexec): Handle unaligned bss offset.
8962
8ad093db
AR
89632009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8964
8965 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8966 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8967
8ad093db
AR
8968 * keyboard.c (handle_interrupt): Don't call
8969 quit_throw_to_read_char() under NS.
d0a76a6e 8970
8ad093db
AR
8971 * blockinput.h: Remove NS-specific code.
8972
4d18a7a2
DN
89732009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8974
db878925
DN
8975 * dispnew.c (window_change_signal): Don't try to get the size of a
8976 suspended tty frame.
8977 * term.c (Fresume_tty): Resize if the size has changed while the
8978 tty was suspended.
8979
4d18a7a2
DN
8980 * alloc.c (mark_stack): Properly conditionalize previous change.
8981
8984df7c
JB
89822009-01-30 Juanma Barranquero <lekktu@gmail.com>
8983
8984 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8985 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8986 Remove; this code is not used on Windows.
8987
75f4f1ac
EZ
89882009-01-30 Eli Zaretskii <eliz@gnu.org>
8989
8990 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8991 EOLs that also has stray ^M characters.
8992
07a1e794
JB
89932009-01-30 Juanma Barranquero <lekktu@gmail.com>
8994
8995 * atimer.c (run_timers, alarm_signal_handler):
8996 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8997 * w32inevt.c (w32_console_read_socket):
8998 * w32term.c (w32_read_socket):
8999 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9000
a8b11cc9
CY
90012009-01-30 Chong Yidong <cyd@stupidchicken.com>
9002
9003 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9004 Initialize it as a relative filename pattern.
9005 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9006 (Fcall_process_region): Simplify temp file creation using
9007 temporary-file-directory.
9008
c279587b
EZ
90092009-01-29 Eli Zaretskii <eliz@gnu.org>
9010
9011 * msdos.c: Rename pending_signals to msdos_pending_signals.
9012 (sig_suspender, sigprocmask): Adjust.
9013
a8fe3242
CY
90142009-01-29 Chong Yidong <cyd@stupidchicken.com>
9015
9016 * keyboard.c (pending_signals): New var.
9017 (poll_for_input, input_available_signal, init_keyboard): Set it.
9018 (process_pending_signals): New function.
9019
9020 * lisp.h (QUIT): Check pending_signals instead of
9021 interrupt_input_pending. Use process_pending_signals.
9022
51d861de 9023 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9024
51d861de 9025 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9026
9027 * sysdep.c (emacs_write): Use process_pending_signals.
9028
9029 * xterm.c (XTread_socket): Update pending_signals.
9030
9031 * w32term.c (w32_read_socket): Update pending_signals.
9032
9033 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9034
6570a1c4
KH
90352009-01-29 Kenichi Handa <handa@m17n.org>
9036
9037 * xftfont.c (xftfont_has_char): New function.
9038 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9039
d72a4afa
AR
90402009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9041
9042 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9043 under GNUstep.
9044 (ns_query_color): New declaration.
9045
9046 * nsterm.m (ns_confirm_quit): New variable.
9047 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9048 (EmacsApp-applicationShouldTerminate:): Use it.
9049 (EmacsPrefsController): Let user set it.
9050 (ns_query_color): New function.
9051 (ns_defined_color): Use it.
9052 (ns_initialize): Drop.
9053 (ns_term_init): Add two lines from ns_initialize(), and set
9054 input_interrupt_mode to nil.
9055
9056 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9057 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9058
9fe78804
KH
90592009-01-28 Kenichi Handa <handa@m17n.org>
9060
9061 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9062 (fontset_get_font_group): Remember that no font-group is specified
9063 for C.
9fe78804 9064
fa57de36
CY
90652009-01-27 Chong Yidong <cyd@stupidchicken.com>
9066
930600e9
CY
9067 * fns.c (concat): Check for string overflow (bug#1787).
9068
fa57de36
CY
9069 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9070 Quadruple undo limits (bug#1501).
9071
7179ce7b
KH
90722009-01-27 Kenichi Handa <handa@m17n.org>
9073
9074 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9075 directly use GT_Get_Char_index.
9076
9077 * xftfont.c (struct xftfont_info): New member `index'.
9078
9079 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9080 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9081
5be8fcc0
CY
90822009-01-26 Kenichi Handa <handa@m17n.org>
9083
9084 * fontset.c (fontset_find_font): Fix handling of non-cons return
9085 value of fontset_get_font_group.
9086 (fontset_font): Revert last change.
9087
19ae3e61
JR
90882009-01-26 Jason Rumney <jasonr@gnu.org>
9089
9090 * w32font.c (w32font_list_internal): Return quickly if registry is
9091 unknown. Simplify final return.
9092 (add_font_entity_to_list): Break complex logic down into more
9093 manageable chunks. Move unknown registry check to
9094 w32font_list_internal.
9095
8612b71a
AR
90962009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9097
9098 Changes to remove Feval calls from GUI under NS.
9099
d8038940
JB
9100 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9101 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9102 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9103
9104 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9105 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9106 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9107 instead of NON_ASCII_KEYSTROKE_EVENT.
9108 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9109 (EmacsApp-applicationShouldTerminate:): Query user.
9110 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9111 instead of Feval.
9112
9113 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9114
9115 * keyboard.c (kbd_buffer_get_event): Check for it.
9116 (keys_of_keyboard): Define lispy keys for
9117 ns-put/unput-working-text.
9118
9119 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9120 versions.
9121 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9122
6288ae55
CY
91232009-01-25 Chong Yidong <cyd@stupidchicken.com>
9124
9125 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9126 setting current_buffer directly. (Bug#2044)
6288ae55 9127
289e7f8f
CY
91282009-01-24 Chong Yidong <cyd@stupidchicken.com>
9129
5ce87308 9130 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9131 any work. (Bug#1952, bug#1990).
5ce87308 9132
64cc3cf6 9133 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9134
b3243e6f
AR
91352009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9136
9137 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9138 (ns_no_defaults): New declaration.
9139 (main): Use it.
e0d2e69a 9140
d900b2af 9141 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9142
d900b2af 9143 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9144
d900b2af
AR
9145 * nsterm.m (ns_no_defaults): New variable.
9146 (ns_initialize): Don't read defaults when ns_no_defaults.
9147 (EmacsView-readSelectionFromPasteboard:)
9148 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9149 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9150 (ns_dumpglyphs_stretch): New function.
9151 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9152 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9153
e0d2e69a
AR
9154 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9155
3ac71f5d
CY
91562009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9157
9158 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9159 call for Sparc64.
9160
3fe53a83
AR
91612009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9162
9163 * nsfns.m:
9164 * nsgui.h:
9165 * nsmenu.m:
9166 * nsselect.m:
9167 * nsterm.h:
9168 * nsterm.m: Remove '23' comments that indicated code added during
9169 update from emacs-20 -> emacs-23.
9170
10f87c6f 91712009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9172
9173 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9174 ns_alternate_modifier. (Bug#1217)
a3b53a85 9175
c7cef62d
AR
9176 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9177 Display all shortcuts, including those w/o super modifier.
9178
575fb8bd
AR
9179 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9180
918b848b
CY
91812009-01-22 Chong Yidong <cyd@stupidchicken.com>
9182
9183 * fileio.c (Vwrite_region_post_annotation_function)
9184 (Vwrite_region_annotation_buffers): New vars.
9185 (build_annotations_unwind): Just reset
9186 Vwrite_region_annotation_buffers.
9187 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9188 Call write-region-post-annotation-function.
9189 (build_annotations): Add to Vwrite_region_annotation_buffers if
9190 buffer changes.
9191
a39e2539
AR
91922009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9193
9194 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9195 Tiger.
51d861de
SM
9196 * nsfns.m (ns_do_applescript):
9197 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9198
35ed44db
AR
91992009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9200
9201 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9202
cbe0b5bf
AR
92032009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9204
9205 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9206
6049d3a0
AR
9207 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9208
9209 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9210 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9211 handle Ctrl-tab. (Bug#1841)
9212 (ns_get_color): Use unsigned long long for scanned hex string value.
9213 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9214 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9215 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9216 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9217 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9218 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9219 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9220
d3810c21 9221 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9222 DPI. (Bug#1316)
d3810c21
AR
9223 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9224 values in onTiger section.
4c7077c3 9225
e301e634
CY
92262009-01-19 Chong Yidong <cyd@stupidchicken.com>
9227
7f82490b
CY
9228 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9229 Check return value of font_spec_from_name.
64cc3cf6 9230 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9231
9232 * font.c (font_spec_from_name): Return Qnil if font name could not
9233 be parsed.
9234 (font_parse_name): Treat a `?' character as part of an XLFD.
9235
e301e634
CY
9236 * fns.c (Fsubstring): Doc fix.
9237
1c0db158
KH
92382009-01-19 Kenichi Handa <handa@m17n.org>
9239
51d861de 9240 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9241 (ftfont_list): Likewise.
9242
acf20901
JB
92432009-01-18 Juanma Barranquero <lekktu@gmail.com>
9244
fff4e459
JB
9245 * dbusbind.c (Fdbus_register_signal):
9246 * process.c (conv_sockaddr_to_lisp):
9247 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9248
acf20901
JB
9249 * callproc.c (Fgetenv_internal): Doc fix.
9250
e7abcdfb
CY
92512009-01-16 Chong Yidong <cyd@stupidchicken.com>
9252
9253 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9254 it is not even used.
9255
b60861e6
GM
92562009-01-16 Glenn Morris <rgm@gnu.org>
9257
9258 * font.c (Ffont_variation_glyphs): Silence compiler.
9259
8db52afe
JB
92602009-01-15 Juanma Barranquero <lekktu@gmail.com>
9261
9262 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9263 Reported by David Robinow <drobinow@gmail.com>.
9264
4cddb209
KH
92652009-01-15 Kenichi Handa <handa@m17n.org>
9266
51d861de 9267 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9268
f247f67b
JR
92692009-01-14 Jason Rumney <jasonr@gnu.org>
9270
9271 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9272 never a fontset. (Bug#1562)
f247f67b 9273
f56a4450
KH
92742009-01-14 Kenichi Handa <handa@m17n.org>
9275
9276 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9277 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9278
4e99855e
CY
92792009-01-13 Chong Yidong <cyd@stupidchicken.com>
9280
9281 * font.c (font_clear_prop): If clearing the family, clear the font
9282 width index too.
9283
fff4e459 9284 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9285
24f01470
JB
92862009-01-12 Juanma Barranquero <lekktu@gmail.com>
9287
9288 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9289 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9290 functions, use sizeof.
9291
a41240a3
MR
92922009-01-12 Martin Rudalics <rudalics@gmx.at>
9293
9294 * keyboard.c (read_char): Fix case where last_nonmenu_event
9295 returned a bad value with submenus. (Bug#447)
9296
944636b8
CY
92972009-01-12 Chong Yidong <cyd@stupidchicken.com>
9298
9299 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9300 family, clear the font width index too.
9301
0dad7c6f
JR
93022009-01-11 Jason Rumney <jasonr@gnu.org>
9303
9304 * keyboard.c (cmd_error_internal): Exit when errors occur before
9305 frame creation and not in daemon mode. (Bug#1836)
9306
7c2363af
CY
93072009-01-10 Chong Yidong <cyd@stupidchicken.com>
9308
9309 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9310 of a display vector, backtrack.
9311 (try_window_reusing_current_matrix): Check glyph type before
9312 referencing charpos member.
9313
97b1b294
EZ
93142009-01-10 Eli Zaretskii <eliz@gnu.org>
9315
9316 Fix Bug #876:
9317
9318 * coding.c (inhibit_null_byte_detection): New variable.
9319 (detect_coding, detect_coding_system): Don't pay attention to null
9320 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9321 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9322 <inhibit-iso-escape-detection>: Doc fix.
9323
4624b6e3
JR
93242009-01-09 Jason Rumney <jasonr@gnu.org>
9325
9326 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9327 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9328 Only report Unicode Plane 2 fonts as unicode-sip.
9329
323b840c
CY
93302009-01-09 Chong Yidong <cyd@stupidchicken.com>
9331
51d861de
SM
9332 * xfaces.c (Fx_font_family_list): Delete function.
9333 Move compatibility version to faces.el.
323b840c 9334
51d861de 9335 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9336
eba7400d
MR
93372009-01-09 Martin Rudalics <rudalics@gmx.at>
9338
9339 * frame.c (x_set_frame_parameters): Remember requested value for
9340 fullscreen before it's reset by the parameter handler.
9341
4b09796d
GM
93422009-01-09 Glenn Morris <rgm@gnu.org>
9343
9344 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9345 (last_command_event): ... and update all users.
4b09796d
GM
9346 (last_input_char): For clarity, rename to...
9347 (last_input_event): ... and update all users.
9348 (last-command-char, last-input-char): Move to subr.el as aliases.
9349 * cmds.c, commands.h: Update for last_command_char rename.
9350
14ccea62
CY
93512009-01-08 Chong Yidong <cyd@stupidchicken.com>
9352
51d861de 9353 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9354
5f004711
JR
93552009-01-08 Jason Rumney <jasonr@gnu.org>
9356
9357 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9358 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9359 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9360 Don't declare.
fff4e459 9361 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9362 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9363
b71f6f73
KH
93642009-01-07 Kenichi Handa <handa@m17n.org>
9365
50b06221 9366 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9367 remember the coding system used for decoding in
50b06221
KH
9368 coding_system (Bug#1039).
9369
b71f6f73 9370 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9371 breaking the loop. (Bug#870)
b71f6f73
KH
9372 (decode_coding_utf_16, decode_coding_emacs_mule)
9373 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9374 (decode_coding_charset): Likewise.
9375
56f668f7
MR
93762009-01-05 Martin Rudalics <rudalics@gmx.at>
9377
9378 * frame.c (x_set_frame_parameters): Make sure height (width) get
9379 applied when fullwidth (fullheight) is set. (Bug#1522)
9380
5da9424d
JB
93812009-01-04 Juanma Barranquero <lekktu@gmail.com>
9382
9383 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9384 (utc_base): Declare as ULONGLONG, not long double.
9385 (convert_time_raw): Delete.
9386 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9387 (initialize_utc_base): New function.
9388 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9389 (convert_from_time_t): Use initialize_utc_base; compute result with
9390 64-bit arithmetic.
9391 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9392
c4605e09
EZ
93932009-01-03 Eli Zaretskii <eliz@gnu.org>
9394
9acef61c 9395 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9396 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9397 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9398 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9399 [!subprocesses]: Define.
9400 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9401 (Flist_system_processes, Fsystem_process_attributes)
9402 [!subprocesses]: Call list_system_processes and
9403 system_process_attributes instead of returning Qnil.
9404
9acef61c
JB
9405 * dosfns.c (system_process_attributes, list_system_processes):
9406 New functions.
c4605e09
EZ
9407
9408 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9409
9410 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9411 Don't use the default (no-op) implementation.
9412
8b7d0a16
JR
94132009-01-03 Jason Rumney <jasonr@gnu.org>
9414
a6d46bc1
JR
9415 * keyboard.c (parse_modifiers_uncached): Wheel events are
9416 clicks (bug#687).
9417
8b7d0a16
JR
9418 * w32term.c (x_query_colors, x_query_color): New functions.
9419
9420 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9421 (svg_load_image): Cast returned pointers from dynamically loaded
9422 functions. Eliminate W32 specific code.
9423
bfe11752
DN
94242009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9425
89e2438a
DN
9426 * nsfns.m (x_set_foreground_color, x_set_background_color)
9427 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9428 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9429 x_ prefix instead of ns_. Update references.
9430 (syms_of_nsfns): Add a FIXME comment.
9431
9432 * nsterm.m (x_set_cursor_type): New prototype.
9433 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9434
bfe11752
DN
9435 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9436 for Solaris instead of incorrectly providing Qutime and Qcutime.
9437
031da700
EZ
94382009-01-02 Eli Zaretskii <eliz@gnu.org>
9439
9440 * w32.c (process_times): Compute sum of utime and stime.
9441 (system_process_attributes): Add Qtime to the alist.
9442
9443 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9444 and add them to the alist.
9445
9446 * process.c (top level) <Qtime, Qctime>: New variables.
9447 (syms_of_process): staticpro them.
9448 (Fsystem_process_attributes): Add their documentation to the doc
9449 string.
9450
9451 * process.h: Declare Qtime and Qctime.
9452
df23bf08
JR
94532009-01-02 Jason Rumney <jasonr@gnu.org>
9454
9acef61c 9455 * image.c (Qgobject): New symbol.
df23bf08
JR
9456 (syms_of_image): Initialize it.
9457 (init_svg_functions): Load some functions from gobject library.
9458
5bbdf7aa
DN
94592009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9460
9461 * frame.c (make_terminal_frame): Remove redundant code and useless
9462 block.
9463
63136da6
AS
94642009-01-01 Andreas Schwab <schwab@suse.de>
9465
9466 * process.c (conv_sockaddr_to_lisp): Add workaround for
9467 getsockname bug on BSD.
9468
9ef69046
CY
94692009-01-01 Chong Yidong <cyd@stupidchicken.com>
9470
d6fafbe0
CY
9471 * xfns.c (x_create_tip_frame): Set border width of the X window.
9472
51d861de 9473 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9474
f9c34147
JR
94752009-01-01 Jason Rumney <jasonr@gnu.org>
9476
9acef61c 9477 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9478 Don't block input, as per earlier xterm.c changes.
9479
f5497e45
AR
94802008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9481
9482 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9483 (ns_appkit_version_int): New function.
9484 (x-server-version): Use ns_appkit_version_int and follow 21+
9485 convention of returning 3 integers.
9486
c19cab20
KH
94872008-12-30 Kenichi Handa <handa@m17n.org>
9488
9489 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9490 (CHAR_SURROGATE_PAIR_P): New macro.
9491
9492 * font.h (struct font_driver): New member get_variation_glyphs.
9493
9acef61c 9494 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9495 (Ffont_variation_glyphs): New function.
9496 (syms_of_font): Defsubr it.
9497
9498 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9499 ftfont_variation_glyphs.
9500 (setup_otf_gstring): New function.
9501 (ftfont_drive_otf): Use it.
9502 (ftfont_shape_by_flt): Handle variation selector.
9503 (ftfont_variation_glyphs): New function.
9504
28cd591f
MR
95052008-12-30 Martin Rudalics <rudalics@gmx.at>
9506
9507 * frame.c (Vemacs_iconified): Remove.
9508
7f714baf
JR
95092008-12-30 Jason Rumney <jasonr@gnu.org>
9510
9511 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9512 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9513
9d2d22ab
CY
95142008-12-30 Chong Yidong <cyd@stupidchicken.com>
9515
9516 * indent.c (Fvertical_motion): Don't advance iterator if we have
9517 reseated to the desired position.
9518
9519 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9520 checking for pos match.
9521
545312c2
KH
95222008-12-30 Kenichi Handa <handa@m17n.org>
9523
1ede3eb6
KH
9524 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9525 just get the low 8-bit of the code.
9526
545312c2
KH
9527 * font.c (font_intern_prop): Validate str as multibyte.
9528
bd7bbf29
DN
95292008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9530
31e0750e
DN
9531 * dispextern.h (struct face): Move lface and hash from the middle
9532 of bitfields.
9533
bd7bbf29
DN
9534 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9535
b5672e7c
DN
95362008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9537
9538 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9539 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9540 instead of intervals.h.
9541
d704470f
AS
95422008-12-26 Andreas Schwab <schwab@suse.de>
9543
9544 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9545 cons.
9546
54b33868
MR
95472008-12-26 Martin Rudalics <rudalics@gmx.at>
9548
9549 * textprop.c (Qminibuffer_prompt): New variable.
9550 (syms_of_textprop): Initialize it.
9551 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9552 in minibuffer-prompt face. (Bug#1662)
9553
40b615d6
JR
95542008-12-25 Jason Rumney <jasonr@gnu.org>
9555
9556 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9557
baae5c2d
JR
95582008-12-24 Jason Rumney <jasonr@gnu.org>
9559
9560 * ralloc.c (r_alloc_reset_variable): New function.
9561
9562 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9563 record of what points where. (Bug#716)
baae5c2d 9564
a9051c88
DN
95652008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9566
9567 * minibuf.c (read_minibuf): Follow the non-interactive case when
9568 running as a daemon, before detaching.
9569
8b146312
AS
95702008-12-22 Andreas Schwab <schwab@suse.de>
9571
9572 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9573 * gtkutil.c (free_widget_value): Use xfree instead of free.
9574
56f2de10
MR
95752008-12-22 Martin Rudalics <rudalics@gmx.at>
9576
9577 * frame.c (delete_frame): New function derived from
9578 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9579 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9580 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9581 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9582 * frame.h: Extern delete_frame.
9583 * window.c (window_loop):
9584 * terminal.c (delete_terminal):
9585 * xterm.c (x_connection_closed):
9586 * xfns.c (Fx_hide_tip):
9acef61c 9587 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9588
1fc200d6
JR
95892008-12-21 Jason Rumney <jasonr@gnu.org>
9590
9591 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9592 when character maps to .notdef character.
9593
5e252df2
SM
95942008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9595
9596 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9597
99b72cc4
JR
95982008-12-20 Jason Rumney <jasonr@gnu.org>
9599
9600 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9601 a graphical frame on Windows. (Bug#1325)
99b72cc4 9602
acc49a52
JD
96032008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9604
9605 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9606
6ea15123
CY
96072008-12-20 Chong Yidong <cyd@stupidchicken.com>
9608
9609 * minibuf.c (Fread_buffer): Doc fix.
9610
b2dab6c8
JR
96112008-12-20 Jason Rumney <jasonr@gnu.org>
9612
54ea0c87 9613 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9614 server name in UNC paths. (Bug#719)
54ea0c87 9615
b2dab6c8 9616 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9617 charbuf. (Bug#1035)
b2dab6c8 9618
6d1921be
DN
96192008-12-19 Daniel Engeler <engeler@gmail.com>
9620
9621 * sysdep.c (serial_configure): Fix typo.
9622
53934c98
DN
96232008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9624
9625 * sysdep.c: Include alloca.h.
f4f634e8
DN
9626 (system_process_attributes): Add implementation for Solaris.
9627
9628 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9629
06e111a6
DN
96302008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9631
9632 Reorganize implementation of Flist_system_processes and
9633 Fsystem_process_attributes. No functional changes.
9634 * process.c: Don't #include pwd.h, grp.h and limits.h.
9635 (Flist_system_processes): Just call list_system_processes.
9636 (Fsystem_process_attributes): Just call system_process_attributes.
9637 (procfs_list_system_processes, time_from_jiffies)
9638 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9639 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9640
9641 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9642 (list_system_processes): Rename from
9643 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9644 Provide a do nothing implementation.
9645 (system_process_attributes): Rename from
9646 procfs_list_system_processes.
9647 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9648 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9649
9650 * w32.c (list_system_processes): Rename from
9651 w32_list_system_processes.
9652 (system_process_attributes): Rename from
9653 w32_system_process_attributes.
9654
9655 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9656
9657 * process.h (w32_list_system_processes)
9658 (w32_system_process_attributes): Remove.
362654a6
JB
9659 (list_system_processes, system_process_attributes):
9660 New prototypes.
06e111a6 9661
6a705b23
KH
96622008-12-19 Kenichi Handa <handa@m17n.org>
9663
9664 * xfont.c (xfont_decode_coding_xlfd): New function.
9665 (xfont_encode_coding_xlfd): New function.
9666 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9667 (xfont_list): Decode and encode XLFD by iso-8859-1.
9668 (xfont_match): Likewise.
9669 (xfont_list_family): Likewise.
9670 (xfont_open): Likewise.
9671
d66c0241 9672 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9673 names are utf-8.
9674
d66c0241 9675 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9676 names are utf-8.
9677
5a130941
JD
96782008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9679
9680 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9681 changed.
bfd20325
JD
9682 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9683 clicked on a detached tool bar button.
5a130941 9684
fd95644b
DN
96852008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9686
9687 * emacs.c (main): Print and error and exit when no data is read
9688 from the pipe.
9689
e6eee6ae
JR
96902008-12-17 Jason Rumney <jasonr@gnu.org>
9691
9692 * w32font.c (w32font_has_char): Always return -1.
9693
a35dd56b
KH
96942008-12-16 Kenichi Handa <handa@m17n.org>
9695
9696 * font.c (font_open_entity): Fix previous change.
9697
0e3635c2
DN
96982008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9699
9700 * process.c: Include <limits.h>.
9701
d4835507 97022008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9703
9704 * font.c (font_update_drivers): Fix mistake in reconstructing the
9705 driver list.
9706
97072008-12-16 Chong Yidong <cyd@stupidchicken.com>
9708
9709 * font.c (font_clear_cache): Fix format of font cache data.
9710
e2cbc401
CY
97112008-12-15 Chong Yidong <cyd@stupidchicken.com>
9712
9713 * xftfont.c (xftfont_open): Free Xft font pattern if
9714 XftFontOpenPattern fails.
9715
9716 * xterm.c (x_free_frame_resources): Remove extraneous call to
9717 free_frame_faces.
9718
b131d535
CY
97192008-12-13 Chong Yidong <cyd@stupidchicken.com>
9720
9721 * xterm.c (x_delete_display): Move xim_close_dpy call to
9722 x_delete_terminal.
9723 (x_delete_terminal): Call xim_close_dpy.
9724
e6df5336
JR
97252008-12-13 Jason Rumney <jasonr@gnu.org>
9726
9727 * w32font.c (intern_font_name): New function.
9728 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9729 (w32font_open_internal, Fx_select_font): Decode font name.
9730 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9731
9732 * w32font.h (intern_font_name): Declare new function.
9733
9734 * w32uniscribe.c (add_opentype_font_name_to_list):
9735 Use intern_font_name.
9736
20d68145
CY
97372008-12-13 Chong Yidong <cyd@stupidchicken.com>
9738
9f2554de
CY
9739 * frame.c (Fdelete_frame): Call free_font_driver_list.
9740
3d9bec9a
CY
9741 * font.c (free_font_driver_list): Implement missing function.
9742
20d68145
CY
9743 * w32term.c (w32_term_init): Don't initialize the image cache
9744 here; it will be done in init_frame_faces.
9745
9746 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9747 (struct x_display_info): Remove unused member null_pixel. New
9748 member xim_callback_data.
9749
9750 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9751 (xim_initialize): Save pointer to callback function data.
9752 (xim_close_dpy): Free callback function data. Call XCloseIM,
9753 reverting 2008-11-04 change by David Smith.
9754 (x_term_init): Don't initialize the image cache here; it will be
9755 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9756 (x_delete_display): Free x_dnd_atoms member.
9757
96f9306b
KH
97582008-12-13 Kenichi Handa <handa@m17n.org>
9759
6dec9044
JB
9760 * font.c (font_rescale_ratio): Moved from xfaces.c.
9761 Argument type changed. Handle a font-spec too.
96f9306b 9762 (font_score): Check Vface_font_rescale_alist.
6dec9044 9763 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9764
9765 * xfaces.c (font_rescale_ratio): Moved to font.c.
9766
8d5b4964
CY
97672008-12-13 Chong Yidong <cyd@stupidchicken.com>
9768
9769 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9770
e6df5336
JR
97712008-12-12 Jason Rumney <jasonr@gnu.org>
9772
9773 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9774 Vwindow_system_version to the real w32 major version.
9775
97c6058a
DN
97762008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9777
9778 * term.c (init_tty): Move setting the terminal name before the
9779 potential user: maybe_fatal.
9780
ec4e88d7
CY
97812008-12-11 Chong Yidong <cyd@stupidchicken.com>
9782
d4835507
JB
9783 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9784 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9785
b4233ec9
JR
97862008-12-11 Jason Rumney <jasonr@gnu.org>
9787
8ec71e23 9788 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9789 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9790
b4233ec9 9791 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9792 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9793
011a0143
JB
97942008-12-11 Juanma Barranquero <lekktu@gmail.com>
9795
9796 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9797
3c309f34
JB
97982008-12-11 Juanma Barranquero <lekktu@gmail.com>
9799
9800 * process.c (Fsystem_process_attributes, syms_of_process):
9801 Fix typo in name of Ssystem_process_attributes.
9802 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9803
fedc6ab5
JB
98042008-12-11 Juanma Barranquero <lekktu@gmail.com>
9805
9806 * syntax.c (Fmodify_syntax_entry): Doc fix.
9807
ba3de0e8
JB
98082008-12-10 Juanma Barranquero <lekktu@gmail.com>
9809
9810 * font.c (Ffont_spec): Move usage to end of docstring.
9811
174f1c74
JR
98122008-12-10 Jason Rumney <jasonr@gnu.org>
9813
9814 * w32font.c (Qcham): New symbol.
9815 (font_supported_scripts): Add cham, and comments for other new
9816 scripts in bitfield from OpenType spec.
9d32f818
JR
9817 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9818 contain characters beyond the bmp.
174f1c74 9819
7b649478
KH
98202008-12-10 Kenichi Handa <handa@m17n.org>
9821
9822 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9823 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9824 Qunicode_sip.
9825
2133e2d1
JB
98262008-12-10 Juanma Barranquero <lekktu@gmail.com>
9827
9828 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9829 (Fcoding_system_put): Use QCdefault_char.
9830 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9831
9af886ee
CY
98322008-12-09 Chong Yidong <cyd@stupidchicken.com>
9833
74d819eb
CY
9834 * xftfont.c (syms_of_xftfont): Fix typo.
9835
4ccfa1c0 9836 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9837
7c19d3ae
DN
98382008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9839
9840 * emacs.c (main): Close daemon_pipe on exec.
9841
567826bb
CY
98422008-12-08 Chong Yidong <cyd@stupidchicken.com>
9843
9844 * termchar.h (struct tty): New members termcap_term_buffer and
9845 termcap_strings_buffer.
9846
9847 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9848 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9849 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9850 All callers changed.
9851 (init_tty): Store termcap data and string buffers in new struct
9852 tty members termcap_term_buffer and termcap_strings_buffer.
9853 (delete_tty): Free them.
4ccfa1c0 9854 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9855
aa96c42b
SZ
98562008-12-07 Seiji Zenitani <zenitani@mac.com>
9857
9858 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9859 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9860
b7e1d896
CY
98612008-12-06 Chong Yidong <cyd@stupidchicken.com>
9862
9863 * coding.c (make_conversion_work_buffer): Disable buffer
9864 modification hooks in the work buffer.
9865
b5ec91a5
EZ
98662008-12-05 Eli Zaretskii <eliz@gnu.org>
9867
9868 * process.c (procfs_system_process_attributes): If `nread' has a
9869 negative value, assign zero to it.
9870
a5d2a52b
CY
98712008-12-05 Chong Yidong <cyd@stupidchicken.com>
9872
68c5540b 9873 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9874
7bf1bb21
KH
98752008-12-05 Kenichi Handa <handa@m17n.org>
9876
9877 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9878 second character is a combining character.
9879
2fdc7d00
EZ
98802008-12-05 Eli Zaretskii <eliz@gnu.org>
9881
9882 * process.c (procfs_system_process_attributes): Don't use cmd,
9883 cmdsize, and q without initializing them first.
9884
bf6bfba8
JR
98852008-12-04 Jason Rumney <jasonr@gnu.org>
9886
9887 * w32font.c (w32font_draw): Initialize orig_clip before getting
9888 it, and delete it when finished.
9889
a3b1a468
DN
98902008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9891
9892 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9893 case when running as a daemon before detaching.
9894
8b8be8eb
JB
98952008-12-03 Juanma Barranquero <lekktu@gmail.com>
9896
805f2638 9897 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9898
b1bde622
KH
98992008-12-03 Kenichi Handa <handa@m17n.org>
9900
e500c47d
KH
9901 * font.c (font_at): Set `multibyte' at first.
9902
ca516334
KH
9903 * coding.c (decode_coding_charset): Check type of an element of
9904 vector VALIDS.
7bf1bb21 9905 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9906
4ccfa1c0 9907 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9908 (font_for_char): Likewise.
9909
1e5ecd37
CY
99102008-12-03 Chong Yidong <cyd@stupidchicken.com>
9911
d5b01609 9912 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9913 (font_update_lface): Handle fonts with corrupted size specs,
9914 i.e. non-int and non-float.
d5b01609 9915
11e3a6e4 9916 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9917 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9918 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9919
ab06788b
CY
9920 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9921
1e5ecd37 9922 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9923 underline_minimum_offset for underline position.
1e5ecd37 9924
63c125ab
DN
99252008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9926
9927 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9928
9929 * character.c (c_string_width): Specify the type for LEN.
9930
3a8406e1
KH
99312008-12-03 Kenichi Handa <handa@m17n.org>
9932
4ccfa1c0 9933 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9934 (decode_coding_utf_8): Likewise.
4ccfa1c0 9935 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9936 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9937
651df7d9
CY
99382008-12-02 Chong Yidong <cyd@stupidchicken.com>
9939
9940 * keyboard.c (make_lispy_position): Only use PT if the selected
9941 window is current.
9942
1f625c6c
AS
99432008-12-02 Andreas Schwab <schwab@suse.de>
9944
f7741ce9
AS
9945 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9946
1f625c6c
AS
9947 * doprnt.c (doprnt1): Fix size of charbuf.
9948
92bc2678
CY
99492008-12-02 Chong Yidong <cyd@stupidchicken.com>
9950
9951 * keyboard.c (timer_check): Revert last change.
9952
93b9e8cc
JB
99532008-12-02 Juanma Barranquero <lekktu@gmail.com>
9954
9955 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9956
fd7a37d5
JB
99572008-12-01 Juanma Barranquero <lekktu@gmail.com>
9958
9959 * makefile.w32-in: Update dependencies.
9960 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9961
c115043b
AS
99622008-12-01 Andreas Schwab <schwab@suse.de>
9963
9964 * font.c (register_font_driver): Use xmalloc.
9965 (font_put_frame_data): Likewise.
9966
f5668d2a
CY
99672008-12-01 Chong Yidong <cyd@stupidchicken.com>
9968
860d96be
CY
9969 * xfaces.c (realize_x_face): Make abort condition clearer.
9970
f5668d2a
CY
9971 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9972
379c17e7
CY
99732008-11-30 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * keyboard.c (timer_check): After a timer runs, ensure that the
9976 selected window's buffer is current.
9977
35f36d65
JB
99782008-11-30 Juanma Barranquero <lekktu@gmail.com>
9979
f952c61c
JB
9980 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9981 It was accidentally restored by the Unicode merge.
9982
35f36d65
JB
9983 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9984
b23077df
JB
99852008-11-29 Juanma Barranquero <lekktu@gmail.com>
9986
9987 * w32proc.c: Include "coding.h".
9988 (Fw32_short_file_name): Encode filename passed to Windows API.
9989 (Fw32_long_file_name): Encode filename passed to Windows API and
9990 decode back the result. (Bug#1433)
9991
b8ebe9dd
KH
99922008-11-29 Kenichi Handa <handa@m17n.org>
9993
8cc53f96
KH
9994 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9995 not before accessing it.
9996
b8ebe9dd
KH
9997 * charset.c (Fdefine_charset_internal): After calculating
9998 min_char, max_char, and fastmap, copy the charset structure again.
9999 (encode_char): Fix the previous change.
10000
59bc82c0
SZ
100012008-11-28 Seiji Zenitani <zenitani@mac.com>
10002
10003 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10004
10005 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10006
10007 * nsterm.m (x_set_frame_alpha): New function.
10008
32247e3d
EZ
100092008-11-27 Eli Zaretskii <eliz@gnu.org>
10010
10011 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10012
b003e5ff
JB
100132008-11-27 Juanma Barranquero <lekktu@gmail.com>
10014
10015 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10016 pointer to check_face_name.
10017
708550f5
KH
100182008-11-27 Kenichi Handa <handa@m17n.org>
10019
10020 * category.h (SET_CATEGORY_SET): Call set_category_set.
10021 (set_category_set): Extern it.
10022
10023 * category.c (hash_get_category_set): New function.
10024 (Fmodify_category_entry): Adjusted for the change of
10025 char_table_ref_and_range. Call hash_get_category_set to get a
10026 category set to store in the table.
10027
10028 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10029 Funify_charset.
10030
2ae37cf0 10031 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10032 (DECODE_CHAR): Check if the decoder vector is ready.
10033 (ENCODE_CHAR): Check if the encoder char-table is ready.
10034 (maybe_unify_char): Extern it.
10035
10036 * charset.c (Vchar_unified_charset_table): Delete it.
10037 (inhibit_load_charset_map): New variable.
10038 (temp_charset_work): New variable.
10039 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10040 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10041 New macros.
10042 (load_charset_map): Meaning of control_flag changed. If
10043 inhibit_load_charset_map is nonzero, setup a table in
10044 temp_charset_work.
10045 (load_charset): New argument control_flag.
10046 (map_charset_for_dump): New function.
10047 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10048 map_charset_for_dump.
10049 (Fdefine_charset_internal): If the charset method is MAP, load
10050 mapping tables by calling load_charset.
10051 (Funify_charset): Don't load a mapping table but directly set
10052 Vchar_unify_table.
10053 (maybe_unify_char): New function.
10054 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10055 Handle the case of inhibit_load_charset_map being nonzero.
10056 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10057 Handle the case of inhibit_load_charset_map being nonzero.
10058 (Fclear_charset_maps): Just free temp_charset_work.
10059 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10060 variable.
10061
10062 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10063 change of char_table_ref_and_range.
10064 (char_table_ref_and_range): Change the meaning of argument FROM
10065 and TO. Now the caller must provide initial values for *FROM
10066 and *TO.
10067
10068 * fontset.c (fontset_add): Adjusted for the change of
10069 char_table_ref_and_range.
10070 (fontset_get_font_group): Likewise.
10071 (Ffontset_info): Likewise.
10072
10073 * keymap.c (describe_vector): Adjusted for the change of
10074 char_table_ref_and_range. For char-table, put boundary between
10075 non-ASCII and 8-bit characters.
10076
10077 * print.c (print_object): For bool-vector, delete unnecessary
10078 check of ASCII_BYTE_P.
10079
9196133b
JR
100802008-11-26 Jason Rumney <jasonr@gnu.org>
10081
10082 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10083 leading in font height. (Bug#879)
9196133b 10084
9f688acf
GM
100852008-11-26 Glenn Morris <rgm@gnu.org>
10086
10087 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10088 redefinition with ifdef. (Bug#1383)
10089
90d19aff
AR
100902008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10091
10092 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10093
4ccfa1c0 100942008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10095
10096 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10097 New EmacsView methods.
10098 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10099 Fixes bug #1048,1357,1414.
10100
101012008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10102
10103 Fix bug #1362.
10104 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10105 is not an indexed color.
10106 * nsterm.m (free_indexed_color): Add argument checking.
10107 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10108
e7d5ecb3
CY
101092008-11-24 Chong Yidong <cyd@stupidchicken.com>
10110
10111 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10112 Document confirm-after-completion value for
10113 minibuffer-completion-confirm.
10114
c285743c
JR
101152008-11-24 Jason Rumney <jasonr@gnu.org>
10116
10117 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10118 warning.
10119
b0857706
JR
101202008-11-23 Jason Rumney <jasonr@gnu.org>
10121
10122 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10123 restored before returning.
10124
10125 * w32font.c (check_face_name): New function.
10126 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10127 fonts. (Bug#642)
b0857706 10128
ee50ff07
MR
101292008-11-22 Martin Rudalics <rudalics@gmx.at>
10130
10131 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10132 confirm-nonexistent-file-or-buffer in doc-string.
10133
b8ff72fa
SM
101342008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10135
10136 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10137 Fix copy/paste typo. Add checks.
10138
cee53ed4
KH
101392008-11-21 Kenichi Handa <handa@m17n.org>
10140
10141 * coding.c (detect_coding_iso_2022): Reject invalid composition
10142 sequence.
10143 (DECODE_COMPOSITION_START): If the current source is the last
10144 block, and the current composition doesn't end, regard this
10145 sequence as invalid.
10146 (decode_coding_iso_2022): Handle invalid composition sequence.
10147
f6ef1e65
MR
101482008-11-20 Martin Rudalics <rudalics@gmx.at>
10149
10150 * window.c (coordinates_in_window): Don't return
10151 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10152 line when the window is not the rightmost one. (Bug#1372)
10153
e08b1705
MR
101542008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10155
10156 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10157
ad98e89f
EZ
101582008-11-15 Eli Zaretskii <eliz@gnu.org>
10159
10160 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10161 and bright_bg if noninteractive is non-zero.
10162
fb098a4b
CY
101632008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10164
10165 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10166 x_draw_glyph_string_background.
10167
10168 * w32term.c (x_draw_glyph_string): Likewise.
10169
ce952b6e
CY
101702008-11-15 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10173 the next glyph string once past the overhang width.
10174
10175 * nsterm.m (ns_draw_glyph_string): Likewise.
10176
10177 * w32term.c (x_draw_glyph_string): Likewise.
10178
26ea7079
CY
101792008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10180
10181 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10182 double file close.
10183
1c33c906
MR
101842008-11-14 Martin Rudalics <rudalics@gmx.at>
10185
10186 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10187 dedicated status of window before attempting to display another
10188 buffer in it.
10189
8fc29035
JB
101902008-11-14 Juanma Barranquero <lekktu@gmail.com>
10191
10192 * msdos.c (Fmsdos_long_file_names):
10193 (syms_of_msdos) <dos-unsupported-char-glyph>:
10194 * dosfns.c (Fint86): Fix typos in docstrings.
10195
55fb4286
EZ
101962008-11-14 Eli Zaretskii <eliz@gnu.org>
10197
10198 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10199
3fda0315
KY
102002008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10201
10202 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10203
7e849c17
CY
102042008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10205
10206 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10207
10208 * frame.h: Negative alpha means "don't touch".
10209
10210 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10211
10212 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10213
b9fd67bd
DN
102142008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10215
10216 * hftctl.c:
10217 * chpdef.h:
10218 * acldef.h: Remove files used only for systems no longer supported.
10219
10220 * Makefile.in: Fix .o alphabetical ordering.
10221 (hftctl.o): Remove dependency, file removed.
10222 (keymap.o, print.o): Depend on charset.h.
10223
d5998e03
KH
102242008-11-10 Kenichi Handa <handa@m17n.org>
10225
2ae37cf0 10226 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10227
be70e183
CY
102282008-11-08 Chong Yidong <cyd@stupidchicken.com>
10229
10230 * dired.c (file_name_completion): If completion_ignore_case is
10231 enabled, ignore case when checking completion-regexp-list.
10232
7cf94eac
EZ
102332008-11-08 Eli Zaretskii <eliz@gnu.org>
10234
10235 * vm-limit.c (get_lim_data): Fix last change.
10236
ee107a89
KH
102372008-11-08 Kenichi Handa <handa@m17n.org>
10238
10239 * character.c (Fget_byte): New function.
10240 (syms_of_character): Defsubr Fget_byte.
10241
5fd15622
CY
102422008-11-07 Chong Yidong <cyd@stupidchicken.com>
10243
10244 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10245 cursor position is valid after scrolling.
10246
13d62fad
JB
102472008-11-06 Juanma Barranquero <lekktu@gmail.com>
10248
10249 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10250
a1dd2936
GM
102512008-11-06 Glenn Morris <rgm@gnu.org>
10252
10253 * xterm.c (handle_one_xevent): Don't let popup menus cause
10254 mouse-autoselect-window related window switching. (Bug#1261)
10255
860cd236
CY
102562008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10257
10258 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10259
653a3150
AS
102602008-11-04 Andreas Schwab <schwab@suse.de>
10261
10262 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10263
870f5cac
CY
102642008-11-03 Chong Yidong <cyd@stupidchicken.com>
10265
10266 * xfns.c (Fx_wm_set_size_hint): New function.
10267
1e02f3cb
MR
102682008-11-03 Martin Rudalics <rudalics@gmx.at>
10269
10270 * textprop.c (Fprevious_single_char_property_change): Return 0
10271 when there's no change in a string. (Bug#1301)
10272
e630dfc6
MR
102732008-11-02 Martin Rudalics <rudalics@gmx.at>
10274
10275 * frame.c (do_switch_frame): New argument NORECORD passed to
10276 Fselect_window.
10277 (Fselect_frame): New argument NORECORD passed to
10278 do_switch_frame.
10279 (Fset_frame_selected_window): New argument NORECORD passed to
10280 Fselect_frame.
10281 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10282 in call of do_switch_frame.
10283 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10284 Handle NORECORD argument in call of Fselect_frame.
10285 * lisp.h (do_switch_frame, Fselect_frame)
10286 (Fset_frame_selected_window): Adjust declarations.
10287 * window.c (select_frame_norecord): New function.
10288 (run_window_configuration_change_hook): Use it and call
10289 Fselect_frame with NORECORD set.
10290 (Fselect_window): Pass NORECORD to Fselect_frame.
10291 (Fset_window_configuration): Handle NORECORD argument in call of
10292 do_switch_frame.
10293 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10294 Fset_frame_selected_window.
10295 * keyboard.c (command_loop_1): Handle NORECORD in call of
10296 Fselect_frame (currently ifdefd).
10297
9020b223
GM
102982008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10299
10300 * emacs.c (USAGE2): Untabify.
10301
793ffee8
SM
103022008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10303
10304 * composite.c (fill_gstring_header): Fix copy/paste typo.
10305
ab6d1131
MR
103062008-10-31 Martin Rudalics <rudalics@gmx.at>
10307
10308 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10309 (Fother_window): Rename argument and rewrite doc-string.
10310 (select_window_norecord): Fix return value. (Bug#1276)
10311
601a9cf1
JB
103122008-10-30 Juanma Barranquero <lekktu@gmail.com>
10313
10314 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10315 new frames overriding foreground for tooltips. Based on similar patch
10316 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10317
813b0652
CY
103182008-10-29 Chong Yidong <cyd@stupidchicken.com>
10319
10320 * emacs.c (Fdaemon_initialized): Initialize nfd.
10321
4414f58f
MR
103222008-10-29 Martin Rudalics <rudalics@gmx.at>
10323
10324 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10325 (Fwindow_text_height): Clarify doc-strings.
10326 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10327 doc-string of window-scroll-functions.
10328
ecdcaa09
RS
103292008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10330
10331 * category.c (syms_of_category): Fix typo in docstring.
10332
23fe745a
JB
103332008-10-28 Juanma Barranquero <lekktu@gmail.com>
10334
10335 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10336 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10337 Fix typos in docstrings.
10338
ff808935
DN
103392008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10340
10341 * emacs.c (daemon_pipe): Make non-static.
10342 (IS_DAEMON): Move definition ...
10343 * lisp.h (IS_DAEMON): ... here.
10344 (daemon_pipe): Declare.
10345 (is_daemon): Remove.
10346 * dispnew.c (init_display): Use IS_DAEMON.
10347
fc012771
SM
103482008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10349
10350 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10351 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10352
10353 * emacs.c (is_daemon): Remove.
10354 (main): Don't set is_daemon.
10355 (IS_DAEMON): New macro.
10356 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10357 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10358 parent exits.
10359 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10360
d8bdbe6f
CY
103612008-10-27 Chong Yidong <cyd@stupidchicken.com>
10362
d1a072bf
CY
10363 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10364 over-sized glyph, draw it with the default glyph width.
10365
e2e325aa
CY
10366 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10367 glyph, draw it with the default glyph width.
10368
10369 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10370 glyph, draw it with the default glyph width.
10371
d8bdbe6f
CY
10372 * xdisp.c (try_scrolling): When computing the distance from the
10373 scroll margin to PT, try moving some distance past the window
10374 bottom before giving up.
10375
7bfac547
MR
103762008-10-27 Martin Rudalics <rudalics@gmx.at>
10377
10378 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10379 (Fset_window_buffer): Explain in doc-string that a window can be
10380 "strongly" dedicated to its buffer.
10381
4ff029f6
DN
103822008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10383
10384 * emacs.c (daemon_name): New variable.
10385 (main): Deal with --daemon=SERVER_NAME.
10386 (Fdaemonp): Return a name if one was passed to --daemon.
10387
5790ef40
DN
103882008-10-26 Romain Francoise <romain@orebokech.com>
10389
f9bd0df9 10390 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10391 (main): Create a pipe before forking, make the parent exit only after
10392 the child has closed its end of the pipe. Move closing the
10393 descriptors ...
10394 (Fdaemon_initialized): ... here. New function.
10395
f5385255
SM
103962008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10397
4d632321
SM
10398 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10399 the previous unoptimized table.
10400
f5385255
SM
10401 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10402 the distinction between non-nil and non-t value of `dedicated'.
10403
6c56a0f3
CY
104042008-10-25 Chong Yidong <cyd@stupidchicken.com>
10405
10406 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10407 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10408
fec89261
MR
104092008-10-25 Martin Rudalics <rudalics@gmx.at>
10410
10411 * window.c (Fget_buffer_window, Fdelete_windows_on)
10412 (Freplace_buffer_in_windows): Make buffer argument optional and
10413 rename to buffer_or_name.
10414
34fcddd0
CY
104152008-10-24 Chong Yidong <cyd@stupidchicken.com>
10416
f5385255
SM
10417 * xdisp.c (handle_single_display_spec, handle_display_prop):
10418 Undo 2005-05-16 change.
34fcddd0
CY
10419 (handle_stop): Pop iterator if it's loaded with an empty string.
10420 (get_overlay_strings_1): Don't save iterator if it's loaded with
10421 an empty string (bug#1201).
10422
064766f2
KH
104232008-10-24 Kenichi Handa <handa@m17n.org>
10424
10425 * ftfont.c (ftfont_otf_features): Fix previous change.
10426 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10427 calling ftfont_otf_features.
10428
f9bd0df9 104292008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10430
10431 * font.c (font_match_p): Fix for the case that a vector of
10432 characters is in script-representative-chars.
10433
1dae9197
MA
104342008-10-24 Michael Albinus <michael.albinus@gmx.de>
10435
10436 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10437 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10438 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10439 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10440 macro. (Bug#1186)
1dae9197 10441
f9bd0df9 104422008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10443
10444 * s/sol2-10.h: New file.
10445
878a4584
JB
104462008-10-23 Juanma Barranquero <lekktu@gmail.com>
10447
10448 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10449 poor beast has survived 9+ years and the jump from xterm.c!).
10450
cd265ca6
MR
104512008-10-23 Martin Rudalics <rudalics@gmx.at>
10452
10453 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10454 Reword doc-string.
f5385255 10455 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10456
472a4dc9
JB
104572008-10-23 Juanma Barranquero <lekktu@gmail.com>
10458
10459 * character.c (syms_of_character) <script-representative-chars>:
10460 <unicode-category-table>: Doc fixes.
10461
159bd5a2
NF
104622008-10-23 Noah Friedman <friedman@splode.com>
10463
10464 * coding.c (make_conversion_work_buffer): Check that
10465 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10466 Fget_buffer_create.
10467
49f9c344
KH
104682008-10-23 Kenichi Handa <handa@m17n.org>
10469
10470 * font.c (font_add_log): Check the values of extra properties.
10471
12bb3111
MR
104722008-10-22 Martin Rudalics <rudalics@gmx.at>
10473
10474 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10475 Reword doc-string.
10476 (Fset_window_parameter): Use NILP.
10477 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10478 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10479
bbeb4e99
JB
104802008-10-22 Juanma Barranquero <lekktu@gmail.com>
10481
10482 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10483
104842008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10485
10486 * nsfns.m (ns_appkit_version): New function.
10487 (x-server-version): Use it.
10488 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10489 (x-server-vendor): Don't check_ns().
10490
10491 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10492
a9b555d3
JB
104932008-10-22 Juanma Barranquero <lekktu@gmail.com>
10494
10495 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10496 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10497
4626499f
KH
104982008-10-22 Kenichi Handa <handa@m17n.org>
10499
e3681952
KH
10500 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10501 scripts.
10502
4626499f
KH
10503 * category.c (word_boundary_p): Check scripts instead of charset.
10504 Handle nil value in word-separating-categories and
10505 word-combining-categories.
10506 (syms_of_category): Fix docstrings of word-separating-categories
10507 and word-combining-categories.
10508
1560f91a
EZ
105092008-10-21 Eli Zaretskii <eliz@gnu.org>
10510
10511 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10512 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10513
f4668441
MR
105142008-10-21 Martin Rudalics <rudalics@gmx.at>
10515
10516 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10517 Rename arg "buffer" to "buffer_or_name".
10518 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10519 it optional.
10520 (no_switch_window): Remove since the return value is not used.
a9b555d3 10521 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10522 Consider window as dedicated when Fwindow_dedicated_p returns a
10523 non-nil value.
10524 * lisp.h: Remove prototype for no_switch_window.
10525
fd75ddb2
JD
105262008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10527
10528 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10529 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10530
07295713
KH
105312008-10-21 Kenichi Handa <handa@m17n.org>
10532
10533 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10534 check Vlatin_extra_code_table.
10535
712adc82
EZ
105362008-10-20 Eli Zaretskii <eliz@gnu.org>
10537
10538 * fileio.c (Fset_file_modes): Doc fix.
10539
f549eb0b
MA
105402008-10-19 Michael Albinus <michael.albinus@gmx.de>
10541
10542 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10543 in arrays.
10544
aac0c6e3
MR
105452008-10-19 Martin Rudalics <rudalics@gmx.at>
10546
10547 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10548 Mention kill-buffer in doc-string.
10549 (Fset_window_buffer): Reinsert tem check removed in last commit.
10550 (Fenlarge_window, Fshrink_window): Have argument names and
10551 doc-string follow Elisp manual more closely.
10552
105532008-10-18 Eli Zaretskii <eliz@gnu.org>
10554
10555 * fileio.c (Fset_file_modes): Doc fix.
10556
105572008-10-18 Martin Rudalics <rudalics@gmx.at>
10558
10559 * window.c (Fwindow_width, Fset_window_start)
10560 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10561 (Fdelete_windows_on, Freplace_buffer_in_windows):
10562 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10563 (Fwindow_dedicated_p): Make window argument optional.
10564 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10565 (Fset_window_buffer): Respect any non-nil dedicated value for
10566 window. Rename "buffer" argument to "buffer_or_name".
10567
105682008-10-18 Ulrich Mueller <ulm@gentoo.org>
10569
10570 * m/sh3.h: New file, machine description for SuperH.
10571
105722008-10-17 Martin Rudalics <rudalics@gmx.at>
10573
10574 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10575
105762008-10-17 Kenichi Handa <handa@m17n.org>
10577
10578 * ftfont.c (ftfont_otf_features): Fix indexing
10579 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10580
105812008-10-16 Magnus Henoch <mange@freemail.hu>
10582
10583 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10584 (Fdbus_call_method_asynchronously): Ditto.
10585 This change makes C-h f display the argument list.
10586
105872008-10-16 Chong Yidong <cyd@stupidchicken.com>
10588
10589 * fileio.c (Fexpand_file_name): Doc fix.
10590
10591 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10592 of :foreground and :background equivalent to unspecified (20.x
10593 compatibility).
10594
105952008-10-15 Eli Zaretskii <eliz@gnu.org>
10596
10597 * buffer.c (syms_of_buffer): Doc fix.
10598
105992008-10-14 Kenichi Handa <handa@m17n.org>
10600
10601 * font.c (font_clear_prop): When clearing font width, clear the
10602 average width field too.
10603
106042008-10-12 Andreas Schwab <schwab@suse.de>
10605
10606 * ftfont.c (ftfont_shape_by_flt): Make static.
10607 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10608
10609 * font.c: Don't include <m17n-flt.h>.
10610
106112008-10-10 Eli Zaretskii <eliz@gnu.org>
10612
10613 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10614
106152008-10-09 Eli Zaretskii <eliz@gnu.org>
10616
10617 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10618 away code.
10619
106202008-10-09 Chong Yidong <cyd@stupidchicken.com>
10621
10622 * dispnew.c (update_text_area): Avoid looping due to large glyph
10623 overhangs (bug#1070).
10624
106252008-10-09 Kenichi Handa <handa@m17n.org>
10626
10627 * fontset.c (face_for_char): If face->fontset is negative, just
10628 return ascii_face.
10629
f5385255
SM
10630 * font.c (font_delete_unmatched): Fix previous change.
10631 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10632
106332008-10-09 Martin Rudalics <rudalics@gmx.at>
10634
10635 * frame.c (Fraise_frame): On text-only terminals select frame in
10636 order to make it visible. (Bug#1061)
10637
106382008-10-08 Chong Yidong <cyd@stupidchicken.com>
10639
10640 * fontset.c (fontset_find_font): Check frame validity.
10641
106422008-10-07 Chong Yidong <cyd@stupidchicken.com>
10643
a9b555d3 10644 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10645 (xg_display_close): Allow Emacs to close all displays (bug#985).
10646
106472008-10-06 Andreas Schwab <schwab@suse.de>
10648
f5385255 10649 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10650
106512008-10-06 Chong Yidong <cyd@stupidchicken.com>
10652
f5385255 10653 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10654
a9b555d3 10655 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10656
10657 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10658 during initialization.
10659
106602008-10-04 Eli Zaretskii <eliz@gnu.org>
10661
10662 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10663 whole thing on MSDOS frames as well as on a TTY.
10664
10665 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10666 well as for TTY.
10667 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10668 well as on a TTY.
10669
10670 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10671 as well as for TTY.
10672
10673 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10674
10675 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10676 MSDOS frames as well.
10677
106782008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10679
10680 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10681 correct arguments.
b71ac3dd 10682 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10683
106842008-10-03 Glenn Morris <rgm@gnu.org>
10685
10686 * emacs.c (USAGE1): Add --daemon.
10687
106882008-10-02 Eli Zaretskii <eliz@gnu.org>
10689
10690 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10691 100, so it's in percents as advertised.
10692
106932008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10694
10695 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10696 (ns_output.current_cursor, ns_output.desired_cursor)
10697 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10698 (FRAME_NEW_CURSOR_COLOR): Remove.
10699
10700 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10701 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10702 enumeration (HOLLOW_BOX_CURSOR, etc.).
10703
10704 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10705 (draw_window_cursor): Simplify code.
f5385255
SM
10706 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10707 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10708 updates manually.
a9b555d3
JB
10709 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10710 Use core Emacs cursor types.
aac0c6e3 10711
b8ff72fa 10712 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10713
107142008-10-02 Martin Rudalics <rudalics@gmx.at>
10715
10716 * process.c (Faccept_process_output): Fix doc-string.
10717
107182008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10719
10720 * gmalloc.c (__sbrk): Also define for uClibc.
10721
10722 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10723 for uClibc.
10724
107252008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10726
10727 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10728 styles.
10729 (nsfont_open): Reenable the cache.
10730
107312008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10732
10733 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10734 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10735
107362008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10739 a suspended terminal.
10740
107412008-09-30 Michael Albinus <michael.albinus@gmx.de>
10742
10743 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10744
107452008-09-30 Eli Zaretskii <eliz@gnu.org>
10746
10747 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10748
107492008-09-30 Chong Yidong <cyd@stupidchicken.com>
10750
10751 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10752 in a continued line coincides with a line beginning.
10753
107542008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10755
10756 * nsfont.m (nsfont_trait_distance): Fix bug.
10757 (nsfont_list): Return a list rather than a vector (syncs with Handa
10758 changes of 2008-05-14).
10759 (nsfont_open): Improve logging.
10760
107612008-09-29 Andreas Schwab <schwab@suse.de>
10762
10763 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10764
107652008-09-28 Martin Rudalics <rudalics@gmx.at>
10766
10767 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10768 name as char-resolve-modifiers.
10769 Reported by: Markus Triska <markus.triska@gmx.at>
10770
107712008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10772
10773 * dispnew.c (init_display): Return earlier when running as a daemon.
10774
107752008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10776
10777 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10778
107792008-09-27 Eli Zaretskii <eliz@gnu.org>
10780
10781 * composite.c (Fcomposition_get_gstring)
10782 (Fcompose_region_internal, Fcompose_string_internal)
10783 (Ffind_composition_internal): Doc fix.
10784 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10785 (syms_of_composite) <auto-composition-function>: Doc fix.
10786 (syms_of_composite) <composition-function-table>: Doc fix.
10787
107882008-09-25 Chong Yidong <cyd@stupidchicken.com>
10789
10790 * search.c (wordify): New argument for lax word-ends.
10791 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10792
107932008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10794
10795 * lisp.h (is_daemon): Declare.
10796 * dispnew.c (init_display): Do not try to initialize the terminal
10797 when running as a daemon.
10798
107992008-09-22 Chong Yidong <cyd@stupidchicken.com>
10800
10801 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10802 x_display_pixel_height.
10803
108042008-09-22 Martin Rudalics <rudalics@gmx.at>
10805
10806 * undo.c (record_point): Don't call Fundo_boundary for first
10807 change. (Bug#731)
10808
108092008-09-22 Juanma Barranquero <lekktu@gmail.com>
10810
10811 * emacs.c (Fdaemonp): Doc fix.
10812
108132008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10814
10815 * emacs.c (main): Place #ifdef in the proper place.
10816
108172008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10818
10819 * emacs.c (standard_args): Add --daemon.
10820 (main): Disconnect from the terminal when --daemon is passed.
10821 (is_daemon): New variable.
10822 (Fdaemonp): New function.
10823 (syms_of_emacs): Defsubr it.
10824
108252008-09-20 Chong Yidong <cyd@stupidchicken.com>
10826
10827 * xdisp.c (get_next_display_element): Handle string display
10828 correctly when checking for the end of a box run.
10829
108302008-09-20 Glenn Morris <rgm@gnu.org>
10831
10832 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10833 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10834 (Frename_file): Avoid copying to trash if a rename involves
10835 a delete. (Bug#964).
10836
108372008-09-20 Eli Zaretskii <eliz@gnu.org>
10838
10839 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10840 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10841 frames as well as termcap frames.
10842 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10843 get_named_tty.
10844
108452008-09-19 Eli Zaretskii <eliz@gnu.org>
10846
10847 * process.c (procfs_system_process_attributes): Fix cmdline in
10848 case /proc/PID/cmdline is empty.
10849
10850 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10851 x_display_pixel_height.
10852
108532008-09-19 Juanma Barranquero <lekktu@gmail.com>
10854
10855 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10856
10857 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10858 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10859
108602008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10861
10862 * dispextern.h (struct it): Move line_wrap away from the middle of
10863 bitfields. Move voffset in struct iterator_stack_entry after the
10864 bitfields. Move tab_width near after another short.
10865
108662008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10867
10868 * frame.h (struct frame): Move alpha from the middle of bitfields.
10869
10870 * window.h (struct window): Move frozen_window_start_p after the
10871 rest of the bitfields to reduce padding.
10872
108732008-09-18 Chong Yidong <cyd@stupidchicken.com>
10874
10875 * xterm.h (x_display_info): Remove `height' and `width' members.
10876
10877 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10878
10879 * w32term.h (w32_display_info): Remove `height', `width',
10880 `height_in', and `width_in' members.
10881
b8ff72fa
SM
10882 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10883 New functions.
aac0c6e3
MR
10884 (x_calc_absolute_position): Use them.
10885 (x_term_init): Omit removed `height' and `width' members.
10886
b8ff72fa
SM
10887 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10888 New functions.
aac0c6e3
MR
10889 (w32_read_socket, x_calc_absolute_position): Use them.
10890 (w32_initialize_display_info, w32_term_init): Omit removed members
10891 of w32_display_info.
10892
b8ff72fa
SM
10893 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10894 New functions.
10895 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10896
b8ff72fa
SM
10897 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10898 New functions.
aac0c6e3
MR
10899 (x_calc_absolute_position): Use them.
10900 (x_term_init): Omit removed `height' and `width' members.
10901
10902 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10903 (compute_tip_xy):
10904 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10905 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10906 x_display_pixel_width.
10907
109082008-09-18 Kenichi Handa <handa@m17n.org>
10909
10910 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10911 (composition_compute_stop_pos): Fix handling of static composition.
10912 (Fcomposition_get_gstring): Check FROM and TO at first.
10913
109142008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10915
46e722a9 10916 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10917 mixup (YAILOM).
10918
109192008-09-17 Chong Yidong <cyd@stupidchicken.com>
10920
10921 * indent.c (Fvertical_motion): Use position reported by iterator
10922 instead of PT for determining screen motion (bug#943).
10923
109242008-09-17 Romain Francoise <romain@orebokech.com>
10925
10926 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10927
109282008-09-17 Kenichi Handa <handa@m17n.org>
10929
10930 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10931
10932 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10933 if necessary.
10934
109352008-09-16 Kenichi Handa <handa@m17n.org>
10936
10937 * coding.c (make_conversion_work_buffer): Avoid calling
10938 Fget_buffer_create if it is not necessary.
10939
109402008-09-15 Martin Rudalics <rudalics@gmx.at>
10941
10942 * window.c (Fselect_window): Don't update window_select_count and
10943 use_time when norecord is not nil.
10944
109452008-09-14 Kenichi Handa <handa@m17n.org>
10946
10947 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10948 specpdl_ptr.
10949
109502008-09-12 Kenichi Handa <handa@m17n.org>
10951
10952 * indent.c (scan_for_column): Don't handle automatic composition
10953 if the current buffer is not associated with a window.
10954
10955 * composite.c (composition_reseat_it): If the current buffer is
10956 not associated with a window, ignore the automatic composition.
10957 (find_automatic_composition): Likewise.
10958
109592008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10960
10961 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10962 (Fgpm_mouse_stop): Use it.
10963 * termhooks.h (close_gpm): Declare.
10964 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10965 connection if Gpm_GetEvent fails.
10966
10967 * window.c (set_window_buffer): Always preserve current-buffer.
10968
109692008-09-12 Glenn Morris <rgm@gnu.org>
10970
10971 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10972
109732008-09-11 Glenn Morris <rgm@gnu.org>
10974
10975 * charset.c (charset-map-path): Doc fix.
10976
109772008-09-10 Kenichi Handa <handa@m17n.org>
10978
10979 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10980
10981 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10982 compose a grapheme cluster with the preceding base glyph.
10983
10984 * composite.c (composition_compute_stop_pos): Fix previous change.
10985 Reset cmp_it->id to -1 at first.
10986
109872008-09-10 Glenn Morris <rgm@gnu.org>
10988
10989 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10990
109912008-09-09 Chong Yidong <cyd@stupidchicken.com>
10992
10993 * keyboard.c (read_key_sequence): Reapply translation maps when
10994 switching keyboards.
10995
109962008-09-09 Kenichi Handa <handa@m17n.org>
10997
10998 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10999 characters.
11000
11001 * composite.c (FORWARD_CHAR): Fix calculation
11002 of (POSITION).pos_byte.
11003 (composition_compute_stop_pos): Limit the search of composition to
11004 at most 500 characters ahead. If we reach the limit or find a
11005 newline, set cmp_it->ch to -2 and return 0.
11006 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11007
110082008-09-08 Kenichi Handa <handa@m17n.org>
11009
11010 * indent.c (Fvertical_motion): Be sure to set
11011 it_overshoot_expected if it.cmp_it.id is non-negative.
11012
110132008-09-07 Andreas Schwab <schwab@suse.de>
11014
11015 * callproc.c (Fcall_process): Don't hold references to string data
11016 across garbage collection. Move initialisation of new_argv down
11017 to avoid compiler bug.
11018
110192008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11020
11021 * process.c (Fsystem_process_attributes): Doc fix.
11022
110232008-09-07 Chong Yidong <cyd@stupidchicken.com>
11024
11025 * callproc.c (Fcall_process): Canonicalize current directory name.
11026
11027 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11028 iterator advances to the next line if the current line ends in a
11029 continued tab.
11030
110312008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11032
11033 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11034 member to point to cmp_from.
11035
11036 * xdisp.c: Doc fix for references to gidx data member.
11037
110382008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11039
11040 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11041
110422008-09-07 Kenichi Handa <handa@m17n.org>
11043
11044 * composite.c (FORWARD_CHAR): Check STOP after
11045 incrementing (POSITION).pos.
11046
110472008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11048
11049 * process.c (Fsystem_process_attributes): Doc fix.
11050
110512008-09-06 Chong Yidong <cyd@stupidchicken.com>
11052
11053 * keyboard.c (Ftop_level): Doc fix.
11054
110552008-09-06 Eli Zaretskii <eliz@gnu.org>
11056
11057 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11058 minibuffer, don't let lower part of menu invade the echo area.
11059
11060 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11061 "char *q" to access menu text and advance through it. Revert the
11062 change that displayed ">" instead of ASCII character 0x10.
11063
110642008-09-05 Eli Zaretskii <eliz@gnu.org>
11065
11066 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11067 toggle boxes and radio buttons on MS-DOS as well.
11068
110692008-09-05 Kenichi Handa <handa@m17n.org>
11070
11071 * composite.c (autocmp_chars): Check lookback count.
11072 (composition_compute_stop_pos): Set cmp_it->lookback.
11073 (composition_reseat_it): Check lookback count.
11074 (struct position_record): New struct.
11075 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11076 (find_automatic_composition): New function.
11077 (composition_adjust_point): Use find_automatic_composition.
11078
11079 * dispextern.h (struct composition_it): New member lookback.
11080
110812008-09-02 Chong Yidong <cyd@stupidchicken.com>
11082
11083 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11084 if moving by a single line.
11085
110862008-09-02 Andreas Schwab <schwab@suse.de>
11087
11088 * xterm.c (x_delete_display): Fix merge error.
11089
11090 * fileio.c (Fexpand_file_name): Remove unused variables.
11091
110922008-09-02 Eli Zaretskii <eliz@gnu.org>
11093
11094 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11095 storage on all platforms, not just on DOS_NT.
11096
110972008-09-02 Jason Rumney <jasonr@gnu.org>
11098
b8ff72fa
SM
11099 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11100 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11101
111022008-09-01 Chong Yidong <cyd@stupidchicken.com>
11103
11104 * xfaces.c (Finternal_set_alternative_font_family_alist)
11105 (Finternal_set_alternative_font_registry_alist): Properly copy
11106 entire alist structure.
11107
111082008-09-01 Kenichi Handa <handa@m17n.org>
11109
d66c0241 11110 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11111 representative chars of the script is a vector.
d66c0241
JB
11112 (ftfont_list): Handle the case where the representative chars of
11113 the script is a vector.
aac0c6e3
MR
11114
11115 * character.c (syms_of_character): Docstring of
11116 script-representative-chars fixed.
11117
111182008-08-31 Eli Zaretskii <eliz@gnu.org>
11119
11120 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11121 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11122 the menu. Allocate larger buffer for `text', to account for
11123 possible ^C characters.
11124
111252008-08-31 Martin Rudalics <rudalics@gmx.at>
11126
11127 * xdisp.c (prepare_menu_bars): Don't call
11128 Vwindow_size_change_functions with arg Qt.
11129
111302008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11131
11132 * font.h (font_range):
11133 * fileio.c (report_file_error):
46e722a9
SM
11134 * composite.c (composition_update_it): Yet another int/Lisp_Object
11135 mixup (YAILOM).
aac0c6e3
MR
11136
111372008-08-30 Glenn Morris <rgm@gnu.org>
11138
11139 * data.c (Fmake_variable_frame_local): Doc fix.
11140
11141 * frame.c (Fmodify_frame_parameters): Doc fix.
11142
111432008-08-30 Eli Zaretskii <eliz@gnu.org>
11144
11145 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11146 needed by GetTokenInformation.
11147 (w32_system_process_attributes): Check return values of all system
11148 APIs.
11149
11150 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11151 only when the state changes.
11152 (IT_update_begin, IT_update_end): Add termscript trace.
11153
11154 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11155 clipboard is unavailable. Set dst to NULL if it doesn't point to
11156 malloc'ed data.
11157 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11158 passing random values to xfree.
11159
11160 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11161 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11162
111632008-08-29 Jason Rumney <jasonr@gnu.org>
11164
11165 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11166
111672008-08-29 Eli Zaretskii <eliz@gnu.org>
11168
11169 * composite.c (fill_gstring_body): Avoid compiler warnings.
11170
11171 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11172 LGLYPH_SET_CODE to avoid compiler warnings.
11173
2ae37cf0 11174 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11175
11176 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11177
11178 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11179 LGLYPH_SET_CODE.
11180
111812008-08-29 Kenichi Handa <handa@m17n.org>
11182
11183 * fileio.c (report_file_error): Don't downcase the first character
11184 of errstring if it is still unibyte.
11185
111862008-08-29 Kenichi Handa <handa@m17n.org>
11187
11188 These changes are to re-implement the automatic composition so
11189 that it doesn't use text properties.
11190
11191 * Makefile.in (ftfont.o): Depend on composite.h.
11192 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11193
11194 * character.h (Vunicode_category_table): Extern it.
11195
11196 * character.c (Vunicode_category_table): New variable.
11197 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11198
11199 * chartab.c (optimize_sub_char_table): Perform more greedy
11200 optimization.
11201
b8ff72fa
SM
11202 * composite.h (enum composition_method):
11203 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11204 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11205 (Vcomposition_function_table): Extern it.
11206 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11207 (composition_gstring_put_cache, composition_gstring_from_id)
11208 (composition_gstring_p, composition_gstring_width)
11209 (composition_compute_stop_pos, composition_reseat_it)
11210 (composition_update_it, composition_adjust_point): Extern them.
11211 (Fcomposition_get_gstring): EXFUN it.
11212
d66c0241 11213 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11214 (Vcomposition_function_table)
11215 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11216 (gstring_hash_table, gstring_work, gstring_work_headers):
11217 New variables.
aac0c6e3
MR
11218 (gstring_lookup_cache, composition_gstring_put_cache)
11219 (composition_gstring_from_id, composition_gstring_p)
11220 (composition_gstring_width, fill_gstring_header)
11221 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11222 (composition_reseat_it, composition_update_it)
b8ff72fa 11223 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11224 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11225 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11226 Defsubr composition_get_gstring.
aac0c6e3
MR
11227
11228 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11229 cmp_id.
11230 (struct glyph_string): Delete the member gidx. New members
11231 cmp_id, cmp_from, and cmp_to.
11232 (enum it_method): Delete GET_FROM_COMPOSITION.
11233 (struct composition_it): New struct.
11234 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11235 Delete c, len, cmp_id, cmp_len in u.comp.
11236
11237 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11238 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11239 (enum lglyph_indices): Likewise.
b8ff72fa 11240 (font_range): Adjust extern.
aac0c6e3
MR
11241 (font_fill_lglyph_metrics): Extern it.
11242
11243 * font.c (QCf): New variable.
11244 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11245 (font_prepare_composition): Delete this function.
11246 (font_range): Type and arguments changed.
11247 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11248 (font_fill_lglyph_metrics): New function.
b8ff72fa 11249 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11250 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11251 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11252 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11253
11254 * fontset.h (font_for_char): Extern it.
11255
11256 * fontset.c (font_for_char): New function.
11257
11258 * ftfont.c: Include composite.h.
11259 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11260 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11261
11262 * indent.c: Include composite.h and dispextern.h.
11263 (check_composition): Delete this function.
11264 (scan_for_column): Handle composition by
11265 composition_compute_stop_pos, composition_reseat_it, and
11266 composition_update_it.
11267 (compute_motion): Likewise.
11268 (Fvertical_motion): Fix checking of composition.
11269
11270 * keyboard.c (adjust_point_for_property): Check composition by
11271 composition_adjust_point.
11272
b8ff72fa 11273 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11274 struct glyph_string.
11275
b8ff72fa
SM
11276 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11277 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11278 struct glyph.
11279 (produce_composite_glyph): Likewise.
11280
b8ff72fa
SM
11281 * w32term.c (x_draw_composite_glyph_string_foreground):
11282 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11283 (x_draw_glyph_string): Likewise.
11284
11285 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11286 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11287
11288 * xdisp.c: Include font.h.
11289 (it_props): Delete the entry for Qauto_composed.
11290 (init_iterator): Initialize it->cmp_it.id to -1.
11291 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11292 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11293 (handle_auto_composed_prop): Delete it.
11294 (handle_composition_prop): Handle only static composition.
11295 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11296 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11297 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11298 (pop_it): Likewise.
11299 (get_next_element): Delete next_element_from_composition.
11300 (CHAR_COMPOSED_P): New macro.
11301 (get_next_display_element): For automatic composition, get a face
11302 from the font in the glyph-string.
11303 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11304 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11305 (next_element_from_string): Check if the character at the current
11306 position is composed by CHAR_COMPOSED_P.
11307 (next_element_from_buffer): Likewise.
d66c0241
JB
11308 (next_element_from_composition): Adjust for the change of struct it.
11309 Update it->cmp_it.
b8ff72fa
SM
11310 (dump_glyph): Adjust for the change of struct glyph.
11311 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11312 it and struct glyph. Don't handle automatic composition here.
11313 (fill_gstring_glyph_string): New function.
11314 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11315 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11316 (BUILD_GSTRING_GLYPH_STRING): New macro.
11317 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11318 automatic composition.
b8ff72fa 11319 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11320 struct glyph.
b8ff72fa 11321 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11322
b8ff72fa 11323 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11324 the change of struct glyph_string.
11325 (x_draw_glyph_string): Likewise.
11326
113272008-08-29 Glenn Morris <rgm@gnu.org>
11328
11329 * buffer.c (word-wrap): Doc fix.
11330 * xdisp.c (truncate-partial-width-windows): Doc fix.
11331 Increase default to 50.
11332
113332008-08-29 Chong Yidong <cyd@stupidchicken.com>
11334
11335 * xdisp.c (update_tool_bar_unwind): New function.
11336 (update_tool_bar): Temporarily set selected frame before building
11337 tool-bar items.
11338
113392008-08-28 Michael Albinus <michael.albinus@gmx.de>
11340
11341 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11342 snprintf, respectively.
11343 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11344
113452008-08-28 Chong Yidong <cyd@stupidchicken.com>
11346
11347 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11348 LDFLAGS to GNUstep CC invocation.
11349
113502008-08-27 Chong Yidong <cyd@stupidchicken.com>
11351
11352 * indent.c (Fvertical_motion): Revert last change. Handle the
11353 general case where we are moving forward, and PT spans multiple
11354 screen lines.
11355
11356 * eval.c (find_handler_clause): Temporarily increase
11357 max-lisp-eval-depth while printing the backtrace buffer, to
11358 guarantee that help-mode code can run.
11359
113602008-08-27 Eli Zaretskii <eliz@gnu.org>
11361
11362 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11363 colors under -rv.
11364 (IT_set_frame_parameters): Don't swap foreground and background
11365 colors if `(reverse . t)' is present in the frame properties.
11366 (internal_terminal_init): Call init_frame_faces only for the
11367 initial frame.
11368
113692008-08-27 Andreas Schwab <schwab@suse.de>
11370
11371 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11372
113732008-08-27 Andreas Schwab <schwab@suse.de>
11374
11375 * search.c (search_buffer): Set char_base to zero only at the end.
11376
113772008-08-27 Kenichi Handa <handa@m17n.org>
11378
b8ff72fa 11379 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11380
113812008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11382
11383 * xterm.c (x_term_init): Temporarily hide the partially
11384 initialized terminal while calling vendor-specific-keysyms.
11385
113862008-08-26 Eli Zaretskii <eliz@gnu.org>
11387
11388 * msdos.c (internal_terminal_init): Most initializations done only
11389 once, especially initial_screen_colors[] and termscript open.
11390
113912008-08-26 Chong Yidong <cyd@stupidchicken.com>
11392
11393 * eval.c (Fcondition_case): Doc fix.
11394
11395 * widgetprv.h (EmacsFramePart): Change font member to the new font
11396 struct.
11397
11398 * widget.c: Include character.h and font.h for XSETFONT.
11399 (setup_frame_gcs): Compute X font id from font struct, just once.
11400
114012008-08-26 Eli Zaretskii <eliz@gnu.org>
11402
11403 * term.c (get_named_tty): Fix last change.
11404
114052008-08-26 Chong Yidong <cyd@stupidchicken.com>
11406
11407 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11408 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11409
114102008-08-25 Eli Zaretskii <eliz@gnu.org>
11411
11412 * frame.c (do_switch_frame): Mark previously displayed frame as
11413 obscured for FRAME_MSDOS_P frames as well.
11414
114152008-08-24 Eli Zaretskii <eliz@gnu.org>
11416
11417 * frame.c (make_terminal_frame): Initialize f->terminal,
11418 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11419 Set the top frame to newly created frame.
11420 (Fmake_terminal_frame): Reuse the_only_display_info.
11421
11422 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11423 estimating available memory.
11424
b97439ce 114252008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11426
11427 * nsterm.m (ns_draw_window_cursor): Don't call
11428 NSDisableScreenUpdates and NSEnableScreenUpdates on
11429 non-NS_IMPL_COCOA systems.
11430
114312008-08-23 Andreas Schwab <schwab@suse.de>
11432
11433 * process.c (procfs_system_process_attributes): Fix use of
11434 uninitialized variables.
11435
114362008-08-23 Eli Zaretskii <eliz@gnu.org>
11437
11438 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11439
11440 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11441 calling tty-set-up-initial-frame-faces.
11442
b8ff72fa
SM
11443 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11444 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11445
11446 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11447 addition to output_termcap.
11448
11449 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11450
11451 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11452 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11453 highlight.
11454
11455 * process.c [!subprocesses]: Define QCname.
11456 (syms_of_process): Intern and staticpro it.
11457
11458 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11459 Adjust for changes in encoding/decoding routines.
11460 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11461 encode_coding and decode_coding.
11462
b8ff72fa 11463 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11464
11465 * dosfns.c: Include frame.h before termhooks.h.
11466 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11467 variable termscript.
11468
11469 * s/msdos.h (USER_FULL_NAME): Define.
11470 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11471
11472 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11473 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11474 pw->pw_gecos.
11475
11476 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11477 SELECTED_FRAME as additional (1st) argument.
11478 (tty_read_avail_input): Handle output_msdos_raw in
11479 addition to output_termcap.
11480
11481 * msdos.c: Include frame.h before termhooks.h.
11482 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11483 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11484 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11485 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11486 (IT_set_terminal_modes, IT_reset_terminal_modes)
11487 (IT_set_frame_parameters): Use tty->termscript instead of a global
11488 variable termscript.
11489 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11490 global variable terminal_coding. Don't refer to
11491 Vnonascii_translation_table.
11492 (internal_terminal_init): Set Vwindow_system in current_kboard.
11493 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11494 Announce date and time of session start, if termscript is open.
11495 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11496 term.c:init_tty). Open termscript only of not already open.
11497 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11498 here instead of dos_ttraw. Don't initialize display if this is an
11499 initial tty. Don't set FRAME_FONT.
11500 (Vwindow_system_version): Bump to 23.
11501 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11502 is available, set up mouse_position_hook.
11503 (dos_ttraw, IT_set_terminal_modes): If called with initial
11504 terminal, do nothing.
11505 (IT_set_frame_parameters): Handle the Qtty_type frame
11506 parameter by calling internal_terminal_init.
11507 (dos_set_window_size, show_mouse_face)
11508 (clear_mouse_face, IT_note_mode_line_highlight)
11509 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11510 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11511 (initialize_msdos_display): New function.
11512 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11513 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11514 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11515 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11516 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11517 (request_sigio, unrequest_sigio): Don't define, now defined on
11518 sysdep.c.
11519 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11520
11521 * term.c [MSDOS]: Include msdos.h.
11522 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11523 conditional to DOS_NT. Allow only one call to this function in a
11524 session. Don't allocate a new struct tty_display_info; instead,
11525 reuse the_only_display_info. Call get_tty_size to get screen
11526 dimensions. Call init_baud_rate to set bad_rate.
11527 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11528 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11529 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11530 (get_tty_terminal, get_named_tty, Ftty_type)
11531 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11532 output_termcap.
b8ff72fa
SM
11533 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11534 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11535 only when subprocesses are supported.
aac0c6e3
MR
11536
11537 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11538 f->output_data.x.
11539 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11540 terminal devices.
11541
5582fbc7 11542 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11543 x_output.
11544 (FRAME_FONT): Use output_data.tty.
11545 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11546 (struct x_display_info): Rename from display_info. Update all users in
11547 msdos.c.
aac0c6e3 11548 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11549 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11550 (dos_ttraw): Update prototype.
11551
11552 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11553 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11554
115552008-08-23 Jason Rumney <jasonr@gnu.org>
11556
11557 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11558 (fn_TIFFSetDirectory): New library function used.
11559 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11560 (tiff_load): Use :index to select among multiple images. Set count
11561 property when multiple images exist.
11562 (gif_format): Use :index, not :image.
11563
115642008-08-23 Chong Yidong <cyd@stupidchicken.com>
11565
11566 * xdisp.c (try_scrolling): Check INT_MAX instead of
11567 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11568 to obtain INT_MAX.
11569
115702008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11571
11572 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11573
115742008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11575
11576 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11577 GNUstep library location.
11578
115792008-08-21 Chong Yidong <cyd@stupidchicken.com>
11580
11581 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11582 before using it.
11583
11584 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11585
115862008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11587
11588 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11589 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11590 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11591 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11592 (EmacsApp-cursor_blink_handler): Remove declaration.
11593 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11594 match 01 Feb 2008 changes in xterm.c.
11595 (ns_read_socket): Add cast to avoid warning.
11596 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11597 GNUstep.
11598
115992008-08-20 Chong Yidong <cyd@stupidchicken.com>
11600
11601 * xselect.c (x_get_foreign_selection): Return nil if desired
11602 selection could not be obtained, instead of signalling an error.
11603
116042008-08-20 David Reitter <david.reitter@gmail.com>
11605
11606 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11607 * nsterm.m: Remove ns-specific code for cursor blinking.
11608 (ns_draw_window_cursor): Clear cursor properly rather than
11609 redrawing the area. Respect width of bar cursors.
11610 These changes enable the use of generic blink-cursor-mode and
11611 generic cursor types in NS and support smooth cursor movements (do
11612 not blink off after command).
11613 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11614 Nextstep, too.
11615
116162008-08-19 Kenichi Handa <handa@m17n.org>
11617
11618 * font.c (Vfont_log_deferred): New variable.
11619 (font_add_log): Check Vfont_log_deferred.
11620 (font_deferred_log): New function.
11621
11622 * font.h (font_deferred_log): Extern it.
11623
11624 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11625 for sorting.
11626 (face_for_char): Use deferred log.
11627
116282008-08-18 Kenichi Handa <handa@m17n.org>
11629
11630 * fontset.c (face_for_char): Add font log.
11631
11632 * font.c (font_add_log): Add the font properties :script, :lang,
11633 and :otf in the log.
11634
116352008-08-17 Chong Yidong <cyd@stupidchicken.com>
11636
11637 * xdisp.c: Remove dead code.
11638 (handle_invisible_prop, next_overlay_string): Defer call to
11639 setup_for_ellipsis.
11640 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11641
116422008-08-15 Chong Yidong <cyd@stupidchicken.com>
11643
11644 * xfaces.c (lookup_derived_face): Properly handle possible zero
11645 return value of get_lface_attributes.
11646 (merge_faces): Don't tell lookup_derived_face to signal an error
11647 if face is not found.
11648
11649 * dired.c (Fdirectory_files): Doc fix.
11650
11651 * process.c (make_process): Initialize kill_without_query struct
11652 member.
11653
116542008-08-15 Eli Zaretskii <eliz@gnu.org>
11655
11656 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11657 Alternative calculation of totphys for Visual Studio 6.
11658
11659 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11660
11661 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11662 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11663 All users changed.
11664 (stat): Only root directory passed to GetDriveType. Allow RAM
11665 disk as well as local fixed disk when w32-get-true-file-attributes
11666 is set to `local'.
11667 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11668 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11669 (w32_cached_id, w32_add_to_cache): New functions.
11670 (get_name_and_id): Look account names in the cache before calling
11671 lookup_account_sid.
11672 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11673 New initialization flags.
11674 (globals_of_w32): Initialize them to zero.
11675 (w32_system_process_attributes): Use w32_cached_id and
11676 w32_add_to_cache.
11677
116782008-08-14 Lawrence Mitchell <wence@gmx.li>
11679
11680 * lread.c (Fread_char, Fread_char_exclusive): If no character
11681 event is read before timeout is reached, return nil, rather than
11682 converting to a number.
11683
116842008-08-14 Chong Yidong <cyd@stupidchicken.com>
11685
11686 * fns.c (use_dialog_box): Doc fix.
11687
11688 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11689 on OS X.
11690
116912008-08-13 Chong Yidong <cyd@stupidchicken.com>
11692
11693 * frame.c (Qns_parse_geometry): New var.
11694 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11695
116962008-08-11 Chong Yidong <cyd@stupidchicken.com>
11697
11698 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11699 space character in calculating tabs.
11700
117012008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11702
11703 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11704
117052008-08-10 Glenn Morris <rgm@gnu.org>
11706
11707 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11708 silence gcc "limited range of data type" warnings in some
11709 make_fixnum_or_float calls.
11710
117112008-08-09 Eli Zaretskii <eliz@gnu.org>
11712
11713 * w32.c (w32_system_process_attributes): If the process does not
11714 exist, return nil.
11715
11716 * w32.c: Include thelp32.h, psapi.h and coding.h.
11717 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11718 declarations.
11719 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11720 (Process32Next_Proc): New typedefs.
11721 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11722 (g_b_init_process32_next, g_b_init_open_thread_token)
11723 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11724 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11725 (g_b_init_get_process_working_set_size)
11726 (g_b_init_global_memory_status_ex): New static variables.
11727 (globals_of_w32): Initialize them.
11728 (create_toolhelp32_snapshot, process32_first, process32_next)
11729 (open_thread_token, impersonate_self, revert_to_self)
11730 (get_process_memory_info, get_process_working_set_size)
11731 (global_memory_status, global_memory_status_ex): New wrapper
11732 functions.
11733 (w32_list_system_processes, w32_system_process_attributes)
11734 (enable_privilege, restore_privilege, ltime, process_times):
11735 New functions.
11736 (convert_time_raw): New function.
11737 (convert_time): Remove conversion of FILETIME into time in 100
11738 nsec units, call convert_time_raw instead.
11739
11740 * process.h (w32_list_system_processes, w32_system_process_attributes):
11741 Add prototypes.
11742 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11743 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11744 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11745 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11746
11747 * process.c (Fsystem_process_attributes): Doc fix.
11748
117492008-08-08 Chong Yidong <cyd@stupidchicken.com>
11750
11751 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11752 a continued multi-char glyph; if so, advance to the actual glyph.
11753
117542008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11755
11756 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11757
11758 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11759 (.m.o): Use it.
11760 * config.in: Regenerate.
11761
117622008-08-07 Chong Yidong <cyd@stupidchicken.com>
11763
11764 * xdisp.c (redisplay_window): Revert last change.
11765 (try_window): Check bottom scroll margin too.
11766
117672008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11768
11769 * config.in: Regenerate.
11770
11771 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11772 -list-load-path-shadows'.
11773 (nsgui.h): Reduce number of things depending on it.
11774
117752008-08-06 Chong Yidong <cyd@stupidchicken.com>
11776
11777 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11778 instead of window-end which does the wrong thing at eob.
11779 (try_cursor_movement): Minor optimization.
11780 (redisplay_window): If scroll margin is defined, don't assume
11781 window doesn't need scrolling.
11782
117832008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11784
11785 * config.in: Regenerate.
11786
11787 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11788 (mostlyclean): Don't delete *.d under NS.
11789
11790 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11791
117922008-08-06 Kenichi Handa <handa@m17n.org>
11793
11794 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11795
117962008-08-06 Andreas Schwab <schwab@suse.de>
11797
11798 * config.in: Regenerate.
11799
118002008-08-05 Chong Yidong <cyd@stupidchicken.com>
11801
11802 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11803 forcing a window start.
11804
11805 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11806 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11807
118082008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11809
11810 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11811 argument.
11812
118132008-08-05 Juanma Barranquero <lekktu@gmail.com>
11814
11815 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11816 <scroll-down-aggressively, before-change-functions>:
11817 <after-change-functions>: Reflow docstrings.
11818
118192008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11820 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11821
11822 Dock menu customization, based on a patch by Ken Raeburn, plus some
11823 other fixes.
11824 * nsmenu.m (dockMenu): New variable.
11825 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11826
11827 * nsterm.h (dockMenu): Declare.
11828
11829 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11830 (ns_term_init): Initialize dockMenu.
11831 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11832 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11833 left.
11834
11835 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11836
118372008-08-04 Chong Yidong <cyd@stupidchicken.com>
11838
11839 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11840
11841 * config.in: Regenerate.
11842
118432008-08-04 Seiji Zenitani <zenitani@mac.com>
11844
11845 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11846
118472008-08-04 Chong Yidong <cyd@stupidchicken.com>
11848
11849 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11850
118512008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11852
11853 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11854
11855 * keyboard.h: Comment an #endif.
11856
11857 * lisp.h (have_menus_p): Adjust comment.
11858
11859 * menu.c (find_and_return_menu_selection): Fix comparison with
11860 client_data.
11861
11862 * nsmenu.m (popup_activated_flag): New variable.
11863 (popup_activated): New function.
11864 (menu-or-popup-active-p): New exported lisp definition.
11865 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11866 when popup done.
11867 (ns_popup_dialog): Set popup_activated_flag.
11868
11869 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11870 version for GNUstep (handled by conditional typedef in nsterm.m).
11871 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11872 in rgb.txt).
11873
11874 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11875
11876 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11877
11878 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11879
11880 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11881 shortcircuit if popup_activated like GTK and X toolkit.
11882
11883 * m/inter386.h: Change DARWIN to DARWIN_OS.
11884
11885 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11886 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11887 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11888 comment on NO_SOCK_SIGIO.
11889
118902008-08-03 Chong Yidong <cyd@stupidchicken.com>
11891
11892 * nsterm.m (windowDidResize): Remove stopModal call.
11893
118942008-08-03 Andreas Schwab <schwab@suse.de>
11895
11896 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11897 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11898
118992008-08-02 Chong Yidong <cyd@stupidchicken.com>
11900
11901 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11902 Don't use uninitialized pointer variable when using getrlimit.
11903
119042008-08-02 Jason Rumney <jasonr@gnu.org>
11905
11906 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11907
119082008-08-02 Eli Zaretskii <eliz@gnu.org>
11909
11910 * alloc.c (NSTATICS): Bump to 0x640.
11911
11912 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11913
11914 * lisp.h: Add prototype for directory_files_internal.
11915
11916 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11917 New functions.
11918 (syms_of_process): Defsubr them. Add initializations for various
11919 Q* symbols used in procfs_system_process_attributes.
11920 (procfs_list_system_processes, procfs_system_process_attributes)
11921 [HAVE_PROCFS]: New functions.
11922 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11923 (procfs_get_total_memory): New functions.
11924
119252008-08-01 Juanma Barranquero <lekktu@gmail.com>
11926
11927 * xfaces.c (Fx_load_color_file): Fix previous change;
11928 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11929
119302008-08-01 Michael Albinus <michael.albinus@gmx.de>
11931
11932 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11933
119342008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11935
11936 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11937
119382008-08-01 Chong Yidong <cyd@stupidchicken.com>
11939
11940 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11941
11942 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11943 define NSApplicationDelegateReplySuccess.
11944 (EmacsView -converstationIdentifier): Use long instead of
11945 NSInteger for GNUstep, since it doesn't have NSInteger.
11946
11947 * xmenu.c: Revert last change.
11948
11949 * keyboard.h: Fix last change.
11950
119512008-08-01 Juanma Barranquero <lekktu@gmail.com>
11952
11953 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11954 on Windows.
11955
119562008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11957
11958 Warning clearing and clean-up in NS port.
11959 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11960 Add prototypes.
11961 * nsgui.h (FACE_DEFAULT): Remove, unused.
11962 (XGCValues): Change colors to unsigned long.
11963 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11964 nsterm.m.
11965 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11966 (ns_list_fonts): Remove, unused.
11967 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11968 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11969 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11970 (nsfont_draw): Compare face colors to 0, not nil.
11971 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11972 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11973 (-addSubmenuWithTitle:): Use NSMenuItem class.
11974 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11975 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11976 (ns_clip_to_row): Make gc arg a BOOL.
11977 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11978 ns_clip_to_row() call.
11979 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11980 used). Cast FRAME_FONT assignments.
11981 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11982 (ns_string_to_lispmod): Change arg to const char.
11983 (ns_term_init): Use NSMenuItem class.
11984 (EmacsApp -openFile:): Move to different section of file.
11985 (EmacsApp -application:openFiles:): Don't return a value, call
11986 -replyToOpenOrPrint:.
11987 (EmacsView -keyDown:): Fix up cast.
11988 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11989 (EmacsView -menuDown:): Cast tag in call to
11990 find_and_call_menu_selection().
11991 (ns_list_fonts): Remove, unused.
11992 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11993 (ns_fontname_to_xlfd): Make static.
11994 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11995 Remove prototypes (now in keyboard.h).
11996 (next_menubar_widget_id): Remove, unused.
11997 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11998 Remove prototypes (now in keyboard.h).
11999 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12000
120012008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12002
12003 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12004 (floatfns.o): Depend on syssignal.h.
12005 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12006
12007 * systty.h: Fix previous change that removed BSD_TERMIOS.
12008 Add comments to #ifdefs.
12009
120102008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12011
12012 * w32fns.c (w32-load-color-file): Remove.
12013 (x-open-connection): Use renamed Fx_load_color_file.
12014 * xfaces.c (x-load-color-file): Add.
12015 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12016 Emacs.clr.
12017 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12018
120192008-07-31 Michael Albinus <michael.albinus@gmx.de>
12020
12021 * dbusbind.c (Fdbus_call_method_asynchronously)
12022 (Fdbus_method_error_internal): New defuns.
12023 (xd_read_message): Handle also reply messages.
12024 (Vdbus_registered_functions_table): Extend docstring.
12025
120262008-07-31 Juanma Barranquero <lekktu@gmail.com>
12027
12028 * keyboard.c (gobble_input): Fix previous change.
12029
120302008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12031
12032 * bitmaps/README:
12033 * xfns.c:
12034 * termcap.c:
12035 * term.c:
12036 * syswait.h:
12037 * systty.h:
12038 * systime.h:
12039 * syssignal.h:
12040 * sysdep.c:
12041 * process.h:
12042 * process.c:
12043 * print.c:
12044 * ndir.h:
12045 * lread.c:
12046 * keyboard.c:
12047 * getpagesize.h:
12048 * floatfns.c:
12049 * fileio.c:
12050 * emacs.c:
12051 * doc.c:
12052 * dispnew.c:
12053 * dired.c:
12054 * data.c:
12055 * callproc.c:
12056 * buffer.c:
12057 * README:
12058 * Makefile.in:
12059 * s/template.h:
12060 * s/msdos.h:
12061 * m/vax.h: Remove VMS support.
12062 * s/vms.h:
12063 * vlimit.h:
12064 * uaf.h:
12065 * temacs.opt:
12066 * param.h:
12067 * ioctl.h: Remove file.
12068
120692008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12070
12071 * s/ms-w32.h (MULTI_KBOARD): Remove.
12072 * xterm.c:
12073 * xselect.c:
12074 * xfns.c:
12075 * window.c:
12076 * w32term.c:
12077 * w32fns.c:
12078 * terminal.c:
12079 * termhooks.h:
12080 * term.c:
12081 * sysdep.c:
12082 * keyboard.h:
12083 * keyboard.c:
12084 * frame.h:
12085 * frame.c:
12086 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12087 * config.in: Regenerate.
12088
120892008-07-30 Jason Rumney <jasonr@gnu.org>
12090
12091 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12092
12093 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12094 (w32font_open_internal): Get unicode version of textmetrics.
12095 Don't enable or disable glyph indices here.
12096 (w32font_open): Disable use of glyph indices.
12097
12098 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12099
121002008-07-30 Chong Yidong <cyd@stupidchicken.com>
12101
12102 * minibuf.c (Vread_buffer_function): Doc fix.
12103
121042008-07-30 John Paul Wallington <jpw@pobox.com>
12105
12106 * minibuf.c (read_buffer_completion_ignore_case): New var.
12107 (Fread_buffer): Use it.
12108
121092008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12110
12111 * systty.h (sensemode): Remove empty #if. Remove reference to
12112 BSD_TERMIOS, unused.
12113
12114 * sysdep.c: Remove reference to DGUX.
12115 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12116
12117 * config.in: Regenerate.
12118
121192008-07-30 Jason Rumney <jasonr@gnu.org>
12120
12121 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12122
121232008-07-29 Jason Rumney <jasonr@gnu.org>
12124
12125 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12126 is populated.
12127 (uniscribe_encode_char): Always use uniscribe.
12128 Avoid using context if cache is populated.
12129
121302008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12131
12132 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12133 open menu.
12134
12135 * gtkutil.c (menu_nav_ended): Remove.
12136 (create_menus): Remove signal connect for menu_nav_ended.
12137
121382008-07-28 Chong Yidong <cyd@stupidchicken.com>
12139
12140 * xdisp.c (redisplay_window): Check return value of
12141 compute_window_start_on_continuation_line before forcing a window
12142 start.
12143
121442008-07-28 Jason Rumney <jasonr@gnu.org>
12145
12146 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12147
12148 * w32term.c (w32_enable_unicode_output, cleartype_active):
12149 Remove obsolete display options.
12150 (x_draw_glyph_string_background): Don't use old cleartype_active
12151 workaround.
12152 (w32_initialize): Remove cleartype_active initialization.
12153 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12154
121552008-07-28 Andreas Schwab <schwab@suse.de>
12156
12157 * lisp.h (init_weak_hash_tables, syms_of_font)
12158 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12159 (remove_hash_entry): Don't declare.
12160 * eval.c (maybe_call_debugger): Make static and move before use.
12161 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12162 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12163 * xterm.h (x_set_frame_alpha): Declare.
12164
121652008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12166
12167 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12168 (create_menus): Connect selection-done to menu_nav_ended.
12169
121702008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12171
12172 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12173 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12174 parameter with read of 'alpha' one.
12175 (Qns_frame_parameter): Remove.
5582fbc7 12176 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12177 (next-selection-coding-system, Vselection_coding_system)
12178 (Vnext_selection_coding_system): Drop.
12179
121802008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12181
12182 * nsfns.m (do-applescript, do_applescript): Rename to
12183 ns-do-applescript, ns_do_applescript, and move within file.
12184
121852008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12186
12187 Remove support for Mac Carbon.
12188 * mactoolbox.c:
12189 * macterm.h:
12190 * macterm.c:
12191 * macselect.c:
12192 * macmenu.c:
12193 * macgui.h:
12194 * macfns.c:
12195 * mac.c: Remove file.
12196 * s/darwin.h:
12197 * m/intel386.h:
12198 * xfaces.c:
12199 * xdisp.c:
12200 * window.c:
12201 * tparam.c:
12202 * termhooks.h:
12203 * termcap.c:
12204 * term.c:
12205 * syssignal.h:
12206 * sysselect.h:
12207 * sysdep.c:
12208 * process.c:
12209 * lread.c:
12210 * lisp.h:
12211 * keyboard.c:
12212 * image.c:
12213 * fringe.c:
12214 * frame.h:
12215 * frame.c:
12216 * fontset.c:
12217 * font.h:
12218 * font.c:
12219 * fns.c:
12220 * fileio.c:
12221 * emacs.c:
12222 * dispnew.c:
12223 * dispextern.h:
12224 * config.in:
12225 * atimer.c:
2ae37cf0 12226 * Makefile.in: Remove code for Carbon.
aac0c6e3 12227
f0131492 122282008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12229
12230 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12231
122322008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12233
12234 * macterm.h (kCGBitmapByteOrder32Host): New define for
12235 non-universal SDKs.
12236
12237 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12238 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12239
12240 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12241 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12242
122432008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12244
12245 * w32inevt.c: Include dispextern.h.
12246
122472008-07-26 Andreas Schwab <schwab@suse.de>
12248
12249 * print.c (print_object): Fix off-by-one in last change.
12250
122512008-07-25 Juanma Barranquero <lekktu@gmail.com>
12252
12253 * term.c (syms_of_term): Don't initialize default_orig_pair,
12254 default_set_foreground and default_set_background on Windows.
12255
122562008-07-25 Jason Rumney <jasonr@gnu.org>
12257
12258 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12259 ScriptItemize. Clean up return value checking. Remove unused
12260 variables.
12261 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12262 shaping engine.
12263
12264 * w32font.c (w32font_has_char): Handle the case where we can't
12265 determine the script for a character.
12266
122672008-07-25 Chong Yidong <cyd@stupidchicken.com>
12268
12269 * term.c (syms_of_term): Initialize default_orig_pair,
12270 default_set_foreground, and default_set_background.
12271
12272 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12273 clash (bug#86).
12274 (getloadavg): Callers changed.
12275
12276 * image.c (svg_load_image): Fix last change.
12277 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12278 image size is valid. Use g_object_unref instead of deprecated
12279 rsvg_handle_free to free rsvg handle.
12280 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12281
122822008-07-25 Jason Rumney <jasonr@gnu.org>
12283
12284 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12285 surrogates before looking up glyph index.
12286 (w32font_text_extents): Encode as surrogates if falling back to
12287 functions that need UTF-16 wide chars.
12288
12289 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12290 BMP as surrogates before looking up glyph index.
12291
122922008-07-25 Chong Yidong <cyd@stupidchicken.com>
12293
12294 * image.c (svg_load_image): Check for failure in return value of
12295 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12296
122972008-07-25 Jason Rumney <jasonr@gnu.org>
12298
12299 * w32font.c (Fx_select_font): Reverse sense of second arg.
12300
123012008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12302
12303 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12304 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12305
12306 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12307 (PURESIZE): Use it.
12308
123092008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12310
12311 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12312 * m/alpha.h (TEXT_END):
12313 * m/ibmrs6000.h (TEXT_END):
12314 * m/macppc.h (TEXT_END):
12315 * s/darwin.h (TEXT_END):
12316 * s/msdos.h (TEXT_END): Remove, unused.
12317 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12318 * s/cygwin.h: Remove comment.
12319
12320 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12321 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12322 * m/intel386.h (DOT_GLOBAL_START):
12323 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12324 (USG): Remove, file not used on USG platforms.
12325
12326 * Makefile.in (HAVE_X11): Remove empty #else.
12327
123282008-07-24 Andreas Schwab <schwab@suse.de>
12329
12330 * fileio.c (Finsert_file_contents): Properly adjust undo list
12331 after format conversion.
12332
123332008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12334
12335 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12336 (menu_nav_ended): Remove.
12337 (create_menus): Remove signal connect for menu_nav_ended.
12338 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12339 create_menus.
12340 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12341
123422008-07-23 Jason Rumney <jasonr@gnu.org>
12343
12344 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12345 with opened font.
12346 (w32font_open): Set font type to gdi.
12347
12348 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12349
123502008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12351
12352 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12353 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12354 defines it.
12355 * unexec.c (ADDR_CORRECT): Define unconditionally.
12356
12357 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12358
12359 * unexec.c: Remove code depending on !COFF and USG, the file is
12360 not used for such systems.
12361
12362 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12363 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12364 (LD_SWITCH_SYSTEM_1): Remove, update users.
12365
12366 * s/darwin.h (DATA_END):
12367 * m/intel386.h (DATA_END):
12368 * m/ibmrs6000.h (DATA_END):
12369 * m/alpha.h (DATA_END): Remove, unused.
12370
12371 * config.in: Regenerate.
12372 * s/ms-w32.h (subprocesses): Define unconditionally.
12373 * s/template.h (subprocesses): Update comment.
12374 * s/vms.h (subprocesses):
12375 * s/usg5-4.h (subprocesses):
12376 * s/hpux10-20.h (subprocesses):
12377 * s/gnu-linux.h (subprocesses):
12378 * s/cygwin.h (subprocesses):
12379 * s/bsd-common.h (subprocesses):
12380 * s/aix4-2.h (subprocesses):
12381 * s/darwin.h (subprocesses): Do not define, defined by default now.
12382
12383 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12384 Remove all references.
12385 (temacs): Add GNUstep specific ld flags.
12386
12387 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12388 similarly to what X does.
12389
123902008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12391
12392 * nsfns.m (x-list-fonts): Remove.
12393 (syms_of_nsfns): Drop the x-list-fonts declaration.
12394 * nsterm.m: Get rid of remaining "//" comments.
12395
123962008-07-22 Chong Yidong <cyd@stupidchicken.com>
12397
12398 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12399
12400 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12401 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12402 (Fns_own_selection_internal, Fx_disown_selection_internal)
12403 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12404
12405 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12406 ... */' style of docstrings. Doc fixes.
12407
124082008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12409
12410 * terminfo.c (UP, BC, PC): Undo previous change.
12411
12412 * nsfns.m: Rename ns prefixed functions/variables to the
12413 corresponding x versions. Update references.
12414
124152008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12416
12417 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12418
124192008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12420
12421 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12422 Remove forwarding functions.
12423 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12424 non-static.
12425 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12426 non-static.
12427 (ns_frame_parm_handlers): Use the new names.
12428 (syms_of_nsfns): Move to the end of file.
12429
12430 * nsterm.m (syms_of_nsterm): Move to the end of file.
12431
12432 * dispnew.c (init_display): Remove code for X10.
12433
124342008-07-22 Jason Rumney <jasonr@gnu.org>
12435
12436 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12437 bare drive.
12438
124392008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12440
12441 * nsterm.m (syms_of_nsterm): Remove debugging println.
12442
124432008-07-22 David Reitter <david.reitter@gmail.com>
12444
12445 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12446 Carbon implementation of the same functionality: execute arbitrary
12447 AppleScript code.
12448
124492008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12450
12451 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12452 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12453 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12454 (Fx_display_mm_height, Fx_display_mm_width)
12455 (Fx_display_backing_store, Fx_display_visual_class)
12456 (Fx_display_save_under, Fx_open_connection)
12457 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12458 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12459 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12460 (Fx_display_pixel_width, Fx_display_pixel_height)
12461 (Fx_display_usable_bounds, Fx_display_planes)
12462 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12463 ... */' style of docstrings.
12464
124652008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12466
12467 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12468 on this platform.
12469 (mips):
12470 * m/iris4d.h (mips): Do not define.
12471 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12472
12473 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12474
12475 * image.c:
12476 * nsfns.m:
12477 * nsselect.m:
12478 * nsterm.h:
12479 * nsterm.m: Rename ns prefixed functions/variables to the
12480 corresponding x versions. Update references.
12481
12482 * m/ibms390x.h (NO_REMAP): Do not undefine.
12483
12484 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12485
124862008-07-21 Chong Yidong <cyd@stupidchicken.com>
12487
12488 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12489 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12490 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12491 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12492 (Fns_display_mm_height, Fns_display_mm_width)
12493 (Fns_display_backing_store, Fns_display_visual_class)
12494 (Fns_display_save_under, Fns_open_connection)
12495 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12496 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12497 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12498 (Fns_display_pixel_width, Fns_display_pixel_height)
12499 (Fns_display_usable_bounds, Fx_display_planes)
12500 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12501
125022008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12503
12504 * print.c (print_object): Check print_depth before searching for
12505 circularities.
12506
125072008-07-21 Michael Albinus <michael.albinus@gmx.de>
12508
12509 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12510 only sprintf.
12511
125122008-07-21 Kenichi Handa <handa@m17n.org>
12513
12514 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12515
125162008-07-20 Andreas Schwab <schwab@suse.de>
12517
12518 * syntax.c (find_start_pos, find_start_value)
12519 (find_start_value_byte, find_start_begv, find_defun_start)
12520 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12521
125222008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12523
12524 * s/sol2-3.h: Insert contents of s/sol2.h.
12525 (LD_SWITCH_SYSTEM): Remove redundant definition.
12526 * s/sol2.h: Remove, unused.
12527
125282008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12529
12530 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12531
125322008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12533
12534 * Makefile.in (ns_appdir): Fix typo in find command.
12535
125362008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12537
12538 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12539
12540 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12541 added not supported anymore.
12542
12543 * s/usg5-4-2.h (LIBS_SYSTEM):
12544 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12545
12546 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12547 * s/lynxos.h (GETPGRP_NO_ARG):
12548 * s/hpux10-20.h (NO_SIOCTL_H):
12549 * s/gnu.h (GETPGRP_NO_ARG):
12550 * s/gnu-linux.h (NO_SIOCTL_H):
12551 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12552 * s/cygwin.h (GETPGRP_NO_ARG):
12553 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12554 (C_DEBUG_SWITCH): Remove duplicate definition.
12555
12556 * m/ibms390.h: Remove boilerplate comments.
12557
12558 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12559
12560 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12561 (wait_reading_process_output): Remove code for SunOS, platform not
12562 supported anymore. Use SOLARIS2 instead of sun.
12563
125642008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12565
12566 * font.c (font_open_by_name): Under NS, default lface height to zero.
12567 (font_open_for_lface): Under NS, set size based on frame fontsize.
12568 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12569 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12570
125712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12572
12573 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12574 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12575 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12576 YES/NO.
12577 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12578 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12579 * Makefile.in (clean): Clear out build destination dir.
12580
125812008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12582
12583 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12584 xterm, xselect.
12585 * lisp.h: Remove declaration of hash_remove.
12586 * nsgui.h: Remove redefinitions of hash_remove.
12587 * fns.c (hash_remove): Rename to hash_remove_from_table.
12588
125892008-07-19 Seiji Zenitani <zenitani@mac.com>
12590
12591 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12592 strdup() the family UTF8String before modifying it.
12593
125942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12595
12596 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12597 NS_FACE_BACKGROUND with 0 instead of nil.
12598 * nsfont.m (nsfont_draw): Same.
12599
126002008-07-19 Chong Yidong <cyd@stupidchicken.com>
12601
12602 * nsfns.m (ns_set_background_color): Fix crash.
12603
126042008-07-18 Chong Yidong <cyd@stupidchicken.com>
12605
12606 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12607
126082008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12609
12610 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12611
126122008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12613
12614 * gtkutil.c: Include <config.h> instead of "config.h".
12615
12616 * lisp.h (Foverlay_buffer): Add EXFUN.
12617
12618 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12619 child process to complete child_setup. Undo 2005-09-21 change.
12620
12621 * s/darwin.h: Mention setsid after vfork.
12622
126232008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12624
12625 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12626 Depend on macgui.h.
12627
12628 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12629 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12630
12631 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12632 and f19.
12633 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12634
12635 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12636 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12637 Remove enumerators.
12638
12639 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12640 Check if FACE_FROM_ID returns NULL.
12641
126422008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12643
12644 * w32inevt.c (change_frame_size): Remove extern declaration.
12645 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12646 change_frame_size.
12647
126482008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12649
12650 * getloadavg.c: Revert last change (2008-07-15).
12651
126522008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12653
12654 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12655 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12656 from configure.
12657
126582008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12659
12660 * s/sol2.h:
12661 * s/sol2-4.h: Reorganize conditionals.
12662
12663 * ecrt0.c: Remove code depending on m68000, not used anymore.
12664
12665 * fns.c (hash_remove): Make static.
12666 * lisp.h (hash_remove): Don't prototype.
12667
12668 * m/ibmrs6000.h:
12669 * m/ibms390x.h:
12670 * m/macppc.h: Remove boilerplate comments.
12671
12672 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12673 Solaris, which does not need them.
12674
12675 * m/vax.h: Remove comments about unsupported systems.
12676
12677 * s/darwin.h: Reorganize ifdefs.
12678
126792008-07-17 Andreas Schwab <schwab@suse.de>
12680
12681 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12682
126832008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12684
12685 Use SDATA. Follow coding convention of placing operators at
12686 beginning of next line rather than end of previous line, and placing
12687 spaces around infix operators.
12688
12689 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12690 in case it was defined already.
12691 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12692 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12693 ns_default.
12694 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12695 Lisp_Objects.
12696 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12697 (ns_defined_color, ns_color_to_lisp): Declare.
12698 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12699 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12700 it's accepted even with USE_LISP_UNION_TYPE.
12701 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12702 (update_frame_tool_bar): Remove apparently obsolete tests for
12703 non-integerness of f->tool_bar_lines.
12704 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12705 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12706 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12707 (nsfont_open): Don't confuse NULL for Qnil.
12708 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12709 * menu.h (find_and_call_menu_selection):
12710 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12711 (find_and_return_menu_selection): Always return something.
12712 * frame.h: Include dispextern.h for Display_Info.
12713 (display_x_get_resource): Declare.
12714
127152008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12716
12717 * syntax.c: Remove stdio.h include accidentally introduced in
12718 Emacs.app commit.
12719 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12720 NS_IMPL_COCOA.
12721 * keyboard.c (handle_async_input, input_available_signal): Remove
12722 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12723
127242008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12725
12726 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12727 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12728 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12729 Use SDATA.
12730
12731 * keymap.c: Remove all NS-specific code.
12732 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12733 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12734 where_is_preferred_modifier, return a different value depending on how
12735 preferred is the binding.
12736 (where_is_internal): Adjust accordingly.
12737 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12738 Adjust to new preferred_sequence_p.
12739 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12740 * keyboard.c (parse_solitary_modifier): Not static any more.
12741 * keyboard.h (parse_solitary_modifier): Declare.
12742
127432008-07-16 Andreas Schwab <schwab@suse.de>
12744
12745 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12746 of easymenu.
12747
127482008-07-16 Chong Yidong <cyd@stupidchicken.com>
12749
12750 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12751 that we don't move off the line.
12752
127532008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12754
12755 * keyboard.c (Qsuper): Remove.
12756 (parse_menu_item): Don't call where_is_internal specially for NS.
12757
127582008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12759
12760 * s/gnu-linux.h: Remove boilerplate comments.
12761
12762 * m/alpha.h (__ELF__): Consolidate conditions.
12763
12764 * m/m68k.h (linux): Use GNU_LINUX instead.
12765 Remove boilerplate comments.
12766
12767 * m/intel386.h: Undo refactoring from previous change.
12768 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12769 too, remove dead code.
12770 (linux): Use GNU_LINUX instead.
12771
127722008-07-16 Jason Rumney <jasonr@gnu.org>
12773
12774 * w32gui.h: Repeat 26 June changes lost by last change.
12775
127762008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12777
12778 * systty.h: Remove code for Aix on 386, unsupported platform.
12779
12780 * s/ms-w32.h: Remove boilerplate comments.
12781 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12782
12783 * s/gnu-linux.h (TERM): Remove support.
12784 (HAVE_SYSVIPC): Remove, unused.
12785 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12786 for this system.
12787
12788 * process.c: Remove support for IRIS, unused.
12789 Remove support for TERM, not relevant anymore.
12790
12791 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12792 used with the definition.
12793
12794 * s/aix4-2.h (static): Do not undef.
12795
12796 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12797 only used on Aix.
12798 (HAVE_SYSVIPC): Remove, unused.
12799
12800 * m/hp800.h (CANNOT_DUMP): Do not undef.
12801
12802 * m/alpha.h: Fix comment.
12803
12804 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12805 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12806 used by this configuration.
12807 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12808 * unexec.c: Remove code depending on HPUX and
12809 USG_SHARED_LIBRARIES, not used with this file. Remove code
12810 depending on IRIS, unused. Remove if 0-ed code.
12811
12812 * s/template.h: Remove comments about static.
12813
12814 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12815 Remove if 0-ed code.
12816 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12817 were the same as the default.
12818 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12819 Remove boilerplate comments.
12820 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12821 (HAVE_SYSVIPC): Remove, unused.
12822 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12823
12824 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12825 Remove boilerplate comments.
12826 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12827 Remove boilerplate comments.
12828 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12829 Remove boilerplate comments.
12830 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12831
12832 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12833 USG systems which do not use DATA_SEG_BITS.
12834 Refactor code. Remove boilerplate comments.
12835
12836 * m/ibms390.h:
12837 * m/m68k.h:
12838 * s/bsd-common.h:
12839 * s/cygwin.h:
12840 * s/darwin.h:
12841 * s/freebsd.h:
12842 * s/gnu.h:
12843 * s/msdos.h: Remove boilerplate comments.
12844
12845 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12846 do not use this file.
aac0c6e3
MR
12847 (IRIS_4D): Remove, unused.
12848
12849 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12850 do not use this file.
aac0c6e3
MR
12851 (SIGN_EXTEND_CHAR):
12852 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12853 * unexmips.c: Remove file, unused.
12854
12855 * editfns.c (Fuser_full_name): Replace the only use of
12856 USER_FULL_NAME with its value.
12857 * config.in: Regenerate.
12858
128592008-07-16 David Reitter <david.reitter@gmail.com>
12860
12861 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12862 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12863
128642008-07-16 Glenn Morris <rgm@gnu.org>
12865
12866 * emacs.c (system-type): Doc fix.
12867
128682008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12869
12870 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12871 If the cache doesn't work, let's fix it, rather than work around it.
12872
128732008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12874
12875 * Makefile.in: Correct additions for nsfont.o in last commit.
12876 * nsfont.m: New file (forgot last commit).
12877
128782008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12879
12880 * callproc.c (set_initial_environment): Initialize
12881 Vprocess_environment under CANNOT_DUMP (fixes crash when
12882 batch-compiling for bootstrap).
12883
128842008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12885 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12886
c4cc8b9a
JB
12887 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12888 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12889
128902008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12891
12892 Changes and additions for NeXTstep windowing system (Cocoa and
12893 GNUstep) support.
12894
12895 * Makefile.in:
12896 * config.in: Support defines and build commands for NS port.
12897 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12898 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12899 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12900 windowing.
12901 (struct face): Add synth_ital field.
12902 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12903 (init_display): Initialize Vinitial_window_system to "ns" when so
12904 compiled.
12905 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12906 (display_arg): Use under NS.
12907 (main): Under NS, allocate autorelease pool and handle command line
12908 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12909 (standard_args): Add NS-specific args.
12910 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12911 * font.c (DEFAULT_ENCODING): New variable.
12912 (font_find_for_lface): Use it.
12913 (syms_of_font): Load syms_of_nsfont under NS.
12914 * font.h: Declare nsfont_driver when compiled under NS.
12915 * fontset.c: When compiling under NS, include nsterm.h.
12916 (fontset_from_font): Autoconstruct fontset under NS.
12917 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12918 symbol, document and use it.
12919 (do_switch_frame): When for_deletion under Cocoa, add
12920 Fraise_frame(Qnil).
12921 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12922 (x_get_arg): Allow "yes" and "no" as boolean values.
12923 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12924 Qright under Cocoa.
12925 (focus-follows-mouse): Default to 0 under NS.
12926 * frame.h (enum output_method): Add output_ns.
12927 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12928 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12929 (FRAME_WINDOW_P): NS-specific definition.
12930 * fringe.c (max_used_fringe_bitmap): Make public.
12931 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12932 (getloadavg): Use NeXT code under descendant OS's.
12933 * image.c (includes and header section, x_create_bitmap_from_data)
12934 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12935 (image_background_transparent, x_clear_image_1)
12936 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12937 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12938 (x_to_xcolors, x_from_xcolors, x_disable_image)
12939 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12940 other GUIs, including XPM support using code originally written for
12941 Carbon GUI.
12942 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12943 using NS API.
12944 (image_ascent): Use font metrics macros instead of direct struct field
12945 access.
12946 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12947 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12948 Also, handle NS as GTK for menu bar purposes.
12949 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12950 toolkit where they differ.
12951 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12952 use cachelist, still needed under NS.
12953 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12954 (struct widget_value): Define it here for menu.c.
12955 * keymap.c (includes): Include modifier internals.
12956 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12957 NS.
12958 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12959 support for preferring sequences using certain modifiers, specified by
12960 the FIRSTONLY argument.
12961 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12962 under NS GNUstep implementation.
12963 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12964 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12965 * menu.c: Include nsterm.h under NS.
12966 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12967 (free_menubar_widget_tree_value, update_submenu_strings)
12968 (find_and_call_menu_selection): Treat NS as X and NT.
12969 (find_and_return_menu_selection): New function, used for popup menus.
12970 * nsgui.h:
12971 * nsterm.h:
12972 * nsfns.m:
12973 * nsimage.m:
12974 * nsmenu.m:
12975 * nsselect.m:
12976 * nsterm.m: New files.
12977 * process.c (wait_reading_process_output): Under NS, call ns_select()
12978 instead of plain select().
12979 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12980 beginning of buffer.
12981 * sysselect.h (init_process): Rename when compiling under Cocoa to
12982 avoid name conflict.
12983 * termhooks.h (display_info): Add ns_display_info to union.
12984 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12985 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12986 COCOA environment.
12987 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12988 unexec() signature. (Note, this will dump, but the resulting file
12989 crashes; unexosx is used instead; keeping around for reference and
12990 possible aid in getting dump working under GNUstep.)
12991 * w32gui.h (button_type, widget_value): Remove definitions (now in
12992 keyboard.h).
12993 * window.c: Include nsterm.h when compiling under NS.
12994 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12995 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12996 other GUI windowing systems.
12997 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12998 GTK.
12999 (x_consider_frame_title): Under NS, set icon type and frame
13000 modified-state indicator; use ns_set_name_as_filename() when using
13001 formatted title.
13002 (update_window_cursor): Make public when compiling under NS.
13003 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13004 (hourglass_atimer, Vhourglass_delay
13005 * xfaces.c (header section, init_frame_faces, clear_font_table)
13006 (defined_color, unload_color, x_face_list_fonts)
13007 (prepare_face_for_display): Add NS support parallel to other GUIs.
13008 Emulate GCs like other non-X GUIs.
13009 (split_font_name): Don't lowercase font name under NS.
13010 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13011 under NS.
13012 * s/darwin.h: Add support for compilation under NS.
13013
130142008-07-15 Jason Rumney <jasonr@gnu.org>
13015
13016 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13017 (w32_show_hourglass): Rename from show_hourglass.
13018 (w32_hide_hourglass): Rename from hide_hourglass.
13019 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13020 (Vhourglass_delay): Declare extern.
13021 (hourglass_started): Remove.
13022
13023 * xdisp.c (Vhourglass_delay): Remove static.
13024 (hourglass_started, start_hourglass, cancel_hourglass):
13025 Don't include these versions on WINDOWSNT.
13026
130272008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13028
13029 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13030 variables (formerly in xfns.c).
13031 (show_hourglass, hide_hourglass): New prototypes (same).
13032 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13033 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13034 in xfns.c).
13035 (syms_of_xdisp): Declare/initialize display-hourglass,
13036 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13037 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13038 formerly in xfns.c.
13039 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13040 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13041 (start_hourglass, cancel_hourglass): Remove.
13042 (show_hourglass, hide_hourglass): Remove prototypes and static
13043 modifiers.
13044 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13045 hourglass_atimer, hourglass_shown_p declaration/initialization.
13046 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13047 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13048 (start_hourglass, cancel_hourglass): Remove.
13049 (show_hourglass, hide_hourglass): Remove prototypes and static
13050 modifiers.
13051 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13052 hourglass_atimer, hourglass_shown_p declaration/initialization.
13053 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13054 (DEFAULT_HOURGLASS_DELAY): Remove.
13055 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13056 hourglass_shown_p declaration/initialization.
13057
130582008-07-14 Jason Rumney <jasonr@gnu.org>
13059
13060 * w32fns.c (w32_get_arg): Remove wrapper function.
13061 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13062 directly.
13063 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13064
130652008-07-14 Kenichi Handa <handa@m17n.org>
13066
13067 * xfont.c (xfont_open): Add workaround for X's bug.
13068
130692008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13070
13071 * fontset.c: Include <stdio.h> unconditionally.
13072
130732008-07-13 Michael Albinus <michael.albinus@gmx.de>
13074
13075 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13076 for filtering.
13077
130782008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13079
13080 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13081
13082 * m/macppc.h:
13083 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13084
c4cc8b9a 13085 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13086 (SPECIAL_EMACS_INT):
13087 * m/ia64.h (SPECIAL_EMACS_INT):
13088 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13089 * s/gnu.h (NLIST_STRUCT):
13090 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13091 * s/gnu-linux.h (LINUX):
13092 * s/msdos.h (HAVE_FACES):
13093 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13094
13095 * systty.h:
13096 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13097 anymore.
13098
130992008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13100
13101 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13102 always defined as int.
13103
13104 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13105 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13106 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13107 * s/freebsd.h (HAVE_WAIT_HEADER):
13108 * s/bsd-common.h (HAVE_UNION_WAIT):
13109 * s/aix4-2.h (HAVE_WAIT_HEADER):
13110 * m/mips.h (HAVE_UNION_WAIT):
13111 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13112 (COFF, static): Do not define, they are undefined later in the file.
13113
13114 * process.c (update_status): Don't use a union.
13115 (status_convert):
13116 (sigchld_handler): Use int instead of WAITTYPE.
13117
131182008-07-12 Chong Yidong <cyd@stupidchicken.com>
13119
13120 * indent.c (Fvertical_motion): Restore hscroll before moving to
13121 goal column.
13122
131232008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13124
13125 * lisp.h: Remove left over code.
13126
131272008-07-11 Andreas Schwab <schwab@suse.de>
13128
13129 * lisp.h: Fix logic in last change.
13130
13131 * menu.h: New file.
13132 * menu.c: Include it.
13133 * xmenu.c: Likewise.
13134 * Makefile.in: Update dependencies.
13135
131362008-07-11 Kenichi Handa <handa@m17n.org>
13137
13138 * fontset.c (fontset_from_font): Cancel the previous change.
13139
131402008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13141
13142 * lisp.h:
13143 * w32heap.c:
13144 * emacs.c:
13145 * alloc.c: Replace all references of NO_UNION_TYPE with
13146 USE_LISP_UNION_TYPE.
13147
13148 * m/xtensa.h (NO_UNION_TYPE):
13149 * m/vax.h (NO_UNION_TYPE):
13150 * m/template.h (NO_UNION_TYPE):
13151 * m/sparc.h (NO_UNION_TYPE):
13152 * m/mips.h (NO_UNION_TYPE):
13153 * m/macppc.h (NO_UNION_TYPE):
13154 * m/m68k.h (NO_UNION_TYPE):
13155 * m/iris4d.h (NO_UNION_TYPE):
13156 * m/intel386.h (NO_UNION_TYPE):
13157 * m/ibms390x.h (NO_UNION_TYPE):
13158 * m/ibms390.h (NO_UNION_TYPE):
13159 * m/ibmrs6000.h (NO_UNION_TYPE):
13160 * m/ia64.h (NO_UNION_TYPE):
13161 * m/hp800.h (NO_UNION_TYPE):
13162 * m/arm.h (NO_UNION_TYPE):
13163 * m/amdx86-64.h (NO_UNION_TYPE):
13164 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13165 defining it the same.
13166
131672008-07-10 Chong Yidong <cyd@stupidchicken.com>
13168
13169 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13170
131712008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13172
13173 * fileio.c:
50426a04 13174 * sysdep.c:
aac0c6e3
MR
13175 * systty.h:
13176 * m/ibmrs6000.h:
13177 * m/iris4d.h:
13178 * s/aix4-2.h:
13179 * s/freebsd.h:
13180 * s/gnu-linux.h:
13181 * s/hpux10-20.h:
13182 * s/hpux11.h:
13183 * s/netbsd.h:
13184 * s/sol2-3.h:
13185 * s/sol2-4.h:
13186 * s/sol2.h:
13187 * s/usg5-4.h:
13188 * s/vms.h: Remove references to unused variables.
13189
131902008-07-10 Andreas Schwab <schwab@suse.de>
13191
13192 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13193 pattern before matching the generic family.
13194
131952008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13196
13197 * unexec.c:
13198 * s/vms.h:
13199 * s/usg5-4-2.h:
13200 * s/sol2-5.h:
13201 * s/freebsd.h:
13202 * s/darwin.h: Remove dead code.
13203
13204 * m/template.h:
13205 * m/sparc.h:
13206 * m/mips.h:
13207 * m/m68k.h:
13208 * m/iris4d.h:
13209 * m/intel386.h:
13210 * m/ibms390x.h:
13211 * m/ibms390.h:
13212 * m/ia64.h:
13213 * m/hp800.h:
13214 * m/arm.h:
13215 * m/amdx86-64.h: Remove dead code and references to unused
13216 and compiler defined symbols.
13217
13218 * unexmips.c:
13219 * unexelf.c: Remove references to desupported systems.
13220
13221 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13222
13223 * m/powermac.h: Remove boilerplate comments.
13224 (NO_REMAP): Remove unused definition.
13225
13226 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13227 define them.
13228
132292008-07-10 Kenichi Handa <handa@m17n.org>
13230
13231 * xfont.c (xfont_open): Log the reason of failure.
13232
132332008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13234
13235 * fontset.c (fontset_get_font_group):
13236 * font.c (font_check_otf): Specify argument types.
13237
132382008-07-09 Kenichi Handa <handa@m17n.org>
13239
13240 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13241 non-ASCII char is found.
13242
13243 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13244 (reorder_font_vector): Change the arg preferred_family to font.
13245 Prefer the spec matching with font.
13246 (fontset_get_font_group): New function.
13247 (fontset_find_font): Change the format of an element of a realized
13248 fontset. Use fontset_get_font_group.
13249 (fontset_font): Try the current fontset, the default fontset, the
13250 fallbacks of the current fontset, and the fallbacks of the default
13251 fontset in this order.
13252 (face_for_char): Delete the shortcut to use the current font.
13253 (fontset_from_font): Don't set fonts for Latin in the fontset.
13254
13255 * font.h (font_make_object, font_match_p): Adjust prototypes.
13256
13257 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13258
13259 * font.c (font_make_object): New arg entity and pixelsize.
13260 (font_check_otf_features, font_check_otf): New functions.
13261 (font_match_p): Check :lang, :script, and :otf properties.
13262
13263 * xfont.c (xfont_open): Adjust it for the change of
13264 font_make_object.
13265 (xfont_text_extents): Fix initial setting of metrics.
13266
13267 * ftfont.c (struct ftfont_info): New member index, delete member
13268 fc_charset_idx. Make the member order compatible with struct
13269 xftfont_info.
13270 (fc_charset_table): Change charset names to registry names.
13271 (ftfont_pattern_entity): Delete the args registry and
13272 fc_charset_idx. Change the value of :font-entity property
13273 to (FONTNAME . INDEX). Always set :registry property to
13274 `iso10646-1'.
13275 (struct ftfont_cache_data): New struct.
13276 (ftfont_lookup_cache): New arg for_face.
13277 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13278 (ftfont_driver): Set the member otf_capability.
13279 (ftfont_get_charset): Adjust it for the change of
13280 fc_charset_table.
13281 (OTF_TAG_SYM): New macro.
13282 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13283 for the change of fc_charset_table.
13284 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13285 ftfont_pattern_entity. Add FC_INDEX to objset.
13286 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13287 and ftfont_pattern_entity.
13288 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13289 font_make_object, struct ftfont_info.
13290 (ftfont_has_char): Use ftfont_get_fc_charset.
13291 (ftfont_otf_features, ftfont_otf_capability): New functions.
13292 (ftfont_shape): Use ftfont_get_otf.
13293 (ftfont_text_extents): Fix initial setting of metrics.
13294
13295 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13296 member order compatible with struct ftfont_info.
13297 (xftfont_open): Add FC_CHARSET to the pattern. Set
13298 xftfont_info->ft_size. Don't unlock the face. Check BDF
13299 properties if appropriate.
13300 (xftfont_close): Unlock the face.
13301 (xftfont_anchor_point, xftfont_shape): Deleted.
13302 (syms_of_xftfont): Don't set members anchor_point and shape of
13303 xftfont_driver.
13304
13305 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13306 font_make_object.
13307
13308 * w32font.c (w32font_open): Adjust it for the change of
13309 font_make_object.
13310 (w32font_open_internal): Don't set properties of font_object here.
13311
133122008-07-08 Chong Yidong <cyd@stupidchicken.com>
13313
13314 * macfns.c (x_create_tip_frame):
13315 * w32fns.c (x_create_tip_frame):
13316 * xfns.c (x_create_tip_frame): Pass parameter argument to
13317 face-set-after-frame-default.
13318
13319 * xfaces.c (Finternal_merge_in_global_face): Save merged
13320 attributes for the default face back into the face vector.
13321
133222008-07-08 Andreas Schwab <schwab@suse.de>
13323
13324 * fontset.h: Declare fontset_from_font. Don't declare
13325 new_fontset_from_font and fontset_from_font_name.
13326 * xterm.c: Include "fontset.h".
13327 * Makefile.in (xterm.o): Update dependencies.
13328
133292008-07-08 Glenn Morris <rgm@gnu.org>
13330
13331 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13332 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13333
133342008-07-07 Chong Yidong <cyd@stupidchicken.com>
13335
13336 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13337 (x_set_frame_parameters): Don't bind it.
13338
133392008-07-07 Juanma Barranquero <lekktu@gmail.com>
13340
13341 * w32fns.c (map_w32_filename): Declare extern.
13342
133432008-07-07 Jason Rumney <jasonr@gnu.org>
13344
13345 * w32term.c (WS_EX_LAYERED): Define if not already.
13346
133472008-07-06 Chong Yidong <cyd@stupidchicken.com>
13348
13349 * xfaces.c (set_font_frame_param): Don't try to set the font
13350 parameter if it is still unspecified in the lface.
13351
133522008-07-05 Chong Yidong <cyd@stupidchicken.com>
13353
13354 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13355 face if it didn't already exist.
13356
13357 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13358
133592008-07-05 Andreas Schwab <schwab@suse.de>
13360
13361 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13362
133632008-07-05 Chong Yidong <cyd@stupidchicken.com>
13364
13365 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13366 word-wrapping.
13367 (IT_DISPLAYING_WHITESPACE): New macro.
13368 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13369 when word-wrapping. Simplify word-wrapping logic. Use correct
13370 pixel positions when saving copies of the iterator.
13371 (display_line): Use proper wrap point if the last character on a
13372 line was preceded by whitespace.
13373
133742008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13375
13376 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13377
133782008-07-04 Kenichi Handa <handa@m17n.org>
13379
13380 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13381
13382 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13383
133842008-07-02 Jason Rumney <jasonr@gnu.org>
13385
13386 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13387 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13388
13389 * xdisp.c (next_element_from_display_vector): Move assignment out
13390 of if statement.
13391
133922008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13393
13394 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13395
13396 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13397 (syms_of_fileio): Initialize and export them.
13398 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13399
13400 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13401 (Fsystem_move_file_to_trash): New function.
13402 (syms_of_w32fns): Export it to lisp.
13403
134042008-07-01 Jason Rumney <jasonr@gnu.org>
13405
13406 * w32font.c (w32font_text_extents): Don't count overhang as part
13407 of width.
13408
134092008-06-30 Miles Bader <miles@gnu.org>
13410
13411 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13412 Add `avoid_cursor_p' field.
13413
13414 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13415 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13416 (append_glyph, append_composite_glyph, produce_image_glyph)
13417 (append_stretch_glyph): Initialize avoid_cursor_p.
13418 (get_it_property): Rename from `get_line_height_property'.
13419 (x_produce_glyphs): Use get_it_property.
13420 (handle_line_prefix, push_display_prop): New functions.
13421 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13422 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13423 New variables.
13424 (syms_of_xdisp): Initialize them.
13425
134262008-06-30 Kenichi Handa <handa@m17n.org>
13427
13428 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13429 XftDefaultSubstitute (they are called in XftFontMatch).
13430 (xftfont_open): Fix args to ftfont_font_format.
13431
13432 * ftfont.c (fc_charset_table): New member lang.
13433 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13434 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13435 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13436 (ftfont_open): Fix args to ftfont_font_format.
13437 (ftfont_font_format): New arg filename.
13438
134392008-06-30 Chong Yidong <cyd@stupidchicken.com>
13440
13441 * xfaces.c (Finternal_merge_in_global_face): If default face was
13442 modified, realize it again. Update the font face attribute.
13443
134442008-06-29 Jason Rumney <jasonr@gnu.org>
13445
13446 * w32term.c (x_set_frame_alpha): Fix logic.
13447
134482008-06-29 Kenichi Handa <handa@m17n.org>
13449
13450 * fontset.c (Finternal_char_font): Return font-object instead of
13451 font-name.
13452
13453 * composite.c (get_composition_id): Fix the width calculation for TAB.
13454
134552008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13456
13457 * indent.c (Fvertical_motion): Properly handle float column arg.
13458
134592008-06-28 Jason Rumney <jasonr@gnu.org>
13460
13461 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13462 (pfnSetLayeredWindowAttributes): New function pointer.
13463 (w32_initialize): Initialize it when supported.
13464 (x_set_frame_alpha): New function.
13465
13466 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13467 (w32_frame_parm_handlers): Set alpha handler.
13468
13469 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13470
134712008-06-27 Jason Rumney <jasonr@gnu.org>
13472
13473 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13474 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13475 (w32_to_x_charset, x_to_w32_charset)
13476 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13477 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13478 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13479 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13480 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13481 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13482 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13483 (Qw32_charset_unicode): Remove.
13484 (syms_of_w32fns): Update for above changes.
13485
13486 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13487 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13488 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13489 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13490 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13491 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13492 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13493 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13494 (syms_of_w32font): Update for above changes.
13495
134962008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13497
13498 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13499 removed #if.
13500 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13501
135022008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13503 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13504
13505 * makefile.w32-in (LOCAL_FLAGS):
13506 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13507
13508 * sysdep.c (_spawnlp, _getpid):
13509 Declare with explicit _cdecl instead of _CRTAPI1.
13510
13511 * editfns.c (Fget_internal_run_time):
13512 Check for WINDOWSNT with #ifdef, not #if.
13513
135142008-06-26 Jason Rumney <jasonr@gnu.org>
13515
13516 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13517
13518 * w32term.c (x_draw_glyph_string_foreground)
13519 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13520 Use FONT_HANDLE macro.
13521 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13522
13523 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13524 (uniscribe_encode_char): Use FONT_HANDLE macro.
13525
13526 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13527 (w32font_text_extents): Use precast w32_font.
13528 (w32font_close): Free cached metrics.
13529 (w32font_open_internal): Allocate space for name on stack.
13530
135312008-06-26 Chong Yidong <cyd@stupidchicken.com>
13532
13533 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13534
135352008-06-26 Jason Rumney <jasonr@gnu.org>
13536
13537 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13538 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13539
135402008-06-26 Juanma Barranquero <lekktu@gmail.com>
13541
13542 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13543
135442008-06-26 Jason Rumney <jasonr@gnu.org>
13545
13546 * w32bdf.c, w32bdf.h: Remove obsolete files.
13547
13548 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13549
13550 * w32gui.h: Don't include w32bdf.h.
13551 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13552 Remove obsolete font support.
13553
13554 * w32font.h (struct w32font_info): Remove compat_w32_font.
13555 Add hfont member.
13556 (FONT_COMPAT): Remove obsolete macro.
13557
13558 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13559 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13560 (w32font_open_internal): Remove compat code. Set new hfont member.
13561 (Fx_select_font): Use new hfont member.
13562
13563 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13564 (uniscribe_encode_char): Use new hfont member.
13565
13566 * w32term.c (x_draw_glyph_string_foreground)
13567 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13568 (x_draw_glyph_string): Use metrics in w32font_info.
13569
135702008-06-26 Kenichi Handa <handa@m17n.org>
13571
13572 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13573
135742008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13575
13576 * unexnext.c:
13577 * m/ews4800.h:
13578 * m/hp9000s300.h:
13579 * m/ibm370aix.h:
13580 * m/mips-siemens.h:
13581 * m/ncr386.h:
13582 * m/next.h:
13583 * m/pmax.h:
13584 * m/powerpcle.h:
13585 * m/tandem-s2.h:
13586 * s/386bsd.h:
13587 * s/bsd386.h:
13588 * s/bsd4-1.h:
13589 * s/bsd4-2.h:
13590 * s/bsdos2-1.h:
13591 * s/bsdos2.h:
13592 * s/bsdos3.h:
13593 * s/bsdos4.h:
13594 * s/nextstep.h:
13595 * s/ultrix4-3.h:
13596 * s/usg5-0.h:
13597 * s/usg5-2-2.h:
13598 * s/usg5-2.h:
13599 * s/usg5-4-3.h:
13600 * s/ux4800.h:
13601 * s/uxpds.h:
13602 * s/uxpv.h: Remove support for obsolete systems.
13603 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13604 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13605 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13606 Remove, insert contents in s/aix4-2.h.
13607 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13608 * s/bsd4-3.h: Rename to ...
13609 * s/bsd-common.h: ... this.
13610 * data.c:
13611 * doc.c:
13612 * ecrt0.c:
13613 * emacs.c:
13614 * fileio.c:
13615 * floatfns.c:
13616 * keyboard.c:
13617 * mem-limits.h:
13618 * print.c:
13619 * process.c:
13620 * sysdep.c:
13621 * syssignal.h:
13622 * systty.h:
13623 * syswait.h:
13624 * term.c:
13625 * unexec.c:
13626 * unexelf.c:
13627 * unexhp9k800.c:
13628 * m/hp800.h:
13629 * m/ibmrs6000.h:
13630 * m/mips.h:
13631 * m/vax.h:
13632 * s/darwin.h:
13633 * s/freebsd.h:
13634 * s/gnu.h:
13635 * s/ms-w32.h:
13636 * s/msdos.h:
13637 * s/netbsd.h:
13638 * s/template.h: Remove references to obsolete variables.
13639
13640 * Makefile.in: Add dependencies for all unexec files.
13641 (admindir): Remove unused variable.
13642 (UNEXEC_SRC): Remove references.
13643
136442008-06-25 Chong Yidong <cyd@stupidchicken.com>
13645
13646 * xfns.c (x_default_font_parameter): If Xft is available, first
13647 try Monospace-12 for the default font.
13648
136492008-06-25 Jason Rumney <jasonr@gnu.org>
13650
13651 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13652
136532008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13654
13655 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13656
13657 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13658
136592008-06-25 Juanma Barranquero <lekktu@gmail.com>
13660
13661 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13662 <scroll-conservatively>: Fix typo in docstring.
13663
13664 * xselect.c (Fx_send_client_event): Doc fix.
13665
136662008-06-25 Kenichi Handa <handa@m17n.org>
13667
13668 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13669
13670 * font.c (font_parse_fcname): Remove unused variables.
13671 (font_sort_entites): Delete the arg SPEC. Caller changed.
13672 Fix for the case of ! best_only.
13673 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13674
13675 * lisp.h (Fstring_to_unibyte): EXFUN it.
13676
13677 * character.h (str_to_unibyte): Extern it.
13678
13679 * character.c (str_to_unibyte): New function.
13680
13681 * fns.c (Fstring_to_unibyte): New function.
13682 (syms_of_fns): Defsubr it.
13683
136842008-06-24 Kenichi Handa <handa@m17n.org>
13685
13686 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13687 DPI too.
13688 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13689
136902008-06-24 Andreas Schwab <schwab@suse.de>
13691
13692 * Makefile.in (${lispsource}loaddefs.el): Rename from
13693 ../lisp/loaddefs.el.
13694 (bootstrap-clean): Do what distclean does but don't remove
13695 Makefile.
13696 (distclean): Depend on bootstrap-clean and remove Makefile.
13697
136982008-06-24 Chong Yidong <cyd@stupidchicken.com>
13699
13700 * buffer.h (struct buffer): New member word_wrap.
13701
13702 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13703 word-wrap.
13704 (init_buffer_once): Initialize them.
13705
13706 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13707 line_wrap enum possessing three possible values.
13708
13709 * termopts.h: Replace truncate_partial_width_windows with
13710 Vtruncate_partial_width_windows.
13711
13712 * dispnew.c (direct_output_for_insert): Avoid direct output when
13713 inserting a space with word wrap on.
13714
13715 * indent.c (compute_motion): Obey integer values of
13716 truncate-partial-width-windows.
13717
13718 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13719 replacing truncate_partial_width_windows.
13720 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13721 truncate only if the window width is below that integer.
13722 (start_display, resize_mini_window, produce_stretch_glyph)
13723 (display_string, move_it_in_display_line_to): Use line_wrap.
13724 (back_to_previous_visible_line_start, reseat_1): Reset
13725 string_from_display_prop_p.
13726 (display_line): Extend default face to end of line when wrapping.
13727
137282008-06-24 Kim F. Storm <storm@cua.dk>
13729
13730 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13731 to wrap continued lines at word boundaries.
13732
137332008-06-24 Jason Rumney <jasonr@gnu.org>
13734
13735 * font.c (Ffont_face_attributes): Multiply pixel size before point
13736 conversion to avoid multiplying rounding error.
13737
137382008-06-23 Jason Rumney <jasonr@gnu.org>
13739
13740 * w32term.c (x_draw_glyph_string_background)
13741 (x_draw_glyph_string): Remove old bdf font code.
13742
13743 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13744
137452008-06-22 Kenichi Handa <handa@m17n.org>
13746
13747 * font.c (font_find_for_lface): Try the adstyle specified in
13748 the property of LFACE_FONT of LFACE (if any).
13749
137502008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13751 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13752
13753 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13754
137552008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13756
13757 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13758 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13759 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13760 (witness-emacs): Remove.
13761 (lisp, shortlisp): Move loaddefs.el earlier.
13762 (mostlyclean): Forget about witness-emacs.
13763
137642008-06-22 Glenn Morris <rgm@gnu.org>
13765
13766 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13767 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13768
137692008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13770
13771 * Makefile.in (PRECOMP): Remove.
13772 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13773 (witness-emacs): Run `compile-first'.
13774 (.el.elc): Use the new compile-onefile target.
13775
137762008-06-21 Kenichi Handa <handa@m17n.org>
13777
13778 * xftfont.c (xftfont_open): Handle QCembolden only when
13779 FC_EMBOLDEN is defined.
13780
137812008-06-21 Andreas Schwab <schwab@suse.de>
13782
13783 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13784 (.el.elc): Likewise.
13785
137862008-06-21 Miles Bader <miles@gnu.org>
13787
13788 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13789 build dir, not the lisp source dir.
13790
137912008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13792
13793 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13794 (bootstrapclean): Remove.
13795 (.el.elc): New rule.
13796 (PRECOMP): New var.
13797 (../lisp/subdirs.el): Remove.
13798 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13799 (witness-emacs): New target.
13800 (mostlyclean): Remove witness-emacs as well.
13801 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13802 Add witness-emacs dependency.
13803
138042008-06-20 Chong Yidong <cyd@stupidchicken.com>
13805
13806 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13807 defined by the font.
13808
138092008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13810
13811 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13812 (bootstrap-clean): New target that keeps TAGS around.
13813 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13814 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13815
138162008-06-20 Jason Rumney <jasonr@gnu.org>
13817
13818 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13819 Remove obsolete font code.
13820
13821 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13822 to determine language support.
13823
138242008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13825
13826 * sysdep.c (cfsetspeed): New fun extracted from the code.
13827 (cfmakeraw): Move before first use.
13828
138292008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13830
13831 * sysdep.c (cfmakeraw): Provide fallback implementation.
13832 (serial_configure): Provide fallback implementation of cfsetspeed.
13833
138342008-06-20 Kenichi Handa <handa@m17n.org>
13835
13836 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13837 the pattern.
13838
13839 * fontset.c (fontset_from_font): Copy font_spec before changing
13840 the elements.
13841
13842 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13843
138442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13845
13846 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13847 for explicit `font' parameters.
13848
13849 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13850
138512008-06-19 Kenichi Handa <handa@m17n.org>
13852
13853 * frame.c: Include <ctype.h>.
13854 (x_set_font_backend): Allow spacing characters in the X resource
13855 for FontBackend.
13856
138572008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13858
13859 * w32fns.c, xfns.c (Qfont_param): New var.
13860 (syms_of_w32fns): Initialize it.
13861 (x_default_font_parameter): Record explicit `font' into
13862 `font-parameter'.
13863
138642008-06-18 Kenichi Handa <handa@m17n.org>
13865
13866 * font.c (font_parse_xlfd): Fix previous change.
13867 (font_parse_fcname): Don't use :fc-unknown-spec.
13868 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13869 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13870 (font_add_log): Prepend the driver name to the resulting fonts.
13871
13872 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13873 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13874 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13875
13876 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13877 (QCembolden): New variables.
13878 (syms_of_xftfont): DEFSYM them.
13879 (xftfont_open): Call XftFontMatch. Don't trust the result of
13880 XftTextExtents8 if the pixel_size is less than 5.
13881
138822008-06-18 Andreas Schwab <schwab@suse.de>
13883
13884 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13885 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13886
138872008-06-18 Jason Rumney <jasonr@gnu.org>
13888
13889 * w32font.c (w32font_list, w32font_match): Add logging.
13890
13891 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13892
138932008-06-17 Chong Yidong <cyd@stupidchicken.com>
13894
13895 * font.c (font_parse_fcname): Store divider characters for
13896 unknown-spec list. For known key symbols, intern using correct
13897 symbol name.
13898
138992008-06-17 Kenichi Handa <handa@m17n.org>
13900
13901 * xfaces.c (realize_default_face): If the frame is not on window
13902 system, set the fontset of face to nil.
13903
139042008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13905
13906 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13907
139082008-06-16 Juanma Barranquero <lekktu@gmail.com>
13909
13910 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13911 (build_font_name_from_vector): Delete externs.
13912
13913 * xfaces.c (struct font_name): Don't declare.
13914
139152008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13916
13917 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13918
139192008-06-16 Chong Yidong <cyd@stupidchicken.com>
13920
13921 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13922
139232008-06-16 Juanma Barranquero <lekktu@gmail.com>
13924
13925 * font.c (Ffont_spec): Fix usage in docstring.
13926 (Ffont_face_attributes): Doc fix.
13927
139282008-06-16 Andreas Schwab <schwab@suse.de>
13929
13930 * font.c (Ffont_face_attributes): Fix definition.
13931
139322008-06-16 Jason Rumney <jasonr@gnu.org>
13933
13934 * font.h (font_style_symbolic_from_value): Remove.
13935
13936 * font.c (font_style_symbolic_from_value): Remove.
13937 (font_style_symbolic): Revert to pre 2008-06-13 version.
13938
13939 * w32font.c (w32_to_fc_weight): New function.
13940 (w32font_full_name, logfont_to_fcname): Use it.
13941
139422008-06-16 Kenichi Handa <handa@m17n.org>
13943
13944 * font.c (font_check_object): Delete it.
13945 (font_clear_cache): Check if a font-object is alive.
13946 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13947 font-object to nil.
13948 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13949 (font_at): Don't call font_check_object.
13950 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13951
139522008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13953
13954 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13955
139562008-06-16 Chong Yidong <cyd@stupidchicken.com>
13957
13958 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13959
139602008-06-15 Chong Yidong <cyd@stupidchicken.com>
13961
13962 * font.c (font_parse_fcname): Only one decimal point.
13963 (font_unparse_fcname): Handle data in family and foundry indices
13964 as symbols, not strings.
13965 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13966
13967 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13968
13969 * font.h (font_unparse_gtkname): Add prototype.
13970
139712008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13972
13973 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13974
139752008-06-15 Andreas Schwab <schwab@suse.de>
13976
13977 * font.c (font_update_drivers): Fix crash when no drivers match.
13978
139792008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13980
13981 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13982 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13983
139842008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13985
13986 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13987
139882008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13989
13990 * process.c (Fserial_process_configure, Fprocess_send_eof):
13991 Use EQ to compare Lisp_Objects.
13992
139932008-06-13 Jason Rumney <jasonr@gnu.org>
13994
13995 * w32fns.c (Fw32_select_font): Remove old font API function.
13996
13997 * w32font.c (logfont_to_fcname): New function.
13998 (Fx_select_font): New font dialog function compatible with
13999 GTK/fontconfig version.
14000
14001 * font.c (font_style_symbolic_from_value): New function.
14002 (font_style_symbolic): Use it.
14003
14004 * font.h (font_style_symbolic_from_value): Declare new function.
14005
140062008-06-13 Juanma Barranquero <lekktu@gmail.com>
14007
14008 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14009 <font-width-table>: Fix typos in docstrings.
14010
140112008-06-13 Daniel Engeler <engeler@gmail.com>
14012
14013 These changes add serial port access.
14014 * process.c: Add HAVE_SERIAL.
14015 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14016 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14017 (list_processes_1, select_wrapper, Fstop_process)
14018 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14019 (status_notify): Modify to handle serial processes.
14020 [HAVE_SERIAL] (Fserial_process_configure)
14021 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14022 New functions.
14023 * process.h (struct Lisp_Process): Add `type'.
14024 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14025 New functions.
14026 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14027 serial ports.
b71ac3dd 14028 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14029 * w32.h: Add FILE_SERIAL.
14030 (struct _child_process): Add ovl_read, ovl_write.
14031
140322008-06-13 Kenichi Handa <handa@m17n.org>
14033
14034 * dispextern.h (enum lface_attribute_index): New member
14035 LFACE_FOUNDRY_INDEX.
14036
14037 * font.c (font_score): Delete arg alternate_families. Check only
14038 weight, slant, width, and size. Ignore the difference of alias
14039 style symbols.
14040 (font_sort_entites): Adjust for the above change. Reflect the
14041 order of font-driver to scores.
14042 (font_list_entities): Don't check alternate_familes here.
14043 (font_clear_prop): Handle foundry.
14044 (font_update_lface): Don't parse "foundry-family" form here.
14045 Handle FONT_FOUNDRY_INDEX.
14046 (font_find_for_lface): Likewise. Handle alternate families here.
14047 If registry is nil, try iso8859-1 and ascii-0.
14048 (font_open_for_lface): Pay attention to size in ENTITY.
14049 (font_open_by_name): Simplify by calling font_load_for_lface.
14050 (free_font_driver_list): Delete it.
14051 (font_update_drivers): Preserve the order of backends.
14052 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14053 of font_score and font_sort_entites.
14054 (font_update_sort_order): Likewise.
14055
14056 * xfaces.c (LFACE_FOUNDRY): New macro.
14057 (check_lface_attrs): Check foundry.
14058 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14059 (merge_face_vectors): Check foundry.
14060 (merge_face_ref): Likewise.
14061 (Finternal_set_lisp_face_attribute): Likewise.
14062 (x_update_menu_appearance): Likewise.
14063 (Finternal_get_lisp_face_attribute): Likewise.
14064 (lface_hash): Likewise.
14065 (lface_same_font_attributes_p): Likewise.
14066 (x_supports_face_attributes_p): Likewise.
14067 (tty_supports_face_attributes_p): Likewise.
14068 (Finternal_set_alternative_font_family_alist): Intern strings.
14069 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14070 (realize_default_face): Set LFACE_FOUNDRY (lface).
14071
14072 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14073 font-driver at first.
14074
14075 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14076
140772008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14078
14079 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14080
140812008-06-12 Jim Meyering <meyering@redhat.com>
14082
14083 Make unexec_free handle NULL the same way free does.
14084 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14085
140862008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14087
14088 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14089 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14090 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14091 (WEAK_ALIAS): Simplify.
14092 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14093 when searching a unibyte buffer.
14094
140952008-06-12 Chong Yidong <cyd@stupidchicken.com>
14096
14097 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14098
140992008-06-12 Juanma Barranquero <lekktu@gmail.com>
14100
14101 * w32font.c: Include ctype.h.
14102
141032008-06-11 Jason Rumney <jasonr@gnu.org>
14104
14105 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14106 misreported as space.
14107 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14108 as aliases for registry iso10646-1.
14109
141102008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14111
14112 * buffer.c (clone_per_buffer_values): Skip `name'.
14113
141142008-06-11 Chong Yidong <cyd@stupidchicken.com>
14115
14116 * font.c (font_parse_fcname): Fix last change; accept decimal
14117 points in font size.
14118
141192008-06-10 Jason Rumney <jasonr@gnu.org>
14120
14121 * w32uniscribe.c (add_opentype_font_name_to_list):
14122 Skip non unicode fonts.
14123
141242008-06-10 Chong Yidong <cyd@stupidchicken.com>
14125
14126 * xfns.c (Fx_font_dialog): New function.
14127
14128 * gtkutil.c (xg_dialog_response_cb): Rename from
14129 xg_file_response_callback.
14130 (pop_down_dialog): Rename from pop_down_file_dialog.
14131 (xg_get_file_name): Callers changed.
14132 (xg_get_font_name): New function.
14133
14134 * gtkutil.h (xg_get_font_name): Insert prototype.
14135
141362008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14137
14138 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14139 x_underline_minimum_display_offset.
14140 (syms_of_xdisp): Declare it here rather than in xterm.c.
14141 * dispextern.h (underline_minimum_offset): Declare it.
14142 * w32term.c (x_draw_glyph_string): Use it.
14143 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14144 (syms_of_xterm): Don't declare it any more.
14145 (x_draw_glyph_string): Adjust to the new name.
14146
8719abec 141472008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14148
14149 * xterm.c (x_underline_minimum_display_offset): New var.
14150 (x_draw_glyph_string): Use it.
14151 (syms_of_xterm): Declare it.
14152
141532008-06-10 Chong Yidong <cyd@stupidchicken.com>
14154
14155 * font.c (font_parse_fcname): Accept GTK-style font names too.
14156
141572008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14158
14159 * dired.c (file_name_completion): Don't return t if the match is exact
14160 but with different capitalization.
14161 * minibuf.c (Ftry_completion): Simplify.
14162
14163 * window.c (Vwindow_point_insertion_type): New var.
14164 (set_window_buffer): Use it.
14165 (syms_of_window): Init and export it to Lisp.
14166
141672008-06-10 Kenichi Handa <handa@m17n.org>
14168
14169 * font.h (font_intern_prop): Prototype adjusted.
14170
14171 * font.c (font_intern_prop): New arg force_symbol.
14172 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14173 Adjust for the change of font_intern_prop.
14174
14175 * ftfont.c (ftfont_pattern_entity):
14176 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14177 (w32_registry):
14178 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14179 the change of font_intern_prop.
14180
141812008-06-09 Juanma Barranquero <lekktu@gmail.com>
14182
14183 * w32menu.c (digest_single_submenu): Declare extern.
14184
141852008-06-09 Jason Rumney <jasonr@gnu.org>
14186
14187 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14188
14189 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14190 (parse_single_submenu): Remove.
14191 (digest_single_submenu): Remove.
14192 (syms_of_w32menu): Don't initialise variables that have moved
14193 to menu.c.
14194 (set_frame_menubar): Sync with version in xmenu.c.
14195 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14196
14197 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14198 Make static again.
14199
142002008-06-09 Jason Rumney <jasonr@gnu.org>
14201
14202 Changes to w32 files related to the move of common menu code
14203 to menu.c on 2008-06-08 by Chong Yidong.
14204
14205 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14206 defs to w32gui.h.
14207 (single_keymap_panes, push_menu_item, push_menu_pane):
14208 Make globally visible.
14209
14210 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14211 (local_free, malloc_widget_value, free_widget_value)
14212 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14213 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14214 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14215 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14216 (menu_items, menu_items_allocated, menu_items_used)
14217 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14218 (init_menu_items, finish_menu_items, discard_menu_items)
14219 (grow_menu_items, push_submenu_start, push_submenu_end)
14220 (push_left_right_boundary, push_menu_pane, push_menu_item)
14221 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14222 (free_menubar_widget_tree_value, parse_single_submenu)
14223 (update_submenu_strings): Remove functions.
14224 (xmalloc_widget_value): Remove and declare extern.
14225
14226 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14227 (OBJ1): Build it.
14228
14229 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14230 (local_heap, local_alloc, local_free, malloc_widget_value)
14231 (free_widget_value): Define here.
14232
142332008-06-09 Kenichi Handa <handa@m17n.org>
14234
14235 * font.h (Qascii_0): Extern it.
14236
14237 * font.c (Qascii_0): New variable.
14238 (syms_of_font): DEFSYM it.
14239 (font_open_by_name): If the registry "iso8859-1" fails, try also
14240 "ascii-0".
14241
14242 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14243
142442008-06-08 Kenichi Handa <handa@m17n.org>
14245
14246 * .gdbinit (xfont): New command.
14247
142482008-06-08 Andreas Schwab <schwab@suse.de>
14249
14250 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14251 * Makefile.in (menu.o): Update dependencies.
14252
14253 * Makefile.in (obj): Always add menu.o.
14254 * emacs.c (main): Always call syms_of_menu.
14255 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14256
142572008-06-08 Chong Yidong <cyd@stupidchicken.com>
14258
14259 * Makefile.in: Compile menu.c.
14260
14261 * lisp.h: Declare syms_of_menu.
14262
14263 * emacs.c (main): Call syms_of_menu.
14264
14265 * keyboard.h: Relocate platform-independent menu definitions from
14266 xmenu.c.
14267
14268 * menu.c: New file. Relocate platform-independent menu
14269 definitions from xmenu.c. Suggested by Adrian Robert.
14270
14271 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14272 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14273 (menu_items_used, menu_items_n_panes)
14274 (menu_items_submenu_depth): Move to keyboard.h.
14275 (init_menu_items, finish_menu_items, unuse_menu_items)
14276 (discard_menu_items, restore_menu_items, save_menu_items)
14277 (grow_menu_items, push_submenu_start, push_submenu_end)
14278 (push_left_right_boundary, push_menu_pane, push_menu_item)
14279 (keymap_panes, single_keymap_panes, single_menu_item)
14280 (list_of_panes, list_of_items, find_and_call_menu_selection)
14281 (xmalloc_widget_value, free_menubar_widget_value_tree)
14282 (parse_single_submenu, digest_single_submenu)
14283 (update_submenu_strings): Move to menu.c.
14284
142852008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14286
14287 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14288
142892008-06-06 Miles Bader <miles@gnu.org>
14290
14291 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14292 face, not frame default.
14293
142942008-06-05 Martin Rudalics <rudalics@gmx.at>
14295
14296 * window.c (pop_up_windows, pop_up_frames)
14297 (display_buffer_reuse_frames, Vpop_up_frame_function)
14298 (Vdisplay_buffer_function, Veven_window_heights)
14299 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14300 (Vspecial_display_function, Vsame_window_buffer_names)
14301 (Vsame_window_regexps, split_height_threshold)
14302 (Vsplit_window_preferred_function): Move those vars to window.el.
14303 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14304 (Fdisplay_buffer): Move those functions to window.el.
14305 (syms_of_window): Remove corresponding declarations.
14306 (display_buffer): New function.
14307 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14308 * dispnew.c (Flast_nonminibuf_frame): New function.
14309 * buffer.c (Fpop_to_buffer): Move to window.el.
14310
143112008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14312
14313 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14314
143152008-06-05 Kenichi Handa <handa@m17n.org>
14316
14317 * coding.c (detect_coding): Fix previous change.
14318 (detect_coding_system): Likewise.
14319
143202008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14321
14322 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14323
14324 * keymap.c (Vminibuffer_local_filename_must_match_map):
14325 Rename from Vminibuffer_local_must_match_filename_map.
14326 (syms_of_keymap):
14327 * minibuf.c (Fcompleting_read): Adjust accordingly.
14328 * commands.h: Rename declaration as well.
14329
143302008-06-05 Kenichi Handa <handa@m17n.org>
14331
14332 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14333 family name.
14334 (Ffont_put): Likewise.
14335
14336 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14337 current font-spec.
14338
14339 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14340 is unspecified.
14341
14342 * xfaces.c (realize_x_face): If the font-related face attributes
14343 are the same as those of default face, realize a new fontset from
14344 default->fontset.
14345 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14346
143472008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14348
14349 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14350 (move_it_in_display_line): New wrapper.
14351
14352 * window.c (window_scroll_pixel_based_preserve_x)
14353 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14354 (window_scroll_pixel_based, window_scroll_line_based):
14355 Use them to preserve column positions.
14356 (syms_of_window): Initialize them.
14357
14358 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14359 (HPOS . VPOS) pair.
14360
14361 * dispextern.h (move_it_in_display_line): Declare.
14362
143632008-06-05 Juanma Barranquero <lekktu@gmail.com>
14364
14365 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14366 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14367 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14368
143692008-06-04 Juanma Barranquero <lekktu@gmail.com>
14370
14371 * window.c (Fset_window_parameter): Doc fix.
14372 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14373
143742008-06-04 Joakim Verona <joakim@verona.se>
14375
14376 * window.h (struct window): Add new member window_parameters.
14377
14378 * window.c (Fwindow_parameters, Fwindow_parameter)
14379 (Fset_window_parameter): New defuns.
14380 (syms_of_window): Defsubr the new defuns.
14381 (make_window): Initialize window_parameters to nil.
14382
143832008-06-04 John Paul Wallington <jpw@pobox.com>
14384
14385 * eval.c (Fdefmacro): Doc fix.
14386
143872008-06-04 Kenichi Handa <handa@m17n.org>
14388
14389 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14390 Be sure to call setup_coding_system when we find a proper coding system.
14391 (detect_coding_system): Fix handling of coding->head_ascii.
14392
143932008-06-03 Andreas Schwab <schwab@suse.de>
14394
14395 * font.c (font_prop_validate_spacing): Fix last change.
14396
143972008-06-03 Kenichi Handa <handa@m17n.org>
14398
14399 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14400 (font_parse_fcname): Fix handling of unknown key.
14401
14402 * xfont.c (xfont_list): Try an alias.
14403
14404 * charset.c (char_charset): Return NULL if the arg charset_list is
14405 specified and C doesn't belong to any of them.
14406
144072008-06-02 Chip Coldwell <coldwell@redhat.com>
14408
14409 * font.c (font_pixel_size): Don't take cdr of an integer.
14410
144112008-06-02 Jim Meyering <meyering@redhat.com>
14412
14413 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14414 * alloc.c (xfree): Return right away for a NULL arg.
14415 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14416 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14417 * mac.c (create_apple_event_from_event_ref): Likewise.
14418 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14419 Likewise.
14420 * doprnt.c (doprnt1): Likewise.
14421 * frame.c (frame): Likewise.
14422 * keyboard.c (wipe_kboard): Likewise.
14423 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14424 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14425 * term.c (tty_default_color_capabilities, maybe_fatal)
14426 (delete_tty): Likewise.
14427 * w16select.c (string): Likewise.
14428 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14429 * w32bdf.c (w32_free_bdf_font): Likewise.
14430 * w32fns.c (w32_unload_font): Likewise.
14431 * w32font.c (w32font_close): Likewise.
14432 * window.c (size_window): Likewise.
14433 * xselect.c (receive_incremental_selection): Likewise.
14434 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14435 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14436 * w32.c (stat): Likewise.
14437
14438 Remove useless if-before-free tests.
14439 * editfns.c (Fset_time_zone_rule): Likewise.
14440 * lread.c (nosuffix): Likewise.
14441 * ralloc.c (get_bloc): Likewise.
14442 * regex.c (reg_free): Likewise.
14443 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14444 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14445 * xsmfns.c (smc_save_yourself_CB): Likewise.
14446
144472008-06-02 Kenichi Handa <handa@m17n.org>
14448
14449 * font.c (font_find_for_lface): Handle float font size.
14450 (font_open_for_lface): Likewise.
14451
14452 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14453 comparing the properties.
14454
144552008-06-01 Jason Rumney <jasonr@gnu.org>
14456
14457 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14458 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14459 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14460 Don't add empty script list.
14461 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14462
144632008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14464
14465 * Makefile.in (dot, dotdot): Remove, update users.
14466 ".." has been used elsewhere in the file for a long time.
14467 (LIBXT_STATIC): Remove conditional based on unused variable.
14468
144692008-06-01 Miles Bader <miles@gnu.org>
14470
14471 * xfaces.c (Vface_remapping_alist): New variable.
14472 (syms_of_xfaces): Initialize it.
14473 (enum named_merge_point_kind): New type.
14474 (struct named_merge_point): Add `named_merge_point_kind' field.
14475 (push_named_merge_point): Make cycle detection respect different
14476 named-merge-point kinds.
14477 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14478 Remove face-name alias resolution.
14479 (lface_from_face_name): New definition using
14480 `lface_from_face_name_no_resolve'.
14481 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14482 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14483 (get_lface_attributes): New definition that layers face-remapping on
14484 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14485 (lookup_basic_face): New function.
14486 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14487 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14488 `get_lface_attributes'.
14489 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14490 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14491 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14492
14493 * xdisp.c (init_iterator): Pass base_face_id through
14494 `lookup_basic_face' when we actually use it as a face-id.
14495 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14496 DEFAULT_FACE_ID.
14497
14498 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14499 lookup the initial face-id.
14500
14501 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14502
145032008-06-01 Juanma Barranquero <lekktu@gmail.com>
14504
14505 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14506 (Fremove_text_properties): Fix typos in docstrings.
14507
145082008-05-31 Kenichi Handa <handa@m17n.org>
14509
14510 * font.c (font_list_entities): Fix the car part of data to be
14511 stored in the cache.
14512
14513 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14514
145152008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14516
14517 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14518 Add a `test' argument so another predicate than `equal' can be used.
14519 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14520 (map_char_table): Remove unused vars `c' and `i'.
14521 * lisp.h (Foptimize_char_table): Adjust declaration.
14522 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14523
145242008-05-30 Kenichi Handa <handa@m17n.org>
14525
14526 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14527 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14528 defined.
14529
145302008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14531
14532 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14533 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14534 frame-local settings for the same variable.
14535
145362008-05-30 Kenichi Handa <handa@m17n.org>
14537
14538 * fontset.c (Ffont_info): Move to font.c.
14539 (syms_of_fontset): Delete defsubr of Sfont_info.
14540
14541 * font.c (font_style_to_value, font_score): Delete casting of the
14542 args to xstcasecmp.
14543 (register_font_driver): Increment num_font_drivers only when
14544 registering the driver globally.
14545 (Ffont_info): Move from fontset.c. Handle a font object too.
14546 (syms_of_font): Defsubr Sfont_info.
14547
145482008-05-29 Kenichi Handa <handa@m17n.org>
14549
14550 * coding.h (enum define_coding_utf8_arg_index): New enum.
14551 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14552 coding_attr_utf_bom.
14553 (enum utf_bom_type): Rename from utf_16_bom_type.
14554 (struct utf_16_spec): Adjust for the above change.
14555 (struct coding_system): Add utf_8_bom in `spec' union.
14556
14557 * coding.c (CODING_UTF_8_BOM): New macro.
14558 (enum coding_category): Delete coding_category_utf_8, add
14559 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14560 coding_category_utf_8_sig.
14561 (CATEGORY_MASK_UTF_8): Delete it.
14562 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14563 (CATEGORY_MASK_UTF_8_SIG): New macros.
14564 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14565 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14566 CATEGORY_MASK_UTF_8_SIG.
14567 (CATEGORY_MASK_UTF_8): New macro.
14568 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14569 (detect_coding_utf_8): Check BOM.
14570 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14571 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14572 (encode_coding_utf_16): Likewise.
14573 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14574 (detect_coding, detect_coding_system): Handle utf-8-auto.
14575 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14576 (syms_of_coding): Fix setting up of Vcoding_category_table.
14577
145782008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14579
14580 * process.c (Faccept_process_output): If `millisec' is non-nil,
14581 `seconds' default to 0.
14582 (wait_reading_process_output): Also return non-nil if we read output
14583 from a non-running process.
14584
145852008-05-29 Jason Rumney <jasonr@gnu.org>
14586
14587 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14588 `raster' specified.
14589 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14590 in the uniscribe backend, but disallow any font that has no
14591 unicode subrange support.
14592
145932008-05-29 Juanma Barranquero <lekktu@gmail.com>
14594
14595 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14596 Fix typos in docstrings.
14597
145982008-05-29 Kenichi Handa <handa@m17n.org>
14599
14600 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14601 (Fx_family_fonts): Set frame correctly.
14602
146032008-05-28 Jason Rumney <jasonr@gnu.org>
14604
14605 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14606
146072008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14608
14609 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14610 calling build_annotations.
14611
146122008-05-28 Juanma Barranquero <lekktu@gmail.com>
14613
14614 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14615 (Fencode_coding_string):
14616 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14617 <latin-extra-code-table>: Fix typos in docstrings.
14618 (syms_of_coding) <coding-system-alist>: Doc fix.
14619 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14620
146212008-05-28 Kenichi Handa <handa@m17n.org>
14622
14623 * fontset.c (Ffont_info): Don't call font_close_object.
14624
14625 * font.c (font_parse_family_registry): Use Ffont_put to validate
14626 foundry and family.
14627 (font_delete_unmatched): Don't check spacing.
14628 (font_list_entities): Add spacing to the spec to list fonts.
14629
14630 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14631 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14632
14633 * coding.c (encode_coding_raw_text): Fix previous change.
14634 (encode_coding_object): When the dst_object is a buffer and is
14635 different from src_object, move gap to PT.
14636
146372008-05-27 Chong Yidong <cyd@stupidchicken.com>
14638
14639 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14640
146412008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14642
14643 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14644 all branches. Compute it differently.
14645
14646 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14647
146482008-05-27 Juanma Barranquero <lekktu@gmail.com>
14649
14650 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14651 into "else if () ... else ...".
14652
146532008-05-27 Jason Rumney <jasonr@gnu.org>
14654
14655 * w32font.c (w32font_open_internal): Determine if glyph indices
14656 are likely to work here.
14657
146582008-05-27 Chong Yidong <cyd@stupidchicken.com>
14659
14660 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14661 draw overlap glyphs with appropriate highlighting.
14662
146632008-05-27 Kenichi Handa <handa@m17n.org>
14664
14665 * xfont.c (xfont_open): Fix calculation of font->average_width.
14666
146672008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14668
14669 * casefiddle.c (casify_object): Try to guess better whether the
14670 argument is a byte or a char.
14671
146722008-05-26 Andreas Schwab <schwab@suse.de>
14673
14674 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14675 Always send multiples of format size.
14676
14677 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14678
146792008-05-26 Jason Rumney <jasonr@gnu.org>
14680
14681 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14682 (compute_metrics): Don't set failure if we just cleared the cache.
14683 (w32_weight_table): Remove unused variable.
14684 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14685 backwards compatibility.
14686
146872008-05-25 Kenichi Handa <handa@m17n.org>
14688
14689 * w32term.c (x_draw_glyph_string):
14690 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14691
14692 * xfaces.c: Delete unused function prototypes.
14693 (xstrlwr, font_frame): Delete them.
14694 (clear_face_cache): Delete unused variable.
14695
14696 * xftfont.c (xftfont_open): Delete unused variable.
14697 If underline_thickness is not 1, adjust underline_position.
14698
14699 * ftxfont.c (ftxfont_open): Delete unused variable.
14700
14701 * fontset.c (face_for_char): Optimize for the case of no charset
14702 property.
14703
14704 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14705 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14706 (otf_open, font_otf_capability, generate_otf_features)
14707 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14708 Comment out by surrounding "#if 0" and "#endif" for the moment.
14709 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14710 (syms_of_font): Codes for accessing above commented out.
14711
147122008-05-24 Eli Zaretskii <eliz@gnu.org>
14713
14714 * w32proc.c: Include dispextern.h.
14715
14716 * w32.c: Include dispextern.h.
14717
147182008-05-23 Juanma Barranquero <lekktu@gmail.com>
14719
14720 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14721 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14722 Fix typos in docstrings.
14723
147242008-05-23 Jason Rumney <jasonr@gnu.org>
14725
14726 * xsmfns.c: Remove includes that are already included by config.h.
14727
147282008-05-23 Kenichi Handa <handa@m17n.org>
14729
14730 * charset.c (Qemacs, charset_emacs): New variables.
14731 (char_charset): Fix for non-Unicode characters.
14732 (syms_of_charset): Define charset_emacs.
14733
14734 * w32term.c (x_draw_glyph_string): Be sure to update
14735 s->underline_thickness and s->underline_position. Be sure to draw
14736 underline within the current line area.
14737
14738 * xterm.c (x_draw_glyph_string): Be sure to update
14739 s->underline_thickness and s->underline_position. Be sure to draw
14740 underline within the current line area.
14741
14742 * fontset.c: Delete unused variables and add casting for char *
14743 throughout the file.
14744 (fontset_font): Try the fallback fonts of the current fontset
14745 before consulting the default fontset.
14746
14747 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14748
14749 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14750
147512008-05-22 Jason Rumney <jasonr@gnu.org>
14752
14753 * font.c: Don't include strings.h.
14754
14755 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14756
14757 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14758 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14759 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14760 to call xstrcasecmp.
14761
14762 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14763
14764 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14765
14766 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14767
14768 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14769
147702008-05-22 Kenichi Handa <handa@m17n.org>
14771
14772 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14773
14774 * font.c (font_prop_validate_style): Adjust for the format
14775 change of font_style_table.
14776
14777 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14778 two args.
14779
14780 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14781 two args.
14782
147832008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14784
14785 * minibuf.c (keys_of_minibuf): Delete.
14786 * lisp.h (keys_of_minibuf): Delete.
14787 * emacs.c (main): Don't call keys_of_minibuf.
14788
147892008-05-22 Kenichi Handa <handa@m17n.org>
14790
14791 * ftfont.c (ftfont_resolve_generic_family): Rename from
14792 ftfont_list_generic_family. Return a single family for each
14793 generic family.
14794 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14795 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14796 Call font_add_log.
14797 (ftfont_match): Call font_add_log.
14798
14799 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14800 (FONT_DEBUG): Define it.
14801 (font_add_log): Extern it.
14802 (font_assert): Rename from xassert.
14803
14804 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14805 (xfont_list_family): Call font_add_log.
14806 (xfont_match): Likewise.
14807 (memq_no_quit): Delete.
14808
14809 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14810 call of Ffont_xlfd_name.
14811
14812 * xfaces.c (struct table_entry, slant_table, weight_table)
14813 (swidth_table): Move to font.c.
14814
14815 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14816 xassert are changed to font_assert. Delete many unused variables.
14817 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14818 New variables.
14819 (struct table_entry): Move from xfaces.c and modified.
14820 (weight_table, slant_table, width_table): Move from xfaces.c and
14821 contents adjusted for the change of struct table_entry.
14822 (font_style_to_value, font_style_symbolic): Adjust for the
14823 format change of font_style_table.
14824 (font_parse_family_registry): Don't overwrite existing foundry and
14825 family of font_spec.
14826 (font_score): Fix calculation of diff for sizes.
14827 (font_sort_entites): Call font_add_log.
14828 (font_delete_unmatched): Return a newly created list.
14829 (font_list_entities): Fix previous change. Call font_add_log.
14830 (font_matching_entity, font_open_entity, font_close_entity):
14831 Call font_add_log.
14832 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14833 (Finternal_set_font_style_table): Delete.
14834 (BUILD_STYLE_TABLE): New macro.
14835 (build_style_table): New function.
14836 (Vfont_log, font_log_env_checked): New variables.
14837 (font_add_log): New function.
14838 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14839 Declare Lisp variables "font-weight-table", "font-slant-table",
14840 "font-width-table", and "font-log". Initialize font_style_table.
14841
148422008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14843
14844 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14845
148462008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14847 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14848
14849 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14850 (Vframe_alpha_lower_limit): New variable.
14851 (x_set_alpha): New function.
14852
14853 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14854
14855 * xfns.c (x-create-frame, Qalpha):
14856 Initialize the frame parameter `alpha'.
14857 * xterm.c (OPAQUE, OPACITY): New.
14858 (x_set_frame_alpha): New function.
14859 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14860
14861 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14862 * w32fns.c (w32_frame_parm_handlers): Likewise.
14863
148642008-05-20 Jason Rumney <jasonr@gnu.org>
14865
14866 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14867 truetype fonts to opentype list.
14868
148692008-05-20 Juanma Barranquero <lekktu@gmail.com>
14870
14871 * fontset.c (Ffontset_info): Doc fix.
14872 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14873 <ignore-relative-composition>: Fix typos in docstrings.
14874
14875 * font.c (syms-of-font) <font-encoding-alist>:
14876 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14877 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14878 (Ffont_otf_alternates): Doc fixes.
14879
148802008-05-20 Kenichi Handa <handa@m17n.org>
14881
14882 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14883 font.h through out the file.
14884 (FONT_DRIVERS): Rename from FONTOBJ.
14885 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14886 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14887
14888 * emacs.c (main): Call syms_of_font unconditionally.
14889
14890 * font.h (find_font_encoding): Extern it.
14891
14892 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14893 fontset.c.
194d44e7 14894 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14895 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14896 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14897 only when HAVE_WINDOW_SYSTEM is defined.
14898 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14899 when HAVE_WINDOW_SYSTEM is defined.
14900
14901 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14902 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14903
14904 * xfaces.c: Include font.h unconditionally.
14905 (merge_face_ref, merge_face_vectors)
14906 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14907
149082008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14909
14910 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14911 indirect_variable.
14912 * eval.c (lisp_indirect_variable): New fun.
14913 (Fuser_variable_p): Use it.
14914
149152008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14916
14917 * lisp.h (indirect_variable):
14918 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14919 Use Lisp_Symbol pointers rather than Lisp_Object.
14920 Adjust callers.
14921 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14922 To this end, change calling-convention.
14923
14924 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14925 if some non-hidden buffers are selected by string&pred.
14926
149272008-05-19 Chong Yidong <cyd@stupidchicken.com>
14928
14929 * process.c (wait_reading_process_output): Always check status
14930 when in batch mode.
14931
149322008-05-19 Kenichi Handa <handa@m17n.org>
14933
14934 * font.c (font_list_entities): Fix handling of cache.
14935 (font_matching_entity): Likewise.
14936
14937 * ftfont.c (cs_iso8859_1): Delete.
14938 (ft_face_cache): New variable.
14939 (struct ftfont_info): New member fc_charset_idx.
14940 (ftfont_build_basic_charsets): Delete.
14941 (fc_charset_table): New variable.
14942 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14943 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14944 Callers changed.
14945 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14946 (ftfont_spec_pattern): New argument fc_charset_idx.
14947 Check registry more rigidly. Change callers.
14948 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14949 change of :font-entity property of the font.
14950
14951 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14952 property of the font.
14953
149542008-05-18 Juanma Barranquero <lekktu@gmail.com>
14955
14956 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14957 (Funencodable_char_position, Fcheck_coding_systems_region)
14958 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14959 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14960 (Ffind_operation_coding_system, Fset_coding_system_priority)
14961 (Fcoding_system_eol_type): Doc fixes.
14962
149632008-05-17 Glenn Morris <rgm@gnu.org>
14964
14965 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14966
149672008-05-16 Eli Zaretskii <eliz@gnu.org>
14968
14969 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14970 and st_gid.
14971
14972 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14973 HAVE_WINDOW_SYSTEM is not defined.
14974
14975 * xfaces.c (merge_face_ref, merge_face_vectors)
14976 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14977 HAVE_WINDOW_SYSTEM is defined.
14978 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14979
149802008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14981
14982 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14983
149842008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14985
14986 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14987
149882008-05-15 Kenichi Handa <handa@m17n.org>
14989
14990 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14991 preference.
14992
149932008-05-15 Glenn Morris <rgm@gnu.org>
14994
14995 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14996
149972008-05-15 Chong Yidong <cyd@stupidchicken.com>
14998
14999 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15000 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15001
15002 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15003
150042008-05-15 Kenichi Handa <handa@m17n.org>
15005
15006 * ftfont.c (ftfont_list): Downcase family name to check generic
15007 families.
15008
15009 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15010 font-spec for QCfont value.
15011
15012 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15013 buffer. Check the return value of it.
15014
150152008-05-14 Jason Rumney <jasonr@gnu.org>
15016
15017 * w32term.c (w32_get_glyph_overhangs): Remove.
15018 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15019
150202008-05-14 Kenichi Handa <handa@m17n.org>
15021
15022 * font.c (font_prop_validate): Make nil a valid value.
15023 (font_clear_cache): Check if the cached vector of entities is nil
15024 or not.
15025
150262008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15027
15028 * emacs.c (main_thread): Conditionalize on
15029 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15030 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15031
15032 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15033 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15034 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15035
150362008-05-14 Kenichi Handa <handa@m17n.org>
15037
15038 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15039 has no corresponding coding system.
15040
150412008-05-14 Jason Rumney <jasonr@gnu.org>
15042
15043 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15044
15045 * w32font.h (w32font_open_internal): Update declaration.
15046
15047 * w32font.c (w32font_open_internal): Change last argument from
15048 w32font_info struct to font object. Fill in font object from
15049 font_entity. Get Outline metrics if possible. Use them to
15050 calculate underline position and thickness. Use xlfd name as name
15051 property. Don't set codepage.
15052 (w32font_open): Pass font_object to w32font_open_internal. Don't
15053 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15054 (w32font_draw): Use s->font.
15055 (clear_cached_metrics): Don't clear non-existent blocks.
15056
15057 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15058 font was not found.
15059 (x_draw_glyph_string): Use underline position and thickness from font.
15060
15061 * w32uniscribe.c (uniscribe_open): Pass font_object to
15062 w32font_open_internal.
15063
150642008-05-14 Kenichi Handa <handa@m17n.org>
15065
15066 These changes are to delete all legacy font-handling codes, and
15067 make Emacs use only font-backends.
15068
15069 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15070 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15071
15072 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15073
15074 * charset.h (Vcharset_non_preferred_head)
15075 (Vcurrent_iso639_language): Extern them.
15076
15077 * charset.c (Vcharset_non_preferred_head): New variable.
15078 (Vcurrent_iso639_language): New variable.
15079 (syms_of_charset): Declare it as a Lisp variable.
15080 (char_charset): Don't check non preferred charsets. As a last
15081 resort, return charset_unicode.
15082 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15083
15084 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15085 conditionals. Don't check enable_font_backend. Delete all codes
15086 used only when USE_FONT_BACKEND is not defined.
15087
15088 * dispextern.h (struct glyph_string): Change type of `font' to
15089 `struct font *'.
15090 (struct glyph_string): New member underline_position and
15091 underline_thickness.
15092 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15093 (struct face): Change type of `font' to `struct font *'. Remove
15094 members `font_name', `font_info_id'.
15095 (per_char_metric, encode_char): Delete externs.
15096 (calc_pixel_width_or_height): Adjust the prototype.
15097
15098 * emacs.c (enable_font_backend): Delete extern.
15099 (main): Don't set enable_font_backend. Don't check the command
15100 line argument "-disable-font-backend".
15101
15102 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15103 (enum font_property_index): New members FONT_DPI_INDEX,
15104 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15105 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15106 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15107 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15108 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15109 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15110 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15111 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15112 (struct font_spec, struct font_entity): New structs.
15113 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15114 (struct font): Many members from old "struct font_info" moved to
15115 here. Members font and entity deleted.
15116 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15117 the new font-related objects.
15118 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15119 (CHECK_FONT_GET_OBJECT): Likewise.
15120 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15121 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15122 (struct font_driver): New members case_sensitive anc check. Type
15123 of the member list and open changed.
15124 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15125 (font_symbolic_width, font_find_object, font_get_spec)
15126 (font_set_lface_from_name): Delete extern.
15127 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15128
15129 * font.c: Include <strings.h>.
15130 (enable_font_backend): Delete it.
15131 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15132 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15133 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15134 (null_string): Delete it.
15135 (null_vector): Make it static.
15136 (font_family_alist): Delete it.
15137 (Qnormal): Extern it.
15138 (QCextra, QClanguage): Delete it.
15139 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15140 (font_make_spec, font_make_entity, font_make_object)
15141 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15142 the string. Callers changed.
15143 (font_pixel_size): Adjusted for the format change of font-related
15144 objects.
15145 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15146 (font_style_to_value, font_style_symbolic): New function.
15147 (build_font_family_alist): Delete it.
15148 (font_registry_charsets): Use Fassoc_string instead of
15149 assq_no_quit.
15150 (font_prop_validate_symbol): Don't return null_string.
15151 (font_prop_validate_style): Adjusted for the change of
15152 style-related values in a font vector.
15153 (font_property_table): Delete entries for QClanguage and
15154 QCantialias, add entries for QCavgwidth.
15155 (get_font_prop_index): Delete the 2nd argument FROM.
15156 (font_prop_validate): Arguments changed.
15157 (font_put_extra): Adjusted for the change of font-related objects.
15158 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15159 (font_parse_fcname, font_unparse_fcname)
15160 (font_prepare_composition): Likewise.
15161 (font_parse_family_registry): Renamed from font_merge_old_spec.
15162 (otf_open): Delete the 1st arg entity.
15163 (font_otf_capability): Adjusted for the above change.
15164 (font_score): New arg alternate_families. Adjusted for the change
15165 of font-related objects.
15166 (font_sort_entites): New arg best_only.
15167 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15168 Delete them.
15169 (font_match_p): Check alternate families.
15170 (font_find_object): Delete it.
15171 (font_check_object): New function.
15172 (font_clear_cache): Adjusted for the change of font-related objects.
15173 (font_delete_unmatched): New arg.
15174 (font_list_entities): Call font_driver->list with a spec that
15175 doesn't specify style-related properties.
15176 (font_matching_entity): Arguments changed. Caller changed.
15177 (font_open_entity): Adjusted for the change of font-related objects.
15178 (font_close_object, font_has_char, font_encode_char)
15179 (font_get_name, font_get_spec): Likewise.
15180 (font_spec_from_name, font_clear_prop, font_update_lface):
15181 New functions.
15182 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15183 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15184 (font_at): Adjusted for the change of font-related objects.
15185 (font_range): New function.
15186 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15187 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15188 (Fcopy_font_spec, Fmerge_font_spec): New function.
15189 (Ffont_family_list): Renamed from list-families.
15190 (Finternal_set_font_style_table): Arguments changed.
15191 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15192 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15193 change of font-related objects.
15194 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15195
15196 * fontset.h (struct font_info): Delete it. Most members go to
15197 struct font.
15198 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15199 (enum FONT_SPEC_INDEX): Delete it.
15200 (font_info, list_fonts_func, load_font_func, query_font_func)
15201 (set_frame_fontset_func, find_ccl_program_func)
15202 (get_font_repertory_func, new_fontset_from_font_name): Delete
15203 externs.
15204 (fontset_from_font_name): Extern it.
15205 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15206 (FONT_INFO_FROM_FACE): Deleted.
15207 (face_for_font): Adjust prototype.
15208
15209 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15210 conditionals. Don't check enable_font_backend. Delete all codes
15211 used only when USE_FONT_BACKEND is not defined.
15212 (get_font_info_func, list_font_func, load_font_func)
15213 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15214 (get_font_repertory_func): Delete them.
15215 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15216 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15217 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15218 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15219 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15220 (fontset_compare_rfontdef): New function.
15221 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15222 rfont-defs by qsort. Adjusted for the change of font-group vector.
15223 (load_font_get_repertory): Deleted.
15224 (fontset_find_font): Use new macros to ref/set elements of
15225 font-def and rfont-def.
15226 (fontset_font): Fix the timing of remembering that no font for C.
15227 (free_face_fontset): Do nothing if the face has no fontset.
15228 (face_suitable_for_char_p): Use new macros to ref/set elements of
15229 rfont-def.
15230 (face_for_char): Likewise. Call face_for_char with font_object.
15231 (fs_load_font): Delete. Delete #pragma surrounding it.
15232 (fs_query_fontset): Use strcasecmp instead of strcmp.
15233 (generate_ascii_font_name): Adjusted for the format change of
15234 font-spec.
15235 (Fset_fontset_font): Likewise. Use new macros to set elements of
15236 font-def.
15237 (Fnew_fontset): Use font_unparse_xlfd to generate
15238 FONTSET_ASCII (fontset).
15239 (new_fontset_from_font_name): Deleted.
15240 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15241 a fontset is already created for the font. FIx updating of
15242 Vfontset_alias_alist.
15243 (fontset_ascii_font): Deleted.
15244 (Ffont_info): Adjusted for the format change of font-spec.
15245 (Finternal_char_font): Likewise.
15246 (Ffontset_info): Likewise.
15247 (syms_of_fontset): Don't check load_font_func.
15248
15249 * fns.c (internal_equal): Handle PREV_FONT.
15250
15251 * frame.h: Delete USE_FONT_BACKEND conditional.
15252
15253 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15254 conditionals. Don't check enable_font_backend. Delete all codes
15255 used only when USE_FONT_BACKEND is not defined.
15256 (x_set_font): Call x_new_font, not x_new_fontset2.
15257 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15258 already set for the frame.
15259
15260 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15261 a font-entity by font_make_entity. Use font_intern_prop instead
15262 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15263 font property. If a font is scalable, set avgwidth property to 0.
15264 Set font-entity property by font_put_extra.
15265 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15266 (ffont_driver): Adjusted for the change of struct font_driver.
15267 (ftfont_spec_pattern): New function.
15268 (ftfont_list): Return a list, not vector.
15269 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15270 (ftfont_list_family): Don't downcase names.
15271 (ftfont_free_entity): Deleted.
15272 (ftfont_open): Return a font-object. Adjusted for the change of
15273 struct font. Get underline_thickness and underline_position from
15274 font property. Don't update dpyinfo->smallest_font_height and
15275 dpyinfo->smallest_char_width.
15276 (ftfont_close): Don't free `struct font'.
15277 (ftfont_has_char): Adjusted for the format change of font-entity.
15278 (ftfont_encode_char, ftfont_text_extents): Likewise.
15279
15280 * ftxfont.c (ftxfont_list): Return a list, not vector.
15281 (ftxfont_open): Return a font-object. Adjusted for the change of
15282 struct font. Get underline_thickness and underline_position from
15283 font property. Don't update dpyinfo->smallest_font_height and
15284 dpyinfo->smallest_char_width.
15285 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15286 (ftxfont_draw): Adjusted for the change of struct font.
15287
15288 * image.c (image_ascent): Don't include "charset.h". Include
15289 "character.h" and "font.h".
15290
15291 * lisp.h (enum pvec_type): New member PREV_FONT.
15292 (Fassoc_string): EXFUN it.
15293
15294 * print.c: Include font.h.
15295 (print_object): Handle font-related objects.
15296
15297 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15298 conditionals. Don't check enable_font_backend. Delete all codes
15299 used only when USE_FONT_BACKEND is not defined.
15300 (handle_auto_composed_prop): Do nothing if it->f is not on a
15301 window system. Check how many following characters can be
15302 displayed by the same font.
15303 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15304 'struct font *'.
15305 (get_char_face_and_encoding): Assign the whole encoding task to
15306 the `encode-char' method of a font driver.
15307 (fill_composite_glyph_string): Adjusted for the change of `struct
15308 face' and `struct glyph_string'.
15309 (fill_glyph_string): Likewise.
15310 (get_per_char_metric): Arguments changed.
15311 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15312 and `struct glyph_string'.
15313 (produce_stretch_glyph, calc_line_height_property)
15314 (x_produce_glyphs): Likewise.
15315
15316 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15317 conditionals. Don't check enable_font_backend. Delete all codes
15318 used only when USE_FONT_BACKEND is not defined. Use
15319 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15320 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15321 (Qp): Extern them.
15322 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15323 Deleted.
15324 (struct font_name): Deleted.
15325 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15326 (compare_fonts_by_sort_order): New function.
15327 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15328 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15329 Deleted.
15330 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15331 compare_fonts_by_sort_order.
15332 (Fx_font_family_list): Call Ffont_family_list.
15333 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15334 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15335 (face_symbolic_slant, face_symbolic_swidth)
15336 (split_font_name_into_vector, build_font_name_from_vector)
15337 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15338 (font_rescale_ratio, split_font_name, build_font_name)
15339 (free_font_names, sort_fonts, x_face_list_fonts)
15340 (face_font_available_p, sorted_font_list, cmp_font_names)
15341 (font_list_1, concat_font_list, font_list, remove_duplicates):
15342 Deleted.
15343 (Fx_list_fonts): Use Ffont_list.
15344 (LFACE_AVGWIDTH): Deleted.
15345 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15346 by FONTP.
15347 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15348 (set_lface_from_font_name): Delete it.
15349 (set_lface_from_font): Renamed from
15350 set_lface_from_font_and_fontset. Caller changed. Don't set
15351 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15352 for face.
15353 (merge_face_vectors): Copy font-spec if necessary.
15354 Clear properties of the font-spec if necessary.
15355 (merge_face_ref): Clear properties of the font-spec if necessary.
15356 (Finternal_set_lisp_face_attribute): Likewise.
15357 (set_font_frame_param): Use font_load_for_lface to load a
15358 font-object, and call Fmodify_frame_parameters with it.
15359 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15360 font name by Ffont_xlfd_name.
15361 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15362 QCslant, and QCwidth.
15363 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15364 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15365 Compare fonts by EQ.
15366 (lookup_non_ascii_face): Deleted.
15367 (face_for_font): The 2nd argument changed.
15368 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15369 Check atomic font properties by case insensitive.
15370 (realize_non_ascii_face): Set face->overstrike correctly.
15371 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15372 (dump_realized_face): Get font name from
15373 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15374
15375 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15376 conditionals. Don't check enable_font_backend. Delete all codes
15377 used only when USE_FONT_BACKEND is not defined.
15378 (xic_create_xfontset): Original code deleted and renamed from
15379 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15380 (x_make_gc): Don't set GCFont in GCs.
15381 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15382 opened by "fixed".
15383 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15384 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15385 get_font_repertory_func.
15386
15387 * xfont.c: Include <stdlib.h> and "ccl.h".
15388 (struct xfont_info): New structure.
15389 (xfont_query_font): Deleted.
15390 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15391 moved from xterm.c.
15392 (xfont_driver): Adjusted for the change of struct font_driver.
15393 (compare_font_names): New function.
15394 (xfont_list_pattern): Sort font names case insensitively. Make
15395 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15396 (xfont_list): Return a list, not vector.
15397 (xfont_match): If the font doesn't have QCname property, generate
15398 a name from the other font properties.
15399 (xfont_open): Return a font-object. Adjusted for the change of
15400 struct font. Get underline_thickness and underline_position from
15401 font property. Don't update dpyinfo->smallest_font_height and
15402 dpyinfo->smallest_char_width.
15403 (xfont_close): Don't free struct font.
15404 (xfont_prepare_face): Adjusted for the change of struct font.
15405 (xfont_done_face): Deleted.
15406 (xfont_has_char): Adjusted for the change of struct font.
15407 (xfont_encode_char, xfont_draw): Likewise.
15408 (xfont_check): New function.
15409
15410 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15411 callback function.
15412 (xftfont_match): Adjusted for the format change of font-entity.
15413 (xftfont_open): Adjusted for the format change of font-entity and
15414 font-object. Adjusted for the change of struct font. Return a
15415 font-object. Don't update dpyinfo->smallest_font_height and
15416 dpyinfo->smallest_char_width.
15417 (xftfont_close): Block input while calling XftFontClose.
15418 (xftfont_prepare_face): Don't block input while calling
15419 xftfont_get_colors. Adjusted for the change of struct font.
15420 (xftfont_shape): Return value of error case fixed.
15421
15422 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15423
15424 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15425 conditionals.
15426 (FONT_WIDTH): Return (f)->max_width.
15427 (struct x_display_info): Delete member `font'.
15428 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15429 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15430 (struct x_output): Change type of `font' to `struct font *'.
15431
15432 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15433 conditionals. Don't check enable_font_backend. Delete all codes
15434 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15435 (x_per_char_metric, x_encode_char): Deleted.
15436 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15437 (x_compute_glyph_string_overhangs): Adjusted for the change of
15438 `struct face'.
15439 (x_draw_glyph_string_foreground)
15440 (x_draw_composite_glyph_string_foreground): Likewise.
15441 (x_draw_glyph_string): Likewise. Use font->underline_position and
15442 font->underline_thickness.
15443 (x_new_font): Renamed from x_new_fontset2.
15444 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15445 (x_check_font): Call `check' method of a font driver.
15446 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15447 (x_query_font, x_get_font_repertory): Deleted.
15448 (x_find_ccl_program): Renamed and moved to xfont.c.
15449 (x_redisplay_interface): Adjusted for the change of `struct
15450 redisplay_interface'.
15451
15452 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15453 conditionals. Don't check enable_font_backend. Delete all codes
15454 used only when USE_FONT_BACKEND is not defined. Surround non-used
15455 code by "#ifdef OLD_FONT" and "endif".
15456 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15457
15458 * w32font.h (struct w32font_info): New member.
15459 (FONT_COMPAT): New macro.
15460 (w32font_open_internal): Prototype adjusted.
15461
15462 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15463 OLD_FONT" and "endif".
15464
15465 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15466 conditionals. Don't check enable_font_backend. Delete all codes
15467 used only when USE_FONT_BACKEND is not defined.
15468 (w32font_open): Return a font-object. Make a font-object by
15469 font_make_object. Adjusted for the change of struct w32font_info.
15470 (w32font_close): Don't free struct font. Adjusted for the change
15471 of struct w32font_info.
15472 (w32font_encode_char, w32font_text_extents, w32font_draw):
15473 Adjusted for the change of struct w32font_info.
15474 (w32font_draw): Likewise.
15475 (w32font_list_internal): Return a list, not vector.
15476 (w32font_open_internal): Change the 4th arg to font-object.
15477 Adjusted for the change of struct w32font_info and font-object format.
15478 (add_font_name_to_list): Don't downcase names.
15479 (w32_enumfont_pattern_entity): Make a font-entity by
15480 font_make_entity. Adjusted for the format change of font-entity.
15481 Use FONT_SET_STYLE to set a style-related font property. If a
15482 font is scalable, set avgwidth property to 0. Set font-entity
15483 property by font_put_extra.
15484 (font_matches_spec): Adjusted for the format change of font-entity.
15485 (w32_weight_table, w32_decode_weight): New variables.
15486 (w32_encode_weight): New function.
15487 (fill_in_logfont): Adjusted for the format change of font-spec.
15488 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15489 weight value.
15490 (w32font_driver): Adjusted for the change of struct font_driver.
15491
15492 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15493 conditionals. Don't check enable_font_backend. Surround non-used
15494 code by "#ifdef OLD_FONT" and "endif".
15495 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15496 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15497
15498 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15499 conditionals. Don't check enable_font_backend. Delete all codes
15500 used only when USE_FONT_BACKEND is not defined. Surround non-used
15501 code by "#ifdef OLD_FONT" and "endif".
15502
15503 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15504 (uniscribe_open): Return value changed to font-object.
15505 Adjusted for the format change of font-object.
15506 (uniscribe_otf_capability): Adjusted for the change of struct font.
15507 (add_opentype_font_name_to_list): Don't downcase names.
15508 (uniscribe_font_driver): Adjusted for the change of struct
15509 font_driver.
15510
155112008-05-13 Chong Yidong <cyd@stupidchicken.com>
15512
15513 * dispnew.c (update_frame_1): Check if tty output is still valid
15514 before flushing it.
15515
155162008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15517
15518 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15519 to Gtk+ menus.
15520
155212008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15522
15523 * dired.c (file_name_completion): Tweak the code so as to always do it
15524 in a single pass. Tighten the scope of some variables.
15525
15526 * dired.c (Qdefault_directory): New var.
15527 (file_name_completion): Use it instead of Fexpand_file_name.
15528 (syms_of_dired): Initialize it.
15529
155302008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15531
15532 * fileio.c (double_dollars): Remove dead code.
15533
155342008-05-10 Eli Zaretskii <eliz@gnu.org>
15535
15536 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15537 Mention w32-get-true-file-attributes in doc string.
15538
15539 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15540
155412008-05-09 Glenn Morris <rgm@gnu.org>
15542
15543 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15544 2008-04-23.
15545
155462008-05-09 Eli Zaretskii <eliz@gnu.org>
15547
15548 Support for reporting owner and group of each file on MS-Windows:
15549 * dired.c (stat_uname, stat_gname): New functions, with special
15550 implementation for w32.
15551 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15552
15553 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15554 (dflt_group_name): New static variable.
15555 (dflt_group): Rename from the_group.
15556 (init_user_info): Init dflt_group fields. Get user's group name
15557 from LookupAccountSid.
15558 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15559 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15560 New initialization states.
15561 (globals_of_w32): Initialize them to zero. Initialize the default
15562 group name to "None".
15563 (GetFileSecurity_Name): New global var, the name of the function
15564 to call for GetFileSecurity.
15565 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15566 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15567 (get_file_security, get_security_descriptor_owner)
15568 (get_security_descriptor_group, is_valid_sid)
15569 (get_file_security_desc, get_rid, get_name_and_id)
15570 (get_file_owner_and_group): New functions.
15571 (stat): Use get_file_security_desc and get_file_owner_and_group to
15572 report the owner and primary group of each file. Don't ignore the
15573 high 32 bits of file's size, now that st_size is 64-bit wide.
15574 Fix test when to get true file attributes.
15575 (init_user_info): Use get_rid instead of equivalent inline code.
15576 (fstat): Don't ignore the high 32 bits of file's size.
15577
155782008-05-09 Chong Yidong <cyd@stupidchicken.com>
15579
15580 * image.c (png_load): Use correct bit-depth for setting background
15581 color.
15582
155832008-05-08 Eli Zaretskii <eliz@gnu.org>
15584
15585 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15586 epa-hook.elc.
15587
155882008-05-08 Juanma Barranquero <lekktu@gmail.com>
15589
15590 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15591
155922008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15593
15594 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15595 because the original parameters are in pure storage now.
15596 (mac_window): Remove unused params. Update callers.
15597
155982008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15599
15600 * lread.c (substitute_object_recurse): Use lower-level primitives.
15601 Don't signal errors when traversing sub-char-tables.
15602 Don't loop over all the possible characters when traversing char-tables.
15603
15604 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15605 just like we do in print.c.
15606
156072008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15608
15609 * minibuf.c (Ftry_completion): Remove code left over from when we used
15610 scmp instead of Fcompare_strings.
15611
156122008-05-04 Juanma Barranquero <lekktu@gmail.com>
15613
15614 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15615
156162008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15617
15618 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15619 Create bitmap context in native byte order.
15620
15621 * macterm.c (XDrawLine)
15622 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15623 context in native byte order.
15624
156252008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15626
15627 * config.in: Regenerate.
15628
15629 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15630 New definitions for Image I/O support.
15631 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15632 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15633 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15634 (mac_data_provider_release_data, image_load_image_io)
15635 [USE_MAC_IMAGE_IO]: New functions.
15636 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15637 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15638 (init_image_func_pointer) [MAC_OSX]: Remove function.
15639 (image_load_quartz2d) [MAC_OSX]: Check availability of
15640 CGImageCreateWithPNGDataProvider at compile time.
15641 Use lowercase `false' for boolean constant.
15642 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15643 Use image_load_image_io.
15644 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15645 Don't check MyCGImageCreateWithPNGDataProvider.
15646 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15647 Don't call init_image_func_pointer.
15648
15649 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15650
15651 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15652 Make variable non-static.
15653 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15654 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15655
15656 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15657 (RED_FROM_ULONG): Mask off higher bits.
15658 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15659
15660 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15661 Include AvailabilityMacros.h.
15662 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15663 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15664
156652008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15666
15667 * chartab.c (Fset_char_table_range): If range is t, really set all
15668 chars to that value.
15669
156702008-05-03 Eli Zaretskii <eliz@gnu.org>
15671
15672 * dired.c (Ffile_attributes): Don't allow the device number become
15673 negative.
15674
156752008-05-02 Daiki Ueno <ueno@unixuser.org>
15676
15677 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15678
156792008-05-02 Juri Linkov <juri@jurta.org>
15680
15681 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15682 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15683 DEFAULT argument as a list of default values in docstrings.
15684
156852008-05-01 Chong Yidong <cyd@stupidchicken.com>
15686
15687 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15688
156892008-05-01 Martin Rudalics <rudalics@gmx.at>
15690
15691 * dispnew.c (change_frame_size_1): Preserve small windows when
15692 shrinking frames by calling set_window_height|width with third
15693 arg 2.
15694
15695 * window.h (struct window): Replace field too_small_ok by field
15696 resize_proportionally.
15697
15698 * window.c (make_window): Initialize resize_proportionally.
15699 (enlarge_window): Temporarily set resize_proportionally to make
15700 sure that shrink_windows does scale the window proportionally.
15701 (shrink_windows): When window has resize_proportionally set try
15702 to shrink it proportionally by stealing from other windows.
15703 (struct saved_window, Fset_window_configuration)
15704 (compare_window_configurations): Handle resize_proportionally.
15705 (WINDOW_TOTAL_SIZE): New macro.
15706 (window_min_size, shrink_windows, size_window): Use it.
15707 (check_min_window_sizes): Remove. Invalid values of
15708 window-min-height|width are handled by window_min_size_2 now.
15709 (size_window, Fsplit_window, enlarge_window)
15710 (adjust_window_trailing_edge, grow_mini_window): Don't call
15711 check_min_window_sizes.
15712 (window_min_size_2, window_min_size_1, window_min_size):
15713 New argument safe_p for retrieving "safe" minimum sizes.
15714 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15715 (adjust_window_trailing_edge, grow_mini_window):
15716 Adjust arguments of window_min_size... functions.
15717 (shrink_windows): Argument min_size removed. New argument
15718 safe_p allows shrinking windows to their safe minimum sizes.
15719 Calculate minimum size and decide whether a window shall be
15720 deleted for each window individually.
15721 (size_window): When nodelete_p equals 2, tell shrink_windows to
15722 delete windows only if their new minimum size is no more safe.
15723 (shrink_window_lowest_first): Call window_min_size_1 to make
15724 sure to preserve modeline of bottom-most window when resizing
15725 the minibuffer.
15726 (Fset_window_configuration, Fcurrent_window_configuration)
15727 (compare_window_configurations): Do not handle
15728 window-min-height|width any more.
15729 (syms_of_window): Clarify window-min-height|width doc-strings.
15730
157312008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15732
15733 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15734 some more. Copy some of the code from Ftry_completions.
15735 Remove special case code that dates back to initial revision when the
15736 slash was only added when necessary and that can't trigger nowadays.
15737
157382008-04-27 Kenichi Handa <handa@m17n.org>
15739
15740 * font.c (font_prop_validate): Signal `error' instead of `font'.
15741
157422008-04-29 Jason Rumney <jasonr@gnu.org>
15743
15744 * w32fns.c (Fw32_battery_status): New defun.
15745 (syms_of_w32fns): Defsubr it.
15746
157472008-04-28 Andreas Schwab <schwab@suse.de>
15748
15749 * dired.c (file_name_completion): Fix another mixing of encoded
15750 and decoded names.
15751
157522008-04-28 Juanma Barranquero <lekktu@gmail.com>
15753
15754 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15755
157562008-04-27 Juanma Barranquero <lekktu@gmail.com>
15757
15758 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15759
157602008-04-27 Andreas Schwab <schwab@suse.de>
15761
15762 * dired.c (file_name_completion): Fix inappropriate mixing of
15763 encoded and decoded names.
15764
15765 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15766
15767 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15768
157692008-04-26 Eli Zaretskii <eliz@gnu.org>
15770
15771 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15772 2008-03-31, it's not needed anymore with `struct stat' definition
15773 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15774 for the same reasons.
15775
157762008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15777
15778 * m/sparc.h: Additional redefinitions for GNU/Linux.
15779
157802008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15781
15782 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15783 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15784 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15785 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15786 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15787 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15788 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15789 Likewise.
15790
15791 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15792 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15793 (mac_ax_number_of_characters): Add externs.
15794 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15795 [USE_MAC_TSM]: Likewise.
15796 (mac_handle_text_input_event) [MAC_OSX]:
15797 Handle kEventTextInputOffsetToPos for no active input area case.
15798 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15799 (mac_handle_document_access_event)
15800 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15801 (install_application_handler) [MAC_OSX]: Register handlers for
15802 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15803 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15804 Register mac_handle_document_access_event.
15805
15806 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15807 Make functions non-static.
15808
158092008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15810
15811 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15812 (read_file_name_completion_ignore_case, insert_default_directory)
15813 (Qdefault_directory): Move to minibuffer.el.
15814 (Fread_file_name): Call the new `read-file-name' instead.
15815
158162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15817
15818 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15819 Make function non-static.
15820 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15821 Remove function.
15822 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15823 Move to mactoolbox.c.
15824 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15825
15826 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15827 (mac_rect_make): New macro.
15828
15829 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15830 instead of float.
15831 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15832 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15833 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15834 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15835 CGRectMake.
15836 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15837 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15838 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15839 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15840 instead of WindowRef in argument type.
15841 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15842 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15843 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15844 instead of DISPLAY. All uses changed.
15845 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15846 (x_calc_absolute_position): Simplify so as not to use
15847 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15848
15849 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15850 instead of WindowRef in argument type.
15851 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15852 [TARGET_API_MAC_CARBON]: Remove externs.
15853 (create_apple_event, mac_event_parameters_to_lisp)
15854 [TARGET_API_MAC_CARBON]: Add externs.
15855
15856 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15857 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15858 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15859 is clicked.
15860 (x_activate_menubar): Remove extern for saved_menu_event_location.
15861 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15862 Move from mac.c.
15863
158642008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15865
15866 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15867 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15868
158692008-04-23 Jason Rumney <jasonr@gnu.org>
15870
15871 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15872 attributes only for local files.
15873
15874 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15875 default to Qlocal.
15876
158772008-04-22 Juri Linkov <juri@jurta.org>
15878
15879 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15880 read-buffer-to-switch instead of using the letter "B".
15881
158822008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15883
15884 * fileio.c (Qdefault_directory): New variable.
15885 (Fread_file_name): Use it to pass `dir' to the completion functions.
15886
158872008-04-20 Chong Yidong <cyd@stupidchicken.com>
15888
15889 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15890
158912008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15892
15893 * keyboard.c (Vpre_help_message): Remove.
15894 (show_help_echo): Remove default C code.
15895
15896 * dired.c (directory_files_internal, file_name_completion):
15897 Only call ENCODE_FILE if the string is indeed decoded.
15898
158992008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15900
15901 * Makefile.in (TOOLKIT_DEFINES): Remove.
15902 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15903
159042008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15905
15906 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15907 (mactoolbox.o): New target.
15908
15909 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15910 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15911
15912 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15913 Use mac_set_frame_window_background instead of XSetWindowBackground.
15914 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15915 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15916 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15917 instead of SetWindowTitleWithCFString.
15918 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15919 Move function to mactoolbox.c.
15920 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15921 Use mac_set_window_modified instead of SetWindowModified.
15922 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15923 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15924 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15925 FrontNonFloatingWindow. Use mac_activate_window instead of
15926 ActivateWindow. Use mac_active_non_floating_window instead of
15927 ActiveNonFloatingWindow.
15928 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15929 Use mac_show_hourglass and mac_hide_hourglass.
15930 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15931 instead of GetGlobalMouse.
15932 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15933 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15934 Use mac_bring_window_to_front instead of BringToFront.
15935 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15936 mactoolbox.c.
15937 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15938 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15939 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15940 mactoolbox.c.
15941
15942 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15943 (XtPointer): Move typedef from macmenu.c.
15944 (enum button_type): Move enum from macmenu.c.
15945 (widget_value): Move typedef from macmenu.c.
15946 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15947 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15948 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15949 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15950 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15951 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15952 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15953 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15954 (Selection): Move typedef from macselect.c.
15955 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15956 macterm.c.
15957 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15958 (mac_is_window_collapsed, mac_bring_window_to_front)
15959 (mac_send_window_behind, mac_hide_window, mac_show_window)
15960 (mac_collapse_window, mac_front_non_floating_window)
15961 (mac_active_non_floating_window, mac_activate_window)
15962 (mac_move_window_structure, mac_move_window, mac_size_window)
15963 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15964
15965 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15966 (enum mac_menu_kind): Move enum to mactoolbox.c.
15967 (min_menu_id): Move variable to mactoolbox.c.
15968 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15969 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15970 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15971 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15972 [TARGET_API_MAC_CARBON]: Likewise.
15973 (XtPointer): Move typedef to macgui.h.
15974 (enum button_type): Move enum to macgui.h.
15975 (widget_value): Move typedef to macgui.h.
15976 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15977 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15978 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15979 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15980 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15981 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15982 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15983 (popup_activated_flag): Make variable non-static.
15984 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15985 (add_menu_item, fill_menu, dispose_menus):
15986 Move functions to mactoolbox.c.
15987 (restore_show_help_function, menu_target_item_handler)
15988 (install_menu_target_item_handler, mac_handle_dialog_event)
15989 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15990 [TARGET_API_MAC_CARBON]: Likewise.
15991 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15992 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15993 (find_and_call_menu_selection, name_is_separator): Make function
15994 non-static.
15995 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15996 to mactoolbox.c.
15997 (set_frame_menubar): Don't call install_menu_quit_handler.
15998 (menu_item_selection): New variable.
15999 (mac_menu_show): Use create_and_show_popup_menu.
16000 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16001 selection but set variable menu_item_selection. All uses changed.
16002 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16003 Call install_menu_quit_handler. Move to mactoolbox.c.
16004
16005 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16006 (Selection): Move typedef to macgui.h.
16007 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16008 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16009 Make variables non-static.
16010 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16011 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16012 Make functions non-static.
16013 (Vmac_service_selection) [MAC_OSX]: Likewise.
16014 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16015 (mac_valid_selection_target_p, mac_clear_selection)
16016 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16017 (mac_put_selection_value, mac_selection_has_target_p)
16018 (mac_get_selection_value, mac_get_selection_target_list)
16019 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16020 Move functions to mactoolbox.c.
16021 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16022 Likewise.
16023 (copy_scrap_flavor_data, mac_handle_service_event)
16024 (install_service_handler) [MAC_OSX]: Likewise.
16025 (syms_of_macselect) <Vmac_dnd_known_types>:
16026 Use mac_dnd_default_known_types.
16027
16028 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16029 Move to mactoolbox.c.
16030 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16031 (Fx_selection_owner_p): Add EXFUN.
16032 (install_window_handler, remove_window_handler, XSetWindowBackground):
16033 Remove externs.
16034 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16035 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16036 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16037 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16038 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16039 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16040 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16041 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16042 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16043 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16044 (mac_valid_selection_target_p, mac_clear_selection)
16045 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16046 (mac_put_selection_value, mac_selection_has_target_p)
16047 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16048 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16049 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16050 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16051 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16052 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16053 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16054 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16055 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16056
16057 * mactoolbox.c: New file.
16058
160592008-04-18 Jason Rumney <jasonr@gnu.org>
16060
16061 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16062
160632008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16064
16065 * character.c (Fmultibyte_char_to_unibyte):
16066 Return latin1 chars unchanged.
16067
16068 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16069 relocated if it points to `name'.
16070
160712008-04-17 Kenichi Handa <handa@m17n.org>
16072
16073 * data.c (Faset): Allow setting a multibyte character in an
16074 ASCII-only unibyte string.
16075
16076 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16077
160782008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16079
16080 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16081 done in config.h.
16082
160832008-04-16 Juanma Barranquero <lekktu@gmail.com>
16084
16085 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16086 (Fchar_direction): Add usage in the docstring.
16087
160882008-04-15 Chong Yidong <cyd@stupidchicken.com>
16089
16090 * keyboard.c (read_key_sequence): Remove always-true checks.
16091
160922008-04-14 Jason Rumney <jasonr@gnu.org>
16093
16094 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16095 compatibility struct, for better underline positioning.
16096
160972008-04-13 David Hansen <david.hansen@gmx.net>
16098
16099 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16100 string.
16101
161022008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16103
16104 * m/hp800.h (XUINT, XSET): Remove.
16105
161062008-04-12 Juanma Barranquero <lekktu@gmail.com>
16107
16108 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16109 previous change.
16110
161112008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16112
16113 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16114 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16115
161162008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16117
16118 * keymap.h (map_keymap_canonical): Declare.
16119 * xmenu.c (single_keymap_panes): Use it.
16120
161212008-04-11 Glenn Morris <rgm@gnu.org>
16122
16123 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16124 set the target's value to that of the alias.
16125
161262008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16127
16128 * term.c (set_tty_color_mode): Left over typo.
16129
161302008-04-10 Michael Albinus <michael.albinus@gmx.de>
16131
16132 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16133 only after check for file name handler functions. Signal, when
16134 native functionality is not supported.
16135 (syms_of_fileio): Declare it unconditionally.
16136
161372008-04-10 Jason Rumney <jasonr@gnu.org>
16138
16139 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16140 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16141
16142 * w32.c (logon_network_drive): Also logon to remote drives that
16143 are mapped to drive letters.
16144
161452008-04-10 Glenn Morris <rgm@gnu.org>
16146
16147 * xdisp.c (truncate-partial-width-windows): Doc fix.
16148
161492008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16150
16151 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16152 Move functions to minibuffer.el.
16153 (syms_of_fileio): Don't declare them.
16154
161552008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16156
16157 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16158 (syms_of_minibuf): Remove its initialization.
16159
16160 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16161
161622008-04-09 Juanma Barranquero <lekktu@gmail.com>
16163
16164 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16165
161662008-04-09 Jason Rumney <jasonr@gnu.org>
16167
16168 * makefile.w32-in (distclean): Delete makefile too.
16169 (maintainer-clean): New target.
16170
16171 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16172
16173 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16174 for new font backend and composite cases.
16175
161762008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16177
16178 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16179 Most of the code moved to run_timers.
16180 (do_pending_atimers): Call run_timers.
16181 (run_timers): New function.
16182
16183 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16184 run atimers.
16185
16186 * process.c (wait_reading_process_output): The same as above.
16187
161882008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16189
16190 * minibuf.c (last_exact_completion): Remove variable.
16191 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16192 (complete_and_exit_1, complete_and_exit_2)
16193 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16194 (Fdisplay_completion_list, display_completion_list_1)
16195 (Fminibuffer_completion_help, Fself_insert_and_exit)
16196 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16197 minibuffer.el.
16198 (syms_of_minibuf): Remove corresponding initializations.
16199
16200 * keyboard.c (Qdeactivate_mark): New var.
16201 (command_loop_1): Use it to call `deactivate-mark'.
16202 (syms_of_keyboard): Initialize it.
16203
16204 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16205 to another frame.
16206 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16207 Don't call set_tty_color_mode.
16208 (store_frame_param): Reset previous_frame rather than call
16209 set_tty_color_mode.
16210 * term.c (set_tty_color_mode): Rewrite.
16211 * dispextern.h (set_tty_color_mode): New type.
16212 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16213
162142008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16215
16216 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16217 for generic chars, which do not exist any more in emacs-unicode.
16218
162192008-04-08 Michael Albinus <michael.albinus@gmx.de>
16220
16221 * coding.c (detect_coding_emacs_mule)
16222 (Ffind_operation_coding_system): Fix typo.
16223
162242008-04-08 Jason Rumney <jasonr@gnu.org>
16225
16226 * w32uniscribe.c (SNAME): Extract only symbol name.
16227
16228 * w32font.h (struct w32_metric_cache): New struct.
16229 (w32font_info): Use it.
16230 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16231 (CACHE_BLOCKSIZE): New constants.
16232
16233 * w32font.c (Qja, Qko, Qzh): New symbols.
16234 (syms_of_w32font): Initialise them.
16235 (font_matches_spec): Use them to filter by language.
16236 (recompute_cached_metrics): Remove function.
16237 (compute_metrics, clear_cached_metrics): New functions.
16238 (w32font_encode_char): Use them to manage metric cache.
16239 (w32font_text_extents): Cache metrics for all glyphs on demand.
16240 Delay converting glyph indices to WORD until needed.
16241 (w32font_open_internal): Initialize metric cache to empty.
16242 (registry_to_w32_charset): Charset should always be a symbol.
16243 (fill_in_logfont, list_all_matching_fonts): Family should
16244 always be a symbol.
16245
162462008-04-06 Jason Rumney <jasonr@gnu.org>
16247
16248 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16249 Give up if glyph indices not supported. Use uniscribe obtained
16250 ABC widths for individual metrics. Map glyph clusters back to
16251 characters using fClusterStart flag. Return number of glyphs
16252 produced, not chars processed.
16253 (uniscribe_shape): Map char at FROM to current glyph.
16254
162552008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16256
16257 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16258 Use SetMenuItemHierarchicalMenu.
16259
162602008-04-05 Jason Rumney <jasonr@gnu.org>
16261
16262 * image.c (pbm_load): Allow color values up to 65535.
16263 Throw an error if max_color_idx is outside the supported range.
16264 Report an error when image size is invalid.
16265 Read two bytes at a time when raw images have max_color_idx above 255.
16266
aac0c6e3
MR
162672008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16268
16269 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16270 append "CCL: Quitted" when the CCL program is quitted.
16271 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16272
16273 * ccl.h (struct ccl_program): New member quit_silently.
16274
162752008-04-05 Chong Yidong <cyd@stupidchicken.com>
16276
16277 * search.c (compile_pattern_1): Treat non-nil and non-string of
16278 search-spaces-regexp as nil.
16279
16280 * minibuf.c (Fassoc_string): Tweak docstring.
16281
162822008-04-05 Eli Zaretskii <eliz@gnu.org>
16283
16284 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16285 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16286 2008-03-14 to force inode be positive.
16287
16288 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16289 _S_* ones, since we now use our own sys/stat.h.
16290 (stat, fstat): Don't mangle the inode number.
16291 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16292
162932008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16294
16295 * frame.h (struct frame): Give one more bit to `visible' since we use
16296 values larger than 1 to indicate obscured frames on ttys.
16297
16298 * keymap.c (Qkeymap_canonicalize): New var.
16299 (Fmap_keymap_internal): New fun.
16300 (describe_map): Use keymap-canonicalize.
16301
16302 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16303 (Fundo_boundary): Set them.
16304 (syms_of_undo): Initialize them.
16305 (record_point): Use them instead of last_point_position*.
16306 (last_undo_buffer): Change type.
16307
163082008-04-04 Jason Rumney <jasonr@gnu.org>
16309
16310 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16311 (recompute_cached_metrics): Don't set ascent and descent per char.
16312
16313 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16314 (uniscribe_check_otf): Add GC protection before consing.
16315 Rearrange loop for counting features.
16316
163172008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16318
16319 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16320 buffer with byte-size of source buffer.
16321
163222008-04-03 Chong Yidong <cyd@stupidchicken.com>
16323
16324 * callint.c (Fcall_interactively): Handle temporary region even
16325 when shift-select-mode is off.
16326
163272008-04-03 Jason Rumney <jasonr@gnu.org>
16328
16329 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16330
163312008-04-03 Kenichi Handa <handa@m17n.org>
16332
16333 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16334 (CATEGORY_MASK_UTF_16): Likewise.
16335 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16336 binary file.
16337 (detect_coding): Add null-byte detection for a binary file.
16338 (detect_coding_system): Likewise.
16339
163402008-04-03 Jason Rumney <jasonr@gnu.org>
16341
16342 * w32uniscribe.c: New file.
16343
16344 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16345
16346 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16347
16348 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16349 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16350 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16351 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16352 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16353 (Qphonetic): New symbols.
16354 (syms_of_w32font): Initialize them.
16355 (font_supported_scripts): Use them.
16356 (w32font_list_family): List all charsets.
16357 (w32font_text_extents, recompute_cached_metrics): Fix metric
16358 calculations.
16359 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16360 Give opentype fonts their own format.
16361 (font_matches_spec): New arguments backend and logfont.
16362 Handle :otf spec for uniscribe backend.
16363 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16364 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16365
16366 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16367 font backend.
16368 (globals_of_w32fns): Initialize uniscribe font backend.
16369
16370 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16371 dependencies.
16372 (w32uniscribe.$(O)): New file to build.
16373 (FONT_OBJ): Include w32uniscribe.$(O).
16374 (LIBS): Add uniscribe libraries.
16375
16376 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16377
163782008-04-02 Chong Yidong <cyd@stupidchicken.com>
16379
16380 * callint.c (Vshift_select_mode): New var.
16381 (Finteractive): Document new ^ spec.
16382 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16383 is present.
16384
16385 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16386 (command_loop_1): Avoid running the direct display versions of
16387 forward-char and backward-char if shift-selection may occur.
16388 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16389 shift-translation takes place.
16390
16391 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16392 avoid clobbering by define-minor-mode.
16393
16394 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16395 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16396
16397 * syntax.c (Fforward_word): Add ^ interactive spec.
16398
16399 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16400 (Fscroll_right): Add ^ interactive spec.
16401
164022008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16403
16404 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16405
16406 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16407
16408 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16409
164102008-03-31 Juri Linkov <juri@jurta.org>
16411
16412 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16413
164142008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16415
16416 * gtkutil.c (xg_set_geometry): Fix indentation.
16417 (xg_resize_outer_widget): Remove.
16418 (x_wm_size_hint_off): Fix indentation.
16419 (xg_frame_set_char_size): Call flush_and_sync after
16420 gtk_window_resize.
16421 (x_wm_set_size_hint): Pass NULL as geometry window to
16422 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16423 Add menu bar and tool bar height to base height.
16424 (xg_update_frame_menubar, free_frame_menubar)
16425 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16426 (update_frame_tool_bar, free_frame_tool_bar):
16427 Change xg_resize_outer_widget to xg_frame_set_char_size.
16428
164292008-03-30 Michael Albinus <michael.albinus@gmx.de>
16430
16431 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16432 (Fdbus_call_method): New parameter TIMEOUT.
16433 (dbus-send-signal): Optimize UNGCPRO call.
16434
164352008-03-29 Juri Linkov <juri@jurta.org>
16436
16437 * window.c (Fdisplay_buffer): Move call to
16438 Vsplit_window_preferred_function out of conditions that check
16439 if window is eligible for vertical splitting.
16440 When Vsplit_window_preferred_function is non-nil, call it and use
16441 its non-nil return value as window. Otherwise, continue doing
16442 vertical splitting using Fsplit_window with arg horflag=nil.
16443 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16444 default value from `split-window' to nil.
16445
164462008-03-29 Juri Linkov <juri@jurta.org>
16447
16448 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16449 for interactive code letters 'b' and 'B'.
16450
164512008-03-29 Eli Zaretskii <eliz@gnu.org>
16452
16453 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16454 multibyte string.
16455
164562008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16457
16458 * keyboard.c (pending_funcalls): New var.
16459 (timer_check): Run it.
16460 (syms_of_keyboard): Initialize it.
16461 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16462 (Vdelete_terminal_functions): New vars.
16463 (syms_of_terminal): Initialize them.
16464 (Fdelete_terminal): Run delete-terminal-functions.
16465 * xdisp.c (safe_eval): Rewrite.
16466 (safe_call2): New fun.
16467 * frame.c (Qdelete_frame_functions): New var.
16468 (syms_of_frame): Initialize it.
16469 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16470 * lisp.h (safe_call2, pending_funcalls): Declare.
16471
164722008-03-28 Andreas Schwab <schwab@suse.de>
16473
16474 * indent.c (Fmove_to_column): Move declaration before statements.
16475
164762008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16477
16478 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16479 (struct frame): Use bit fields for boolean vars.
16480
16481 * process.c (server_accept_connection): Simplify naming.
16482 (emacs_get_tty_pgrp): Use SDATA.
16483
16484 * coding.c (decode_coding_object): Fix last change.
16485
164862008-03-27 Jason Rumney <jasonr@gnu.org>
16487
16488 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16489
164902008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16491
16492 * charset.c (Fdefine_charset_internal): Change the way of
16493 registering charsets in Vcharset_order_list.
16494 (syms_of_charset): Make the charset `eight-bit' supplementary.
16495
164962008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16497
16498 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16499 operations, to avoid having the difference between pointers
16500 overflow.
16501
165022008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16503
16504 * indent.c (check_display_width): New fun.
16505 (scan_for_column): Use it.
16506
16507 * data.c (syms_of_data): Mark most-positive-fixnum and
16508 most-negative-fixnum as constants.
16509
16510 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16511
16512 * indent.c (scan_for_column): Extract from current_column_1.
16513 Merge with the same code from Fmove_to_column.
16514 (current_column_1, Fmove_to_column): Use it.
16515
165162008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16517
16518 * keymap.c (map_keymap_internal): New fun.
16519 (map_keymap): Use it.
16520 (Fmap_keymap_internal): New fun.
16521 (Fmap_keymap): Remove left-out test from before make_save_value.
16522
16523 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16524
16525 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16526 Use XCAR/XCDR.
16527
16528 * process.h (struct Lisp_Process): Remove filter_multibyte.
16529 * process.c (QCfilter_multibyte): Remove.
16530 (setup_process_coding_systems): Don't use filter_multibyte.
16531 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16532 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16533 (Fset_process_filter_multibyte): Change the coding-system to
16534 approximate the previous behavior.
16535 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16536 coding-system.
16537
16538 * coding.c (decode_coding_object): When not decoding into a buffer,
16539 obey the coding system's preference of (uni|multi)byte.
16540
165412008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16542
16543 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16544 every char is changed and has a different byte-length.
16545 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16546 Fix int -> EMACS_INT.
16547
165482008-03-23 David Hansen <david.hansen@gmx.net>
16549
16550 * dbusbind.c (xd_read_message): Remove extra copying of message
16551 strings. Check for NULL `interface' or `member'.
16552
165532008-03-22 Eli Zaretskii <eliz@gnu.org>
16554
16555 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16556 cFileName a file name that includes `?' characters, use the 8+3
16557 alias in cAlternateFileName instead.
16558
165592008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16560
16561 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16562
165632008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16564
16565 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16566 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16567 work on current_buffer only instead (that was already the case
16568 for some of the code anyway).
16569 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16570 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16571 (SET_PT, SET_PT_BOTH): Adjust.
16572 * intervals.h (set_point, temp_set_point, set_point_both)
16573 (temp_set_point_both): Remove redundant declarations.
16574
165752008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16576
16577 * fileio.c (Finsert_file_contents):
16578 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16579 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16580 when buffer != current_buffer anyway.
16581
165822008-03-20 Andreas Schwab <schwab@suse.de>
16583
16584 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16585 as default.
16586
165872008-03-19 Jason Rumney <jasonr@gnu.org>
16588
16589 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16590 (syms_of_w32fns): Initialize them.
16591 (HOURGLASS_ID): New constant.
16592 (x_window_to_frame): Don't check hourglass_window.
16593 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16594 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16595 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16596 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16597 Only change the cursor if hourglass is not active.
16598 (Fx_create_frame): Initialize frame's current_cursor.
16599 (hourglass_atimer): Remove.
16600 (hourglass_started): New function.
16601 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16602 (show_hourglass): Adapt to w32, changing argument to frame.
16603
16604 * w32term.h (struct w32_output): Remove hourglass_window.
16605 Add current_cursor.
16606
16607 * eval.c (call_debugger, Fsignal):
16608 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16609 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16610 (Fexecute_extended_command, cancel_hourglass_unwind):
16611 * minibuf.c (read_minibuf):
16612 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16613
166142008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16615
16616 * window.c (run_funs): New fun.
16617 (run_window_configuration_change_hook): Use it to run the buffer-local
16618 and the global part of the hook.
16619
16620 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16621 (unwind_format_mode_line): Restore selected window.
16622 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16623
166242008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16625
16626 * editfns.c (Fchar_equal): Check they are valid characters.
16627
16628 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16629
166302008-03-17 Andreas Schwab <schwab@suse.de>
16631
16632 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16633 against a charset.
16634
16635 * lisp.h (Fbuffer_list): Declare.
16636
166372008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16638
aac0c6e3
MR
16639 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16640 handlebox_widget is != 0.
16641
166422008-03-16 Juri Linkov <juri@jurta.org>
16643
16644 * callint.c (Fcall_interactively): For interactive code letters
16645 'b' and 'B' put the buffer list into the list of default "future"
16646 values of the minibuffer.
16647
166482008-03-16 Andreas Schwab <schwab@suse.de>
16649
16650 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16651 modifiers.
16652
16653 * regex.c (re_match_2_internal): Correct matching of a charset
16654 against latin-1 characters.
16655
166562008-03-16 Kenichi Handa <handa@m17n.org>
16657
16658 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16659 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16660 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16661 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16662 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16663 CHAR_STRING_ADVANCE.
16664 (produce_chars): Fix for the case that the source and the
16665 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16666 instead of CHAR_STRING_ADVANCE.
16667 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16668 STRING_CHAR_ADVANCE.
16669
166702008-03-15 Andreas Schwab <schwab@suse.de>
16671
16672 * regex.c (re_match_2_internal): Correct matching of eight bit
16673 characters in unibyte strings.
16674
166752008-03-15 Martin Rudalics <rudalics@gmx.at>
16676
16677 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16678 at end of range when it coincides with the end of the buffer.
16679
166802008-03-14 Eli Zaretskii <eliz@gnu.org>
16681
16682 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16683
16684 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16685
166862008-03-14 Jason Rumney <jasonr@gnu.org>
16687
16688 * editfns.c (initial_tz): New variable.
16689 (syms_of_editfns): Initialize it.
16690 (Fset_time_zone_rule): Set it when first called.
16691 Use it when TZSTRING is nil.
16692
16693 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16694 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16695 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16696 (globals_of_w32fns): Initialize them.
16697 (compute_tip_xy): Use them to position tooltips.
16698
166992008-03-14 Glenn Morris <rgm@gnu.org>
16700
16701 * emacs.c (main): Revert previous change.
16702 (standard_args): Revert -internal-script back to -scriptload,
16703 and remove the long-option form.
16704
167052008-03-13 Glenn Morris <rgm@gnu.org>
16706
16707 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16708 Remove option -enable-font-backend.
16709
167102008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16711
16712 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16713
167142008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16715
16716 * xterm.c (x_connection_closed): For GTK: If this is the last
16717 terminal just exit without closing the display.
16718
167192008-03-11 Jason Rumney <jasonr@gnu.org>
16720
16721 * w32font.c (w32font_full_name): Use floor to round.
16722
f0131492 167232008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16724
16725 * sound.c (alsa_configure): Declare vol at beginning of block.
16726
16727 * fontset.c (Ffontset_info): Remove extra semicolon.
16728
167292008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16730
16731 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16732 size of resulting string.
16733
167342008-03-10 Jason Rumney <jasonr@gnu.org>
16735
16736 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16737
167382008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16739
16740 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16741 Don't pretend as if characters with display property haven't been
16742 consumed for string-replacing-string case.
16743
167442008-03-08 Kim F. Storm <storm@cua.dk>
16745
16746 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16747 (get_next_display_element, next_element_from_string)
16748 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16749
167502008-03-08 Andreas Schwab <schwab@suse.de>
16751
16752 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16753
167542008-03-06 Jason Rumney <jasonr@gnu.org>
16755
16756 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16757 when charset not specified. Only translate ANSI to unicode when
16758 font_type is truetype.
16759 (w32font_coverage_ok): New function.
16760 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16761
167622008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16763
16764 * lread.c (Fread_char): Resolve modifiers.
16765 (Fread_char_exclusive): Likewise.
16766
16767 * character.c (char_resolve_modifier_mask): New function.
16768 (char_string): Use char_resolve_modifier_mask.
16769 (Fchar_resolve_modifiers): New function.
16770 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16771 function.
16772
167732008-03-04 Jason Rumney <jasonr@gnu.org>
16774
16775 * makefile.w32-in: Always include w32font.c in the build.
16776 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16777
167782008-03-04 Andreas Schwab <schwab@suse.de>
16779
16780 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16781 (versionclean): Likewise.
16782
167832008-03-04 Juanma Barranquero <lekktu@gmail.com>
16784
16785 * .cvsignore: Add oo.
16786
167872008-03-03 Andreas Schwab <schwab@suse.de>
16788
16789 * coding.c (decode_coding_object): Inhibit gap shrinking while
16790 decoding in place.
16791
167922008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16793
16794 * w32term.c: Remove unused include "gnu.h".
16795 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16796
16797 * gnu.h: Rename to ...
16798 * emacs-icon.h: ... this.
16799 * xterm.c: Use emacs-icon.h instead of gnu.h.
16800 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16801
168022008-03-03 Juanma Barranquero <lekktu@gmail.com>
16803
16804 * w32font.c: Include math.h.
16805
168062008-03-03 Jason Rumney <jasonr@gnu.org>
16807
16808 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16809 Compute options separately.
16810 (w32font_open_internal): Set glyph_idx before caching metrics.
16811
16812 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16813 Define if system headers don't.
16814 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16815 (w32font_encode_char): Don't declare here.
16816
16817 * w32font.c (Quniscribe, QCformat): New symbols.
16818 (syms_of_w32font): Define them.
16819 (w32font_has_char): Indicate uncertainty.
16820 (w32font_encode_char): Encode as glyph point. Make static.
16821 (recompute_cached_metrics): New function.
16822 (w32font_open_internal): Use it. Set font to use glyph points
16823 initially. Set format based on type of font.
16824 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16825 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16826 on it. Set format based on information available here.
16827 (add_font_entity_to_list): Identify backend based on opentype_only.
16828
168292008-03-02 Andreas Schwab <schwab@suse.de>
16830
16831 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16832
16833 * coding.c (decode_coding_big5, produce_chars):
16834 Fix typos in last change.
16835
168362008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16837
16838 * gnu.h: New icon.
16839
168402008-03-02 Kenichi Handa <handa@m17n.org>
16841
16842 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16843 `dos', don't decode '\r' if that is the last in the source.
16844 (decode_coding_utf_16, decode_coding_emacs_mule)
16845 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16846 (decode_coding_raw_text, decode_coding_charset): Likewise.
16847 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16848
168492008-03-01 Jason Rumney <jasonr@gnu.org>
16850
16851 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16852
168532008-03-01 Kim F. Storm <storm@cua.dk>
16854
16855 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16856
168572008-03-01 Jason Rumney <jasonr@gnu.org>
16858
16859 * w32font.c (w32font_full_name): New function.
16860 (w32font_open_internal): Use it.
16861
168622008-03-01 Kim F. Storm <storm@cua.dk>
16863
16864 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16865
168662008-03-01 Jason Rumney <jasonr@gnu.org>
16867
16868 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16869
168702008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16871
16872 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16873 xg_frame_resized when the event is for the edit widget.
16874
16875 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16876
16877 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16878 set_char_size.
16879 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16880 operations on widgets here. Just set frame size if needed.
16881 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16882 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16883 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16884 the whole frame.
16885 (xg_create_tool_bar): Move attachment of the tool bar to
16886 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16887 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16888
168892008-03-01 Jason Rumney <jasonr@gnu.org>
16890
16891 * w32fns.c (w32_msg_pump): Disable debug code.
16892
168932008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16894
16895 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16896
168972008-02-29 Chong Yidong <cyd@stupidchicken.com>
16898
16899 * xdisp.c (next_overlay_string): Don't set
16900 overlay_strings_at_end_processed_p if we're currently reading from
16901 a display string.
16902
169032008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16904
16905 * xdisp.c (get_overlay_strings_1): Fix typo.
16906
169072008-02-29 Chong Yidong <cyd@stupidchicken.com>
16908
16909 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16910
169112008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16912
16913 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16914
16915 * xdisp.c (display_mode_element): Cancel the previous change.
16916 (decode_mode_spec): Likewise.
16917 (handle_auto_composed_prop): Don't make composition if it->string
16918 is a string.
16919
169202008-02-27 Kim F. Storm <storm@cua.dk>
16921
16922 * lisp.h (GLYPH): Change type from int to struct with separate char
16923 and face_id members.
16924 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16925 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16926 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16927 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16928 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16929 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16930 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16931 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16932 handle new Lisp glyph code encoding, either an integer or a cons.
16933
16934 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16935 (GLYPH_ALIAS): Delete.
16936 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16937 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16938 (GLYPH_FROM_CHAR): Replace macro by ...
16939 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16940
16941 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16942 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16943 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16944 (GLYPH_INVALID_P): New macro.
16945 (spec_glyph_lookup_face): Update prototype.
16946
16947 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16948 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16949 new glyph code encoding.
16950 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16951 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16952
16953 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16954 Adapt to new glyph type and new glyph code encoding.
16955
16956 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16957
16958 * indent.c (current_column, current_column_1, Fmove_to_column)
16959 (compute_motion): Adapt to new glyph code encoding.
16960
16961 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16962
169632008-02-27 Chong Yidong <cyd@stupidchicken.com>
16964
16965 * process.c (wait_reading_process_output): Check for window
16966 changes caused by timers.
16967 Suggested by Johan Bockgård.
16968
169692008-02-27 Glenn Morris <rgm@gnu.org>
16970
16971 * emacs.c (USAGE1): Add `--disable-font-backend'.
16972
169732008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16974
16975 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16976 is made to the buffer.
16977
169782008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16979
16980 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16981 (face_at_string_position):
16982 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16983 (face_at_string_position):
16984 * xdisp.c (display_string, next_overlay_change):
16985 * buffer.h (overlays_at):
16986 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16987 Update callers.
16988
169892008-02-26 Chong Yidong <cyd@stupidchicken.com>
16990
16991 * editfns.c (Fformat): Doc fix.
16992
169932008-02-26 Juanma Barranquero <lekktu@gmail.com>
16994
16995 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16996 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16997 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16998
169992008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17000
17001 * buffer.c (Fbuffer_swap_text): New function.
17002 (syms_of_buffer): Defsubr it.
17003
170042008-02-25 Chong Yidong <cyd@stupidchicken.com>
17005
17006 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17007
170082008-02-25 Jason Rumney <jasonr@gnu.org>
17009
17010 * w32font.c (w32font_draw): Draw one character at a time when padding.
17011
170122008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17013
17014 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17015 Handle a nil arg. Use run_window_configuration_change_hook.
17016 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17017 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17018 Use run_window_configuration_change_hook.
17019
170202008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17021
17022 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17023 1-pixel width.
17024
170252008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17026
17027 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17028 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17029 if the glyph in the font is zero pixel with.
17030
17031 * dispextern.h (struct glyph_string): New member padding_p.
17032
17033 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17034
17035 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17036
17037 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17038
17039 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17040
17041 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17042
170432008-02-25 Jason Rumney <jasonr@gnu.org>
17044
17045 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17046
170472008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17048
17049 Allow fine-grained image-cache flushing.
17050 * dispextern.h (struct image): Add `dependencies' field.
17051 (clear_image_caches): Change arg to Lisp_Object.
17052 * image.c (make_image): Initialize `dependencies' field.
17053 (clear_image_cache): Change arg to allow fine-grained flushing.
17054 Perform the flush even if image-cache-eviction-delay is nil.
17055 (clear_image_caches): Change arg to Lisp_Object.
17056 (Fclear_image_cache): Expand meaning of the argument.
17057 (mark_image): Mark `dependencies' field.
17058 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17059 (lface_hash): Use XHASH rather than XFASTINT.
17060 (face_at_buffer_position): Fix int -> EMACS_INT position.
17061 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17062 (select_frame_for_redisplay): Remove code duplication.
17063 (redisplay_internal): Adapt arg to call to clear_image_caches.
17064
170652008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17066
17067 * s/vms4-0.h:
17068 * s/vms4-2.h:
17069 * s/vms4-4.h:
17070 * s/vms5-5.h: Remove, unused.
17071
17072 * s/irix5-2.h:
17073 * s/irix6-0.h:
17074 * s/riscos5.h:
17075 * s/mach-bsd4-3.h:
17076 * m/mips4.h: Remove files for obsolete systems.
17077
17078 * Makefile.in:
17079 * filelock.c:
17080 * unexmips.c:
17081 * m/hp9000s300.h:
17082 * m/iris4d.h:
17083 * s/aix3-1.h:
17084 * s/hpux.h:
17085 * s/msdos.h:
17086 * s/usg5-0.h:
17087 * s/usg5-2-2.h:
17088 * s/usg5-2.h:
17089 * s/usg5-3.h: Remove references to obsolete variables.
17090
17091 * s/irix5-0.h: Remove, move all the contents ...
17092 * s/irix6-5.h: ... here. Simplify.
17093 * config.in: Regenerate.
17094
170952008-02-24 Jason Rumney <jasonr@gnu.org>
17096
17097 * w32term.c (x_draw_glyph_string_background): Clear the background
17098 manually when cleartype is in use.
17099 (x_draw_glyph_string_foreground): Draw text transparently when
17100 cleartype is in use.
17101
17102 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17103 a font into it unless we have to.
17104
171052008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17106
17107 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17108 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17109
aac0c6e3
MR
171102008-02-18 Jason Rumney <jasonr@gnu.org>
17111
17112 * w32fns.c (Fw32_shell_execute): Encode parameters.
17113
171142008-02-09 Eli Zaretskii <eliz@gnu.org>
17115
17116 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17117
171182008-02-05 Juanma Barranquero <lekktu@gmail.com>
17119
17120 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17121
171222008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17123
17124 * xterm.c (x_set_offset): Don't change the gravity if
17125 CHANGE_GRAVITY is -1.
17126
171272008-02-23 Chong Yidong <cyd@stupidchicken.com>
17128
17129 * fileio.c (auto_save_error_occurred): New var.
17130 (auto_save_error): Set it.
17131 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17132 error occurred.
17133
171342008-02-23 Eli Zaretskii <eliz@gnu.org>
17135
17136 * w32.c (globals_of_w32): Add initializations for
17137 g_b_init_get_sid_sub_authority and
17138 g_b_init_get_sid_sub_authority_count.
17139
171402008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17141
17142 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17143 (font_parse_xlfd): Use them for sanity check.
17144 (Finternal_set_font_style_table): Make sure the table is bijective.
17145
17146 Consolidate the image_cache to the terminal struct.
17147 * termhooks.h (P_): Remove redundant def.
17148 (struct terminal): New field `image_cache'.
17149 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17150 of FRAME_X_IMAGE_CACHE.
17151 * xterm.h (struct x_display_info): Remove image_cache field.
17152 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17153 * w32term.h (struct w32_display_info): Remove image_cache field.
17154 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17155 * macterm.h (struct mac_display_info): Remove image_cache field.
17156 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17157 * xterm.c (x_term_init):
17158 * w32term.c (w32_term_init):
17159 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17160 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17161 Remove declarations.
17162 (clear_image_caches, mark_image_cache): New declarations.
17163 * xfaces.c (clear_face_cache):
17164 * xdisp.c (redisplay_internal): Use clear_image_caches.
17165 * image.c (clear_image_cache): Don't check that a frame is on
17166 a window-system before checking if it shares the same cache.
17167 (clear_image_caches): New function.
17168 (Fclear_image_cache): Use it.
17169 (mark_image): Move from allo.c.
17170 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17171 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17172 (mark_object): Don't call mark_image_cache for frames.
17173 (mark_terminals): Call mark_image_cache.
17174
17175 * lisp.h (Fdelete_terminal): Declare.
17176
17177 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17178 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17179 wrong_type_argument.
17180
171812008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17182
17183 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17184 malayalam.el, and tamil.el. Add sinhala.el.
17185
171862008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17187
17188 * xterm.c (x_connection_closed): Consolidate identical tests.
17189 (x_delete_terminal): Don't crash if called via x_connection_closed.
17190
171912008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17192
17193 * xdisp.c (decode_mode_spec): New arg string.
17194 (display_mode_element): Adjust for the above change.
17195
171962008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17197
17198 * callint.c (Fcall_interactively): Use AREF.
17199
172002008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17201
17202 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17203
172042008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17205
17206 * xfns.c (Fx_show_tip): Set string to " " if empty.
17207
172082008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17209
17210 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17211 with Qt.
17212
172132008-02-17 Kenichi Handa <handa@m17n.org>
17214
17215 * ftfont.c (ftfont_shape): Return Lispy number.
17216
17217 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17218 for GCs.
17219 (Finternal_set_font_selection_order): Call font_update_sort_order
17220 only when enable_font_backend is set.
17221 (realize_x_face): Set face->font_info to that of default face only
17222 when enable_font_backend is set.
17223
17224 * xdisp.c (handle_composition_prop): Set it->c to the fist
17225 character of the composed region.
17226 (fill_composite_glyph_string): Set base_face->font_info to
17227 s->font_info. Get a face for ascii from base_face->ascii_face.
17228 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17229 with a face already decided.
17230 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17231 non-negative.
17232 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17233 call font_prepare_composition unconditionally.
17234
17235 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17236
17237 * xterm.h (struct x_display_info): New member font.
17238
17239 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17240 (x_set_mouse_face_gc, x_new_font): Likewise.
17241 (x_term_init): Setup display_info->font.
17242 (x_delete_terminal): Free display_info->font.
17243
17244 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17245
17246 * ftxfont.c (ftxfont_default_fid): Delete it.
17247 (ftxfont_open): Set xfont->fid to 0.
17248 (ftxfont_end_for_frame): Clear data specific to the frame and the
17249 font-driver.
17250
17251 * xftfont.c (xftfont_default_fid): Delete it.
17252 (xftfont_open): Set xfont->fid to 0.
17253
17254 * fontset.c (FONTSET_OBJLIST): New macro.
17255 (fontset_find_font): Update font-object list of the fontset.
17256 (free_realized_fontset): New function.
17257 (free_face_fontset): Call free_realized_fontset.
17258 (Ffont_info): Call font_close_object only when enable_font_backend
17259 is set.
17260
17261 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17262 [HAVE_NTGUI]: Include w32term.h.
17263 [MAC_OS]: Include macterm.ch.
17264 (font_otf_ValueRecord): Use make_number.
17265 (font_finish_cache): Fix handling of reference count.
17266 (font_clear_cache): Update num_fonts.
17267 (font_open_entity): Update smallest_char_width and
17268 smallest_font_height of the frame.
17269 (font_close_object): Update num_fonts.
17270 (Fclear_font_cache): Fix finding the target cache data.
17271
172722008-02-16 Glenn Morris <rgm@gnu.org>
17273
17274 * fontset.c (Finternal_char_font): Fix compilation warning.
17275
172762008-02-16 Eli Zaretskii <eliz@gnu.org>
17277
17278 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17279 instead of char arrays. Enlarge the size of array passed to
17280 get_token_information.
17281
17282 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17283 warnings.
17284
172852008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17286
17287 * .gdbinit: Don't set `args', it breaks gdb --args.
17288
172892008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17290
17291 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17292 within a narrowed buffer.
17293
172942008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17295
17296 * coding.c (decode_coding_object, encode_coding_object):
17297 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17298
172992008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17300
17301 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17302 hardcoding 1.
17303 (detect_coding_system):
17304 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17305 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17306 * insdel.c (insert_from_gap):
17307 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17308 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17309 (string_to_multibyte):
17310 * character.c (chars_in_text, multibyte_chars_in_text):
17311 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17312
17313 * character.h (FETCH_STRING_CHAR_ADVANCE)
17314 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17315 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17316 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17317
17318 * casefiddle.c (casify_region): Only call after-change and composition
17319 functions on the part of the region that was changed.
17320
17321 * keyboard.c (read_avail_input):
17322 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17323
173242008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17325
17326 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17327 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17328
173292008-02-11 Juanma Barranquero <lekktu@gmail.com>
17330
17331 * w32menu.c (push_submenu_start, push_submenu_end)
17332 (push_left_right_boundary, push_menu_pane, push_menu_item):
17333 * keyboard.c (read_key_sequence): Don't pass args with side effects
17334 to AREF, it fails when compiling with -DENABLE_CHECKING.
17335
173362008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17337
17338 * Makefile.in (${lispsource}international/charprop.el):
17339 Delete this target.
17340
17341 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17342 emacs-unicode-2.
17343
173442008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17345
17346 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17347
173482008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17349
17350 * frame.c (Qnoelisp): New symbol.
17351 (syms_of_frame): Initialize it.
17352 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17353 harmless Elisp code, from a strong `force' from x_connection_closed.
17354 * frame.h (Qnoelisp): Declare.
17355 * xterm.c (x_connection_closed): Pass `noelisp'.
17356
17357 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17358 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17359 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17360 rather than `int' for the type of `type'.
17361
173622008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17363
17364 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17365
17366 * Makefile.in (GNUC): Remove support for gcc-1.x.
17367
173682008-02-10 Richard Stallman <rms@gnu.org>
17369
17370 * lisp.h (ASET): Use AREF, not ASLOT.
17371
173722008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17373
17374 * lisp.h (ASET): Check bounds.
17375
173762008-02-10 Glenn Morris <rgm@gnu.org>
17377
17378 * buffer.c (mode-name): Doc fix.
17379
173802008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17381
17382 * Makefile.in:
17383 * emacs.c:
17384 * gmalloc.c:
17385 * keyboard.c:
17386 * lisp.h:
17387 * m/ibm370aix.h:
17388 * process.c:
17389 * regex.c:
17390 * s/hpux.h:
17391 * sysdep.c:
17392 * sysselect.h:
17393 * systty.h:
17394 * unexec.c:
17395 * w32term.c:
17396 * xsmfns.c:
17397 * xterm.c: Remove code that deals with obsolete variables.
17398
17399 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17400
17401 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17402 nothing else needs it anymore.
17403
174042008-02-09 Eli Zaretskii <eliz@gnu.org>
17405
17406 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17407 instead of unibyte_char_to_multibyte.
17408
174092008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17410
17411 * s/gnu-linux.h: Remove commented out code.
17412
17413 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17414
17415 * Makefile.in: Update what RMS says about using autoconf.
17416 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17417 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17418 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17419 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17420
174212008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17422
17423 * keymap.c (Fkey_description): Move side effect outside of macro call.
17424
17425 * xfaces.c (Finternal_make_lisp_face):
17426 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17427
17428 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17429 (syms_of_fontset): Use ASET.
17430
17431 * fns.c (concat): Move side effect outside of macro call.
17432 (hash_clear): Use ASET.
17433
174342008-02-08 Richard Stallman <rms@gnu.org>
17435
17436 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17437 If FORCE, and frame has a surrogate minibuffer for another frame,
17438 delete the other frame first.
17439
174402008-02-07 Timo Savola <timo.savola@iki.fi>
17441
17442 * xterm.c (x_detect_focus_change): Handle embed client message.
17443 (handle_one_xevent): Ditto.
17444 (handle_one_xevent): If embedded and we get a button press/release,
17445 request focus.
17446 (xembed_set_info, xembed_send_message): New functions.
17447 (x_make_frame_visible): Call xembed_set_info if embedded.
17448 (x_make_frame_invisible): Call xembed_set_info if embedded.
17449 (x_term_init): Initialize Xatom_XEMBED.
17450 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17451 (x_iconify_frame): Ditto.
17452
17453 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17454 (enum xembed_info, enum xembed_message, enum xembed_focus)
17455 (enum xembed_modifier, enum xembed_accelerator): New.
17456 (xembed_set_info, xembed_send_message): Declare.
17457 (FRAME_X_EMBEDDED_P): New.
17458
17459 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17460 gtk_plug_new.
17461
17462 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17463 window ID of a frame.
17464 (x_window): Reparent frame if embedded.
17465 (Fx_create_frame): Don't set border width if embedded.
17466
17467 * emacs.c (USAGE3): Add --parent-id.
17468 (standard_args): Ditto.
17469
174702008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17471
17472 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17473
174742008-02-07 Jim Meyering <meyering@redhat.com>
17475
17476 Use "do...while (0)", not "if (1)...else" in macro definitions.
17477 The latter provokes a warning from gcc about the empty else, when
17478 followed by ";". Also, without that trailing semicolon, it would
17479 silently swallow up any following statement.
17480 * syntax.h (SETUP_SYNTAX_TABLE)
17481 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17482 * buffer.h (DECODE_POSITION): Likewise.
17483 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17484 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17485 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17486 (FETCH_CHAR_ADVANCE): Likewise.
17487 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17488
174892008-02-07 Jim Meyering <meyering@redhat.com>
17490
17491 * lread.c [lint]: Don't include <sys/inode.h>.
17492
174932008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17494
17495 * xselect.c (x_handle_dnd_message):
17496 * xmenu.c (digest_single_submenu, xmenu_show):
17497 * xdisp.c (with_echo_area_buffer_unwind_data)
17498 (format_mode_line_unwind_data, unwind_format_mode_line)
17499 (display_menu_bar):
17500 * eval.c (Ffetch_bytecode):
17501 * doc.c (store_function_docstring):
17502 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17503 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17504 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17505
175062008-02-07 Kenichi Handa <handa@m17n.org>
17507
17508 * ftxfont.c (ftxfont_open): Don't set
17509 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17510
17511 * ftfont.c (ftfont_open): Fix previous change.
17512
175132008-02-06 Jason Rumney <jasonr@gnu.org>
17514
17515 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17516 Use cached metrics for ASCII characters.
17517 (w32font_open_internal): Don't set font's owning_frame.
17518 Cache metrics for ASCII characters.
17519
17520 * w32font.h (struct w32font_info): Add ascii_metrics.
17521 Remove owning_frame.
17522
175232008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17524
17525 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17526 to negative value.
17527
17528 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17529
17530 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17531
17532 * charset.c (syms_of_charset): Set QCtest and Qeq.
17533
175342008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17535
17536 * process.c (Fstart_process):
17537 * callproc.c (Fcall_process): Handle the case where
17538 Funhandled_file_name_directory returns nil.
17539
17540 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17541 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17542 * font.c (check_gstring): Use them and AREF to access the vector before
17543 we know it's really a gstring.
17544 (Ffont_shape_text): Fix typo.
46e722a9 17545 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17546
17547 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17548 Declare.
17549
17550 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17551
175522008-02-05 Jason Rumney <jasonr@gnu.org>
17553
17554 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17555 Set smallest_font_height and smallest_char_width in display info.
17556
175572008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17558
17559 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17560
175612008-02-05 Miles Bader <miles@gnu.org>
17562
17563 * xfaces.c (get_lface_attributes, merge_named_face)
17564 (lookup_named_face, lookup_derived_face, realize_named_face):
17565 Revert 2008-02-01 change by cyd@stupidchicken.com.
17566
175672008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17568
17569 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17570 fallback fonts.
17571 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17572
175732008-02-04 Jason Rumney <jasonr@gnu.org>
17574
17575 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17576 set full_name.
17577 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17578
175792008-02-03 Jason Rumney <jasonr@gnu.org>
17580
17581 * makefile.w32-in (OBJ1): Include font.o here.
17582 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17583
175842008-02-02 Jason Rumney <jasonr@gnu.org>
17585
17586 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17587
175882008-02-01 Jason Rumney <jasonr@gnu.org>
17589
17590 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17591
17592 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17593
175942008-02-01 Andreas Schwab <schwab@suse.de>
17595
17596 * Makefile.in (shortlisp, lisp): Update for rename of
17597 ../lisp/language/myanmar.el.
17598
175992008-02-01 Chong Yidong <cyd@stupidchicken.com>
17600
17601 * xfaces.c (get_lface_attributes): Delete function.
17602 (merge_named_face, lookup_named_face, lookup_derived_face)
17603 (realize_named_face): Call lface_from_face_name directly, and use
17604 the fact that merge_face_vectors does not alter its FROM argument.
17605
176062008-02-01 Jason Rumney <jasonr@gnu.org>
17607
17608 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17609 input in the default locale. Handle non-Unicode multibyte input.
17610
176112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17612
17613 * fontset.c (reorder_font_vector): Exclude nil elements from the
17614 font group. Don't try multiple fonts.
17615 (fontset_font): Adjust for the above change.
17616 (Finternal_char_font): Return nil if the found font doesn't
17617 contain the character ch.
17618
17619 * Makefile.in (lisp, shortlisp): Add cham.el.
17620
176212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17622
17623 * font.h (FONTP): Make it return 1 also for a font-object.
17624
17625 * .gdbinit (xfontset): New function.
17626
17627 * font.c (font_find_for_lface): Check if the character C is
17628 supported or not only for the first font.
17629
17630 * fontset.c (reorder_font_vector): Fix typo.
17631 (fontset_find_font): Don't add a font-spec specifying a script.
17632 Use 0 (not Qt) for the indication of empty font-group. Change the
17633 format of RFONT-DEF. Return Qt if no font in the font-group
17634 support the character.
17635 (fontset_font): Adjust for the above change. If no font was
17636 found the character, remember that.
17637 (face_for_char): Adjust for the change of RFONT-DEF.
17638 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17639 no font for the target.
17640 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17641
176422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17643
17644 * font.c (font_load_for_face): Handle the case that the font in
17645 face->lface is a string.
17646
176472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17648
17649 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17650
176512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17652
17653 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17654 Fix previous change. If the frame is not on a window system,
17655 signal an error.
17656
176572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17658
17659 * coding.c (decode_coding_object, encode_coding_object): Adjust
17660 marker positions after conversion.
17661
17662 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17663
176642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17665
17666 * font.c (font_find_for_lface): Fix the handling of the return
17667 value of font_has_char.
17668 (Ffont_shape_text): Fix previous change.
17669
17670 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17671 (fontset_ref_and_range): Delete it.
17672 (fontset_find_font): Call char_table_ref_and_range instead of
17673 FONTSET_REF_AND_RANGE.
17674 (make_fontset): Don't setup font groups of Latin here.
17675 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17676 (new_fontset_from_font): Make the specified font the default for
17677 all Latin characters.
17678
176792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17680
17681 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17682 is on a window system before accessing the fontset of the frame.
17683
176842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17685
17686 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17687
17688 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17689 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17690
17691 * font.c (Ffont_shape_text): If the font driver doesn't have a
17692 shaper function, make zero-width glyphs to have at least one-pixel
17693 width. Fix setting of `to' field of glyphs.
17694
176952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17696
17697 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17698 glyphs.
17699
17700 * font.h (struct font_driver): Improve docstring of member `shape'.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * composite.c (syms_of_composite): Fix docstring of
17705 auto-composition-function.
17706
17707 * font.h (LGLYPH_SIZE): New macro.
17708
17709 * font.c (Ffont_fill_gstring): Stop filling when a character not
17710 supported by the font is found.
17711 (Ffont_shape_text): When a shape callback function returns nil,
17712 try at most two more times with larger gstring.
17713 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17714
17715 * xdisp.c (handle_auto_composed_prop): Change the argument to
17716 auto-composition-function.
17717
17718 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17719 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17720 Lispy glyph and store it in the lgstring.
17721
17722 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17723
17724 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17725
177262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17727
17728 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17729
17730 * fontset.c (Vfont_encoding_charset_alist): New variable.
17731 (syms_of_fontset): DEFVAR it.
17732 (reorder_font_vector, fontset_find_font): Optimize for the case of
17733 no need of reordering.
17734 (face_for_char): Map the charset property by
17735 Vfont_encoding_charset_alist.
17736
177372008-02-01 Jason Rumney <jasonr@gnu.org>
17738
17739 * w32font.c (logfonts_match): Don't check adstyle here.
17740 (font_matches_spec): Check here against physical font instead.
17741 (add_font_entity_to_list): Avoid some substitutions.
17742
17743 * font.c (font_parse_fcname): Default weight and slant to normal.
17744 (font_score): Prefer normal fonts if weight or slant unspecified.
17745 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17746 match freetype scores.
17747
177482008-02-01 Jason Rumney <jasonr@gnu.org>
17749
17750 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17751 font, as it may have been deleted.
17752 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17753 most common hyphenless variation.
17754 (logfonts_match): Check generic family.
17755 (font_matches_spec): Don't check generic family here.
17756 (fill_in_logfont): Set generic family based on adstyle.
17757
17758 * w32font.h (w32font_get_cache): Update declaration.
17759
177602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17761
17762 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17763
17764 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17765 If none of the new drivers are available, call font_update_drivers
17766 with the old drivers.
17767
17768 * w32font.c (w32font_get_cache): Adjust the argument type.
17769
17770 * xfont.c (xfont_get_cache): Adjust the argument type.
17771
17772 * font.h (struct font_driver): Change argument type of get_cache.
17773
17774 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17775
17776 * font.c (Ffont_get): Fix arguments to Fassoc.
17777 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17778 (font_clear_cache): New function.
17779 (font_list_entities, font_matching_entity): Use font_get_cache.
17780 (font_update_drivers): Call font_clear_cache when finishing a driver.
17781
17782 * fontset.c (fontset_find_font): Fix previous change.
17783
177842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17785
17786 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17787 dpyinfo->font_table.
17788 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17789 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17790
17791 * font.c (font_at): Handle the case that the arg C is negative.
17792 Handle the unibyte case.
17793 (Ffont_at): Call font_at with the arg C -1.
17794
17795 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17796 the position here, and call font_at with the arg C -1.
17797 Don't check the range of the existing composition at the point.
17798
177992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17800
17801 * fontset.c (fontset_add): New args charset_id and family.
17802 Change caller.
17803 (load_font_get_repertory, fontset_find_font): Assume that
17804 font_spec is always a font-spec object.
17805 (Fset_fontset_font): Always store a font-spec object in a fontset.
17806
17807 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17808 instead of get_property_and_range.
17809
178102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17811
17812 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17813 (xftfont_open): Don't keep locking face.
17814 (xftfont_close): Don't unlock face.
17815 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17816
17817 * fontset.c (fontset_find_font): Don't prefer a font of
17818 supplementary charset.
17819
178202008-02-01 Kenichi Handa <handa@m17n.org>
17821
17822 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17823 script, langsys_tag to langsys, new member script.
17824 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17825 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17826 listing to the script specified in that property. Fix arg to
17827 OTF_check_features.
17828
178292008-02-01 Jason Rumney <jasonr@gnu.org>
17830
17831 * w32font.h: New file.
17832
17833 * w32font.c: Include it.
17834 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17835 (w32font_open): Set owning_frame.
17836 (w32font_text_extents): Use owning_frame.
17837 (struct font_callback_data): Add opentype_only field.
17838 (add_font_entity_to_list): Use it to filter fonts.
17839 Don't check against full name.
17840 (w32font_list_internal): New function.
17841 (w32font_list): Use it.
17842 (w32font_match_internal): New function.
17843 (w32font_match): Use it.
17844 (w32font_open_internal): New function.
17845 (w32font_open): Use it.
17846 (w32font_get_cache, w32font_close, w32font_has_char)
17847 (w32font_encode_char, w32font_text_extents, w32font_draw):
17848 Make non-static.
17849
17850 * makefile.w32-in (w32font.o): Depend on w32font.h.
17851
178522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17853
17854 * charset.c (Fdefine_charset_internal): Record a supplementary
17855 charset at the tail of Vcharset_order_list.
17856
17857 * font.c (Ffont_shape_text): Fix the return value.
17858
17859 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17860
17861 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17862
178632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17864
17865 * ftfont.c (struct OpenTypeSpec): New struct.
17866 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17867 (ftfont_get_open_type_spec): New function.
17868 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17869
17870 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17871
178722008-02-01 Jason Rumney <jasonr@gnu.org>
17873
17874 * w32font.c (add_font_entity_to_list): Compare only the beginning
17875 of full name.
17876
178772008-02-01 Kenichi Handa <handa@m17n.org>
17878
17879 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17880 Never return HANDLED_RECOMPUTE_PROPS.
17881
178822008-02-01 Kenichi Handa <handa@m17n.org>
17883
17884 * font.c (font_gstring_produce): Delete it.
17885
17886 * composite.h (COMPOSITION_METHOD):
17887 Handle COMPOSITION_WITH_GLYPH_STRING.
17888
178892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17890
17891 * xfont.c (Qx): Delete.
17892 (syms_of_xfont): Don't initialize Qx.
17893
17894 * composite.h (enum composition_method):
17895 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17896
178972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17898
17899 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17900 (choose_face_font): Accept new form of font-spec.
17901
17902 * frame.h (font_driver_list): Declare it unconditionally.
17903 (struct frame): Define members font_driver_list and font_data_list
17904 unconditionally.
17905
17906 * fontset.c: Include "font.h" unconditionally.
17907 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17908 (Fset_fontset_font): Accept a font-spec object.
17909
17910 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17911 PIXEL_SIZE part a wild card.
17912
17913 * dispextern.h (struct glyph_string): Define members clip and
17914 num_clips unconditionally.
17915 (struct face): Define members font_info and extra unconditionally.
17916
17917 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17918 ftfont_info only when HAVE_LIBOTF is defined.
17919
179202008-02-01 Andreas Schwab <schwab@suse.de>
17921
17922 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17923 and end.
17924
179252008-02-01 Jason Rumney <jasonr@gnu.org>
17926
17927 * w32font.c (w32font_driver): Add new fields.
17928
179292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17930
17931 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17932 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17933 (LIBES): Add @M17N_FLT_CFLAGS@.
17934
17935 * composite.c (compose_text): Don't treat the new style
17936 composition specially.
17937
17938 * emacs.c (main): Call syms_of_font unconditionally.
17939
17940 * font.h (FONT_ENTITY_NOT_LOADABLE)
17941 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17942 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17943 (struct font_driver): New member shape.
17944 (font_registry_charsets): Extern it.
17945 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17946 (font_otf_capability, font_drive_otf): Delete their externs.
17947
17948 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17949 (font_charset_alist, font_registry_charsets): Move from xfont.c
17950 and rename.
17951 (font_prop_validate_otf): New function.
17952 (font_property_table): Register it for QCotf.
17953 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17954 (font_drive_otf): Delete.
17955 (font_prepare_composition): New arg F. Adjust for the change of
17956 lispy gstring.
17957 (font_find_for_lface): New arg C.
17958 (font_load_for_face): Adjust for the change of font_find_for_lface.
17959 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17960 lispy gstring.
17961 (Ffont_shape_text): New function.
17962 (Fopen_font): If the font size is not given, use 12-pixel.
17963 (Ffont_at): New arg STRING.
17964 (syms_of_font): Initalize font_charset_alist.
17965 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17966 conditionally.
17967
17968 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17969 fonts of the same font-spec. Change the format of RFONT-DEF.
17970 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17971 Adjust for the change of RFONT-DEF.
17972 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17973
17974 * ftfont.h: New file.
17975
17976 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17977 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17978 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17979 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17980 font_otf_capability and font_drive_otf, set ftfont_shape.
17981 (ftfont_list): Adjust for the change of :otf property value.
17982 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17983 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17984 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17985 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17986 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17987 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17988
17989 * w32term.c (x_draw_composite_glyph_string_foreground):
17990 Adjust for the change of lispy gstring.
17991
17992 * xdisp.c (handle_composition_prop): Adjust for the change of
17993 lispy gstring. Call a function for auto-composition with the
17994 third arg it->window.
17995 (fill_composite_glyph_string): Adjust for the change of lispy string.
17996 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17997
17998 * xfaces.c (set_font_frame_param): Adjust for the change of
17999 font_find_for_lface.
18000
18001 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18002 (xfont_registry_charsets): Likewise. Change caller.
18003 (syms_of_xfont): Don't handle x_font_charset_alist.
18004
18005 * xftfont.c: Include "ftfont.h".
18006 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18007 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18008 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18009 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18010 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18011 Set xftfont_driver.shape to xftfont_shape.
18012
18013 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18014 the change of lispy gstring.
18015
180162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18017
18018 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18019
180202008-02-01 Jason Rumney <jasonr@gnu.org>
18021
18022 * w32font.c (w32font_draw): Fill background manually.
18023
180242008-02-01 Jason Rumney <jasonr@gnu.org>
18025
18026 * font.c (Qfontp): Remove unused symbol.
18027 (QCantialias): New symbol.
18028 (syms_of_font): Define it.
18029 (font_property_table): Set a validator for QCantialias.
18030
18031 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18032 Define if not already.
18033 (QCfamily): Share with xfaces.c.
18034 (Qstandard, Qsubpixel, Qnatural): New symbols.
18035 (syms_of_w32font): Define them. Don't define QCfamily here.
18036 (w32_antialias_type, lispy_antialias_type): New functions.
18037 (w32_enumfont_pattern_entity): New arg requested_font.
18038 Set antialias parameter if non-default was requested.
18039 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18040
180412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18042
18043 * lread.c (read1): Undo the previous change.
18044
180452008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18046
18047 * frame.c (Fdelete_frame): Call font_update_drivers only when
18048 USE_FONT_BACKEND is defined.
18049
180502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18051
18052 * font.h (struct font_bitmap): New member bits_per_pixel.
18053 (struct font_driver): New members start_for_frame and end_for_frame.
18054 (struct font_data_list): New struct.
18055 (font_put_frame_data, font_get_frame_data): Extern them.
18056
18057 * frame.h (struct frame): New member font_data_list.
18058
18059 * font.c (font_update_drivers): Call driver->start_for_frame and
18060 driver->end_for_frame at proper timings.
18061 (font_put_frame_data, font_get_frame_data): New functions.
18062 (Ffont_spec): Add usage in the docstring.
18063
18064 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18065 (Fdelete_frame): Call font_update_drivers.
18066
18067 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18068 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18069 (xftfont_get_xft_draw): New function.
18070 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18071 (xftfont_end_for_frame): New function.
18072 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18073
18074 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18075 Change argument. Cache GCs in the per-frame data.
18076 (struct ftxfont_frame_data): New struct.
18077 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18078 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18079 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18080 (ftxfont_end_for_frame): New function.
18081 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18082
18083 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18084
180852008-02-01 Kenichi Handa <handa@m17n.org>
18086
18087 * xselect.c (Vselection_coding_system)
18088 (Vnext_selection_coding_system): Delete them.
18089 (syms_of_xselect): Don't declare selection-coding-system and
18090 next-selection-coding-system. They are declared in select.el.
18091
180922008-02-01 Jason Rumney <jasonr@gnu.org>
18093
18094 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18095
18096 * w32fns.c: Include imm.h.
18097 (get_composition_string_fn, get_ime_context_fn): New optional
18098 system functions.
18099 (globals_of_w32fns): Load them from imm32.dll.
18100 (ignore_ime_char): New flag.
18101 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18102 WM_IME_ENDCOMPOSITION messages.
18103
18104 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18105 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18106
181072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18108
18109 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18110 (READCHAR_REPORT_MULTIBYTE): New macro.
18111 (readchar): New 2nd arg MULTIBYTE.
18112 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18113 Make symbol's name multibyte according to the multibyteness of the
18114 source.
18115
181162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18117
18118 * xfaces.c (face_for_overlay_string): Call lookup_face with
18119 correct arguments (fix of synching with the trunk).
18120
181212008-02-01 Kenichi Handa <handa@m17n.org>
18122
18123 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18124 (font_prop_validate_non_neg, font_prop_validate_spacing):
18125 Delete argument prop_index.
18126 (font_property_table): Change arguments to validater. Change Callers.
18127 (font_lispy_object): Delete.
18128 (font_at): Use font_find_object instead fo font_lispy_object.
18129
181302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18131
18132 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18133 and file names.
18134
181352008-02-01 Jason Rumney <jasonr@gnu.org>
18136
18137 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18138 (font_matches_spec): Remove debug output.
18139 (add_font_entity_to_list): Avoid using substituted fonts.
18140
181412008-02-01 Jason Rumney <jasonr@gnu.org>
18142
18143 * doc.c (Fsnarf_documentation):
18144 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18145
181462008-02-01 Miles Bader <miles@gnu.org>
18147
18148 * dispextern.h (struct glyph_row): Only define "clip" field if
18149 HAVE_WINDOW_SYSTEM is defined.
18150
181512008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18152
18153 Fix up multi-tty merge.
18154
18155 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18156 and indentation.
18157
18158 * xfaces.c (free_realized_face, clear_face_gcs):
18159 Include font_done_for_face in the input_blocked section, just in case.
18160
18161 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18162 (get_char_face_and_encoding): Undo last change and remove the *other*
18163 duplicate definition (i.e. keep the one that's better scoped and that
18164 includes code for the font-backend).
18165
18166 * terminal.c (create_terminal): Default keyboard_coding to
18167 `no-conversion' and terminal_coding to `undecided'.
18168
18169 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18170
18171 * fontset.c (free_realized_fontsets): Check that the table entry does
18172 contain a fontset before trying to compare it to `base'.
18173
18174 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18175 syms_of_charset, and syms_of_coding earlier because init_window_once
18176 now needs Vcoding_system_hash_table to be setup.
18177
18178 * coding.h (default_buffer_file_coding): Remove.
18179
18180 * coding.c (default_buffer_file_coding): Remove.
18181 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18182 than ->symbol, and use the terminal-local coding system.
18183 (syms_of_coding): Don't setup the coding-systems that are not
18184 terminal-local.
18185 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18186
18187 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18188 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18189
18190 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18191 in chartab.c and were re-added here by mistake.
18192 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18193
18194 * doc.c (Fsnarf_documentation):
18195 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18196 src to etc.
18197
18198 * ChangeLog.10: Add mistakenly removed entry.
18199
182002008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18201
18202 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18203
182042008-02-01 Miles Bader <miles@gnu.org>
18205
18206 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18207 Add extra args to FACE_FOR_CHAR.
18208
182092008-02-01 Kenichi Handa <handa@m17n.org>
18210
18211 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18212 in sequence.
18213
18214 * chartab.c (map_sub_char_table, map_char_table): If the range
18215 contains just one character, call the function with that character
18216 even if the depth is not 3.
18217
182182008-02-01 Jason Rumney <jasonr@gnu.org>
18219
18220 * w32font.c (w32font_text_extents): Calculate metrics for the
18221 whole string.
18222
182232008-02-01 Jason Rumney <jasonr@gnu.org>
18224
18225 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18226
182272008-02-01 Jason Rumney <jasonr@gnu.org>
18228
18229 * w32term.c (x_set_glyph_string_clipping): Use
18230 get_glyph_string_clip_rects.
18231 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18232 Adjust for the change of struct glyph_string.
18233
18234 * w32font.c (w32font_draw): Do clipping here.
18235
182362008-02-01 Kenichi Handa <handa@m17n.org>
18237
18238 * xftfont.c (xftfont_draw): Adjust for the change of struct
18239 glyph_string.
18240
18241 * xterm.c (x_set_glyph_string_clipping): Use
18242 get_glyph_string_clip_rects.
18243 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18244 Adjust for the change of struct glyph_string.
18245
18246 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18247 the resulting clip(s}.
18248 (expose_overlaps): Add arg r. Change callers. Set it to
18249 row->clip temporarily.
18250 (expose_window): Redraw rows overlapping the exposed area.
18251
18252 * dispextern.h (struct glyph_row): New member clip.
18253 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18254 clip_height, new member clip, and num_clips.
18255
182562008-02-01 Kenichi Handa <handa@m17n.org>
18257
18258 * data.c (Fchar_or_string_p): Fix docstring.
18259
182602008-02-01 Kenichi Handa <handa@m17n.org>
18261
18262 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18263 create a temporary XftDraw object.
18264
182652008-02-01 Kenichi Handa <handa@m17n.org>
18266
18267 * font.c (Ffontp): Fix docstring.
18268
18269 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18270 strong evidence of ISO-2022.
18271
182722008-02-01 Kenichi Handa <handa@m17n.org>
18273
18274 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18275 SYNTAX_ENTRY_FOLLOW_PARENT.
18276
182772008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18278
18279 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18280 its type.
18281 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18282 Update to the new type of weak_hash_tables and next_weak.
18283
18284 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18285 a plain C pointer to Lisp_Hash_Table.
18286
18287 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18288 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18289 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18290 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18291 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18292 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18293 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18294 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18295 (GC_EQ): Remove since they've been identical to their non-GC_
18296 alter-egos ever since the markbit was eradicated.
18297
18298 * alloc.c:
18299 * buffer.c:
18300 * buffer.h:
18301 * data.c:
18302 * fileio.c:
18303 * filelock.c:
18304 * fns.c:
18305 * frame.h:
18306 * lisp.h:
18307 * macterm.c:
18308 * print.c:
18309 * process.c:
18310 * w32fns.c:
18311 * w32menu.c:
18312 * w32term.c:
18313 * xfns.c:
18314 * xmenu.c:
18315 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18316
183172008-02-01 Kenichi Handa <handa@m17n.org>
18318
18319 * chartab.c (map_sub_char_table): Make it work for the top-level
18320 char-table. Fix handling of parent char-table.
18321 (map_char_table): Adjust for the above change.
18322
183232008-02-01 Jason Rumney <jasonr@gnu.org>
18324
18325 * w32font.c (Qgdi): Rename from Qw32.
18326
183272008-02-01 Jason Rumney <jasonr@gnu.org>
18328
18329 * w32bdf.c (get_quoted_string): Make function static.
18330
183312008-02-01 Kenichi Handa <handa@m17n.org>
18332
18333 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18334 bigger ascent and descent than those of the font, use them as
18335 font's ascent and descent.
18336
183372008-02-01 Kenichi Handa <handa@m17n.org>
18338
18339 * Makefile.in (${lispsource}international/charprop.el): Move this
18340 target within "#ifdef HAVE_UNIDATA" and "#endif".
18341
183422008-02-01 Kenichi Handa <handa@m17n.org>
18343
18344 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18345 (shortlisp): Add ../lisp/language/tai-viet.el.
18346
183472008-02-01 Ulrich Mueller <ulm@gentoo.org>
18348
18349 * Makefile.in (${lispsource}international/charprop.el): Depend on
18350 temacs${EXEEXT}.
18351
183522008-02-01 Jason Rumney <jasonr@gnu.org>
18353
18354 * w32font.c (w32font_close): Delete the GDI font object.
18355
18356 * w32menu.c: Include character.h.
18357
18358 * w32proc.c: Likewise.
18359
18360 * w32select.c: Likewise.
18361
18362 * makefile.w32-in (w32proc.o): Depend on character.h.
18363
183642008-02-01 Jason Rumney <jasonr@gnu.org>
18365
18366 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18367
18368 * w32menu.c (syms_of_w32menu): Likewise.
18369
18370 * w32proc.c (syms_of_ntproc): Likewise.
18371
18372 * w32select.c (syms_of_w32select): Likewise.
18373
18374 * w32term.c (syms_of_w32term): Likewise.
18375
183762008-02-01 Jason Rumney <jasonr@gnu.org>
18377
18378 * w32font.c (w32font_draw): Delete brush after using it.
18379
183802008-02-01 Jason Rumney <jasonr@gnu.org>
18381
18382 * w32font.c (w32font_open): Don't set font_idx.
18383 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18384 to font settings.
18385 (w32font_draw): Fill background explicitly.
18386
183872008-02-01 Jason Rumney <jasonr@gnu.org>
18388
18389 * w32term.c (w32_initialize): Don't call w32font_initialize.
18390
18391 * w32font.c (w32font_info): Remove subranges.
18392 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18393 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18394 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18395 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18396 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18397 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18398 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18399 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18400 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18401 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18402 New symbols.
18403 (font_callback_data): New struct.
18404 (w32font_list, w32font_match): Use it.
18405 (w32font_open): Don't populate subranges.
18406 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18407 (w32font_encode_char): Always return unicode code-point as-is.
18408 (w32font_text_extents): Supply a transformation matrix to
18409 GetGlyphOutline. Never look up by glyph index. Avoid looping
18410 twice. Use unicode version of GetTexExtentPoint32 instead of
18411 glyph index version.
18412 (set_fonts_frame): Remove.
18413 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18414 set frame parameter. Use backward compatible fake foundries.
18415 Save generic family in extra slot under QCfamily. Make width slot
18416 constant. Save QCspacing value. Save list of scripts instead of
18417 binary subranges.
18418 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18419 (add_font_entity_to_list): Use font_callback_data struct. Filter
18420 unwanted fonts.
18421 (add_one_font_entity_to_list): Use font_callback_data struct.
18422 (w32_registry): Default to iso10646_1.
18423 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18424 string font registries. Don't fill in font name if it is a generic
18425 family name, fill family instead. Use spacing, family and script
18426 extra info to fill pitch, family and charset fields.
18427 (list_all_matching_fonts): Use font_callback_data struct.
18428 (unicode_range_for_char): Remove.
18429 (font_supported_scripts): New function.
18430 (w32font_initialize): Remove.
18431 (syms_of_w32font): Update which symbols are defined.
18432
184332008-02-01 Jason Rumney <jasonr@gnu.org>
18434
18435 * font.c (font_pixel_size): Reverse assq_no_quit args.
18436
18437 * w32term.h (FONT_WIDTH): Report max width, not average.
18438 (FONT_MAX_WIDTH): Remove.
18439 (FONT_AVG_WIDTH): New macro.
18440
18441 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18442 redefinition of FONT_WIDTH.
18443
18444 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18445 (w32_cache_char_metrics): Use FONT_WIDTH.
18446
18447 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18448
184492008-02-01 Jason Rumney <jasonr@gnu.org>
18450
18451 * w32font.c (w32font_open): Make lfHeight negative.
18452
18453 * w32fns.c (x_default_font_parameter): Use new style font name.
18454 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18455
184562008-02-01 Jason Rumney <jasonr@gnu.org>
18457
18458 * w32font.c (QCsubranges): New symbol.
18459 (w32font_open, w32font_has_char): Get subranges from subproperty
18460 of extra.
18461 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18462 (syms_of_w32font): Define :subranges symbol.
18463
18464 * font.c (font_put_extra): Expose externally.
18465
18466 * font.h (font_put_extra): Move declaration from font.c.
18467
18468 * font.c (Ffont_get): Use font driver to determine otf capability.
18469 (adjust_anchor): Check if driver defines anchor_point before using.
18470
18471 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18472 (w32font_draw): Use options.
18473 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18474 Fix detection of truetype fonts.
18475 (registry_to_w32_charset): Handle charsets other than iso8859-1
18476 expressed as lisp symbols.
18477 (w32_registry): Express charset as lisp symbol.
18478 (fill_in_logfont): Reverse pixel and point height logic.
18479 Don't set width here. Set quality to default.
18480
18481 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18482 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18483
18484 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18485 Remove redundant loop and allocation.
18486
18487 * makefile.w32-in (font.o, w32font.o): New objects.
18488 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18489 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18490
18491 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18492 STORE_XCHARB a valid l-value.
18493
18494 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18495 calculations for non-Truetype fonts.
18496 (x_draw_glyph_string): Sync with xterm.c.
18497 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18498 Remove redundant code.
18499 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18500
18501 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18502 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18503
18504 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18505 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18506
18507 * w32font.c: New file for w32 font backend.
18508
185092008-02-01 Kenichi Handa <handa@m17n.org>
18510
18511 * term.c: Don't include "buffer.h" twice.
18512
185132008-02-01 Kenichi Handa <handa@m17n.org>
18514
18515 * character.c (Funibyte_string): New function.
18516 (syms_of_character): Defsubr it.
18517
185182008-02-01 Jason Rumney <jasonr@gnu.org>
18519
18520 * w32term.c [USE_FONT_BACKEND]:
18521 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18522 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18523 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18524 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18525 (x_free_frame_resources): Sync with xterm.c.
18526
185272008-02-01 Andreas Schwab <schwab@suse.de>
18528
18529 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18530 char-table size.
18531
185322008-02-01 Kenichi Handa <handa@m17n.org>
18533
18534 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18539 font_otf_gpos, add font_drive_otf.
18540
18541 * fontset.c (fontset_find_font): Pay attention to font size
18542 specified for a font.
18543 (reorder_font_vector): Check contents of font_def.
18544
18545 * font.c (struct otf_list): Delete it.
18546 (otf_list): Make it a lisp variable.
18547 (otf_open): Use lispy otf_list.
18548 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18549 (check_otf_features): New function.
18550 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18551 New functions.
18552 (font_drive_otf): New function merging font_otf_gsub and
18553 font_otf_gpos.
18554 (font_open_for_lface): New arg spec. Change argument order.
18555 (font_load_for_face): Adjust for the change of font_open_for_lface.
18556 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18557 Ffont_otf_gpos.
18558 (syms_of_font): Staticpro otf_list. Delete defsubr of
18559 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18560
18561 * xfaces.c (set_font_frame_param): Adjust for the change of
18562 font_open_for_lface.
18563
18564 * font.h (font_open_for_lface): Adjust prototype.
18565 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18566 member otf_drive.
18567 (font_otf_gsub, font_otf_gpos): Delete externs.
18568 (font_drive_otf): Extern it.
18569
185702008-02-01 Kenichi Handa <handa@m17n.org>
18571
18572 * font.c (font_at): If the window W is not on a window system,
18573 return Qnil.
18574
18575 * coding.c (produce_chars, encode_coding): Don't call
18576 insert_from_gap if no characters to produce.
18577
185782008-02-01 Kenichi Handa <handa@m17n.org>
18579
18580 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18581 Fclear_face_cache.
18582
18583 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18584
185852008-02-01 Miles Bader <miles@gnu.org>
18586
18587 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18588 Parse "--disable-font-backend" option.
18589 (standard_args): Add "--disable-font-backend" option.
18590
185912008-02-01 Kenichi Handa <handa@m17n.org>
18592
18593 * fontset.c (fontset_find_font): New function.
18594 (fontset_font): Use fontset_find_font.
18595 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18596 Register the specified font for all Latin characters.
18597 (new_fontset_from_font): Register the specified font for all Latin
18598 characters.
18599 (dump_fontset): For a realized fontset, include the base fontset
18600 name in the returned vector.
18601
186022008-02-01 Kenichi Handa <handa@m17n.org>
18603
18604 * character.h (CHAR_STRING): Cast C to unsigned on calling
18605 char_string.
18606
18607 * character.c (char_string): Type of arg C changed to unsigned.
18608 Signal an error if C is an invalid character code.
18609
18610 * editfns.c (general_insert_function, Fchar_to_string):
18611 Use CHARACTERP, not INTEGERP.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18616 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18617
18618 * regex.c (analyse_first): Fix for multibyte characters in "case
18619 charset:" and "case categoryspec:".
18620
186212008-02-01 Andreas Schwab <schwab@suse.de>
18622
18623 * Makefile.in (LIBES): Move standard libraries to the end.
18624
186252008-02-01 Kenichi Handa <handa@m17n.org>
18626
18627 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18628 nonzero, don't shrink the buffer nextb.
18629
18630 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18631
18632 * coding.c (coding_alloc_by_making_gap): New arg offset.
18633 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18634 offset.
18635 (decode_coding_iso_2022): Update coding->safe_charsets.
18636 (decode_coding_gap): Temporarily set
18637 current_buffer->text->inhibit_shrinking to 1.
18638
186392008-02-01 Kenichi Handa <handa@m17n.org>
18640
18641 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18642 indexing into elements of s->cmp and s->char2b.
18643
186442008-02-01 Juanma Barranquero <lekktu@gmail.com>
18645
18646 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18647
186482008-02-01 Kenichi Handa <handa@m17n.org>
18649
18650 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18651 target_multibyte instead of multibyte.
18652 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18653 (bcmp_translate): Change the argument name from multibyte to
18654 target_multibyte.
18655
186562008-02-01 Kenichi Handa <handa@m17n.org>
18657
18658 These changes are to compile a regexp into a pattern that can be
18659 used both for multibyte and unibyte targets.
18660
18661 * Makefile.in (search.o): Depend on charset.h.
18662
18663 * character.c (multibyte_char_to_unibyte_safe): New function.
18664
18665 * search.c: Include "charset.h".
18666 (compile_pattern_1): Delete argument multibyte. Don't set
18667 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18668 (compile_pattern): Don't compare cp->buf.target_multibyte.
18669 Compare cp->buf.charset_unibyte.
18670 (compile_pattern): Set cp->buf.target_multibyte.
18671
18672 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18673
18674 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18675
18676 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18677 multibyte. Change callers.
18678 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18679 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18680 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18681 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18682 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18683 (regex_compile): Make the compiled pattern usable both for
18684 multibyte and unibyte targets.
18685 (analyse_first): Make the fastmap usable both for multibyte and
18686 unibyte targets.
18687 (TRANSLATE_VIA_MULTIBYTE): Delete.
18688 (re_match_2_internal): Pay attention to the case that the
18689 multibyteness of bufp and target may be different.
18690
186912008-02-01 Kenichi Handa <handa@m17n.org>
18692
18693 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18694 empty box occupy at least one column width.
18695
186962008-02-01 Miles Bader <miles@gnu.org>
18697
18698 * Makefile.in: Remove redundant HAVE_XFT clause.
18699
187002008-02-01 Kenichi Handa <handa@m17n.org>
18701
18702 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18703
187042008-02-01 Kenichi Handa <handa@m17n.org>
18705
18706 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18707 being nil.
18708
187092008-02-01 Kenichi Handa <handa@m17n.org>
18710
18711 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18712
187132008-02-01 Kenichi Handa <handa@m17n.org>
18714
18715 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18716
187172008-02-01 Kenichi Handa <handa@m17n.org>
18718
18719 * search.c (simple_search): Fix previous change.
18720
187212008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * xftfont.c (ftfont_font_format): Extern declaration.
18724
18725 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18726
18727 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18728 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18729
18730 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18731 (ftfont_font_format): Fix previous change.
18732
18733 * font.h (Ffont_xlfd_name): EXFUN it.
18734
18735 * font.c (font_parse_xlfd): Fix the array size of `f'.
18736 (register_font_driver): Use EQ to compare driver->type.
18737
18738 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18739 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18740 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18741
187422008-02-01 Kenichi Handa <handa@m17n.org>
18743
18744 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18745 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18746
187472008-02-01 Kenichi Handa <handa@m17n.org>
18748
18749 * xfont.c (xfont_open): Set font->format.
18750
18751 * xftfont.c (xftfont_open): Set font->format.
18752
18753 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18754 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18755 (ftfont_open): Set font->format.
18756 (ftfont_font_format): New function.
18757
18758 * font.h (struct font): New member format.
18759
18760 * font.c (Qopentype): New variable.
18761 (syms_of_font): Defsym it.
18762 (Fquery_font): Change the format of the last element of the return
18763 value.
18764
187652008-02-01 Kenichi Handa <handa@m17n.org>
18766
18767 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18768 last resort.
18769
187702008-02-01 Kenichi Handa <handa@m17n.org>
18771
18772 * coding.c (detect_coding_charset): Fix detection of multi-byte
18773 charset.
18774
187752008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18776
18777 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18778
187792008-02-01 Kenichi Handa <handa@m17n.org>
18780
18781 * xdisp.c (get_next_display_element): Set it->face_id for the
18782 first component of a composition.
18783 (x_produce_glyphs): Check if the font is changed or not for composition.
18784
187852008-02-01 Kenichi Handa <handa@m17n.org>
18786
18787 * fontset.c (Qlatin): New variable.
18788 (syms_of_fontset): Define it as a lisp symbol.
18789 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18790
187912008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * font.c (font_unparse_fcname): Pay attention to the case that
18794 some of font property is a null string.
18795
187962008-02-01 Kenichi Handa <handa@m17n.org>
18797
18798 * term.c: Include "composite.h".
18799 (encode_terminal_code): Output all components of composition.
18800 Check the size of encode_terminal_src.
18801 (produce_glyphs): For composition, call produce_composite_glyph.
18802 (append_composite_glyph, produce_composite_glyph): New functions.
18803
18804 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18805 is not found, get font_info from the current ascii face.
18806
188072008-02-01 Kenichi Handa <handa@m17n.org>
18808
18809 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18810 buffer-file-name to Qnil before calling insert_from_buffer.
18811
18812 * font.c (font_unparse_fcname): Pay attention to the case that
18813 foundry is a null string.
18814
188152008-02-01 Kenichi Handa <handa@m17n.org>
18816
18817 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18818
18819 * font.c (Qunicode_sip): New variable.
18820 (syms_of_font): Declare it as a Lisp symbol.
18821
18822 * font.h (Qunicode_sip): Extern it.
18823
188242008-02-01 Kenichi Handa <handa@m17n.org>
18825
18826 * composite.c (get_composition_id): Pay attention to TAB component.
18827
18828 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18829 TAB. Adjust for the change of s->char2b which always points to
18830 the first element of allocated memory.
18831
18832 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18833
18834 * xdisp.c (handle_composition_prop): Set it->c to the first
18835 non-TAB component.
18836 (fill_composite_glyph_string): Change argument.
18837 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18838 (x_produce_glyphs): Fix handling of left/right padding.
18839
188402008-02-01 Kenichi Handa <handa@m17n.org>
18841
18842 * coding.c (detect_coding_system): Fix for handling off
18843 inhibit_iso_escape_detection. Fix for the case that no coding
18844 system is defined for a specific coding category.
18845
188462008-02-01 Kenichi Handa <handa@m17n.org>
18847
18848 * font.c (font_matching_entity): Delete unused local var.
18849
18850 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18851 opening a font.
18852
18853 * fileio.c (Finsert_file_contents): On recovering a file, assume
18854 Unix-like eol.
18855 (choose_write_coding_system): On auto-saving a file, force
18856 Unix-like eol.
18857
18858 * coding.c (setup_coding_system): Fix setting of
18859 coding->common_flags based on eol_type.
18860 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18861 inherit from it.
18862
188632008-02-01 Kenichi Handa <handa@m17n.org>
18864
18865 * alloc.c (NSTATICS): Increas to 0x600.
18866
188672008-02-01 Kenichi Handa <handa@m17n.org>
18868
18869 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18870 (ftfont_list): Don't check :name property.
18871 (ftfont_match): New function.
18872 (ftfont_pattern_entity): If the pattern doesn't contain
18873 FC_SPACING, don't assume FC_MONO.
18874
18875 * font.h (struct font_driver): New member `match'.
18876 (font_update_drivers): Adjust prototype.
18877
18878 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18879 property of FONT.
18880 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18881 them unconditionally.
18882 (font_matching_entity): New function.
18883 (font_open_by_name): Try font_matching_entity if exact match is
18884 not found.
18885 (font_update_drivers): Delete the arg FONT. Return a list of
18886 actually used backends. Don't free faces, font caches here.
18887 Don't store data in frame parameters. Don't call x_set_font.
18888 (Ffont_spec): Store :name property as is.
18889 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18890 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18891 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18892 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18893 Call font->driver->otf_gsub instead of font_otf_gsub.
18894
18895 * frame.c (x_set_font_backend): Do more works that were done in
18896 font_update_drivers before.
18897
18898 * xfont.c (xfont_match): New function.
18899 (xfont_driver): Set xfont_driver.match to xfont_match.
18900 (xfont_draw): Set font in GC if necessary.
18901
18902 * ftxfont.c (ftxfont_match): New function.
18903 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18904
18905 * xftfont.c (xftfont_match): New function.
18906 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18907
189082008-02-01 Kenichi Handa <handa@m17n.org>
18909
18910 * font.h (struct font): New member scalable.
18911 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18912 (font_otf_gsub): Adjust prototype.
18913
18914 * font.c (font_otf_capability): Fix handling of the default langsys.
18915 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18916 Check the contents of SPEC.
18917 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18918 (check_gstring): New function.
18919 (REPLACEMENT_CHARACTER): New macro.
18920 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18921 glyph codes of GSTRING.
18922 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18923 (font_prepare_composition): Set cmp->glyph_len.
18924 (font_open_entity): Set font->scalable.
18925 (Ffont_get): Handle :otf property.
18926 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18927 functions.
18928 (Fquery_font): Use font->font.full_name.
18929 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18930 Sfont_otf_alternates.
18931
18932 * ftfont.c (ftfont_open): Set font->font.full_name and
18933 font->font.name properly. Fix calculation of font->font.height
18934 and font->min_width.
18935
18936 * ftxfont.c (ftxfont_create_gcs): New function.
18937 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18938 (ftxfont_draw_backgrond): Fix filling region.
18939 (ftxfont_default_fid): New function.
18940 (ftxfont_open): Set xfont->fid to the return value of
18941 ftxfont_default_fid.
18942 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18943 (ftxfont_done_face): Free only GCs that are created by
18944 ftxfont_create_gcs.
18945 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18946
18947 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18948 Clip to src->width, etc (not src->clip_XXX).
18949
18950 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18951 FontBackend frame parameter.
18952
189532008-02-01 Kenichi Handa <handa@m17n.org>
18954
18955 * font.h (struct font_driver_list): New member `on'.
18956 (Fclear_font_cache): EXFUN it.
18957 (font_update_drivers): Extern it.
18958
18959 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18960 (font_list_entities): Check driver_list->on.
18961 (register_font_driver): Initalize `on' member to 0.
18962 (font_update_drivers): New function.
18963 (Fclear_font_cache): Check driver_list->on.
18964
18965 * frame.h (Qfont_backend): Extern it.
18966 (x_set_font_backend): Extern it.
18967
18968 * frame.c (Qfont_backend): New variable.
18969 (frame_parms): New element for font-backend.
18970 (x_set_font_backend): New function.
18971
18972 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18973 FontBackend frame parameter.
18974 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18975 x_set_font_backend.
18976
18977 * xfont.c (xfont_list): Don't try listing by :name property if the
18978 name is not for XLFD.
18979
189802008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18983 (LGLYPH_SET_TO): New macros.
18984 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18985 element of G is vector or not.
18986 (font_at): Extern it.
18987
18988 * font.c: Include window.h.
18989 (font_lispy_object): New function.
18990 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18991 end of valid glyph.
18992 (font_close_object): Fix getting (struct font *).
18993 (font_at): New function.
18994 (Ffont_get): If FONT is a font-object, get entity from it.
18995 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18996 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18997 range check.
18998 (Ffont_at): New function.
18999 (syms_of_font): Defsubr Sfont_at.
19000
19001 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19002 before the entry for Qcomposition.
19003 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19004 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19005 the font in gstring.
19006 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19007 LGLYPH_FORM (g) to detect the end of valid glyph.
19008 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19009 we are composing with gstring.
19010
19011 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19012 Check if adjustment is vector or not.
19013
19014 * Makefile.in (font.o): Make it depends on window.h.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19019 adjustment is vector or not.
19020
190212008-02-01 Miles Bader <miles@gnu.org>
19022
19023 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19024
190252008-02-01 Kenichi Handa <handa@m17n.org>
19026
19027 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19028 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19029 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19030
19031 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19032 (DEVICE_DELTA): Fix typo.
19033 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19034 LGLYPH format.
19035
19036 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19037 the change of LGLYPH format.
19038
190392008-02-01 Kenichi Handa <handa@m17n.org>
19040
19041 * ftfont.c (ftfont_list): Fix typo.
19042 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19043
190442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19045
19046 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19047
19048 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19049 xftface_info is non-NULL.
19050
190512008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19052
19053 * ftfont.c (ftfont_list): Move misplaced #endif.
19054
190552008-02-01 Kenichi Handa <handa@m17n.org>
19056
19057 * ftfont.c (ftfont_list): Pay attention to the case that
19058 FC_CAPABILITY is not defined.
19059
190602008-02-01 Kenichi Handa <handa@m17n.org>
19061
19062 * xftfont.c (xftfont_open): Set charset related members to -1.
19063
19064 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19065 QCname.
19066 (ftfont_open): Set charset related members to -1.
19067
19068 * fontset.c (Votf_script_alist): New variable.
19069 (syms_of_fontset): Initialize it.
19070 (fontset_font): Delete unused variable.
19071
19072 * fontset.h (Votf_script_alist): Extern it.
19073
19074 * font.c (font_find_for_lface): Optimize code.
19075
19076 * font.h (font_close_object, font_merge_old_spec): Extern them.
19077
190782008-02-01 Kenichi Handa <handa@m17n.org>
19079
19080 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19081 (syms_of_font): Initialize them.
19082 (font_pixel_size): Allow float value in dpi.
19083 (font_prop_validate_type): Delete.
19084 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19085 Change caller.
19086 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19087 (font_prop_validate_extra): Delete.
19088 (font_prop_validate_spacing): New function.
19089 (font_property_table): Add elements for all known properties.
19090 (get_font_prop_index): Rename from check_font_prop_name. New
19091 argument FROM. Change caller.
19092 (font_prop_validate): Validate all known properties.
19093 (font_put_extra): Delete argument force. Change caller.
19094 (font_expand_wildcards): Make it static. Fix the way of shrinking
19095 the possible range.
19096 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19097 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19098 Change caller.
19099 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19100 (font_parse_fcname): Delete argument merge. Fix parsing of point
19101 size. Don't validate properties values here. Change caller.
19102 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19103 (font_open_by_name): Delete unused variable.
19104 (Ffont_spec): Likewise. Validate property values.
19105 (Ffont_match_p): New function.
19106
19107 * font.h (QCscalable): Extern it.
19108 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19109
19110 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19111
19112 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19113 (xfont_list_pattern): New function.
19114 (xfont_list): Use xfont_list_pattern.
19115
191162008-02-01 Kenichi Handa <handa@m17n.org>
19117
19118 * font.h (Flist_fonts): EXFUN it.
19119
191202008-02-01 Jason Rumney <jasonr@gnu.org>
19121
19122 * w32term.c (w32_initialize): Add back smoothing_type and
19123 smoothing_enabled definitions.
19124
191252008-02-01 Kenichi Handa <handa@m17n.org>
19126
19127 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19128 s->face->font on determining underline position.
19129
191302008-02-01 Kenichi Handa <handa@m17n.org>
19131
19132 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19133 (font_has_char): Accept font-object too.
19134 (font_find_for_lface): Try at first with a size specified in face.
19135
191362008-02-01 Kenichi Handa <handa@m17n.org>
19137
19138 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19139 font_open_by_name.
19140
191412008-02-01 Kenichi Handa <handa@m17n.org>
19142
19143 * font.h (QCspacing, QCdpi): Extern them.
19144 (enum font_spacing): New enum.
19145 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19146
19147 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19148 (QCspacing, QCdpi): New variables.
19149 (syms_of_font): Initialize them.
19150 (font_pixel_size): New function.
19151 (font_put_extra): New function.
19152 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19153 in FONT_EXTRA.
19154 (font_parse_fcname): Handle enumerated values (e.g. bold).
19155 Fix handling font size. Add QCname property that contains only
19156 unknown properties.
19157 (font_score): Change argument. Change caller. Pay attention to
19158 FONT_PIXEL_SIZE_QUANTUM.
19159 (font_sort_entites, font_list_entities, font_find_for_lface)
19160 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19161 (Ffont_spec): Add QCname property that contains only unknown properties.
19162
19163 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19164 include weight in listing pattern, instead check weight of each
19165 listed font. Don't include scalable in pattern. Pay attention to
19166 FONT_PIXEL_SIZE_QUANTUM.
19167
191682008-02-01 Kenichi Handa <handa@m17n.org>
19169
19170 * font.c (font_parse_fcname): Fix parsing of point-size.
19171 (font_unparse_fcname): Produce symbolic names for style properties.
19172 (font_list_entities): Handle float size correctly.
19173 (font_open_by_name): Prefer `normal' property values if the name
19174 doesn't specify them.
19175
19176 * fontset.c (Finternal_char_font): Use font_get_name, not
19177 Ffont_xlfd_name.
19178
19179 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19180 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19181 pattern. Don't force scalable.
19182
19183 * xftfont.c (xftfont_open): For generating a name, start from
19184 96-byte buffer.
19185
191862008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19187
19188 * frame.h (x_new_fontset2): Fix prototype.
19189
191902008-02-01 Kenichi Handa <handa@m17n.org>
19191
19192 * font.h (struct font_driver): Delete member parse_name.
19193 (font_match_p, font_get_spec, font_parse_fcname)
19194 (font_unparse_fcname): Extern them.
19195 (font_get_name): Adjust prototype.
19196
19197 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19198 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19199 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19200 unnecessary checks for weight, slant, and swidth.
19201 (font_parse_fcname): New function.
19202 (font_unparse_fcname): New function.
19203 (font_parse_name): New function.
19204 (font_match_p): New function.
19205 (font_get_name): Change return value to Lisp string.
19206 (font_get_spec): New function.
19207 (Qunspecified, Qignore_defface): Don't extern them.
19208 (font_find_for_lface): Assume that LFACE is fully specified.
19209 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19210 object, use it for FACE.
19211 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19212 driver->parse_name.
19213 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19214
19215 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19216 prototype.
19217
19218 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19219 argument F. Don't call Fnew_fontset. Instead, directly call
19220 make_fontset.
19221
19222 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19223
19224 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19225 of x_new_fontset2.
19226
19227 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19228 (Qsans__serif): New variables.
19229 (ftfont_generic_family_list): New variable.
19230 (syms_of_ftfont): Initialize the above variables.
19231 (ftfont_pattern_entity): Delete argument NAME.
19232 (ftfont_list_generic_family): New function.
19233 (ftfont_parse_name): Delete this function.
19234 (ftfont_list): Try generic family only when FcFontList found no font.
19235 (ftfont_list_family): Fix args to FcObjectSetBuild.
19236
19237 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19238 object in attrs[LFACE_FONT_INDEX].
19239 (set_lface_from_font_name): Cancel all changes for font-backend.
19240 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19241 function.
19242 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19243 font object in QCfont attribute.
19244 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19245 (realize_default_face) [USE_FONT_BACKEND]: Call
19246 set_lface_from_font_and_fontset.
19247
19248 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19249 "fixed", and signal error here if no suitable font was found.
19250
19251 * xfont.c (xfont_parse_name): Delete this function.
19252
19253 * xftfont.c (xftfont_open): Change coding style of error
19254 handling. Generate fontconfig's fontname pattern.
19255
19256 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19257 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19258
19259 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19260 Both args FONTSET and FONT_OBJECT must be existing ones.
19261
192622008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19263
19264 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19265
192662008-02-01 Kenichi Handa <handa@m17n.org>
19267
19268 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19269
19270 * font.h (struct font): Fix typo.
19271
19272 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19273 XLFD_XXX_INDEX.
19274 (enum xlfd_field_mask): New enum.
19275 (intern_font_field): Changed argument. Change caller. If digits
19276 are followed by non-digits, return a symbol.
19277 (font_expand_wildcards): New function.
19278 (font_parse_xlfd): Fix wildcard handling.
19279 (Ffont_spec): If :name is specified, reflect the info in the other
19280 properties.
19281
19282 * ftfont.c (ftfont_pattern_entity): Fix typo.
19283 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19284 locale.
19285
192862008-02-01 Kenichi Handa <handa@m17n.org>
19287
19288 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19289
19290 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19291 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19292 registry doesn't specify encoding part.
19293 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19294 (font_open_by_name): At first try parsing the name.
19295 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19296 as Lisp symbols.
19297
19298 * fontset.c (reorder_font_vector): Pay attention to the case that
19299 the 3rd element of font_def is nil.
19300 (fontset_font): For the default fontset, append one more fontset
19301 elements for a script-based font specification. Don't add script
19302 attribute on finding a font.
19303 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19304 font name.
19305 (fontset_ascii_font): If a font can't be opened, return nil.
19306
19307 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19308 (ftfont_pattern_entity): New function.
19309 (ftfont_get_cache): Assume that freetype_font_cache is already
19310 initialized.
19311 (ftfont_list): Handle the case that a file is specified in font
19312 name. Use ftfont_pattern_entity to generate entities.
19313 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19314 (syms_of_ftfont): Initialize freetype_font_cache.
19315
19316 * xftfont.c (xftfont_open): Make the font name fontconfig's
19317 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19318 (xftfont_close): Free font->font.name if not NULL.
19319
19320 * xfont.c (xfont_list): If script is specified for a font, return
19321 null_vector.
19322 (xfont_list_family): Declare argument type.
19323
19324 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19325 name, set LFACE_FONT (lface) to nil.
19326
19327 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19328 return Qnil.
19329
193302008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19333 (standard_args): Add "-enable-font-backend".
19334
193352008-02-01 Kenichi Handa <handa@m17n.org>
19336
19337 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19338 (struct xftdraw_list, xftdraw_list): Delete them.
19339 (register_xftdraw, check_xftdraw): Delete them.
19340 (xftfont_prepare_face): Don't call register_xftdraw.
19341 (xftfont_done_face): Don't call check_xftdraw.
19342 (xftfont_draw): Get background color only when with_background is
19343 nonzero.
19344
19345 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 These changes are for the new font handling codes.
19350
19351 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19352 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19353 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19354 (FONTSRC, FONTOBJ): New variables.
19355 (obj): Add $(FONTOBJ).
19356 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19357 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19358 @LIBOTF_LIBS@.
19359 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19360 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19361
19362 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19363
19364 * character.h (Vscript_representative_chars): Extern it.
19365
19366 * character.c (Vscript_representative_chars): New variable.
19367 (syms_of_character): Declare it as a Lisp variable.
19368
19369 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19370 enable_font_backend is nonzero, accept the composition method
19371 COMPOSITION_WITH_GLYPH_STRING.
19372
19373 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19374 enumeration COMPOSITION_WITH_GLYPH_STRING.
19375
19376 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19377 members clip_x, clip_y, clip_width, and clip_height.
19378 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19379
19380 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19381 --enable-font-backend. Call syms_of_font.
19382
19383 * fns.c (assoc_no_quit): New function.
19384
19385 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19386 (face_for_font, new_fontset_from_font)
19387 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19388
19389 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19390 (fontset_font, fontset_ascii, face_for_char)
19391 (make_fontset_for_ascii_face, Ffont_info)
19392 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19393 is nonzero, use font-backend mechanism.
19394 (find_font_encoding): Make it non-static.
19395 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19396 New functions.
19397
19398 * frame.h (struct frame): New members resx and resy.
19399 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19400 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19401
19402 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19403 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19404
19405 * lisp.h (assoc_no_quit): Extern it.
19406
19407 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19408 Through out the file, use FONT_INFO_FROM_FACE instead of
19409 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19410 rif->per_char_metric.
19411 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19412 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19413 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19414 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19415 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19416 nonzero, use font-backend mechanism.
19417 (get_per_char_metric): New function.
19418
19419 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19420 (set_lface_from_font_name)
19421 (set_font_frame_param, free_realized_face)
19422 (prepare_face_for_display, clear_face_gcs)
19423 (Finternal_set_font_selection_order, realize_x_face)
19424 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19425 font-backend mechanism.
19426 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19427 (load_face_font) [USE_FONT_BACKEND]: Abort.
19428 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19429 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19430
19431 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19432 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19433 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19434 nonzero, register all available font drivers. Call
19435 x_default_font_parameter for deciding a font.
19436 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19437
19438 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19439 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19440 (x_set_glyph_string_clipping_exactly)
19441 (x_compute_glyph_string_overhangs)
19442 (x_draw_glyph_string_foreground)
19443 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19444 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19445 enable_font_backend is nonzero, use font-backend mechanism.
19446 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19451 system_eol_type.
19452 (syms_of_coding): Initialize system_eol_type.
19453
19454 * process.c (Fset_process_coding_system): Inherit system's eol
19455 format if necessary.
19456
194572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19458
19459 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * coding.c (decode_eol): Pay attention to buffer relocation in
19464 del_range_2.
19465 (decode_coding): Call decode_eol before restoring undo_list.
19466
194672008-02-01 Kenichi Handa <handa@m17n.org>
19468
19469 * charset.c (Fdefine_charset_internal): Fix setting of
19470 emacs_mule_bytes.
19471
194722008-02-01 Kenichi Handa <handa@m17n.org>
19473
19474 * keyboard.c (read_char): Check if C is a character or not before
19475 looking up Vkeyboard_translate_table.
19476
194772008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19480 condition to terminate the loop.
19481
194822008-02-01 Kenichi Handa <handa@m17n.org>
19483
19484 * coding.c (produce_composition): Compare charbuf[i] instead of
19485 args[i] against 0.
19486 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19487
194882008-02-01 Kenichi Handa <handa@m17n.org>
19489
19490 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19491 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19492 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19493 detect_coding.
19494 (emacs_mule_char): Handle old style (Emacs 20) component character
19495 of a composition.
19496 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19497 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19498 composition rule.
19499 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19500
195012008-02-01 Kenichi Handa <handa@m17n.org>
19502
19503 * coding.c (encode_coding_ccl): Allocate destination dynamically
19504 when necessary.
19505
195062008-02-01 Kenichi Handa <handa@m17n.org>
19507
19508 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19509 the loop. When quitted, show a proper error message.
19510
195112008-02-01 Kenichi Handa <handa@m17n.org>
19512
19513 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19514 src->clip_head and src->clip_tail temporarily instead of src->hl.
19515
19516 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19517 character sequence.
19518 (Fccl_execute_on_string): Use ASET, not XSET.
19519
195202008-02-01 Kenichi Handa <handa@m17n.org>
19521
19522 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19523
195242008-02-01 Kenichi Handa <handa@m17n.org>
19525
19526 * coding.c (decode_coding): Fix the condition of terminating the
19527 decoding loop.
19528
195292008-02-01 Kenichi Handa <handa@m17n.org>
19530
19531 * data.c (Faset): On setting a character bigger than 255 in a
19532 unibyte string, signal an error instead of make the string multibyte.
19533
195342008-02-01 Kenichi Handa <handa@m17n.org>
19535
19536 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19537 made by a mapping table.
19538
195392008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19542 not.
19543 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19544 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19545
19546 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19547 s->face is NULL or not.
19548
195492008-02-01 Kenichi Handa <handa@m17n.org>
19550
19551 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19552 (x_draw_glyph_string): Fix drawing of right_overhang and
19553 left_overhang around/on cursor.
19554
19555 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19556
195572008-02-01 Kenichi Handa <handa@m17n.org>
19558
19559 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19560
195612008-02-01 Kenichi Handa <handa@m17n.org>
19562
19563 * coding.c (Fdefine_coding_system_internal)
19564 (Fdefine_coding_system_alias): Avoid a duplicated element in
19565 Vcoding_system_alist.
19566
195672008-02-01 Kenichi Handa <handa@m17n.org>
19568
19569 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19570
19571 * coding.c (Qcoding_system_define_form): New variable.
19572 (syms_of_coding): Intern and staticpro it.
19573 (Fcoding_system_p): Check Qcoding_system_define_form.
19574 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19575
19576 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19577 Fcoding_system_p.
19578 (CHECK_CODING_SYSTEM): If ID is not available, call
19579 Fcheck_coding_system.
19580 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19581 Try also Fcheck_coding_system.
19582
195832008-02-01 Kenichi Handa <handa@m17n.org>
19584
19585 * coding.c (code_conversion_restore): GCPRO arg.
19586
195872008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * character.c (lisp_string_width): Check multibyteness of STRING.
19590
195912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19592
19593 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19594 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19595 (decode_mac_font_name): Use decode_coding_c_string instead of
19596 decode_coding.
19597 (x_load_font): Initialize fontp->fontset to -1. Set
19598 fontp->encoding_type.
19599
196002008-02-01 Kenichi Handa <handa@m17n.org>
19601
19602 * search.c (search_buffer): Give up BM search on case-fold-search
19603 if one of a target character has a case-equivalence of different
19604 byte length even if that target charcter is an ASCII.
19605 (simple_search): Fix calculation of byte length of matched text.
19606 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19607
196082008-02-01 Kenichi Handa <handa@m17n.org>
19609
19610 * coding.c (decode_coding): Fix handling of invalid bytes.
19611
196122008-02-01 Kenichi Handa <handa@m17n.org>
19613
19614 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19615 Unicode characters.
19616
196172008-02-01 Kenichi Handa <handa@m17n.org>
19618
19619 * coding.c (encode_coding_object): If a pre-write-conversion
19620 function makes a new buffer, kill it.
19621
196222008-02-01 Kenichi Handa <handa@m17n.org>
19623
19624 * coding.c (QCascii_compatible_p): New variable.
19625 (syms_of_coding): Initialize it.
19626 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19627 calling string_char.
19628 (record_conversion_result): Add `default:' case.
19629 (coding_charset_list): Delete unused variable `coding_type'.
19630 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19631 property in the plist of the coding system.
19632 (Fcoding_system_put): Check QCascii_compatible_p.
19633
196342008-02-01 Miles Bader <miles@gnu.org>
19635
19636 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19637 removed calculation of frame `f', as it's now used.
19638
196392008-02-01 Kenichi Handa <handa@m17n.org>
19640
19641 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19642 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19643 (UNIDATA): New variable.
19644 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19645 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19646 $(RUN_TEMACS) unconditionally.
19647
196482008-02-01 Kenichi Handa <handa@m17n.org>
19649
19650 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19651 (admindir): New variable.
19652 ($(lispsource)international/charprop.el): New target.
19653
196542008-02-01 Miles Bader <miles@gnu.org>
19655
19656 * character.c (chars-in-region): Remove obsolete function.
19657 (syms_of_character): Remove its initialization.
19658
196592008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19660
19661 * w32select.c (validate_coding_system)
19662 (setup_windows_coding_system): New functions.
19663 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19664 setup_windows_coding_system.
19665 (setup_config, Fw32_get_clipboard_data): Use
19666 validate_coding_system.
19667 (Fx_selection_exists): Move call to setup_config to a place
19668 where signals are allowed.
19669
19670 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19671 (Fcheck_coding_system): Add declarations.
19672
196732008-02-01 Kenichi Handa <handa@m17n.org>
19674
19675 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19676
196772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19678
19679 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19680 string as the second argument for x_new_fontset.
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19685 (encode_coding_object): Use safe_call instead of call2.
19686
196872008-02-01 Kenichi Handa <handa@m17n.org>
19688
19689 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19690
19691 * Makefile.in (lisp): Include charprop.el.
19692
196932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19694
19695 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19696 Not sure if it's unnecessary.
19697
196982008-02-01 Steven Tamm <steventamm@mac.com>
19699
19700 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19701 some possibly unnecessary fontset checking code that crashed
19702 when creating a new frame.
19703
197042008-02-01 Kenichi Handa <handa@m17n.org>
19705
19706 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19707 lookup_face.
19708
19709 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19710
19711 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19712
197132008-02-01 Kenichi Handa <handa@m17n.org>
19714
19715 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19716 (coding_charset_list): New function.
19717
19718 * coding.h (coding_charset_list): Extern it.
19719
197202008-02-01 Kenichi Handa <handa@m17n.org>
19721
19722 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19723 concatenation of family and registry.
19724
197252008-02-01 Kenichi Handa <handa@m17n.org>
19726
19727 * character.h (BYTE8_STRING): Fix typo.
19728
19729 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19730 string to multibyte (sync to HEAD).
19731
19732 * casefiddle.c (casify_region): Handle changes in byte-length
19733 using replace_range_2 (sync to HEAD).
19734
197352008-02-01 Andreas Schwab <schwab@suse.de>
19736
19737 * chartab.c (map_char_table): GCPRO table and arg.
19738
197392008-02-01 Kenichi Handa <handa@m17n.org>
19740
19741 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19742 already at limit.
19743
197442008-02-01 Kenichi Handa <handa@m17n.org>
19745
19746 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19747 instead of fast_c_string_match_ignore_case.
19748 (find_font_encoding): Change argument to Lisp_Object. Use
19749 fast_string_match_ignore_case instead of
19750 fast_c_string_match_ignore_case. Change caller.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * xdisp.c (get_next_display_element): In unibyte case, decide to
19755 display in octal form by checking a character by
19756 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19757
19758 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19759
19760 * character.c (unibyte_has_multibyte_table): New variable.
19761
19762 * character.h (unibyte_has_multibyte_table): Extern it.
19763 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19764
197652008-02-01 Kenichi Handa <handa@m17n.org>
19766
19767 * coding.c (encode_coding_iso_2022): Fix handling of charset
19768 annotation.
19769
197702008-02-01 Kenichi Handa <handa@m17n.org>
19771
19772 * coding.c (setup_coding_system): If coding_system is nil, use
19773 Qundecided.
19774 (Fterminal_coding_system): Return nil if terminal coding system is
19775 `undecided'.
19776 (syms_of_coding): Define coding-system `undecided' here. Setup
19777 terminal_coding as `undecided'.
19778
197792008-02-01 Kenichi Handa <handa@m17n.org>
19780
19781 * xdisp.c (message_dolog, set_message_1): Call
19782 unibyte_char_to_multibyte with arg type int.
19783
19784 * lread.c (read1): Fix reading of a char-table.
19785
19786 * print.c (print_object): Include sub char-table in circularities
19787 detection.
19788
197892008-02-01 Kenichi Handa <handa@m17n.org>
19790
19791 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19792 Append the found sequences in car of ARGS instead of prepending.
19793
197942008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * fileio.c (report_file_error): Make a unibyte string from
19797 strerror (errorno).
19798 (Fsubstitute_in_file_name): Fix the arg to
19799 unibyte_char_to_multibyte. It is evaluated twice.
19800
198012008-02-01 Kenichi Handa <handa@m17n.org>
19802
19803 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19804
198052008-02-01 Kenichi Handa <handa@m17n.org>
19806
19807 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19808 BOM is not found.
19809 (detect_coding, detect_coding_system): Optimization for ISO-2022
19810 when no 8-bit data is found.
19811
198122008-02-01 Jason Rumney <jasonr@gnu.org>
19813
19814 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19815
198162008-02-01 Kenichi Handa <handa@m17n.org>
19817
19818 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19819 CHARS.
19820
198212008-02-01 Steven Tamm <steventamm@mac.com>
19822
19823 * macterm.c (mac_encode_char): Add charset argument and update
19824 to use encoding_type.
19825 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19826 switch to pure fontset.
19827 (decode_mac_font_name): Temporarily remove decoding.
19828 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19829 (x_load_font): Temporarily remove encoding.
19830
198312008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * xfaces.c (Fface_font): If frame is not on a window system,
19834 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19835 refer to face->font.
19836 (split_font_name_into_vector, build_font_name_from_vector)
19837 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19838 when HAVE_WINDOW_SYSTEM is defined.
19839
198402008-02-01 Kenichi Handa <handa@m17n.org>
19841
19842 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19843 (x_produce_glyphs): Fix setting of members of cmp in case
19844 cmp->glyph_len is zero.
19845
19846 * fontset.c (Fset_fontset_font): Fix docstring.
19847 (Ffontset_info): Make it backward compatible. New arg ALL.
19848
198492008-02-01 Kim F. Storm <storm@cua.dk>
19850
19851 * process.c (read_process_output): Grow decoding_buf when needed;
19852 this could cause a crash in allocate_string and compact_small_strings.
19853
198542008-02-01 Kenichi Handa <handa@m17n.org>
19855
19856 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19857
198582008-02-01 Kenichi Handa <handa@m17n.org>
19859
19860 * coding.c (setup_coding_system): Set coding->common_flags
19861 correctly for raw-text.
19862 (consume_chars): On encoding unibyte text by raw-text, don't check
19863 multibyte form.
19864 (encode_coding): On encoding by raw-text, never use translation tables.
19865
19866 * fileio.c (e_write): Short cut for the case of no encoding.
19867
198682008-02-01 Kenichi Handa <handa@m17n.org>
19869
19870 * coding.c (detect_coding, detect_coding_system): Delete unused
19871 variables.
19872
198732008-02-01 Kenichi Handa <handa@m17n.org>
19874
19875 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19876 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19877
198782008-02-01 Kenichi Handa <handa@m17n.org>
19879
19880 * coding.c (Ffind_coding_systems_region_internal): Include
19881 raw-text and no-conversion in the result.
19882
198832008-02-01 Kenichi Handa <handa@m17n.org>
19884
19885 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19886 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19887 FONT_DEF.
19888 (font_def_arg, add_arg, from_arg, to_arg): New args.
19889 (set_fontset_font): Change argument.
19890 (Fset_fontset_font): Fix for the case that TARGET is a script
19891 name and charset name.
19892 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19893
198942008-02-01 Kenichi Handa <handa@m17n.org>
19895
19896 * fontset.c (fontset_font): Rename from fontset_face. Change return
19897 value.
19898 (face_suitable_for_char_p, face_for_char): Adjust for the change
19899 of fontset_font.
19900 (make_fontset_for_ascii_face): Fix setting of the fontset element
19901 for ASCII.
19902 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19903 to get a font name.
19904 (Ffontset_info): Adjust for the change of fontset_font.
19905
19906 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19907
19908 * character.h (LEADING_CODE_LATIN_1_MIN)
19909 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19910
199112008-02-01 Kenichi Handa <handa@m17n.org>
19912
19913 * editfns.c (check_translation): New function.
19914 (Ftranslate_region_internal): Handle M:N mapping.
19915
199162008-02-01 Kenichi Handa <handa@m17n.org>
19917
19918 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19919
199202008-02-01 Kenichi Handa <handa@m17n.org>
19921
19922 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19923 goto invalid_code.
19924 (decode_coding_iso_2022): Fix handling of invalid designation.
19925
19926 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19927 after calling code_conversion_save.
19928
199292008-02-01 Kenichi Handa <handa@m17n.org>
19930
19931 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19932
19933 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19934
19935 * fontset.c: Include "intervals.h".
19936 (fontset_face): Fix comparing of Lisp_Objects.
19937 (free_face_fontset, new_fontset_from_font_name): Fix
19938 Lisp_Object/int mixup.
19939
19940 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19941
19942 * coding.c: Add many prototypes for static functions.
19943 (get_translation_table): Allow max_lookup to be NULL.
19944 (decode_coding, Ffind_coding_systems_region_internal)
19945 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19946 get_translation_table with max_lookup NULL.
19947
199482008-02-01 Kenichi Handa <handa@m17n.org>
19949
19950 * coding.c (get_translation_table): Declare it as Lisp_Object.
19951 (LOOKUP_TRANSLATION_TABLE): New macro.
19952 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19953 instead of CHAR_TABLE_REF.
19954
199552008-02-01 Kenichi Handa <handa@m17n.org>
19956
19957 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19958 annotation data format.
19959 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19960 Change arguments FROM and TO to single argument NCHARS. Change caller.
19961 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19962 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19963 (decode_coding_ccl, decode_coding_charset): Pay attention to
19964 coding->charbuf_used.
19965 (get_translation): New function.
19966 (produce_chars): New arguments translation_table and last_block.
19967 Translate characters here. Return number of carryover chars.
19968 Change caller.
19969 (produce_composition): New argument pos. Change caller.
19970 Adjust for the change of annotation data format.
19971 (produce_charset, produce_annotation): Likewise.
19972 (decode_coding, encode_coding): Don't call translate_chars.
19973 (consume_chars): New arg translation_table. Change caller.
19974 (translate_chars): Delete.
19975 (syms_of_coding): Make translation-table's number of extra slots 2.
19976
199772008-02-01 Kenichi Handa <handa@m17n.org>
19978
19979 * search.c (simple_search): Fix setting this_pos_byte in backward
19980 search.
19981
19982 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19983 byte sequence.
19984 (detect_coding_ccl): Fix setting of the variable valids.
19985
199862008-02-01 Kenichi Handa <handa@m17n.org>
19987
19988 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19989
19990 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19991
19992 * editfns.c (Ftranslate_region_internal): Rename from
19993 Ftranslate_region. Accept a char-table in TABLE.
19994 (syms_of_editfns): Defsubr Stranslate_region_internal.
19995
19996 * xfaces.c (set_lface_from_font_name): If a font is specified for
19997 a frame, generate a fontset from the font.
19998 (build_scalable_font_name): If the scalable font is requested for
19999 a specific size, don't change that size.
20000 (try_font_list): Try a scalable font also in the case that a
20001 pattern string is specified.
20002
200032008-02-01 Kenichi Handa <handa@m17n.org>
20004
20005 * xfaces.c (Fface_font): New optional arg CHARACTER.
20006
200072008-02-01 Kenichi Handa <handa@m17n.org>
20008
20009 * charset.h (CHARSET_OFFSET): New macro.
20010
200112008-02-01 Kenichi Handa <handa@m17n.org>
20012
20013 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20014
20015 * fontset.c (fontset_face): Handle the case that repertory is a
20016 char-table.
20017 (find_font_encoding): Return nil for unknown encoding.
20018 (Fset_fontset_font): Ignore a font of unknown encoding.
20019
200202008-02-01 Kenichi Handa <handa@m17n.org>
20021
20022 * keymap.c (describe_vector): Handle default value of a char table.
20023
20024 * fontset.c (fontset_face): Handle fallback fonts correctly.
20025 (Ffontset_info): Return infomation about fallback fonts.
20026
200272008-02-01 Kenichi Handa <handa@m17n.org>
20028
20029 * fontset.c (FONTSET_DEFAULT): New macro.
20030 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20031 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20032 the case that it is nil.
20033 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20034 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20035
20036 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20037 subset or superset.
20038
200392008-02-01 Kenichi Handa <handa@m17n.org>
20040
20041 * emacs.c (main): Call init_charset after syms_of_XXX.
20042
20043 * charset.c (Vcharset_map_directory): Delete.
20044 (Vcharset_map_path): New variable.
20045 (load_charset_map_from_file): Use Vcharset_map_path instead.
20046 (init_charset): Initialize Vcharset_map_path.
20047 (syms_of_charset): Delete declaration of "charset-map-directory",
20048 add declaration of "charset-map-path".
20049
200502008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20053 ASCII only string.
20054
20055 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20056
20057 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20058 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20059
200602008-02-01 Kenichi Handa <handa@m17n.org>
20061
20062 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20063
20064 * coding.c (QCmnemonic, QCdefalut_char)
20065 (QCdecode_translation_table, QCencode_translation_table)
20066 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20067 (get_translation_table): Return a list of translation tables if
20068 necessary.
20069 (decode_coding): Call get_translation_table with ENCODEP 0.
20070 (char_encodable_p): If translation_table is non-nil, always call
20071 translate_char.
20072 (Fdefine_coding_system_internal): Accept list of translation
20073 tables as :encode-translation-table and :decode-translation-table.
20074 (Fcoding_system_put): New function.
20075 (syms_of_coding): Declare new symbols. Defsubr
20076 Scoding_system_put.
20077 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20078 typically JISX0212.
20079
20080 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20081 when the charset is superset type.
20082
20083 * character.c (translate_char): Accept list of translation tables.
20084
200852008-02-01 Kenichi Handa <handa@m17n.org>
20086
20087 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20088 (CODING_ATTR_TRANS_TBL): New macro.
20089
20090 * coding.c (get_translation_table): New function.
20091 (translate_chars): Fix the bug of skipping annotation data.
20092 (decode_coding, encode_coding): Utilize get_translation_table.
20093 (char_encodable_p, Funencodable_char_position): Translate char if
20094 necessary.
20095 (Ffind_coding_systems_region_internal)
20096 (Fcheck_coding_systems_region): Setup translation table for encode
20097 in a coding system attribute vector in advance.
20098 (Fdefine_coding_system_internal): Allow a symbol as translation
20099 table. For shift-jis type coding system, allow 4th charset.
20100
201012008-02-01 Kenichi Handa <handa@m17n.org>
20102
20103 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20104
20105 * xdisp.c (get_next_display_element): Pass -1 as POS to
20106 FACE_FOR_CHAR if displaying a C-string.
20107
201082008-02-01 Kenichi Handa <handa@m17n.org>
20109
20110 * composite.c (get_composition_id): Handle xoff and yoff in a
20111 composition rule.
20112
20113 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20114 (struct composition): New member lbearing and rbearing.
20115
20116 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20117 (x_get_glyph_overhangs): Handle a composition glyph.
20118 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20119
20120 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20121 composition glyph.
20122
201232008-02-01 Kenichi Handa <handa@m17n.org>
20124
20125 * print.c: Include charset.h.
20126 (Vprint_charset_text_property): New variable.
20127 (Qdefault): Extern it.
20128 (PRINT_STRING_NON_CHARSET_FOUND)
20129 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20130 (print_check_string_result): New variable.
20131 (print_check_string_charset_prop): New function.
20132 (print_prune_charset_plist): New variable.
20133 (print_prune_string_charset): New function.
20134 (print_object): Call print_prune_string_charset if
20135 Vprint_charset_text_property is not t.
20136 (print_interval): Print nothing if interval->plist is nil.
20137 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20138 variable. Init and staticpro print_prune_charset_plist.
20139
201402008-02-01 Kenichi Handa <handa@m17n.org>
20141
20142 * fontset.c (new_fontset_from_font_name): Use the specified font
20143 for all characters in the new fontset.
20144
20145 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20146 OBJECT args.
20147
20148 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20149 OBJECT args for composition too.
20150
20151 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20152 OBJECT args.
20153
201542008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20157
20158 * fontset.c (reorder_font_vector): Adjust for the change of
20159 FONT_DEF format.
20160 (fontset_face): New arg id. Change caller.
20161 (face_for_char): New args pos and object.
20162 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20163 (fs_query_fontset): Check NAME by Fassoc too.
20164 (Fset_fontset_font): Allow non-XLFD font name.
20165 (Ffontset_info): Adjust for the change of FONT_DEF format.
20166
20167 * fontset.h (face_for_char): Adjust prototype.
20168
20169 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20170 (append_space, extend_face_to_end_of_line)
20171 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20172 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20173
20174 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20175 POS and OBJECT args.
20176
20177 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20178 POS and OBJECT args.
20179
201802008-02-01 Jason Rumney <jasonr@gnu.org>
20181
20182 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20183 of GlobalAlloc'ed memory.
20184
201852008-02-01 Kenichi Handa <handa@m17n.org>
20186
20187 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20188
20189 * charset.h (charset_table_used): Delete extern.
20190
20191 * charset.c (charset_table_used): Make it static.
20192 (map_charset_chars): Fix args to c_function with.
20193
20194 * chartab.c (map_sub_char_table_for_charset): Fix args to
20195 c_function with.
20196
20197 * coding.h (enum coding_result_code): Delete
20198 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20199
20200 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20201 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20202 (Vlast_code_conversion_error): New variables.
20203 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20204 (ONE_MORE_BYTE): Record error if any instead of signaling an
20205 error. If non-ASCII multibyte char is found, return the negative
20206 value of the code. All callers changed to check it.
20207 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20208 (record_conversion_result): New function. Change all codes setting
20209 coding->result to call this function.
20210 (detect_coding_utf_8, decode_coding_utf_8)
20211 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20212 Don't use the local variable incomplete.
20213 (emacs_mule_char): Change the second arg to `const'.
20214 (decode_coding): Fix of flushing out unprocessed data.
20215 (make_conversion_work_buffer): Fix making of a work buffer.
20216 (decode_coding_object): Return coding->dst_object.
20217
20218 * fontset.c (set_fontset_font): Fix args.
20219
20220 * lisp.h (CHARACTERBITS): Define as 22.
20221
20222 * process.c (send_process): Be sure to set coding->src_multibyte.
20223
20224 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20225
202262008-02-01 Kenichi Handa <handa@m17n.org>
20227
20228 * xdisp.c (handle_auto_composed_prop): Give limit to
20229 Fnext_single_char_property_change.
20230
202312008-02-01 Kenichi Handa <handa@m17n.org>
20232
20233 * composite.c (syms_of_composite): Don't make the composition hash
20234 table weak.
20235
20236 * fontset.c (Fset_fontset_font): Fix docstring.
20237
20238 * lisp.h (detect_coding_system): Adjust prototype.
20239
20240 * fileio.c (kill_workbuf_unwind): Delete this function.
20241 (Finsert_file_contents): Adjust the call of detect_coding_system.
20242 Get conversion_buffer by code_conversion_save. Use the macro
20243 CODING_MAY_REQUIRE_DECODING. After decoding, update
20244 coding_system.
20245
20246 * coding.h (make_conversion_work_buffer): Delete extern.
20247 (code_conversion_save): Extern it.
20248
20249 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20250 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20251 (decode_coding_utf_8): Don't do eol converion.
20252 (detect_coding_utf_16): Check coding->src_chars, not
20253 coding->src_bytes. Add heuristics for those that have no signature.
20254 (decode_coding_emacs_mule, decode_coding_iso_2022)
20255 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20256 Don't do eol converion.
20257 (adjust_coding_eol_type): Return a new coding system.
20258 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20259 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20260 each change.
20261 (decode_coding): Pay attention to undo_list. Do eol conversion for
20262 all types of coding-systems (if necessary).
20263 (Vcode_conversion_work_buf_list): Delete it.
20264 (Vcode_conversion_reused_workbuf): Rename from
20265 Vcode_conversion_reused_work_buf.
20266 (Vcode_conversion_workbuf_name): New variable.
20267 (reused_workbuf_in_use): New variable.
20268 (make_conversion_work_buffer): Delete the arg DEPTH.
20269 (code_conversion_restore): Change argument to cons.
20270 (code_conversion_save): Delete the argument BUFFER. Change callers.
20271 (detect_coding_system): New argument src_chars. Change callers.
20272 Fix for utf-16 detection.
20273 (init_coding_once): Don't use ISO_carriage_return.
20274 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20275 reused_workbuf_in_use.
20276
202772008-02-01 Kenichi Handa <handa@m17n.org>
20278
20279 * keymap.c (store_in_keymap): Pay attention to the case that idx
20280 is a cons specifying a character range.
20281
202822008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20285 HANDLED_RECOMPUTE_PROPS.
20286
20287 * coding.c (Fdefine_coding_system_internal): Fix checking of
20288 ascii compatibility.
20289
202902008-02-01 Kenichi Handa <handa@m17n.org>
20291
20292 * charset.c (find_charsets_in_text): Delete unused locale variable.
20293 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20294
20295 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20296 Resync charset_list to Vemacs_mule_charset_list.
20297
20298 * keymap.c (store_in_keymap): Pay attention to the case that idx
20299 is a cons specifying a character range.
20300
203012008-02-01 Kenichi Handa <handa@m17n.org>
20302
20303 * composite.c (update_compositions): Bind inhibit-read-only, etc
20304 to t before calling remove-list-of-text-properties.
20305
20306 * print.c (print_object): Always print ASCII chars as is.
20307
203082008-02-01 Kenichi Handa <handa@m17n.org>
20309
20310 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20311
20312 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20313 is a char table.
20314
203152008-02-01 Kenichi Handa <handa@m17n.org>
20316
20317 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20318
203192008-02-01 Kenichi Handa <handa@m17n.org>
20320
20321 * xfaces.c (set_lface_from_font_name): Fix for the case that
20322 FONTNAME is not fontset name.
20323
203242008-02-01 Kenichi Handa <handa@m17n.org>
20325
20326 * fns.c (base64_encode_1): Fix previous change.
20327
203282008-02-01 Kenichi Handa <handa@m17n.org>
20329
20330 * fontset.c (set_fontset_font): New function.
20331 (Fset_fontset_font): If a font is specified for a charset, use
20332 map_charset_chars to store the font spec in a fontset.
20333
203342008-02-01 Kenichi Handa <handa@m17n.org>
20335
20336 * fontset.c (fontset_face): Create a fallback fontset on demand.
20337 (make_fontset): Don't create a fallback fontset here.
20338 (free_face_fontset): Free a fallback fontset (if any) too.
20339 (n_auto_fontsets): Delete this variable.
20340 (auto_fontset_alist): New variable.
20341 (new_fontset_from_font_name): Check auto_fontset_alist.
20342 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20343 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20344 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20345 Defsubr Sfontset_list_all.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20350
203512008-02-01 Kenichi Handa <handa@m17n.org>
20352
20353 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20354
203552008-02-01 Kenichi Handa <handa@m17n.org>
20356
20357 * editfns.c (Fgoto_char): Fix docstring.
20358
203592008-02-01 Kenichi Handa <handa@m17n.org>
20360
20361 * insdel.c (insert_from_gap): Adjust intervals correctly.
20362
203632008-02-01 Jason Rumney <jasonr@gnu.org>
20364
20365 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20366 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20367 (w32_initialize): Try to load it.
20368 (x_get_font_repertory): Use it if available.
20369 (w32_encode_char): Add shortcut for unicode output.
20370
20371 * w32fns.c (w32_load_system_font): Default charset to -1.
20372 (x_to_w32_charset): Match all fonts for unicode.
20373 (w32_to_x_charset): New parameter matching. Don't return partial
20374 or wildcard charsets.
20375 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20376 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20377 (w32_to_x_font): Match charset to real charset.
20378 (enum_font_cb2): Always list unicode versions.
20379
20380 * makefile.w32-in (temacs): Increase EMHEAP.
20381
203822008-02-01 Jason Rumney <jasonr@gnu.org>
20383
20384 * w32term.c (w32_encode_char): New charset parameter.
20385 font_info.encoding becomes encoding_type.
20386 (x_get_font_repertory): New function. Warning: stub only!
20387 (x_new_font): Return quickly if font already set.
20388 (x_new_fontset): fontsetname parameter is Lisp_Object.
20389 Use new fs_query_fontset. Try new_fontset_from_font_name.
20390 Use fontset_name for return value.
20391
20392 * w32term.h: Declare x_get_font_repertory.
20393
20394 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20395 place of find_charset_in_text. Use encode_coding_object in place
20396 of encode_coding.
20397 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20398 decode_coding.
20399
20400 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20401 of x_new_fontset.
20402 (w32_load_system_font): Initialize charset as unicode.
20403 font_info.encoding becomes encoding_type.
20404 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20405 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20406 (syms_of_w32fns): Set get_font_repertory_func.
20407
20408 * w32console.c: Include character.h. Use terminal_encode_buffer
20409 from term.c.
20410 (write_glyphs): Use new version of encode_terminal_code. Use
20411 encode_coding_object in place of encode_coding.
20412
20413 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20414 encoding becomes encoding_type.
20415
20416 * term.c (terminal_encode_buffer): Make externally visible.
20417
20418 * makefile.w32-in: Add character.h dependancies.
20419 (character.o, chartab.o): New targets.
20420
204212008-02-01 Kenichi Handa <handa@m17n.org>
20422
20423 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20424 CODING_ID_EOL_TYPE.
20425
204262008-02-01 Andreas Schwab <schwab@suse.de>
20427
20428 * coding.c (produce_chars): Revert last change.
20429
204302008-02-01 Kenichi Handa <handa@m17n.org>
20431
20432 * charset.h (charset_unicode): Extern it.
20433
20434 * charset.c (string_xstring_p): Check by (C >= 0x100).
20435 (find_charsets_in_text): Change format of the arc CHARSETS. New
20436 arg MULTIBYTE.
20437 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20438 change of find_charsets_in_text.
20439 (Fsplit_char): Fix doc. Never return unknown.
20440
20441 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20442
20443 * coding.c (Fdefine_coding_system_alias): Update
20444 Vcoding_system_list.
20445
20446 * fontset.c (load_font_get_repertory): Pay attention to the case
20447 that ENCODING of a font is specified by a char-table.
20448
20449 * xterm.c (x_get_font_repertory): Handle the case that the
20450 encoding of font is other than Unicode.
20451
204522008-02-01 Kenichi Handa <handa@m17n.org>
20453
20454 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20455 if a character is encodable by the terminal coding system. If
20456 not, produces proper number of `?'s. Update
20457 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20458 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20459
204602008-02-01 Kenichi Handa <handa@m17n.org>
20461
20462 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20463 variables.
20464 (encode_terminal_code): Change argument. Encode multiple
20465 characters at once. Store the result of encoding in
20466 terminal_encode_buffer.
20467 (write_glyphs, insert_glyphs): Adjust for the change of
20468 encode_terminal_code.
20469 (term_init): Initialize terminal_encode_buffer and
20470 terminal_encode_buf_size.
20471
20472 * coding.c (consume_chars): If coding->src_object is nil, don't
20473 check annotation.
20474
204752008-02-01 Kenichi Handa <handa@m17n.org>
20476
20477 * character.c (char_string): Use ASCII_CHAR_P instead of
20478 SINGLE_BYTE_CHAR_P.
20479
204802008-02-01 Kenichi Handa <handa@m17n.org>
20481
20482 * xdisp.c (handle_auto_composed_prop): Check if the last
20483 characters of auto-composed region is newly composed with the
20484 following characters.
20485 (handle_composition_prop): Fix checking of point being inside
20486 composition.
20487
204882008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * fns.c (concat): Don't change multibyteness of the result by
20491 concatenating an 8-bit character.
20492
20493 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20494 multibyteness of the result when newelt is an 8-bit character.
20495
204962008-02-01 Dave Love <fx@gnu.org>
20497
20498 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20499 EMACS_INT.
20500
20501 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20502
20503 * xfaces.c (face_numeric_value): Declare dim size_t.
20504 (Finternal_lisp_face_equal_p): Remove unused f.
20505
20506 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20507 (MATRIX_ROW): Remove unused vars.
20508 (draw_glyphs, x_insert_glyphs, fast_find_position)
20509 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20510 byte/char counts.
20511
20512 * regex.c (regex_compile): Remove unused var.
20513
20514 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20515
20516 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20517 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20518
20519 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20520
20521 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20522
20523 * fileio.c (Fwrite_region): Remove unused var.
20524
20525 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20526 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20527
20528 * composite.c (Fremove_list_of_text_properties): Declare.
20529
20530 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20531 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20532 (coding_inherit_eol_type): Remove unused attrs.
20533 (detect_coding): Cast arg of detect_eol.
20534
20535 * charset.c (syms_of_charset): Remove unused var p.
20536 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20537 byte/char counts.
20538
20539 * casetab.c (set_case_table): Remove unused var.
20540
20541 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20542 unused vars.
20543
205442008-02-01 Dave Love <fx@gnu.org>
20545
20546 * xterm.c (x_bitmap_mask): Declare.
20547
205482008-02-01 Dave Love <fx@gnu.org>
20549
20550 * xterm.c (x_term_init): Fix type error.
20551
20552 * lisp.h: Add Funibyte_char_to_multibyte.
20553
20554 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20555 (Fset_coding_system_priority): Doc fix.
20556
20557 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20558
20559 * indent.c (check_composition): Make start and end EMACS_INT.
20560
20561 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20562
20563 * xdisp.c (handle_composition_prop, check_point_in_composition):
20564 Make buffer positions EMACS_INT.
20565
20566 * composite.c (find_composition, run_composition_function)
20567 (update_compositions, Ffind_composition_internal): Make buffer
20568 positions EMACS_INT.
20569
20570 * composite.h (find_composition, update_compositions): Make
20571 position args EMACS_INT.
20572
20573 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20574
20575 * intervals.c (get_property_and_range):
20576 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20577
20578 * unexalpha.c: Don't include varargs.h.
20579
205802008-02-01 Dave Love <fx@gnu.org>
20581
20582 * coding.h (ENCODE_UTF_8): New.
20583
20584 * Makefile.in (gtkutil.o): Depend on coding.h.
20585
20586 * coding.c (Fset_coding_system_priority): Doc fix.
20587
205882008-02-01 Kenichi Handa <handa@m17n.org>
20589
20590 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20591 the case of auto saving.
20592
205932008-02-01 Andreas Schwab <schwab@suse.de>
20594
20595 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20596 `range' from GC.
20597
205982008-02-01 Kenichi Handa <handa@m17n.org>
20599
20600 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * fileio.c (choose_write_coding_system): Return a decided coding system.
20605 (Fwrite_region): Set Vlast_coding_system_used to the return value
20606 of choose_write_coding_system.
20607
206082008-02-01 Kenichi Handa <handa@m17n.org>
20609
20610 * charset.c (Fset_charset_priority): Pay attention to duplicated
20611 arguments.
20612
20613 * coding.c (QCcategory): New variable.
20614 (syms_of_coding): Defsym it. Set all elements of
20615 Vcoding_category_table and their symbol values.
20616 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20617 coding-category-XXX, and coding-category-list.
20618 (Fdefine_coding_system_internal): Add category in the plist.
20619
206202008-02-01 Kenichi Handa <handa@m17n.org>
20621
20622 * callproc.c (Fcall_process): Handle carryover correctly.
20623
20624 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20625 (raw_text_coding_system): Check NILP (coding_system).
20626 (coding_inherit_eol_type): Check NILP (coding_system) and
20627 NILP (parent).
20628 (consume_chars): Fix for the case of raw-text.
20629
20630 * process.c (read_process_output): Handle carryover correctly.
20631
206322008-02-01 Dave Love <fx@gnu.org>
20633
20634 * regex.c (re_search_2): Fix last change.
20635
206362008-02-01 Kenichi Handa <handa@m17n.org>
20637
20638 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20639 target_multibyte. Even in a unibyte case, return a converted
20640 multibyte char.
20641 (GET_CHAR_AFTER): New macro.
20642 (PATFETCH): Translate via multibyte char.
20643 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20644 (SETUP_MULTIBYTE_RANGE): New macro.
20645 (regex_compile): Setup compiled code so that its multibyteness
20646 matches that of a target. Fix the handling of "[X-YZ]" using
20647 SETUP_MULTIBYTE_RANGE.
20648 (analyse_first) <charset>: For filling fastmap for all multibyte
20649 characters, don't check by BASE_LEADING_CODE_P.
20650 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20651 the same as RE_MULTIBYTE_P (bufp) now.
20652 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20653 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20654 (TRANSLATE_VIA_MULTIBYTE): New macro.
20655 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20656 It is the same as RE_MULTIBYTE_P (bufp) now.
20657 <exactn>: Translate via multibyte.
20658 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20659 translate it.
20660 <charset, charset_not>: Fetch a character by
20661 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20662 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20663 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20664 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20665 by GET_CHAR_AFTER.
20666 (bcmp_translate): Likewise.
20667
20668 * search.c (compile_pattern): Check the member target_multibyte,
20669 not the member multibyte of buf.
20670
20671 * lread.c (read1): While reading a string, set force_singlebyte
20672 and force_multibyte correctly.
20673
20674 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20675 up of unibyte_to_multibyte_table.
20676
206772008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * coding.c (setup_coding_system): If coding has
20680 post-read-conversion or pre-write-conversion, set
20681 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20682 respectively.
20683 (decode_coding_gap): Run post-read-conversion if any.
20684
20685 * fileio.c (Finsert_file_contents): Even if we read into a
20686 unibyte buffer, check if we must decode the result or not.
20687
206882008-02-01 Kenichi Handa <handa@m17n.org>
20689
20690 * coding.c (make_conversion_work_buffer): Change the work buffer
20691 name to the same one as that of Emacs 21.
20692
206932008-02-01 Kenichi Handa <handa@m17n.org>
20694
20695 * coding.h (make_conversion_work_buffer): Adjust prototype.
20696 (code_conversion_restore): Don't extern it.
20697
20698 * coding.c (detected_mask): Delete unused variable.
20699 (decode_coding_iso_2022): Pay attention to the byte sequence of
20700 CTEXT extended segment, and retain those bytes as is.
20701 (decode_coding_ccl): Delete unused variable `valids'.
20702 (setup_coding_system): Delete unused variable `category'.
20703 (consume_chars): Delete unused variable `category'. Make it work
20704 for non-multibyte case.
20705 (make_conversion_work_buffer): Change argument.
20706 (saved_coding): Delete unused variable.
20707 (code_conversion_restore): Don't check saved_coding->destination.
20708 (code_conversion_save): New function.
20709 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20710 instead of record_unwind_protect.
20711 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20712 (detect_coding_system): Delete unused variable `mask'.
20713 (Fdefine_coding_system_internal): Delete unused variable id.
20714
20715 * fileio.c (kill_workbuf_unwind): New function.
20716 (Finsert_file_contents): On replacing, call
20717 make_conversion_work_buffer with correct args, and call
20718 record_unwind_protect with the first arg kill_workbuf_unwind.
20719
20720 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20721
207222008-02-01 Kenichi Handa <handa@m17n.org>
20723
20724 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20725 (fontset_add): Fix for the case that TO is less than TO1.
20726 (Ffontset_info): Don't use fallback fontset on checking the
20727 default fontset.
20728 (dump_fontset): New function for debugging.
20729
20730 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20731 coding_type is Qcharset.
20732
207332008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20736 (map_char_table): Don't inherit the value from the parent on
20737 initializing VAL. Adjust for the above change.
20738
207392008-02-01 Kenichi Handa <handa@m17n.org>
20740
20741 * coding.c (Qsignature, Qendian): Delete these variables.
20742 (syms_of_coding): Don't initialize them.
20743 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20744 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20745 detect_info->found.
20746 (decode_coding_utf_16): Don't detect BOM here.
20747 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20748 is NOT utf_16_without_bom.
20749 (setup_coding_system): For a coding system of type utf-16, check
20750 if the attribute :endian is Qbig or not (not nil or not), and set
20751 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20752 (detect_coding): If coding type is utf-16 and BOM detection is
20753 required, detect it.
20754 (Fdefine_coding_system_internal): For a coding system of type
20755 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20756
207572008-02-01 Kenichi Handa <handa@m17n.org>
20758
20759 * coding.c (coding_set_source): Fix for the case that the current
20760 buffer is different from coding->src_object.
20761 (decode_coding_object): Don't use the conversion work buffer if
20762 DST_OBJECT is a buffer.
20763
207642008-02-01 Dave Love <fx@gnu.org>
20765
20766 * lread.c (read_emacs_mule_char) [len==2]: Index
20767 emacs_mule_charset correctly.
20768
207692008-02-01 Dave Love <fx@gnu.org>
20770
20771 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20772 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20773 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20774 treated specially.)
20775 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20776 (detected_mask): Remove Big5 bits.
20777
207782008-02-01 Kenichi Handa <handa@m17n.org>
20779
20780 The following changes are to make the font rescaling facility
20781 compatible with Emacs 21.
20782
20783 * xfaces.c (Vface_font_rescale_alist): Rename from
20784 Vface_resizing_fonts.
20785 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20786 (font_rescale_ratio): Rename from font_resizing_ratio.
20787 (split_font_name): Set font->rescale_ratio.
20788 (better_font_p): Pay attention to font->rescale_ratio.
20789 (build_scalable_font_name): Likewise. Change RESX, and RESY
20790 fields.
20791 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20792
207932008-02-01 Kenichi Handa <handa@m17n.org>
20794
20795 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20796 (Qutf_16_le): Remove these variables.
20797 (syms_of_coding): Don't DEFSYM them.
20798 (decode_coding_utf_16): Fix handling of BOM.
20799 (encode_coding_utf_16): Fix handling of BOM.
20800
208012008-02-01 Kenichi Handa <handa@m17n.org>
20802
20803 * fileio.c (Finsert_file_contents): On replacing, before decoding
20804 the file into the work buffer, set point of the work buffer to the end.
20805
208062008-02-01 Dave Love <fx@gnu.org>
20807
20808 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20809
208102008-02-01 Dave Love <fx@gnu.org>
20811
20812 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20813 and fix C types.
20814
208152008-02-01 Kenichi Handa <handa@m17n.org>
20816
20817 * xdisp.c (SKIP_GLYPHS): New macro.
20818 (set_cursor_from_row): Pay attention to string display properties.
20819
20820 * category.c (copy_category_entry): Fix for the case that RANGE
20821 is an integer.
20822
20823 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20824
20825 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20826
208272008-02-01 Kenichi Handa <handa@m17n.org>
20828
20829 * charset.c (Fcharset_id_internal): New function.
20830 (syms_of_charset): Defsubr it.
20831
20832 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20833 with the last arg charset_list acquired from coding.
20834 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20835 the attribute coding_attr_ccl_valids.
20836
20837 * coding.h (enum define_coding_ccl_arg_index): Set the first
20838 member coding_arg_ccl_decoder to coding_arg_max.
20839
20840 * ccl.h (ccl_driver): Adjust prototype.
20841
20842 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20843 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20844 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20845 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20846 last arg Qnil.
20847
208482008-02-01 Kenichi Handa <handa@m17n.org>
20849
20850 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20851 call encode_char.
20852
20853 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20854
208552008-02-01 Dave Love <fx@gnu.org>
20856
20857 * composite.c (syms_of_composite): Make composition_hash_table weak.
20858
208592008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20862 (font_name_registry): Don't extern them.
20863 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20864
20865 * fontset.h (Qfontset): Don't extern it.
20866 (new_fontset_from_font_name): Extern it.
20867
20868 * fontset.c: Give 8 extra slots to fontset objects.
20869 (Qfontset_info): New variable.
20870 (syms_of_fontset): Defsym it.
20871 (FONTSET_FALLBACK): New macro.
20872 (fontset_face): Try also the default fontset.
20873 (make_fontset): Realize a fallback fontset from the default fontset.
20874 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20875 using split_font_name_into_vector and build_font_name_from_vector.
20876 (Fset_fontset_font): Access the elements of font_spec by enum
20877 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20878 name by using split_font_name_into_vector.
20879 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20880 generate a proper font name from the fontset name. Update
20881 Vfontset_alias_alist.
20882 (n_auto_fontsets): New variable.
20883 (new_fontset_from_font_name): New function.
20884 (Ffont_info): Store the information about fonts generated from the
20885 default fontset in the first extra slot of the returned char-table.
20886
20887 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20888 (font_name_registry): Delete function.
20889 (split_font_name_into_vector): New function.
20890 (build_font_name_from_vector): New function.
20891 (font_list): The argument REGISTRY is now a list of registry names.
20892 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20893 specifies an explicit font name, return the name as is. Make a
20894 list of registy names.
20895
20896 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20897 of x_new_fontset.
20898 (Fx_create_frame): Don't call x_new_fontset here. Just use
20899 x_list_fonts to check the existence of fonts.
20900
20901 * xterm.h (x_new_fontset): Adjust prototype.
20902
20903 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20904 string. Use new_fontset_from_font_name to create a fontset from a
20905 font name.
20906
209072008-02-01 Kenichi Handa <handa@m17n.org>
20908
20909 * syntax.c (Vfind_word_boundary_function_table): New name for
20910 Vnext_word_boundary_function_table.
20911 (find-word-boundary-function-table): New name for
20912 next-word-boundary-function-table.
20913
209142008-02-01 Dave Love <fx@gnu.org>
20915
20916 * Makefile.in: Fix some dependencies.
20917
20918 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20919 set it to nil before returning.
20920
20921 * composite.c (update_compositions): Fix type error.
20922
20923 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20924
209252008-02-01 Kenichi Handa <handa@m17n.org>
20926
20927 * xterm.c (x_new_font): Optimize for the case that the font is
20928 already set for the frame.
20929
209302008-02-01 Kenichi Handa <handa@m17n.org>
20931
20932 * chartab.c (char_table_ascii): Check if the char table contents
20933 is sub-char-table or not.
20934 (char_table_set, char_table_set_range): Fix argument to
20935 char_table_ascii.
20936
20937 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20938 (detect_coding_utf_8, detect_coding_utf_16)
20939 (detect_coding_emacs_mule, detect_coding_iso_2022)
20940 (detect_coding_sjis, detect_coding_big5)
20941 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20942 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20943 sequence is valid in this coding system. Change callers.
20944 (MAX_ANNOTATION_LENGTH): New macro.
20945 (ADD_ANNOTATION_DATA): New macro.
20946 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20947 ADD_ANNOTATION_DATA. Change the format of annotation data.
20948 (ADD_CHARSET_DATA): New macro.
20949 (emacs_mule_char): New argument ID. Change callers.
20950 (decode_coding_emacs_mule, decode_coding_iso_2022)
20951 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20952 Produce charset annotation data in coding->charbuf.
20953 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20954 to charset annotation data in coding->charbuf.
20955 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20956 coding->common_flags if the coding system is iso-2022 based and
20957 uses designation.
20958 (produce_composition): Adjust for the new annotation data format.
20959 (produce_charset): New function.
20960 (produce_annotation): Handle charset annotation.
20961 (handle_composition_annotation, handle_charset_annotation): New
20962 functions.
20963 (consume_chars): Handle charset annotation. Utilize the above two
20964 functions.
20965 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20966 buffer, get the deleted text as a string and set
20967 coding->src_object to that string.
20968 (detect_coding, detect_coding_system): Use the new struct
20969 coding_detection_info.
20970
20971 * coding.h (struct coding_detection_info): New structure.
20972 (struct coding_system): Adjust prototype of the member `detector'.
20973 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20974
209752008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20978
209792008-02-01 Dave Love <fx@gnu.org>
20980
20981 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20982 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20983 to new local and nullify apropos_accumulate before returning.
20984 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20985
209862008-02-01 Kenichi Handa <handa@m17n.org>
20987
20988 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20989 correctly.
e3eea1fc 20990
aac0c6e3
MR
209912008-02-01 Dave Love <fx@gnu.org>
20992
20993 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20994
209952008-02-01 Kenichi Handa <handa@m17n.org>
20996
20997 The following changes are to make character composition happen
20998 automatically on displaying.
20999
21000 * Makefile.in (lisp, shortlisp): Add composite.elc.
21001
21002 * composite.h (Qauto_composed, Vauto_composition_function)
21003 (Qauto_composition_function): Extern them.
21004
21005 * composite.c (Vcomposition_function_table)
21006 (Qcomposition_function_table): Delete variables.
21007 (Qauto_composed, Vauto_composition_function)
21008 (Qauto_composition_function): New variables.
21009 (run_composition_function): Don't call
21010 compose-chars-after-function.
21011 (update_compositions): Clear `auto-composed' text property.
21012 (compose_chars_in_text): Delete this function.
21013 (syms_of_composite): Staticpro Qauto_composed and
21014 Qauto_composition_function. Declare Vauto_composition_function as
21015 a Lisp variable.
21016
21017 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21018
21019 * xdisp.c (it_props): Add an entry for Qauto_composed.
21020 (handle_auto_composed_prop): New function.
21021
21022 * xselect.c (selection_data_to_lisp_data): Don't call
21023 compose_chars_in_text.
21024
210252008-02-01 Dave Love <fx@gnu.org>
21026
21027 * keyboard.c (read_char): Modify checking around use of
21028 Vkeyboard_translate_table.
21029
21030 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21031 and fix C types.
21032
210332008-02-01 Kenichi Handa <handa@m17n.org>
21034
21035 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21036 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21037 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21038 the case that the last byte is '\r' correctly.
21039 (decode_coding): Flush out the unprocessed data correctly.
21040 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21041
210422008-02-01 Dave Love <fx@gnu.org>
21043
21044 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21045 Add XK_ISO... case.
21046 (xaw_scroll_callback): Revert last change.
21047
210482008-02-01 Kenichi Handa <handa@m17n.org>
21049
21050 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21051
210522008-02-01 Kenichi Handa <handa@m17n.org>
21053
21054 * xfaces.c (Vface_resizing_fonts): New variable.
21055 (struct font_name): New member `resizing_ratio'.
21056 (font_resizing_ratio): New function.
21057 (split_font_name): Set font->resizing_ratio.
21058 (better_font_p): Pay attention to font->resizing_ratio.
21059 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21060 RESX, and RESY fields.
21061 (try_alternative_families): Try scalable fonts if
21062 Vscalable_fonts_allowed is not Qt.
21063 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21064
210652008-02-01 Dave Love <fx@gnu.org>
21066
21067 * xterm.c (xaw_scroll_callback): Cast correctly.
21068
210692008-02-01 Dave Love <fx@gnu.org>
21070
21071 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21072 (lispy_kana_keys): Comment out.
21073 (make_lispy_event) [XK_kana_A]: Comment out.
21074
21075 * xterm.c (xaw_scroll_callback): Cast call_data.
21076 (XTread_socket): Deal with ASCII keysyms.
21077 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21078
210792008-02-01 Dave Love <fx@gnu.org>
21080
21081 * xterm.c (Vx_keysym_table): New.
21082 (syms_of_xterm): Initialize it.
21083 (XTread_socket): Use it.
21084 From head: Eliminate incorrect optimization that tried to avoid
21085 decoding the output of X*LookupString.
21086 (x_get_font_repertory): Delete charset declaration.
21087
210882008-02-01 Kenichi Handa <handa@m17n.org>
21089
21090 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21091 return 0.
21092 (Fdefine_coding_system_internal): Setup
21093 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21094
210952008-02-01 Dave Love <fx@gnu.org>
21096
21097 * coding.c (Fcheck_coding_system): Doc fix.
21098
21099 * editfns.c (Finsert_byte): Return a proper value.
21100
211012008-02-01 Kenichi Handa <handa@m17n.org>
21102
21103 * coding.c (decode_coding): Fix args to translate_chars. Pay
21104 attention to Vstandard_translation_table_for_decode.
21105 (encode_coding): Fix args to translate_chars. Pay attention to
21106 Vstandard_translation_table_for_encode.
21107
21108 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21109 SINGLE_BYTE_CHAR_P.
21110
21111 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21112 not by SINGLE_BYTE_CHAR_P.
21113
21114 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21115 SINGLE_BYTE_CHAR_P.
21116
21117 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21118 SINGLE_BYTE_CHAR_P.
21119
21120 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21121 by SINGLE_BYTE_CHAR_P.
21122
21123 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21124 SINGLE_BYTE_CHAR_P.
21125
211262008-02-01 Dave Love <fx@gnu.org>
21127
21128 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21129
211302008-02-01 Dave Love <fx@gnu.org>
21131
21132 * fns.c (Flanginfo): Fix typo.
21133
21134 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21135
211362008-02-01 Kenichi Handa <handa@m17n.org>
21137
21138 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21139 (detect_coding_emacs_mule, detect_coding_iso_2022)
21140 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21141 incomplete byte sequence. Don't update *mask when correctly detected.
21142 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21143 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21144 (detect_coding, detect_coding_system): Adjust for the changes above.
21145
211462008-02-01 Kenichi Handa <handa@m17n.org>
21147
21148 * character.c (char_string): Rename from
21149 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21150 (string_char): Rename from string_char.
21151
21152 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21153 if C is greater than MAX_3_BYTE_CHAR.
21154 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21155 string_char instead of string_char_with_unification.
21156
211572008-02-01 Dave Love <fx@gnu.org>
21158
21159 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21160
211612008-02-01 Kenichi Handa <handa@m17n.org>
21162
21163 * keymap.c (push_key_description): Pay attention to force_multibyte.
21164
21165 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21166
211672008-02-01 Dave Love <fx@gnu.org>
21168
21169 * charset.c (define_charset_internal): Rename `supprementary'.
21170
21171 * Makefile.in (lisp, shortlisp): Remove latin-N.
21172
211732008-02-01 Dave Love <fx@gnu.org>
21174
21175 * xfns.c (x_window, x_window): Use use_xim.
21176
21177 * xterm.c (use_xim): Initialize.
21178 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21179 (x_term_init): Maybe set use_xim.
21180
21181 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21182
211832008-02-01 Kenichi Handa <handa@m17n.org>
21184
21185 * search.c (search_buffer): Fix case-fold-search of multibyte
21186 characters.
21187 (boyer_moore): Rename the last argument to char_high_bits.
21188
211892008-02-01 Kenichi Handa <handa@m17n.org>
21190
21191 * xdisp.c (display_string): Fix for the case of zero width glyph.
21192
21193 * xfns.c (x_set_font): Change the error message of the case that
21194 x_new_fontset returns Qt.
21195
21196 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21197 (Finternal_set_lisp_face_attribute): Use signal_error for the
21198 error of invalid fontset.
21199
21200 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21201 fontset, return Qt.
21202
212032008-02-01 Dave Love <fx@gnu.org>
21204
21205 * unexelf.c (unexec): Make .got handling not SGI-specific.
21206
21207 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21208
21209 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21210
21211 * keyboard.c (read_key_sequence): Fix type error.
21212
21213 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21214 type error.
21215
21216 * fontset.c (fontset_add): Return Lisp_Object.
21217
212182008-02-01 Dave Love <fx@gnu.org>
21219
21220 * charset.h (charset_ordered_list_tick): Declare extern.
21221
212222008-02-01 Kenichi Handa <handa@m17n.org>
21223
21224 The following changes (and some of 2008-02-01 changes of mine) are
21225 for handling syntax, category, and case conversion for unibyte
21226 characters by converting them to multibyte on the fly. With these
21227 changes, we don't have to setup syntax and case tables for unibyte
21228 characters in each language environment.
21229
21230 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21231 multibyte if necessary.
21232
21233 * bytecode.c (Fbyte_code): Likewise.
21234
21235 * character.h (LEADING_CODE_LATIN_1_MIN)
21236 (LEADING_CODE_LATIN_1_MAX): New macros.
21237 (unibyte_to_multibyte_table): Extern it.
21238 (unibyte_char_to_multibyte): New macro.
21239 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21240 (CHAR_LEADING_CODE): New macro.
21241 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21242
21243 * character.c (unibyte_to_multibyte_table): New variable.
21244 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21245 (multibyte_char_to_unibyte): If C is an eight-bit character,
21246 convert it to the corresponding byte value.
21247
21248 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21249 not 1, signals an error. Update the elements of
21250 unibyte_to_multibyte_table.
21251 (init_charset_once): Initialize unibyte_to_multibyte_table.
21252 (syms_of_charset): Define the charset `iso-8859-1'.
21253
21254 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21255 as is without converting it to unibyte. In a unibyte buffer,
21256 convert C to multibyte before checking the syntax.
21257
21258 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21259
21260 * minibuf.c (Fminibuffer_complete_word): Use the macro
21261 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21262
21263 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21264
21265 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21266 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21267 that is zero, convert an eight-bit char to multibyte.
21268 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21269 non-emacs case.
21270 (PATFETCH): Convert an eight-bit char to multibyte.
21271 (HANDLE_UNIBYTE_RANGE): New macro.
21272 (regex_compile): Setup the compiled pattern for multibyte chars
21273 even if the given regex string is unibyte. Use PATFETCH_RAW
21274 instead of PATFETCH in many places. To handle `charset'
21275 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21276 only for ASCII chars.
21277 (analyse_first) <exactn>: Simplify because the compiled pattern
21278 is multibyte.
21279 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21280 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21281 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21282 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21283 multibyte always 1.
21284 (re_search_2): In emacs, set the locale variable multibyte to 1,
21285 otherwise to 0. New local variable target_multibyte. Check it
21286 to decide the multibyteness of STR1 and STR2. If
21287 target_multibyte is zero, convert unibyte chars to multibyte
21288 before translating and checking fastmap.
21289 (TARGET_CHAR_AND_LENGTH): New macro.
21290 (re_match_2_internal): In emacs, set the locale variable multibyte
21291 to 1, otherwise to 0. New local variable target_multibyte. Check
21292 it to decide the multibyteness of STR1 and STR2. Use
21293 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21294 <charset, charset_not>: If multibyte is nonzero, check fastmap
21295 only for ASCII chars. Call bcmp_translate with
21296 target_multibyte, not with multibyte.
21297 <begline>: Declare the local variable C as `unsigned'.
21298 (bcmp_translate): Change the last arg name to target_multibyte.
21299
21300 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21301 the regexp pattern and the matching target. Set cp->buf.multibyte
21302 to the multibyteness of the regexp pattern. Set
21303 cp->but.target_multibyte to the multibyteness of the matching target.
21304 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21305 FETCH_STRING_CHAR_ADVANCE.
21306 (Freplace_match): Convert unibyte chars to multibyte.
21307
21308 * syntax.c (char_quoted, back_comment, scan_words)
21309 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21310 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21311 unibyte chars to multibyte.
21312 (skip_chars): Delete the arg syntaxp, and move the code for
21313 handling syntaxes to skip_syntaxes. Change callers.
21314 Fix the case that the multibyteness of STRING and the current
21315 buffer doesn't match.
21316 (skip_syntaxes): New function.
21317 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21318 SINGLE_BYTE_CHAR_P.
21319
213202008-02-01 Kenichi Handa <handa@m17n.org>
21321
21322 * xfaces.c (QCfontset): New variable.
21323 (LFACE_FONTSET): New macro.
21324 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21325 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21326 (Finternal_set_lisp_face_attribute)
21327 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21328 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21329 check also LFACE_FONTSET_INDEX.
21330 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21331 attrs[LFACE_FONT_INDEX].
21332 (syms_of_xfaces): Intern and staticpro QCfontset.
21333
21334 * dispextern.h (enum lface_attribute_index): New member
21335 LFACE_FONTSET_INDEX.
21336
21337 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21338
213392008-02-01 Kenichi Handa <handa@m17n.org>
21340
21341 * coding.c (coding_set_destination): Fix coding->destination for
21342 the case converting a region.
21343 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21344 (encode_coding_object): Fix coding->dst_pos and
21345 coding->dst_pos_byte for the case converting a region.
21346
21347 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21348
21349 * character.h (BYTE8_STRING): New macro.
21350
21351 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21352
213532008-02-01 Kenichi Handa <handa@m17n.org>
21354
21355 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21356 characters by octal form.
21357
21358 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21359
21360 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21361 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21362 _fetch_multibyte_char_len.
21363 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21364
21365 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21366
21367 * casefiddle.c (casify_object): Simplify. Handle the case that
21368 the case conversion change the byte length.
21369 (casify_region): Likewise.
21370
21371 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21372
21373 * character.c (_fetch_multibyte_char_len): Delete this variable.
21374 (syms_of_character): Setup Vprintable_chars.
21375
21376 * editfns.c (Fchar_equal): Fix for the unibyte case.
21377 (Finsert_byte): New function.
21378 (syms_of_editfns): Defsubr it.
21379
21380 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21381 of direct code 0x3ffff.
21382
21383 * search.c (Freplace_match): Fix for the unibyte case.
21384
213852008-02-01 Kenichi Handa <handa@m17n.org>
21386
21387 * lread.c (safe_to_load_p): Fix the logic.
21388
21389 * syntax.c (scan_words): Don't treat characters belonging to
21390 different scripts as constituting a word.
21391
21392 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21393
21394 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21395
21396 * emacs.c (main): In the case of --unibyte, instead of aborting on
21397 finding non-empty buffer, make it unibyte.
21398
213992008-02-01 Kenichi Handa <handa@m17n.org>
21400
21401 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21402 to create a fontset.
21403
214042008-02-01 Dave Love <fx@gnu.org>
21405
21406 * character.c (Funibyte_char_to_multibyte): Doc fix.
21407
21408 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21409
214102008-02-01 Kenichi Handa <handa@m17n.org>
21411
21412 * fontset.c (fontset_add): Make the type `int'.
21413 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21414
21415 * character.c (unibyte_char_to_multibyte)
21416 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21417 charset_unibyte, not charset_primary.
21418
21419 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21420
21421 * charset.c (charset_unibyte): Rename from charset_primary.
21422 (Funibyte_charset): Rename from Fprimary_charset.
21423 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21424 (syms_of_charset): Adjust for the above changes.
21425
21426 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21427 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21428 it->multibyte_p is zero.
21429
21430 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21431 Delete extern.
21432
214332008-02-01 Kenichi Handa <handa@m17n.org>
21434
21435 * coding.c (Fdefine_coding_system_internal): Fix category setting
21436 for a coding system of type iso-2022.
21437
214382008-02-01 Kenichi Handa <handa@m17n.org>
21439
21440 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21441
214422008-02-01 Kenichi Handa <handa@m17n.org>
21443
21444 * syntax.c (Vnext_word_boundary_function_table): New variable.
21445 (next-word-boundary-function-table): Declare it as a Lisp variable
21446 in syms_of_syntax.
21447 (scan_words): Call functions in Vnext_word_boundary_function_table
21448 if any.
21449
21450 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21451
21452 * fontset.c (fs_load_font): If fontp->charset is not negative,
21453 return fontp without setting its members.
21454
214552008-02-01 Dave Love <fx@gnu.org>
21456
21457 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21458
21459 * m/sparc.h (HAVE_ALLOCA): Delete.
21460
21461 * s/irix6-5.h: Don't include strings.h.
21462 (bcopy, bzero, bcmp): Don't undef.
21463
21464 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21465
21466 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21467 (TIOCSIGSEND): Don't test IRIX6.
21468 (bcopy, bzero, bcmp): Define conditionally.
21469
214702008-02-01 Kenichi Handa <handa@m17n.org>
21471
21472 * buffer.c (Qas, Qmake, Qto): New variables.
21473 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21474 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21475
21476 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21477 we are inserting a process output into a multibyte buffer.
21478
21479 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21480 multibyte_char_to_unibyte.
21481
21482 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21483 by the primary charset, make it eight-bit char.
21484 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21485
21486 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21487 (charset_8_bit__control, charset_8_bit_graphic)
21488 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21489 (define_charset_internal): New function.
21490 (syms_of_charset): Call define_charset_internal for pre-defined
21491 charsets.
21492
21493 * charset.h (charset_8_bit): Extern it.
21494
21495 * coding.c (make_conversion_work_buffer): Adjust for the change
21496 of Fset_buffer_multibyte.
21497 (encode_coding_raw_text): Increment p0 in the loop.
21498
21499 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21500
21501 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21502 for the change of Fset_buffer_multibyte.
21503
21504 * fns.c (Fstring_to_multibyte): New function.
21505 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21506
215072008-02-01 Dave Love <fx@gnu.org>
21508
21509 * xfns.c (x_put_x_image): Declare args.
21510
21511 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21512 (try_font_list): Declare an arg.
21513
21514 * xdisp.c (message2_nolog, set_message): Declare an arg.
21515
21516 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21517
21518 * syntax.c (scan_sexps_forward): Declare an arg.
21519
21520 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21521 Declare an arg.
21522
21523 * lisp.h (Fnew_fontset): Declare.
21524
21525 * keymap.c (push_key_description): Call CHARACTERP correctly.
21526
21527 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21528 (face_for_char): Delete unused vars.
21529 (Fset_fontset_font): Doc fix. Delete unused vars.
21530
21531 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21532
21533 * composite.c (update_compositions): Declare arg.
21534
21535 * cm.c (calccost, cmgoto): Declare args.
21536
21537 * charset.c: Remove `emacs' conditional. Doc fixes.
21538 (map_char_table_for_charset): Declare.
21539
21540 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21541
21542 * ccl.c: Remove `emacs' conditional.
21543
215442008-02-01 Kenichi Handa <handa@m17n.org>
21545
21546 The following changes are to allow specifying multiple font
21547 patterns for a character range (specified by script or charset).
21548
21549 * Makefile.in (abbrev.o): Depend on syntax.h.
21550 (xfaces.o): Depend on charset.h.
21551
21552 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21553 SINGLE_BYTE_CHAR_P.
21554
21555 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21556
21557 * character.h (Vchar_script_table): Extern it.
21558
21559 * character.c (Vscript_alist): Delete.
21560 (Vchar_script_table, Qchar_script_table): New variable.
21561 (syms_of_character): Declare Vchar_script_table as a lisp variable
21562 and initialize it.
21563
21564 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21565 have property char-table-extra-slots, make no extra slot.
21566
21567 * dispextern.h (struct face): Delete member `charset'.
21568 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21569 SINGLE_BYTE_CHAR_P.
21570 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21571 Add prototypes.
21572 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21573 (generate_ascii_font_name): Rename from generate_ascii_font.
21574
21575 * fontset.h (get_font_repertory_func): New prototype.
21576 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21577 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21578
21579 * fontset.c (Qprepend, Qappend): New variables.
21580 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21581 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21582 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21583 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21584 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21585 (load_font_get_repertory): New functions.
21586 (fontset_set): Delete.
21587 (fontset_face): New arg FACE. Return face ID, not face.
21588 Complete re-write to handle new fontset structure. Change caller.
21589 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21590 (face_for_char): Don't call lookup_face.
21591 (make_fontset_for_ascii_face): New arg FACE.
21592 (fs_load_font): New arg CHARSET_ID. Don't check
21593 Vfont_encoding_alist here.
21594 (find_font_encoding): New function.
21595 (list_fontsets): Use STRINGP, not ! NILP.
21596 (accumulate_script_ranges): New function.
21597 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21598 re-written to handle new fontset structure.
21599 (Ffontset_font): Return a copy of element.
21600 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21601 docstring of font-encoding-alist.
21602
21603 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21604 (Fset_fotset_font): Fix arguments to 5.
21605
21606 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21607
21608 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21609 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21610 (highlight_trailing_whitespace): Adjust for the change of
21611 lookup_named_face.
21612
21613 * xfaces.c: Include charset.h.
21614 (load_face_font): Delete argument C. Change caller.
21615 (generate_ascii_font_name): Rename from generate_ascii_font.
21616 (font_name_registry): New function.
21617 (cache_face): Store ascii faces before non-ascii faces in buckets.
21618 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21619 Lookup only ascii faces.
21620 (lookup_non_ascii_face): New function.
21621 (lookup_named_face): Delete argument C. Change caller.
21622 (lookup_derived_face): Delete argument C. Change caller.
21623 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21624 a string, just call font_list with it.
21625 (choose_face_font): Delete arguments FACE and C. New arg
21626 FONT_SPEC. Change caller.
21627 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21628 Change caller.
21629 (realize_non_ascii_face): New function.
21630 (realize_x_face): Call load_face_font here.
21631 (realize_tty_face): Delete argument C. Change caller.
21632 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21633 get a face ID.
21634 (dump_realized_face): Don't print charset of FACE.
21635
21636 * xfns.c (x_set_font): Always call x_new_fontset and
21637 store_frame_parameter.
21638 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21639 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21640
21641 * xterm.h (x_get_font_repertory): Extern it.
21642
21643 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21644 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21645 it->multibyte_p is zero.
21646 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21647 (x_new_fontset): If FONTSETNAME doesn't match any existing
21648 fontsets, create a new one.
21649 (x_get_font_repertory): New function.
21650
216512008-02-01 Kenichi Handa <handa@m17n.org>
21652
21653 * coding.c (Ffind_coding_systems_region_internal): Detect an
21654 ASCII only string correctly.
21655
21656 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21657 version is 0.
21658
216592008-02-01 Kenichi Handa <handa@m17n.org>
21660
21661 * lread.c: Include "coding.h".
21662 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21663 (load_each_byte, unread_char): New variables.
21664 (readchar_backlog): Delete.
21665 (readchar): Return a character unless load_each_byte is nonzero.
21666 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21667 cons. If unread_char is not -1, simply return it.
21668 (unreadchar): Handle the case that readcharfun is
21669 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21670 (read_multibyte): Delete.
21671 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21672 (read_emacs_mule_char): New functions.
21673 (Fload): Even if the file doesn't have the extension ".elc", if
21674 safe_to_load_p returns a positive version number, assume that the
21675 file contains bytecompiled code. If the version is less than 22,
21676 load the file while decoding multibyte sequences by emacs-mule.
21677 (readevalloop): Don't use readchar_backlog.
21678 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21679 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21680 (read_escape): Delete the arg BYTEREP.
21681 (read1): Set load_each_byte to 1 temporarily while handling
21682 #@NUMBER. Don't call read_multibyte.
21683 (read_vector): Call Fread with a cons. If readcharfun is
21684 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21685 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21686 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21687 and Qload_force_doc_strings.
21688
216892008-02-01 Kenichi Handa <handa@m17n.org>
21690
21691 * xdisp.c (face_before_or_after_it_pos): Call
21692 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21693
216942008-02-01 Kenichi Handa <handa@m17n.org>
21695
21696 * character.h (TRAILING_CODE_P): New macro.
21697 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21698 (string_char_with_unification): Fix prototype.
21699 (Vscript_alist): Extern it.
21700
21701 * character.c (Vscript_alist): New variable.
21702 (string_char_with_unification, str_as_unibyte)
21703 (string_escape_byte8): Add `const' to local variables.
21704 (syms_of_character): Declare script-alist as a Lisp variable.
21705
21706 * charset.h (Vcharset_ordered_list): Extern it.
21707 (charset_ordered_list_tick): Extern it.
21708 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21709 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21710 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21711 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21712 (Funify_charset): Adjust for the change of Funify_charset.
21713
21714 * charset.c (charset_ordered_list_tick): New variable.
21715 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21716 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21717 deunify instead of unify a charset.
aac0c6e3
MR
21718 (string_xstring_p): Add `const' to local variables.
21719 (find_charsets_in_text): Add `const' to arguments and local variables.
21720 (encode_char): Adjust for the change of Funify_charset. Fix
21721 detecting of invalid code.
21722 (Fset_charset_priority): Increment charset_ordered_list_tick.
21723 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21724 and TO_CODE.
21725
21726 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21727 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21728 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21729 (decode_coding_ccl, consume_chars)
21730 (Ffind_coding_systems_region_internal)
21731 (Fcheck_coding_systems_region): Add `const' to local variables.
21732
21733 * print.c (print_object): Use octal form for printing the
21734 contents of a bool vector.
21735
217362008-02-01 Dave Love <fx@gnu.org>
21737
21738 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21739 <version == 20>: Refuse to load.
21740
217412008-02-01 Dave Love <fx@gnu.org>
21742
21743 * fns.c: Move coding.h.
21744 (Qcodeset, Qdays, Qmonths): New.
21745 (concat): Use CHARACTERP instead of INTEGERP.
21746 (Flocale_codeset): Delete.
21747 (Flanginfo): New function.
21748 (syms_of_fns): Change accordingly.
21749
21750 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21751
217522008-02-01 Dave Love <fx@gnu.org>
21753
21754 * casetab.c (init_casetab_once, init_casetab_once): Fix
21755 CHAR_TABLE_SET call.
21756
21757 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21758
21759 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21760
21761 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21762 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21763 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21764
21765 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21766
21767 * coding.c (ENCODE_DESIGNATION, decode_eol)
21768 (make_conversion_work_buffer, code_conversion_restore)
21769 (Fdefine_coding_system_internal): Convert Lisp types.
21770 (code_conversion_restore): Use EQ, not ==.
21771 (Fencode_coding_string): Fix code_convert_string call.
21772
21773 * coding.h (code_convert_region): Fix prototype.
21774
21775 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21776
21777 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21778 (Ffontset_info): Convert Lisp types.
21779
21780 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21781
21782 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21783
21784 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21785
21786 * chartab.c: Include "...h", not <...h> in some cases.
21787
21788 * callproc.c (Fcall_process): Remove unused variables.
21789
217902008-02-01 Dave Love <fx@gnu.org>
21791
21792 * coding.c (Fset_coding_system_priority): Allow null arg list.
21793
217942008-02-01 Dave Love <fx@gnu.org>
21795
21796 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21797 (Fself_insert_and_exit): Use CHARACTERP.
21798
21799 * callproc.c (Fcall_process): Remove unused vars.
21800
21801 * xterm.c (XTread_socket): Add extra dead keysyms.
21802
21803 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21804
21805 * dispextern.h: Remove prototypes for redraw_frame,
21806 redraw_garbaged_frames.
21807
21808 * cmds.c (Fself_insert_command): Use CHARACTERP.
21809
21810 * chartab.c (make_sub_char_table): Remove unused var.
21811 (Fset_char_table_default, Fmap_char_table): Doc fix.
21812
21813 * keymap.c (access_keymap): Remove generic char code.
21814 (push_key_description): Use CHARACTERP.
21815
218162008-02-01 Dave Love <fx@gnu.org>
21817
21818 * charset.c: Doc fixes.
21819 (Funify_charset): Extra checking.
21820
218212008-02-01 Dave Love <fx@gnu.org>
21822
21823 * lread.c: Remove some unused variables.
21824 (safe_to_load_p): If safe, return the magic number version byte.
21825 (Fload): Maybe use load-with-code-conversion.
21826
218272008-02-01 Kenichi Handa <handa@m17n.org>
21828
21829 * category.c (Fmodify_category_entry): Don't modify the contents
21830 of category_set for characters out of the range. Avoid
21831 unnecessary modification.
21832
21833 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21834 Vchar_unify_table. The default value of the table is now nil.
21835
21836 * character.c (syms_of_character): Setup Vchar_width_table for
21837 eight-bit-control and raw-byte chars.
21838
21839 * charset.h (enum define_charset_arg_index): Delete
21840 charset_arg_parents and add charset_arg_subset and
21841 charset_arg_superset.
21842 (enum charset_attr_index): Delete charset_parents and add
21843 charset_subset and charset_superset.
21844 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21845 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21846 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21847 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21848 (CHARSET_SUPERSET): New macros.
21849 (charset_work): Extern it.
21850 (ENCODE_CHAR): Use charset_work.
21851 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21852 (map_charset_chars): Extern it.
21853
21854 * charset.c (load_charset_map): Set the default value of encoder
21855 and deunifier char-tables to nil.
21856 (map_charset_chars): Change argument. Change callers. Use
21857 map_char_table_for_charset instead of map_char_table.
21858 (Fmap_charset_chars): New optional args from_code and to_code.
21859 (Fdefine_charset_internal): Adjust for the change of
21860 `define-charset' (:parents -> :subset or :superset).
21861 (charset_work): New variable.
21862 (encode_char, syms_of_charset): Adjust for the change of
21863 Fdefine_charset_internal.
21864 (Ffind_charset_string): Setup the vector `charsets' correctly.
21865
21866 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21867 the previous change.
21868 (char_table_ref_and_range): Adjust for the above change.
21869 (map_sub_char_table_for_charset): New function.
21870 (map_char_table_for_charset): New function.
21871
21872 * keymap.c (describe_vector): Handle a char-table directly here.
21873 (describe_char_table): Delete.
21874
21875 * lisp.h (map_charset_chars): Delete.
21876
218772008-02-01 Dave Love <fx@gnu.org>
21878
21879 * fns.c (count_combining): Comment out (unused).
21880 (Flocale_codeset): New.
21881 (syms_of_fns): Defsubr it.
21882
21883 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21884 (size_t): Remove.
21885
218862008-02-01 Dave Love <fx@gnu.org>
21887
21888 * Makefile.in (chartab.o): Depend on charset.h.
21889
218902008-02-01 Kenichi Handa <handa@m17n.org>
21891
21892 * character.c (syms_of_character): Set the default value of
21893 Vprintable_chars to Qnil.
21894
218952008-02-01 Dave Love <fx@gnu.org>
21896
21897 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21898
218992008-02-01 Kenichi Handa <handa@m17n.org>
21900
21901 * charset.c (load_charset_map): Handle the case that from < to
21902 correctly.
21903
21904 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21905 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21906 Pay attention to raw-8-bit chars.
21907
219082008-02-01 Kenichi Handa <handa@m17n.org>
21909
21910 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21911 It is not bytecompiled now.
21912
21913 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21914 (charset_jisx0208): New variables.
21915 (Fdefine_charset_internal): Setup them if appropriate.
21916 (init_charset_once): Initialize them to -1.
21917
21918 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21919 (charset_jisx0208): Extern them.
21920
21921 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21922 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21923 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21924 (setup_iso_safe_charsets): Fix arguments to Fassq.
21925 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21926 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21927 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21928 (encode_coding_iso_2022): Change the 1st arg to
21929 ENCODE_ISO_CHARACTER to a variable.
21930
219312008-02-01 Kenichi Handa <handa@m17n.org>
21932
21933 * charset.h (enum define_charset_arg_index): New enums
21934 charset_arg_min_code and charset_arg_max_code.
21935 (struct charset): New member char_index_offset.
21936
21937 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21938 Take charset->char_index_offset into account.
21939 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21940 args[charset_arg_max_code]. Setup charset.char_index_offset.
21941 (syms_of_charset): Fix args to Fdefine_charset_internal.
21942
219432008-02-01 Dave Love <fx@gnu.org>
21944
21945 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21946
219472008-02-01 Dave Love <fx@gnu.org>
21948
21949 * coding.c: Doc fixes.
21950 (Fcoding_system_aliases): Fix return value.
21951 (Qmac): Remove (duplicated) definition.
21952
219532008-02-01 Dave Love <fx@gnu.org>
21954
362654a6
JB
21955 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21956 New functions.
aac0c6e3
MR
21957
21958 * character.c (Fstring): Doc fix.
21959
21960 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21961
362654a6 21962 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21963 (font-encoding-alist): Doc fix.
21964
219652008-02-01 Dave Love <fx@gnu.org>
21966
21967 * term.c (costs_set): Declare static, non-initialized for pcc.
21968 (encode_terminal_code): Remove unused var.
21969
21970 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21971 for K&R.
21972
21973 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21974
21975 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21976 (suffixes): Move out of make_subsidiaries for K&R.
21977
21978 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21979
21980 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21981
219822008-02-01 Dave Love <fx@gnu.org>
21983
21984 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21985
21986 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21987
219882008-02-01 Yong Lu <lyongu@asia-infonet.com>
21989
21990 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21991
21992 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21993
219942008-02-01 Kenichi Handa <handa@m17n.org>
21995
21996 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21997 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21998
219992008-02-01 Kenichi Handa <handa@m17n.org>
22000
22001 * coding.c (decode_coding_charset): Adjust for the change of
22002 Fdefine_coding_system_internal.
22003 (Fdefine_coding_system_internal): For a coding system of
22004 `charset' type, store a list of charset IDs in
22005 `charset_attr_charset_valids' element of coding attributes.
22006
220072008-02-01 Kenichi Handa <handa@m17n.org>
22008
22009 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22010 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22011 caller. Handle 2-byte and 3-byte charsets correctly.
22012 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22013 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22014 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22015 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22016 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22017 sequence.
22018 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22019 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22020 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22021 and alt&rule composition.
22022 (decode_coding_iso_2022): Handle composition correctly.
22023 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22024
22025 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22026 re-defining a charset. If the charset has :emacs-mule-id, setup
22027 emacs_mule_bytes.
22028 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22029
220302008-02-01 Kenichi Handa <handa@m17n.org>
22031
22032 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22033 (encode_coding_big5, encode_coding_charset): If coding requires safe
22034 encoding, produce a character specified by
22035 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22036
220372008-02-01 Dave Love <fx@gnu.org>
22038
22039 * xterm.c (XSetIMValues): Declare.
22040
22041 * process.c: Conditionally include sys/wait.h, pty.h.
22042
22043 * print.c (print_object): Fix print format for 64-bit systems.
22044
22045 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22046
22047 * buffer.c (emacs_strerror): Declare.
22048
22049 * fontset.c (Fclear_face_cache): Declare.
22050 (accumulate_font_info): Comment-out (unused).
22051 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22052 variables.
22053
22054 * character.h (string_escape_byte8): Declare.
22055
22056 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22057 unused vars.
22058 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22059 (Fmap_charset_chars): Doc fix.
22060
22061 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22062 (Fset_coding_system_priority, Fset_coding_system_priority)
22063 (Fdefine_coding_system_internal): Doc fix.
22064
220652008-02-01 Dave Love <fx@gnu.org>
22066
22067 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22068
220692008-02-01 Kenichi Handa <handa@m17n.org>
22070
22071 * character.c (string_escape_byte8): Make multibyte string with
22072 correct size.
22073
22074 * charset.c (Fmake_char): Delete unnecessary code.
22075
220762008-02-01 Kenichi Handa <handa@m17n.org>
22077
22078 * xfns.c (x_encode_text): Allocate coding.destination here, and
22079 call encode_coding_object with dst_object Qnil.
22080
22081 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22082 multibyte form correctly.
22083
22084 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22085 against Vfont_encoding_alist.
22086
22087 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22088 handling of charset list.
22089 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22090 (decode_coding_object): Move point to coding->dst_pos before
22091 calling post-read-conversion function.
22092 (encode_coding_object): Give correct arguments to
22093 pre-write-conversion. Ignore the return value of
22094 pre-write-conversion function. Pay attention to the case that
22095 pre-write-conversion changes the current buffer. If dst_object is
22096 Qt, even if coding->src_bytes is zero, allocate at least one byte
22097 to coding->destination.
22098
22099 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22100
22101 * charset.c (Fmake_char): Make it more backward compatible.
22102 (Fmap_charset_chars): Fix docstring.
22103
221042008-02-01 Dave Love <fx@gnu.org>
22105
22106 * coding.c: Doc fixes.
22107 (Fdefine_coding_system_alias): Use names, not symbols, in
22108 coding-system-alist.
22109
221102008-02-01 Kenichi Handa <handa@m17n.org>
22111
22112 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22113 of calling free_realized_face.
22114
221152008-02-01 Yong Lu <lyongu@asia-infonet.com>
22116
22117 * charset.c (read_hex): Don't treat SPC as a comment starter.
22118 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22119 (Fdecode_char): Fix typo.
22120
221212008-02-01 Kenichi Handa <handa@m17n.org>
22122
22123 * charset.h (struct charset): New member `code_space_mask'.
22124
22125 * coding.c (coding_set_source): Delete the local variable beg_byte.
22126 (encode_coding_charset, Fdefine_coding_system_internal):
22127 Delete the local variable charset.
22128 (Fdefine_coding_system_internal): Setup
22129 attrs[coding_attr_charset_valids] correctly.
22130
22131 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22132 member to check if CODE is valid or not.
22133 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22134 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22135 is within the range of charset->min_code and carset->max_code.
22136
221372008-02-01 Dave Love <fx@gnu.org>
22138
22139 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22140
22141 * dispextern.h (generate_ascii_font): Fix return type.
22142
22143 * xfaces.c (generate_ascii_font): Fix arg declaration.
22144
22145 * coding.c (coding_inherit_eol_type)
22146 (Fset_terminal_coding_system_internal)
22147 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22148
221492008-02-01 Kenichi Handa <handa@m17n.org>
22150
22151 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22152 multiple charsets correctly.
22153
221542008-02-01 Kenichi Handa <handa@m17n.org>
22155
22156 * search.c (boyer_moore): Fix handling of multibyte character
22157 translation.
22158
22159 * xdisp.c (display_mode_element): When the variable `elt' is
22160 changed, update `this' and `lisp_string'.
22161
221622008-02-01 Kenichi Handa <handa@m17n.org>
22163
22164 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22165
22166 * callproc.c (Fcall_process): Be sure to give the current buffer
22167 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22168
22169 * charset.c (struct charset_map_entries): New struct.
22170 (load_charset_map): Rename from parse_charset_map. New args
22171 entries and n_entries. Change caller.
22172 (load_charset_map_from_file): Rename from load_charset_map.
22173 Change caller. New arg control_flag. Call load_charset_map at
22174 the tail.
22175 (load_charset_map_from_vector): New function.
22176 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22177 (encode_char): If the charset is compact, change a character index
22178 to a code point.
22179
22180 * coding.c (coding_alloc_by_making_gap): Check the case that the
22181 source and destination are the same correctly.
22182 (decode_coding_raw_text): Set coding->consumed_char and
22183 coding->consumed to 0.
22184 (produce_chars): If coding->chars_at_source is nonzero, update
22185 coding->consumed_char and coding->consumed before calling
22186 alloc_destination.
22187 (Fdefine_coding_system_alias): Register ALIAS in
22188 Vcoding_system_alist.
22189 (syms_of_coding): Define `no-conversion' coding system at the tail.
22190
22191 * fileio.c (Finsert_file_contents): Set coding_system instead of
22192 val. If the current buffer is multibyte, always call
22193 decode_coding_gap.
22194
22195 * xfaces.c (try_font_list): Give higher priority to fontset's
22196 family than face's family.
22197
221982008-02-01 Kenichi Handa <handa@m17n.org>
22199
22200 * callproc.c (Fcall_process): Be sure to give the current buffer
22201 to decode_coding_c_string.
22202
22203 * xfaces.c (try_font_list): Give a family specified in a fontset
22204 higher priority than a family specified in a face.
22205
222062008-02-01 Kenichi Handa <handa@m17n.org>
22207
22208 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22209 Fix arguments to insert_from_buffer.
22210
22211 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22212
222132008-02-01 Kenichi Handa <handa@m17n.org>
22214
22215 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22216 (decode_coding_gap): Set coding->dst_multibyte correctly.
22217
222182008-02-01 Kenichi Handa <handa@m17n.org>
22219
22220 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22221 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22222 (encode_coding_utf_16): Substitute coding->default_char for
22223 non-Unicode characters.
22224 (decode_coding): Don't call record_insert here.
22225 (setup_coding_system): Initialize `surrogate' of
22226 coding->spec.utf_16 to 0.
22227 (EMIT_ONE_BYTE): Fix for multibyte case.
22228
22229 * insdel.c (insert_from_gap): Call record_insert.
22230
222312008-02-01 Kenichi Handa <handa@m17n.org>
22232
22233 * casefiddle.c (casify_region): Fix multibyte case.
22234
22235 * character.c (c_string_width): Add return type `int'.
22236 (char_string_with_unification): Delete arg ADVANCED.
22237
22238 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22239 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22240 (CHAR_STRING_ADVANCE): Make it do-while statement.
22241
22242 * chartab.c (sub_char_table_set_range): Optimize for the case
22243 DEPTH == 3. Add workaround code for a GCC optimization bug.
22244
22245 * charset.c (parse_charset_map): Remove an unused variable.
22246
22247 * coding.c: Delete unused variables.
22248
22249 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22250 earlier. If inserted is zero and the coding system doesn't
22251 require flushing, don't call decode_coding_gap.
22252
22253 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22254
222552008-02-01 Kenichi Handa <handa@m17n.org>
22256
22257 The following changes are for using Unicode as an internal
22258 character model, and use UTF-8 format for buffer/string
22259 representation.
22260
22261 * .gdbinit (xchartable): Adjust for the change of char table structure.
22262 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22263
22264 * Makefile.in (obj): Add character.o and chartab.o.
22265 (lisp, shortlisp): Remove utf-8.elc.
22266 (*.o): For many files, change dependency on charset.h to
22267 character.h, and add dependency on character.h.
22268 (character.o, chartab.o): New targets.
22269
22270 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22271 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22272 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22273 of "charset.h".
22274
22275 * dired.c, filelock.c: Include "character.h".
22276
22277 * alloc.c: Include "character.h" instead of "charset.h".
22278 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22279 (syms_of_alloc): Remove defsubr for Smake_char_table.
22280
22281 * buffer.c: Include "character.h" instead of "charset.h", don't
22282 include "coding.h".
22283 (Fset_buffer_multibyte): Adjust for UTF-8.
22284
22285 * buffer.h: EXFUN Fbuffer_live_p.
22286
22287 * callproc.c: Include "character.h" instead of "charset.h".
22288 (Fcall_process): Big change for the new code-conversion APIs.
22289
22290 * casetab.c: Include "character.h" instead of "charset.h".
22291 (set_canon, set_identity, shuffle): Adjust for the new
22292 map_char_table spec.
22293 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22294 accessing the char table structure.
22295
22296 * chartab.c: New file that implements char table.
22297
22298 * category.c: Include "character.h".
22299 (copy_category_entry): New function.
22300 (copy_category_table): Call map_char_table and copy_category_entry.
22301 (Fmake_category_table): Initialize all top-level slots.
22302 (char_category_set): New function.
22303 (modify_lower_category_set): Delete.
22304 (Fmodify_category_entry): Call char_table_ref_and_range.
22305
22306 * category.h (CATEGORY_SET): Just call char_category_set.
22307
22308 * ccl.c: Include "character.h".
22309 (Qccl, Qcclp): New variables.
22310 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22311 it's less than 256.
22312 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22313 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22314 and DST type.
22315 (ccl_driver): Change types of argument, adjust code accordingly.
22316 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22317 ccl_driver.
22318 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22319
22320 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22321 New members src_multibyte, dst_multibyte, consumed, and produced.
22322 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22323 (CODING_SPEC_CCL_PROGRAM): New macro.
22324 (ccl_driver): Update prototype.
22325 (Qccl, Qcclp, Fccl_program_p): Extern them.
22326 (CHECK_CCL_PROGRAM): New macro.
22327
22328 * character.c, character.h, chartab.c: New files.
22329
22330 * charset.c: Mostly re-written. Move character and multibyte sequence
22331 handling codes to character.c.
22332
22333 * charset.h: Mostly re-written. Move character and multibyte sequence
22334 handling codes to character.h.
22335
22336 * coding.c, coding.h: Mostly re-written.
22337
22338 * composite.c: Include "character.h" instead of "charset.h".
22339 (CHAR_WIDTH): Move to character.h.
22340 (HASH_KEY, HASH_VALUE): Delete.
22341
22342 * composite.h (enum composition_method): Change order of enumeration
22343 symbols.
22344
22345 * data.c: Include "character.h" instead of "charset.h".
22346 (Faref): Call CHAR_TABLE_REF for a char table.
22347 (Faset): Call CHAR_TABLE_SET for a char table.
22348
22349 * dispextern.h (free_realized_face, check_face_attribytes)
22350 (generate_ascii_font): Extern them.
22351 (free_realized_multibyte_face): Delete extern.
22352
22353 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22354 table structure.
22355
22356 * editfns.c: Include "character.h" instead of "charset.h".
22357 (Fchar_to_string): Always call CHAR_STRING.
22358
22359 * emacs.c (main): Call init_charset_once, init_charset,
22360 syms_of_chartab, and syms_of_character.
22361
22362 * fileio.c: Include "character.h" instead of "charset.h".
22363 (Finsert_file_contents): Big change for the new code-conversion API.
22364 (choose_write_coding_system, Fwrite_region): Likewise.
22365 (build_annotations_2): Delete.
22366 (e_write): Big change for the new code-conversion API.
22367
22368 * fns.c: Include "character.h" instead of "charset.h".
22369 (copy_sub_char_table): Move to chartab.c.
22370 (Fcopy_sequence): Call copy_char_table for a char table.
22371 (concat): Delete codes calling count_multibyte.
22372 (string_char_to_byte, string_byte_to_char): Adjust for the new
22373 multibyte form.
22374 (internal_equal): Adjust for the change of char table structure.
22375 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22376 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22377 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22378 (char_table_translate, optimize_sub_char_table)
22379 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22380 chartab.c.
22381 (char_table_ref_and_index): Delete.
22382 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22383 (Fmd5): Call preferred_coding_system instead of accessing
22384 Vcoding_category_list. Adjust for the new code-conversion API.
22385 (syms_of_fns): Move defsubr for char table related functions to
22386 chartab.c.
22387
22388 * fontset.c: Mostly re-written.
22389
22390 * fontset.h (struct font_info): Change type of the member encoding_type.
22391 (enum FONT_SPEC_INDEX): New enum.
22392 (fontset_font_pattern, fs_load_font): Update prototype.
22393 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22394
22395 * indent.c: Include "character.h" instead of "charset.h".
22396 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22397
22398 * insdel.c: Include "character.h" instead of "charset.h".
22399 (copy_text): Don't refer to Vnonascii_translation_table.
22400 (insert_from_gap): New function.
22401
22402 * keyboard.c: Include "character.h" instead of "charset.h".
22403 (command_loop_1): Never call direct_output_forward_char before
22404 a non-ASCII character.
22405 (read_char): If Vkeyboard_translate_table is a char table, always
22406 translate a character.
22407
22408 * keymap.c: Include "character.h".
22409 (store_in_keymap): Handle the case that IDX is a cons.
22410 (Fdefine_key): Handle the case that KEY is a cons and the car part
22411 is also a cons (range).
22412 (push_key_description): Adjust for the new character code.
22413 (describe_vector): Call describe_char_table for a char table.
22414 (describe_char_table): New function.
22415
22416 * keymap.h (describe_char_table): Extern it.
22417
22418 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22419 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22420 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22421 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22422 Delete.
22423 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22424 structure.
22425 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22426 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22427 (CHARTAB_SIZE_BITS_3): New macros.
22428 (chartab_size): Extern it.
22429 (struct Lisp_Char_Table): Re-design.
22430 (struct Lisp_Sub_Char_Table): New structure.
22431 (HASH_KEY, HASH_VALUE): Move from fns.c.
22432 (CHARACTERBITS): Define as 22.
22433 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22434 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22435 (GC_SUB_CHAR_TABLE_P): New macro.
22436 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22437 (code_convert_string_norecord): Deleted extern.
22438 (init_character_once, syms_of_character, init_charset)
22439 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22440
22441 * lread.c: Include "character.h".
22442 (read_multibyte): New arg NBYTES.
22443 (read_escape): Change the meaning of returned *BYTEREP.
22444 (to_multibyte): Delete.
22445 (read1): Adjust the handling of char table and string.
22446
22447 * print.c: Include "character.h" instead of "charset.h".
22448 (print_string): Convert 8-bit raw bytes to octal form by
22449 string_escape_byte8.
22450 (print_object): Adjust for the new multibyte form. Print 8-bit
22451 raw bytes always in octal form. Handle sub char table correctly.
22452
22453 * process.c: Include "character.h" instead of "charset.h".
22454 (read_process_output, send_process): Adjust for the new
22455 code-conversion API.
22456
22457 * puresize.h (BASE_PURESIZE): Increase.
22458
22459 * regex.c: Include "character.h" instead of "charset.h".
22460 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22461 (regex_compile): Accept a range whose starting and ending
22462 character have different leading bytes.
22463 (analyse_first): Adjust for the above change.
22464
22465 * search.c: Include "character.h" instead of "charset.h".
22466 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22467 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22468
22469 * syntax.c: Include "character.h" instead of "charset.h".
22470 (syntax_parent_lookup): Delete.
22471 (Fmodify_syntax_entry): Accept a cons as CHAR.
22472 (skip_chars): Adjust for the new multibyte form.
22473 (init_syntax_once): Call char_table_set_range instead of directly
22474 accessing the structure of a char table.
22475
22476 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22477 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22478 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22479 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22480
22481 * term.c: Include "buffer.h" and "character.h".
22482 (encode_terminal_code, write_glyphs): Adjust for the new
22483 code-conversion API.
22484 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22485
22486 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22487
22488 * xdisp.c: Include "character.h".
22489 (get_next_display_element): Adjust for the new multibyte form.
22490 (disp_char_vector): Adjust for the new char table structure.
22491 (decode_mode_spec_coding): Adjust for the new structure of
22492 coding system.
22493 (decode_mode_spec): Adjust for the new code-conversion API.
22494
22495 * xfaces.c: Include "character.h" instead of "charset.h".
22496 (load_face_font): Adjust for the change of choose_face_font and
22497 FS_LOAD_FONT.
22498 (generate_ascii_font): New function.
22499 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22500 (set_font_frame_param): Adjust for the change of choose_face_font.
22501 (free_realized_face): Make it public.
22502 (free_realized_faces_for_fontset): Rename from
22503 free_realized_multibyte_face. Free also faces realized for ASCII.
22504 (choose_face_font): Change arguments. Adjust for the change of
22505 fontset_font_pattern and FS_LOAD_FONT.
22506
22507 * xfns.c: Include "character.h".
22508 (x_encode_text): Adjust for the new code-conversion API.
22509
22510 * xselect.c: Don't include "charset.h".
22511 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22512
22513 * xterm.c: Include "character.h".
22514 (x_encode_char): New argument CHARSET. Change caller.
22515 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22516 Call ENCODE_CHAR instead of SPLIT_CHAR.
22517 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22518 CHAR_WIDTH instead of CHARSET_WIDTH.
22519 (XTread_socket): Adjust for the new code-conversion API.
22520 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22521 (x_load_font): Adjust for the change of struct font.
22522
225232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22524
22525 * xfaces.c (face_at_buffer_position): Remove unused vars.
22526
225272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22528
22529 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22530 Fix overflow checking.
22531
225322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22533
22534 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22535 Cancel previous change.
22536
225372008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22538
22539 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22540 ccl->eight_bit_control. Fix check for buffer overflow.
22541 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22542 (ccl_driver): Initialize extra_bytes to 0.
22543
225442008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22545
22546 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22547 return it ORed with ctrl_modifier.
22548
225492008-01-29 Miles Bader <miles@gnu.org>
22550
22551 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22552
225532008-01-28 Jason Rumney <jasonr@gnu.org>
22554
22555 * w32.c (stat): Don't double check for networked drive.
22556
225572008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22558
22559 * window.c (run_window_configuration_change_hook): New function.
22560 Code extracted from set_window_buffer. Set the selected frame.
22561 (set_window_buffer): Use it.
22562 * window.h (run_window_configuration_change_hook): Declare.
22563 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22564
22565 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22566
225672008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22568
22569 * Makefile.in: Remove references to unused macros.
22570
225712008-01-26 Eli Zaretskii <eliz@gnu.org>
22572
22573 * w32.c (g_b_init_get_sid_sub_authority)
22574 (g_b_init_get_sid_sub_authority_count): New static variables.
22575 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22576 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22577 (init_user_info): Use them to retrieve uid and gid.
22578 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22579 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22580 st_uid and st_gid of the file.
22581
225822008-01-26 Jason Rumney <jasonr@gnu.org>
22583
22584 * w32.c (logon_network_drive): New function.
22585 (stat): Use it.
22586
225872008-01-26 Chong Yidong <cyd@stupidchicken.com>
22588
22589 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22590 invisible text covered with an ellipsis.
22591
225922008-01-25 Richard Stallman <rms@gnu.org>
22593
22594 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22595 jump back to beginning. Move some other initializations after that.
22596 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22597 New variables.
22598 (syms_of_xdisp): Init them.
22599
22600 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22601
22602 * buffer.c (reset_buffer_local_variables):
22603 Implement `permanent-local-hook'.
22604 (Qpermanent_local_hook): New variable.
22605 (syms_of_buffer): Init and staticpro it.
22606
226072008-01-25 Michael Albinus <michael.albinus@gmx.de>
22608
22609 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22610
226112008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22612
22613 * fns.c (Fclrhash): Return TABLE.
22614
226152008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22616
22617 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22618 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22619 is set even without positional changes.
22620 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22621
22622 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22623
226242008-01-23 Jason Rumney <jasonr@gnu.org>
22625
22626 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22627
22628 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22629 the unicode range available in MULE by locale-coding-system.
22630 Improve dbcs lead byte detection. Set event timestamp and modifiers
22631 earlier.
22632
226332008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22634
22635 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22636 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22637 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22638 when used on child processes.
22639
226402008-01-21 Michael Albinus <michael.albinus@gmx.de>
22641
22642 * dbusbind.c (Fdbus_method_return_internal): Rename from
22643 Fdbus_method_return.
22644 (Fdbus_unregister_object): Move to dbus.el.
22645 (Fdbus_call_method, Fdbus_method_return_internal)
22646 (Fdbus_send_signal): Improve debug messages.
22647
226482008-01-20 Martin Rudalics <rudalics@gmx.at>
22649
22650 * undo.c (undo_inhibit_record_point): New variable.
22651 (syms_of_undo): Initialize it.
22652 (record_point): Don't record point when undo_inhibit_record_point
22653 is set.
22654
226552008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22656
22657 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22658
22659 * xdisp.c (Qauto_hscroll_mode): New var.
22660 (syms_of_xdisp): Initialize it.
22661 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22662 window's buffer.
22663 (hscroll_windows): Don't check automatic_hscrolling_p here.
22664
22665 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22666 vscroll if we're setting window-buffer to the value it already has.
22667
226682008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22669
22670 * m/intel386.h: Remove references to XENIX.
22671
226722008-01-17 Andreas Schwab <schwab@suse.de>
22673
22674 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22675 instead of HAVE_X86_64_LIB64_DIR.
22676 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22677
226782008-01-17 Glenn Morris <rgm@gnu.org>
22679
22680 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22681 to HAVE_X86_64_LIB64_DIR.
22682
226832008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22684
22685 * s/irix3-3.h:
22686 * s/irix4-0.h:
22687 * s/386-ix.h:
22688 * s/domain.h:
22689 * s/hpux9-x11r4.h:
22690 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22691
22692 * sysdep.c: Remove code containing references to symbols defined
22693 by unsupported systems.
22694
226952008-01-16 Glenn Morris <rgm@gnu.org>
22696
22697 * coding.c (select-safe-coding-system-function): Doc fix.
22698
226992008-01-15 Glenn Morris <rgm@gnu.org>
22700
22701 * config.in: Revert 2008-01-13 change: this is a generated file.
22702
227032008-01-13 Tom Tromey <tromey@redhat.com>
22704
22705 * lisp.h: Fix typo.
22706
227072008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22708
22709 * m/sequent-ptx.h:
22710 * m/sequent.h:
22711 * s/ptx.h:
22712 * s/ptx4-2.h:
22713 * s/ptx4.h: Remove files for systems no longer supported.
22714
22715 * callproc.c (Fcall_process): Fix previous change.
22716
227172008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22718
22719 * unexsunos4.c: Remove file, system not supported anymore.
22720
22721 * m/mips.h:
22722 * m/intel386.h:
22723 * callproc.c:
22724 * config.in:
22725 * ecrt0.c:
22726 * emacs.c:
22727 * fileio.c:
22728 * frame.c:
22729 * getpagesize.h:
22730 * keyboard.c:
22731 * lread.c:
22732 * process.c:
22733 * puresize.h:
22734 * sysdep.c:
22735 * systty.h:
22736 * syswait.h:
22737 * unexec.c:
22738 * xdisp.c:
22739 * alloc.c: Remove code containing references to symbols defined by
22740 unsupported systems.
22741
227422008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22743
22744 * coding.c (detect_coding_mask): Fix previous change.
22745
227462008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22747
22748 * coding.c (detect_coding_iso2022): New arg
22749 latin_extra_code_state. Allow Latin extra codes only
22750 when *latin_extra_code_state is nonzero.
22751 (detect_coding_mask): If there is a NULL byte, detect the encoding
22752 as UTF-16 or binary. If Latin extra codes exist, detect the
22753 encoding as ISO-2022 only when there's no other proper encoding is
22754 found.
22755
227562008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22757
22758 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22759 #ifdef MAC_OS.
22760
227612008-01-08 Richard Stallman <rms@gnu.org>
22762
22763 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22764
227652008-01-06 Nick Roberts <nickrob@snap.net.nz>
22766
22767 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22768 menu bar in parentheses.
22769
227702008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22771
22772 * m/7300.h:
22773 * m/acorn.h:
22774 * m/alliant-2800.h:
22775 * m/alliant.h:
22776 * m/alliant1.h:
22777 * m/alliant4.h:
22778 * m/altos.h:
22779 * m/amdahl.h:
22780 * m/apollo.h:
22781 * m/att3b.h:
22782 * m/aviion-intel.h:
22783 * m/aviion.h:
22784 * m/celerity.h:
22785 * m/clipper.h:
22786 * m/cnvrgnt.h:
22787 * m/convex.h:
22788 * m/cydra5.h:
22789 * m/delta88k.h:
22790 * m/dpx2.h:
22791 * m/dual.h:
22792 * m/elxsi.h:
22793 * m/f301.h:
22794 * m/gould-np1.h:
22795 * m/gould.h:
22796 * m/i860.h:
22797 * m/ibmps2-aix.h:
22798 * m/ibmrt-aix.h:
22799 * m/ibmrt.h:
22800 * m/irist.h:
22801 * m/is386.h:
22802 * m/isi-ov.h:
22803 * m/mega68.h:
22804 * m/mg1.h:
22805 * m/news-r6.h:
22806 * m/news-risc.h:
22807 * m/news.h:
22808 * m/nh3000.h:
22809 * m/nh4000.h:
22810 * m/ns16000.h:
22811 * m/ns32000.h:
22812 * m/nu.h:
22813 * m/orion.h:
22814 * m/orion105.h:
22815 * m/paragon.h:
22816 * m/pfa50.h:
22817 * m/plexus.h:
22818 * m/pyramid.h:
22819 * m/pyrmips.h:
22820 * m/sh3el.h:
22821 * m/sps7.h:
22822 * m/sr2k.h:
22823 * m/stride.h:
22824 * m/sun1.h:
22825 * m/sun2.h:
22826 * m/sun3-68881.h:
22827 * m/sun3-fpa.h:
22828 * m/sun3-soft.h:
22829 * m/sun3.h:
22830 * m/sun386.h:
22831 * m/symmetry.h:
22832 * m/tad68k.h:
22833 * m/tahoe.h:
22834 * m/targon31.h:
22835 * m/tek4300.h:
22836 * m/tekxd88.h:
22837 * m/tower32.h:
22838 * m/tower32v3.h:
22839 * m/ustation.h:
22840 * m/wicat.h:
22841 * m/xps100.h:
22842 * s/cxux.h:
22843 * s/cxux7.h:
22844 * s/dgux.h:
22845 * s/dgux4.h:
22846 * s/dgux5-4-3.h:
22847 * s/dgux5-4r2.h:
22848 * s/esix.h:
22849 * s/esix5r4.h:
22850 * s/hiuxmpp.h:
22851 * s/hiuxwe2.h:
22852 * s/iris3-5.h:
22853 * s/iris3-6.h:
22854 * s/isc2-2.h:
22855 * s/isc3-0.h:
22856 * s/isc4-0.h:
22857 * s/isc4-1.h:
22858 * s/newsos5.h:
22859 * s/newsos6.h:
22860 * s/osf1.h:
22861 * s/osf5-0.h:
22862 * s/riscix1-1.h:
22863 * s/riscix12.h:
22864 * s/sco4.h:
22865 * s/sco5.h:
22866 * s/sunos4-0.h:
22867 * s/sunos4-1.h:
22868 * s/sunos413.h:
22869 * s/sunos4shr.h:
22870 * s/umax.h:
22871 * s/unipl5-2.h:
22872 * s/xenix.h:
22873 * cxux-crt0.s:
22874 * unexapollo.c:
22875 * unexconvex.c:
22876 * unexenix.c:
22877 * unexsni.c: Remove files for systems no longer supported.
22878
22879 * m/intel386.h: Remove references to unsupported systems.
22880
22881 * w32.c (get_emacs_configuration): Remove reference to i860.
22882
22883 * sysdep.c: Remove dead code.
22884
228852008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22886
22887 * s/rtu.h:
22888 * m/masscomp.h: Remove files. Platform is obsolete.
22889
228902008-01-04 Michael Albinus <michael.albinus@gmx.de>
22891
22892 * dbusbind.c (Fdbus_method_return): New function.
22893 (xd_read_message): Add the serial number to the event.
22894 (Fdbus_register_method): Activate the function.
22895
228962008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22897
22898 * keyboard.c (read_key_sequence): Fix typo.
22899
229002008-01-03 Michael Albinus <michael.albinus@gmx.de>
22901
22902 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22903 (xd_signature, xd_append_arg): Handle element type detection for
22904 empty arrays.
22905 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22906 SDATA () calls; this must be solved more general.
22907 (Fdbus_register_signal): Use SBYTES instead of strlen.
22908
229092008-01-03 Magnus Henoch <magnus@zemdatav>
22910
22911 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22912 unsigned int for byte values (necessary for big-endian platform).
22913 (Fdbus_call_method): Handle the case of no returned arguments.
22914
229152007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22916
22917 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22918
229192007-12-31 Magnus Henoch <mange@freemail.hu>
22920
22921 * dbusbind.c (xd_signature): Signature of variant is just "v".
22922
229232007-12-30 Michael Albinus <michael.albinus@gmx.de>
22924
22925 * dbusbind.c: Fix several errors and compiler warnings.
22926 Reported by Tom Tromey <tromey@redhat.com>.
22927 (XD_ERROR, XD_DEBUG_MESSAGE)
22928 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22929 (xd_append_arg): Part for basic D-Bus types rewritten.
22930 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22931 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22932 appropriate.
22933 (xd_read_message): Return Qnil. Don't signal an error; it is not
22934 useful during event reading.
22935 (Fdbus_register_signal): Signal an error if the check for
22936 FUNCTIONP fails.
22937 (Fdbus_register_method): New function. The implementation is not
22938 complete, the call of the function signals an error therefore.
22939 (Fdbus_unregister_object): New function, renamed from
22940 Fdbus_unregister_signal. The initial check signals an error, if
22941 the object is not well formed.
22942
229432007-12-30 Richard Stallman <rms@gnu.org>
22944
22945 * textprop.c (get_char_property_and_overlay):
22946 Signal error if POSITION is out of range in a buffer.
22947
229482007-12-29 Martin Rudalics <rudalics@gmx.at>
22949
22950 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22951 because the original parameters are in pure storage now.
22952
229532007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22954
22955 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22956
229572007-12-22 Eli Zaretskii <eliz@gnu.org>
22958
22959 * callint.c (syms_of_callint) <command-history>: Add reference to
22960 history-length in the doc string.
22961
229622007-12-17 Jason Rumney <jasonr@gnu.org>
22963
22964 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22965 before passing as wParam.
22966
229672007-12-22 Michael Albinus <michael.albinus@gmx.de>
22968
22969 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22970 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22971 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22972 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22973 as number.
22974 (Fdbus_call_method): Fix docstring.
22975
229762007-12-21 Michael Albinus <michael.albinus@gmx.de>
22977
22978 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22979 New macros.
22980 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22981 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22982 Simplify.
22983 (xd_signature): New function.
22984 (xd_append_arg): Compute also signatures. Major rewrite.
22985 (xd_retrieve_arg): Make debug messages friendly.
22986 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22987 Check for signatures of arguments.
22988
229892007-12-19 Michael Albinus <michael.albinus@gmx.de>
22990
22991 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22992 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22993 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22994 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22995 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22996 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22997 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22998 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22999 (xd_retrieve_value): Remove. Functionality included in ...
23000 (xd_append_arg): New function.
23001 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23002
230032007-12-16 Michael Albinus <michael.albinus@gmx.de>
23004
23005 * dbusbind.c (top): Include <stdio.h>.
23006 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23007 dbus_message_new_method_call and dbus_message_new_signal.
23008 (Fdbus_register_signal): Rename unique_name to uname.
23009 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23010 non-existing unique name. Fix typos in matching rule. Return an
23011 object which is useful in Fdbus_unregister_signal.
23012 (Fdbus_unregister_signal): Reimplementation, in order to remove
23013 only the corresponding entry.
23014 (Vdbus_registered_functions_table): Change the order of entries.
23015 Apply these changes in xd_read_message and Fdbus_register_signal.
23016
230172007-12-16 Andreas Schwab <schwab@suse.de>
23018
23019 * fileio.c (Finsert_file_contents): Fix overflow check to not
23020 depend on undefined integer overflow.
23021
230222007-12-14 Jason Rumney <jasonr@gnu.org>
23023
23024 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23025 for characters above 127.
23026
230272007-12-13 Jason Rumney <jasonr@gnu.org>
23028
23029 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23030 before dereferencing array.
23031 (lookup_vk_code): Remove zero comparison.
23032
230332007-12-14 Michael Albinus <michael.albinus@gmx.de>
23034
23035 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23036 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23037 Use `unsigned int' instead of `uint'.
23038 (xd_read_message, Fdbus_register_signal): Split expressions into
23039 multiple lines before operators "&&" and "||", according to the
23040 GNU Coding Standards.
23041
230422007-12-14 Eli Zaretskii <eliz@gnu.org>
23043
23044 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23045
230462007-12-12 Juri Linkov <juri@jurta.org>
23047
23048 * buffer.c (Frename_buffer): In interactive spec replace
23049 `read-buffer' with `read-string' that uses `buffer-name-history'
23050 as history, and the current buffer's name as default.
23051
230522007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23053
23054 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23055 manipulating the backtrace manually.
23056 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23057 (struct backtrace, backtrace_list): Remove.
23058 (command_loop_1): Remove dead var `no_direct'.
23059
23060 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23061 preserve non-built-in buffer-local variables.
23062 (Fkill_all_local_variables): Don't re-create&re-set permanent
23063 buffer-local variables.
23064
230652007-12-09 Juri Linkov <juri@jurta.org>
23066
23067 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23068 Lisp code that uses `read-buffer' with current buffer as default.
23069
230702007-12-08 Michael Albinus <michael.albinus@gmx.de>
23071
23072 * dbusbind.c (xd_read_message): Generate an event for every
23073 registered handler. There might be several handlers registered
23074 for the same signal.
23075 (Fdbus_register_signal): Don't overwrite a registration for the
23076 same signal. Add a new registration if handlers are different.
23077 (Vdbus_registered_functions_table): Rework doc string.
23078
230792007-12-07 Michael Albinus <michael.albinus@gmx.de>
23080
23081 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23082 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23083 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23084 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23085 Unify argument lists.
23086 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23087 arguments and hash table keys. Use unique name for service.
23088 (Fdbus_unregister_signal): Remove checks.
23089 (Vdbus_registered_functions_table): Fix doc string.
23090
230912007-12-05 Magnus Henoch <mange@freemail.hu>
23092
23093 * process.c (make_process): Initialize pty_flag to 0.
23094
230952007-12-05 Jason Rumney <jasonr@gnu.org>
23096
23097 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23098 specified XBMs.
23099
231002007-12-05 Richard Stallman <rms@gnu.org>
23101
23102 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23103
231042007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23105
23106 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23107 New variable.
23108 (mac_try_close_socket) [MAC_OSX]: New function.
23109 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23110 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23111
23112 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23113 Use mac_try_close_socket.
23114
231152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23116
23117 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23118 reloc_base.
23119 (copy_dysymtab): Compute relocation base here.
23120 (rebase_reloc_address) [__ppc64__]: New function.
23121 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23122 changed.
23123
231242007-12-05 Jason Rumney <jasonr@gnu.org>
23125
23126 * w32proc.c (sys_spawnve): Quote args with wildcards.
23127
231282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23129
23130 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23131 __objc_* sections.
23132 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23133
231342007-12-05 Michael Albinus <michael.albinus@gmx.de>
23135
23136 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23137 Move check for Vdbus_registered_functions_table to
23138 xd_read_queued_messages.
23139 (xd_read_queued_messages): Protect xd_read_message calls by
23140 internal_condition_case_1.
23141
231422007-12-04 Michael Albinus <michael.albinus@gmx.de>
23143
23144 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23145 Qdbus_system_bus and Qdbus_session_bus, respectively.
23146 (Vdbus_intern_symbols): Remove.
23147 (Vdbus_registered_functions_table): New hash table.
23148 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23149 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23150 Rewrite in order to manage registered functions by hash table
23151 Vdbus_registered_functions_table.
23152
231532007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23154
23155 * xterm.c: Update URL to Window Manager Specification in comment.
23156
231572007-12-02 Michael Albinus <michael.albinus@gmx.de>
23158
23159 * config.in (HAVE_DBUS): Add.
23160
23161 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23162 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23163 (obj): Add $(DBUS_OBJ).
23164 (LIBES): Add $(DBUS_LIBS).
23165 (dbusbind.o): New target.
23166
23167 * dbusbind.c: New file.
23168
23169 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23170
23171 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23172 (Qdbus_event): New Lisp symbol.
23173 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23174 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23175 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23176
23177 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23178
231792007-12-01 Richard Stallman <rms@gnu.org>
23180
23181 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23182
231832007-11-30 Jason Rumney <jasonr@gnu.org>
23184
23185 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23186 (w32con_reset_terminal_modes): Clear screen buffer.
23187 (w32_face_attributes): Don't use color indexes that are out of range.
23188 Only reverse the default colors.
23189
23190 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23191 WINDOWSNT.
23192
23193 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23194
231952007-11-29 Jason Rumney <jasonr@gnu.org>
23196
23197 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23198 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23199 if the terminal colors are initialized.
23200 (unspecified_fg, unspecified_bg): Remove unused declarations.
23201
232022007-11-29 Andreas Schwab <schwab@suse.de>
23203
23204 * keyboard.c (apply_modifiers): Fix typo.
23205
232062007-11-29 Richard Stallman <rms@gnu.org>
23207
23208 * keymap.c (Fcurrent_local_map): Doc fix.
23209
232102007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23211
23212 * s/gnu-kfreebsd.h: New file.
23213
232142007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23215
23216 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23217 Don't cast redundantly.
23218
23219 * keyboard.c (KEY_TO_CHAR): New macro.
23220 (parse_modifiers, apply_modifiers): Accept integer arguments.
23221 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23222 for chars and symbol keys.
23223 After doing such remapping, apply function-key-map again.
23224
232252007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23226
23227 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23228 compiled anymore.
23229
232302007-11-26 Andreas Schwab <schwab@suse.de>
23231
23232 * process.c (list_processes_1): Fix indentation level of the
23233 command column.
23234
232352007-11-23 Andreas Schwab <schwab@suse.de>
23236
23237 * editfns.c (Fformat): Handle %c specially since it requires the
23238 argument to be of type int.
23239
232402007-11-23 Markus Triska <markus.triska@gmx.at>
23241
23242 * emacs.c (main): Call init_editfns before init_process, since
23243 init_process sets Vprocess_connection_type depending on OS release.
23244
232452007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23246
23247 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23248 (find_symbol_value): Use do_symval_forwarding.
23249
23250 * data.c (set_internal): Set the value in the `cons-cell' (for
23251 Buffer_Local_values) not only for frame-local variables.
23252
232532007-11-22 Andreas Schwab <schwab@suse.de>
23254
23255 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23256 values to sprintf.
23257 * keymap.c (Fsingle_key_description): Likewise.
23258 * print.c (print_object): Likewise.
23259
232602007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23261
23262 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23263 file for image is nil.
23264
232652007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23266
23267 * term.c: Include stdarg.h.
23268 (fatal): Implement using varargs.
23269 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23270
232712007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23272
23273 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23274 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23275 Update call to buffer_slot_type_mismatch.
23276 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23277 (buffer_slot_type_mismatch): Update.
23278 * buffer.c (buffer_local_types): Remove.
23279 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23280 (defvar_per_buffer): Set the type in the buffer_objfwd.
23281
232822007-11-21 Jason Rumney <jasonr@gnu.org>
23283
23284 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23285 CreateFileMapping returns NULL on failure.
23286
232872007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23288
23289 * search.c (Fset_match_data): Remove the `evaporate' feature.
23290 (unwind_set_match_data): Don't use the `evaporate' feature.
23291
232922007-11-21 Jason Rumney <jasonr@gnu.org>
23293
23294 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23295
23296 * w32console.c (w32con_write_glyphs): Remove unused variables.
23297
232982007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23299
23300 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23301
23302 * s/darwin.h (MULTI_KBOARD): Remove.
23303
23304 * macfns.c (x_create_tip_frame, Fx_create_frame)
23305 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23306
233072007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23308
23309 * buffer.c (Fbuffer_local_value): Remove redundant test.
23310 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23311 than in `current-buffer' to match the comment.
23312 Do the swap using swap_in_global_binding.
23313
23314 * data.c (store_symval_forwarding, set_internal):
23315 * eval.c (specbind): Remove dead code.
23316
23317 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23318 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23319 Since we do not want to see internal Lisp_*fwd objects here.
23320
233212007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23322
23323 * sysdep.c (init_system_name): Use getaddrinfo if available.
23324
23325 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23326 (x_scroll_bar_note_movement): start, end, with, height in struct
23327 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23328
233292007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23330
23331 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23332
233332007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23334
23335 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23336 This undoes Richard's change of 14-Oct-2002.
23337
23338 * alloc.c (allocate_other_vector):
23339 * lisp.h (allocate_other_vector): Remove.
23340
23341 * window.c (struct save_window_data): Move non-lisp data to the end
23342 and make it `int' rather than Lisp_Object.
23343 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23344 Done wrap/unwrap integer values.
23345 (Fset_window_configuration, compare_window_configurations):
23346 Update use of fields to their new types.
23347
23348 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23349 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23350 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23351 (SET_SCROLL_BAR_X_WINDOW): Remove.
23352 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23353 Access the new x_window field directly.
23354 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23355 Don't wrap/unwrap integers into Lisp_Objects.
23356 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23357 (x_scroll_bar_report_motion):
23358 Don't wrap/unwrap integers into Lisp_Objects.
23359 (x_term_init): Use SDATA.
23360 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23361 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23362 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23363 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23364 * xfns.c (x_set_background_color):
23365 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23366 Access the new x_window field directly.
23367
23368 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23369 (allocate_pseudovector): Make non-static.
23370
23371 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23372 (allocate_pseudovector): Declare.
23373 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23374
233752007-11-15 Andreas Schwab <schwab@suse.de>
23376
23377 * editfns.c (Fformat): Correctly format EMACS_INT values.
23378 Also take precision into account when formatting an integer.
23379
23380 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23381
233822007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23383
23384 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23385 (syms_of_keyboard): Defsubr it.
23386
23387 * data.c (swap_in_global_binding): Fix longstanding bug where
23388 store_symval_forwarding was not called with the right second argument,
23389 thus causing objfwd-ing from being dropped.
23390
233912007-11-14 Juanma Barranquero <lekktu@gmail.com>
23392
23393 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23394 (Fx_display_pixel_height, Fx_display_planes)
23395 (Fx_display_color_cells, Fx_server_max_request_size)
23396 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23397 (Fx_display_visual_class, Fx_display_save_under):
23398 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23399 (Fx_display_pixel_height, Fx_display_planes)
23400 (Fx_display_color_cells, Fx_server_max_request_size)
23401 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23402 (Fx_display_mm_height, Fx_display_mm_width)
23403 (Fx_display_backing_store, Fx_display_visual_class)
23404 (Fw32_select_font, Fx_display_save_under):
23405 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23406 (Fx_display_pixel_height, Fx_display_planes)
23407 (Fx_display_color_cells, Fx_server_max_request_size)
23408 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23409 (Fx_display_save_under): Fix typos in docstrings.
23410
234112007-11-14 Juanma Barranquero <lekktu@gmail.com>
23412
23413 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23414 corresponding to deleted entries; they are an implementation detail.
23415 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23416 Remove variables.
23417 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23418 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23419 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23420 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23421 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23422 (Fw32_define_rgb_color, Fw32_load_color_file)
23423 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23424 Fix typos in docstrings.
23425 (Fx_server_version): Reflow docstring.
23426 (Fw32_shell_execute): Doc fixes.
23427
234282007-11-13 Juanma Barranquero <lekktu@gmail.com>
23429
23430 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23431 if w32_parse_hot_key returned nil.
23432
234332007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23434
23435 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23436
234372007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23438
aac0c6e3
MR
23439 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23440
23441 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23442
23443 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23444 Remove W32_SCROLL_BAR_CLICK_EVENT.
23445
23446 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23447 Add MULTIMEDIA_KEY_EVENT.
23448
23449 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23450 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23451 (make_lispy_event) [WINDOWSNT]: Use it to translate
23452 MULTIMEDIA_KEY_EVENT.
23453
23454 * w32term.h (WM_APPCOMMAND): Define if not already.
23455 (GET_APPCOMMAND_LPARAM): Likewise.
23456
23457 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23458 WM_APPCOMMAND.
23459
23460 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23461 (syms_of_w32fns): Export and initialize it.
23462 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23463
234642007-11-09 Chong Yidong <cyd@stupidchicken.com>
23465
23466 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23467 twice.
23468
23469 * xdisp.c (handle_face_prop): Fix last change.
23470
234712007-11-09 Richard Stallman <rms@gnu.org>
23472
23473 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23474 not just for after-strings and before-strings.
23475 Call face_for_overlay_string and pass the overlay to it.
23476 (handle_display_prop): Determine whether property came from an overlay.
23477 Pass OVERLAY arg to handle_single_display_spec.
23478 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23479 (load_overlay_strings): Fill in it->string_overlays.
23480 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23481
23482 * xfaces.c (face_for_overlay_string): Function renamed from
23483 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23484
23485 * dispextern.h (struct it): New elt string_overlays.
23486 New elt from_overlay, also in stack.
23487 Rearrange a few elements.
23488 (face_for_overlay_string): Decl renamed from
23489 face_at_buffer_position_no_overlays, and add argument.
23490
234912007-11-09 Richard Stallman <rms@gnu.org>
23492
23493 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23494 to get the base face for an overlay string.
23495
23496 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23497
23498 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23499
23500 * xdisp.c (handle_stop): Move some code out of loop.
23501
235022007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23503
23504 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23505 Fix conversion from Lisp object to ATSUFontID.
23506
235072007-11-09 Jason Rumney <jasonr@gnu.org>
23508
23509 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23510
235112007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23512
23513 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23514 Don't assume regions are aligned to page boundary.
23515 (print_load_command_name): Add LC_UUID if defined.
23516
235172007-11-09 Richard Stallman <rms@gnu.org>
23518
23519 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23520
235212007-11-07 Jason Rumney <jasonr@gnu.org>
23522
23523 * s/windows95.h: Remove.
23524
235252007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23526
23527 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23528 abort with a message on unhandled store_type values.
23529
235302007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23531
23532 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23533 Remove HAVE_X11R5 and HAVE_X11R4.
23534
235352007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23536
23537 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23538
235392007-11-01 Johan Bockgård <bojohan@gnu.org>
23540
23541 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23542 Don't set s->stippled_p here, since it has already been set by
23543 x_set_glyph_string_gc from x_draw_glyph_string.
23544
235452007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23546
23547 * sunfns.c: Remove file.
23548
23549 * m/sun386.h:
23550 * m/sun2.h:
23551 * m/sparc.h: Remove Sun windows code.
23552
235532007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23554
23555 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23556 (init_keyboard): Set current_kboard's window-system to nil.
23557 (tty_read_avail_input): Typo.
23558 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23559
235602007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23561
23562 * s/usg5-4.h:
23563 * s/usg5-3.h:
23564 * s/ptx.h:
23565 * m/is386.h:
23566 * m/ibmps2-aix.h:
23567 * Makefile.in: Remove all mentions of X10.
23568
23569 * dispnew.c (syms_of_display): Don't mention version 10.
23570
235712007-10-28 Juanma Barranquero <lekktu@gmail.com>
23572
23573 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23574 ($(BLD)/abbrev.$(O)): Remove.
23575
235762007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23577
23578 Rewrite abbrev.c in Elisp.
23579 * image.c (Qcount): Don't declare as extern.
23580 (syms_of_image): Initialize and staticpro `Qcount'.
23581 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23582 * emacs.c (main): Don't call syms_of_abbrev.
23583 * Makefile.in (obj): Remove abbrev.o.
23584 (abbrev.o): Remove.
23585 * abbrev.c: Remove.
23586
235872007-10-26 Martin Rudalics <rudalics@gmx.at>
23588
23589 * window.c (window_min_size_2): Don't count header-line.
23590
235912007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23592
23593 * frame.h (struct frame): Move all bit fields after the first bit
23594 field to take advantage of the available space. Group all the
23595 chars together to reduce wasted space due to padding.
23596
235972007-10-26 Juanma Barranquero <lekktu@gmail.com>
23598
23599 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23600
23601 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23602 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23603 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23604 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23605 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23606 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23607 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23608 (last_marked, mark_object_loop_halt): Make static.
23609
23610 * frame.c (syms_of_frame) <delete-frame-functions>:
23611 Fix typo in docstring.
23612
236132007-10-25 Juanma Barranquero <lekktu@gmail.com>
23614
23615 * w32.c (init_environment): Fix tiny memory leak.
23616 (w32_get_resource): Remove unused variable `ok'.
23617
236182007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23619
23620 Make `window-system' into a keyboard-local variable (rather than
23621 frame-local as done originally by multi-tty).
23622
23623 * keyboard.h (struct kboard): Add Vwindow_system.
23624 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23625 (mark_kboards): Mark Vwindow_system.
23626
23627 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23628 (init_display): Don't set the obsolete `window-system' frame-param.
23629
23630 * xterm.c (x_term_init):
23631 * w32term.c (w32_create_terminal):
23632 * term.c (init_tty): Set Vwindow_system.
23633 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23634 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23635
23636 * xfns.c (Fx_create_frame, x_create_tip_frame):
23637 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23638 * macfns.c (Fx_create_frame):
23639 Don't set the obsolete `window-system' frame-param.
23640
23641 * frame.h (Qwindow_system): Remove.
23642 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23643 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23644
236452007-10-24 Richard Stallman <rms@gnu.org>
23646
23647 * frame.c (x_figure_window_size): For fullscreen case,
23648 set USPosition | PPosition without clobbering rest of window_prompting.
23649
23650 * keyboard.c (Fcurrent_idle_time): Doc fix.
23651
23652 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23653
236542007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23655
23656 * process.c (unwind_request_sigio): Only define if __ultrix__.
23657
23658 * callproc.c (child_setup): Remove spurious *.
23659
23660 * lisp.h (Fget_text_property): Declare.
23661 (have_menus_p): Declare it here rather than in sys-dep header files.
23662 * macterm.h (have_menus_p):
23663 * msdos.h (have_menus_p):
23664 * xterm.h (have_menus_p): Remove.
23665
23666 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23667 (Fmake_variable_frame_local): Just check the variable's const-ness
23668 rather than checking nil or t.
23669
236702007-10-22 Jason Rumney <jasonr@gnu.org>
23671
23672 * w32fns.c: Include math.h.
23673 (w32_abort): Declaration moved to nt/config.nt.
23674
23675 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23676 (abort): Redefinition moved to nt/config.nt.
23677
23678 * m/windowsnt.h: Remove.
23679
236802007-10-22 Juanma Barranquero <lekktu@gmail.com>
23681
23682 * emacs.c (Fdump_emacs): Fix typo in message.
23683 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23684 <installation-directory>: Reflow docstring.
23685
236862007-10-22 Juri Linkov <juri@jurta.org>
23687
23688 * minibuf.c: Allow minibuffer default to be a list of default values.
23689 With empty input use the first element of this list as returned default.
23690 (string_to_object)
23691 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23692 (read_minibuf): If defalt is cons, set histstring to its car.
23693 (Fread_string): If default_value is cons, set val to its car.
23694 (Fread_buffer): If def is cons, use its car.
23695 (Fcompleting_read): If defalt is cons, set val to its car.
23696
236972007-10-21 Michael Albinus <michael.albinus@gmx.de>
23698
23699 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23700
237012007-10-20 Juanma Barranquero <lekktu@gmail.com>
23702
23703 * doc.c (Fdocumentation): Check for advice in all cases.
23704
237052007-10-19 Chong Yidong <cyd@stupidchicken.com>
23706
23707 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23708
237092007-10-19 Richard Stallman <rms@gnu.org>
23710
23711 * doc.c (Fdocumentation): Check for and handle an advised function.
23712
237132007-10-19 Juanma Barranquero <lekktu@gmail.com>
23714
23715 * process.c (Fset_process_filter): Doc fix.
23716
237172007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23718
23719 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23720 which caused key-translation-map to applied repeatedly (thus breaking
23721 double-mode).
23722
237232007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23724
23725 * xselect.c (x_own_selection, x_handle_selection_clear)
23726 (x_clear_frame_selections):
23727 * w32menu.c (list_of_panes, list_of_items):
23728 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23729 * textprop.c (validate_plist, interval_has_all_properties)
23730 (interval_has_some_properties, interval_has_some_properties_list)
23731 (add_properties, text_property_list):
23732 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23733 * minibuf.c (Fassoc_string):
23734 * macselect.c (x_own_selection, x_clear_frame_selections)
23735 (Fx_disown_selection_internal):
23736 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23737 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23738
237392007-10-17 Chong Yidong <cyd@stupidchicken.com>
23740
23741 * process.c: Link to libs for calling res_init() if available.
23742 (Fmake_network_process): Call res_init() before getaddrinfo or
23743 gethostbyname, if possible.
23744
237452007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23746
23747 * lread.c (read1): Set pvectype for char_tables.
23748
23749 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23750 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23751 Add type checks.
23752 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23753
23754 * alloc.c (free_misc): Use XMISCTYPE.
23755 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23756
237572007-10-17 Glenn Morris <rgm@gnu.org>
23758
23759 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23760 (syms_of_minibuf): Add Qcompletion_ignore_case.
23761 * dired.c (Qcompletion_ignore_case): Change to external.
23762 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23763 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23764 (Fread_file_name): Use it rather than intern'ing.
23765
23766 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23767 (Fread_coding_system): Ignore case of user input.
23768
237692007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23770
23771 * xdisp.c (handle_display_prop): Ignore display specs after
23772 replacing one when string text is being replaced.
23773 (handle_single_display_spec): Pretend as if characters with display
23774 property haven't been consumed only when buffer text is being replaced.
23775
237762007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23777
23778 * xfns.c (Fx_create_frame, Fx_display_list):
23779 * window.c (window_fixed_size_p, enlarge_window)
23780 (shrink_window_lowest_first):
23781 * macterm.c (init_font_name_table):
23782 * macfns.c (Fx_create_frame, Fx_display_list):
23783 * lread.c (close_load_descs):
23784 * keyboard.c (read_char_x_menu_prompt):
23785 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23786 * coding.c (code_convert_region_unwind): Test the type of an object
23787 rather than just !NILP before extracting data from it.
23788
23789 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23790
23791 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23792 (XMISCANY): New macro.
23793 (XMISCTYPE): Use it.
23794 (struct Lisp_Misc_Any): New type.
23795 (union Lisp_Misc): Use it.
23796 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23797 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23798 (find_symbol_value, set_internal, default_value, Fset_default)
23799 (Fmake_variable_buffer_local, Fmake_local_variable)
23800 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23801 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23802 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23803 * alloc.c (allocate_buffer): Set the size and tag.
23804 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23805 Use XMISCANY.
23806 (die): Follow the GNU convention for error messages.
23807 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23808 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23809 tag any more.
23810 (set_buffer_internal_1):
23811 * frame.c (store_frame_param):
23812 * eval.c (specbind):
23813 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23814
23815 * doc.c (Fsnarf_documentation): Simplify.
23816
238172007-10-14 Juanma Barranquero <lekktu@gmail.com>
23818
23819 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23820 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23821
238222007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23823
23824 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23825
238262007-10-14 Juanma Barranquero <lekktu@gmail.com>
23827
23828 * eval.c (do_autoload): Don't save autoloads.
23829
23830 * data.c (Ffset): Save autoload of the function being set.
23831
238322007-10-07 John Paul Wallington <jpw@pobox.com>
23833
23834 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23835 parameter before setting up faces.
23836
238372007-10-13 Eli Zaretskii <eliz@gnu.org>
23838
23839 * ccl.c (Fregister_code_conversion_map):
23840 * keyboard.c (append_tool_bar_item): Reformat last change.
23841
23842 * lisp.h (eabs): Rename from `abs'. All callers changed.
23843
238442007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23845
23846 * buffer.c (add_overlay_mod_hooklist):
23847 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23848 * fontset.c (make_fontset):
23849 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23850 (append_tool_bar_item):
23851 * macmenu.c (grow_menu_items):
23852 * w32menu.c (grow_menu_items):
23853 * xmenu.c (grow_menu_items): Use larger_vector.
23854
238552007-10-13 Eli Zaretskii <eliz@gnu.org>
23856
23857 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23858 selected frame'' on MSDOS).
23859
238602007-10-12 Martin Rudalics <rudalics@gmx.at>
23861
23862 * frame.c (Qexplicit_name): New variable.
23863 (x_report_frame_params): Report it in parameter alist.
23864 (syms_of_frame): Intern and staticpro it.
23865
238662007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23867
23868 * macfns.c (x_create_tip_frame): Set terminal for frame.
23869
238702007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23871
23872 * frame.c (Qenvironment): Remove.
23873 (syms_of_frame) <Qenvironment>: Don't initialize.
23874 (Fdelete_frame): Don't treat the `environment' param specially.
23875 * frame.h (Qenvironment): Don't declare.
23876 * callproc.c (set_initial_environment): Don't set unused frame param.
23877
23878 * frame.c (Fframe_with_environment): Remove.
23879 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23880
23881 * lisp.h (Fframe_with_environment): Don't declare.
23882
238832007-10-10 Juanma Barranquero <lekktu@gmail.com>
23884
23885 * indent.c (indent_tabs_mode, last_known_column)
23886 (last_known_column_modified): Make static.
23887 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23888
238892007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23890
23891 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23892
238932007-10-09 Jason Rumney <jasonr@gnu.org>
23894
23895 * w32term.c (x_set_window_size): Disable code that attempts to tell
23896 Lisp code about a size change before it actually happens.
23897
238982007-10-09 Richard Stallman <rms@gnu.org>
23899
23900 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23901 return HANDLED_RETURN.
23902
239032007-10-08 Martin Rudalics <rudalics@gmx.at>
23904
23905 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23906 when there's an unread command event.
23907
23908 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23909 window autoselection act appropriately when leaving selected frame.
23910 (syms_of_frame): Initialize focus_follows_mouse.
23911 * frame.h (focus_follows_mouse): Extern it.
23912 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23913 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23914 * msdos.c (dos_rawgetc): Likewise.
23915 * w32term.c (w32_read_socket): Likewise.
23916 * xterm.c (handle_one_xevent): Likewise.
23917 * xdisp.c (syms_of_xdisp): In doc-string of
23918 mouse-autoselect-window mention focus-follows-mouse.
23919
239202007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23921
23922 * macterm.c (mac_load_query_font): Fix missing return value.
23923 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23924 Add BLOCK_INPUT.
23925
239262007-10-08 Richard Stallman <rms@gnu.org>
23927
23928 * xdisp.c (get_window_cursor_type): Implement documented behavior
23929 for cursor-in-non-selected-windows = t.
23930
239312007-10-08 Jason Rumney <jasonr@gnu.org>
23932
23933 * w32.c (w32_get_resource): Always close registry keys.
23934
239352007-10-08 Jason Rumney <jasonr@gnu.org>
23936
23937 * makefile.w32-in (LIBS): Add COMCTL32.
23938
23939 * w32fns.c (globals_of_w32fns): Init common controls.
23940
239412007-10-08 Richard Stallman <rms@gnu.org>
23942
23943 * image.c (our_memory_buffer): Rename from omfib_buffer.
23944
239452007-10-08 Richard Stallman <rms@gnu.org>
23946
23947 * buffer.c (Foverlays_at): Doc fix.
23948
239492007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23950
23951 * fns.c (Fplist_put): Preserve uneven tail data.
23952
239532007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23954
23955 * termhooks.h (enum event_kind): Remove trailing comma.
23956
23957 * frame.h (enum): Remove trailing comma.
23958
239592007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23960
23961 * w32proc.c (delete_child): Don't terminate threads of zombies.
23962
239632007-10-08 Martin Rudalics <rudalics@gmx.at>
23964
23965 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23966
23967 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23968 last-repeatable-command.
23969 (init_kboard): Initialize Vlast_repeatable_command.
23970 (command_loop_1): Set it to real_this_command unless that was
23971 bound to an input event.
23972 (mark_kboards): Mark it.
23973
239742007-10-08 Richard Stallman <rms@gnu.org>
23975
23976 * eval.c (condition-case): Doc fix.
23977
239782007-10-08 Masatake YAMATO <jet@gyve.org>
23979
23980 * xfaces.c (tty_supports_face_attributes_p): Fix code
23981 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23982 was copied and not edited.
23983
239842007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23985
23986 Add new `input-decode-map' keymap and use it for terminal
23987 escape sequences.
23988 * keyboard.h (struct kboard): Add Vinput_decode_map.
23989 Remove Vlocal_key_translation_map.
23990 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23991 (init_kboard): Init input-decode-map.
23992 Replace local-key-translation-map back with key-translation-map.
23993 (syms_of_keyboard): Declare input-decode-map.
23994 Remove local-key-translation-map. Update docstrings.
23995 (mark_kboards): Mark Vinput_decode_map.
23996 Don't mark Vlocal_key_translation_map.
23997 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23998 Replace local-key-translation-map back with key-translation-map.
23999 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24000 Bind in input-decode-map rather than function-key-map.
24001
24002 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24003 This was made redundant by the previous introduction of XSETPVECTYPE.
24004
240052007-10-09 Richard Stallman <rms@gnu.org>
24006
24007 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24008
240092007-09-29 Richard Stallman <rms@gnu.org>
24010
24011 * eval.c (internal_condition_case_2, internal_condition_case_1)
24012 (internal_condition_case): Reenable abort if x_catching_errors ()
24013 to see if that really happens and why.
24014
240152007-10-06 Andreas Schwab <schwab@suse.de>
24016
24017 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24018
240192007-10-04 Juanma Barranquero <lekktu@gmail.com>
24020
24021 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24022
240232007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24024
24025 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24026
240272007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24028
24029 * window.h (struct window):
24030 * window.c (struct save_window_data, struct saved_window):
24031 * termhooks.h (struct terminal):
24032 * process.h (struct Lisp_Process):
24033 * frame.h (struct frame):
24034 * buffer.h (struct buffer):
24035 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24036 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24037 The size field of (pseudo)vectors is now unsigned.
24038 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24039
24040 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24041 Turn `count' into an integer.
24042
24043 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24044 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24045 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24046 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24047 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24048
24049 * alloc.c (allocate_pseudovector): New fun.
24050 (ALLOCATE_PSEUDOVECTOR): New macro.
24051 (allocate_window, allocate_terminal, allocate_frame)
24052 (allocate_process): Use it.
24053 (mark_vectorlike): New function.
24054 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24055 (mark_terminals): Use it.
24056 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24057 (Fmake_byte_code): Use XSETPVECTYPE.
24058
24059 * frame.c (Fframe_parameters): Minor simplification.
24060
24061 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24062
24063 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24064
24065 * buffer.c (Fget_buffer_create, init_buffer_once):
24066 * lread.c (defsubr):
24067 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24068
24069 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24070 defined differently in the m/*.h files.
24071 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24072 (XSETPVECTYPE): New macro.
24073 (XSETPSEUDOVECTOR): Use it.
24074
24075 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24076 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24077
24078 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24079 * lread.c (defvar_per_buffer):
24080 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24081
24082 * window.c (candidate_window_p): Only consider as visible frames that
24083 are on the same terminal.
24084
24085 * m/ibms390x.h (MARKBIT): Remove unused macro.
24086
240872007-10-01 Juanma Barranquero <lekktu@gmail.com>
24088
24089 * lread.c (Fload): Fix typo in docstring.
24090
240912007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24092
24093 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24094 of a non-zero value can't yield zero.
24095
240962007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24097
24098 * term.c (term_clear_mouse_face, term_mouse_highlight)
24099 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24100
24101 * print.c (safe_debug_print): Use XHASH.
24102
24103 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24104 Lisp elements such as tags.
24105 (XHASH): New macro.
24106 (EQ): Use it.
24107 (SREF, SSET, STRING_COPYIN): Use SDATA.
24108 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24109
24110 * alloc.c (mark_terminal): Remove left-over declaration.
24111 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24112 (allocate_vectorlike): Remove type argument. Adjust callers.
24113 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24114 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24115
24116 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24117 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24118 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24119 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24120 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24121 Use them.
24122
24123 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24124 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24125 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24126
241272007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24128
24129 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24130 loaded by default.
24131
241322007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24133
24134 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24135 on this tty.
24136 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24137
24138 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24139 Update all users.
24140 (handle_one_term_event): Use Gpm_DrawPointer.
24141 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24142 Signal errors instead of returning nil. Always return nil.
24143 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24144 Make it a noop if gpm-mouse was not activated.
24145 (syms_of_term): Update names.
24146
241472007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24148
24149 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24150 (init_sys_modes): Check that gpm_tty is the current tty.
24151
24152 * alloc.c (allocate_terminal): Set the vector size to only count the
24153 lisp fields. Initialize those to nil.
24154 (mark_object): Don't treat terminals specially.
24155 (mark_terminal): Remove.
24156 (mark_terminals): Use mark_object instead.
24157
24158 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24159 the GC to the beginning.
24160
24161 * indent.h:
24162 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24163
24164 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24165
241662007-09-25 Jason Rumney <jasonr@gnu.org>
24167
24168 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24169
24170 * w32console.c (create_w32cons_output): Remove.
24171
24172 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24173
24174 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24175 (reset_sys_modes): Use reset_terminal_modes_hook.
24176
241772007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24178
24179 * eval.c (do_autoload): Don't output any message.
24180
241812007-09-24 Juri Linkov <juri@jurta.org>
24182
24183 * emacs.c (standard_args): Change priority of "--no-splash"
24184 from 40 to 3. Add "--no-desktop" with the same priority.
24185
241862007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24187
24188 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24189 and optimize the case where they are all 1.
24190
241912007-09-23 Johannes Weiner <hannes@saeurebad.de>
24192
24193 * lisp.h (abs): Define if not defined.
24194 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24195 Don't define `abs', since it's defined in lisp.h.
24196
241972007-09-22 Eli Zaretskii <eliz@gnu.org>
24198
24199 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24200 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24201 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24202 (init_tty): Use DEV_TTY instead of "/dev/tty".
24203 [WINDOWSNT]: No need to protect from NAME arg being null.
24204
242052007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24206
24207 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24208 up the tty state.
24209
242102007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24211
24212 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24213 (gpm_tty): Change its type.
24214 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24215 (gpm_tty): Change its type and initialize it.
24216 (Fterm_open_connection): Check the frame is indeed a tty.
24217 Use the new gpm_tty.
24218 (Fterm_close_connection): Use the new gpm_tty.
24219 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24220 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24221
242222007-09-21 Juanma Barranquero <lekktu@gmail.com>
24223
24224 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24225 underline_color, to draw strike-through.
24226
242272007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24228
24229 * lisp.h (allocate_terminal): Declare.
24230
24231 * window.c (candidate_window_p): Consider frames that are being placed
24232 by the user as somewhere between visible and iconified.
24233 (window_loop): Prefer windows on the current frame.
24234 (Fselect_window): Move the use of select-frame to the beginning so we
24235 can just delegate all the work (it'll call us back anyway).
24236
24237 * frame.c (Qdisplay_environment_variable):
24238 * frame.h (Qdisplay_environment_variable): Delete.
24239
24240 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24241 of the first arg, since that value may be a union.
24242
24243 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24244 parameter rather than Qdisplay_environment_variable. If all else
24245 fails, look for DISPLAY in initial-environment.
24246
242472007-09-21 Glenn Morris <rgm@gnu.org>
24248
24249 * Makefile.in (emacstool): Remove target.
24250 (lisp, shortlisp): Remove termdev.elc.
24251
242522007-09-21 Markus Triska <markus.triska@gmx.at>
24253
24254 * xterm.c (x_delete_display): Compile session management conditionally.
24255
242562007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24257
24258 * callproc.c (getenv_internal_1): New function.
24259 (getenv_internal): Use it.
24260 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24261
24262 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24263 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24264 (Fset_terminal_parameter): Work with dead terminals as well.
24265 (Fmodify_terminal_parameters): Remove.
24266
24267 * terminal.c (get_terminal): Handle terminals.
24268 Make sure the terminal returned is live.
24269 (create_terminal): Use allocate_terminal.
24270 (mark_terminals): Move to alloc.c.
24271 (delete_terminal): Use terminal->name as liveness status.
24272 NULL out fields after freeing their contents.
24273 Don't deallocate the object.
24274 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24275 rather than an int.
24276 (Fterminal_live_p): Accept non-integer arguments.
24277 (Fterminal_list): Return terminal objects rather than an ints.
24278
24279 * alloc.c (enum mem_type): New member for `terminal' objects.
24280 (allocate_terminal): New function.
24281 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24282 Handle terminals.
24283 (mark_terminal): New fun.
24284 (mark_terminals): Move from terminal.c.
24285
24286 * term.c (get_tty_terminal): Don't treat output_initial specially.
24287 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24288 (delete_tty): Use terminal->name as liveness status.
24289
24290 * termhooks.h (struct terminal): Make it into a pseudovector.
24291 Remove `deleted' replaced by checking `name's nullness.
24292
24293 * print.c (print_object): Handle terminals.
24294
24295 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24296 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24297
24298 * frame.c (make_terminal_frame):
24299 * keyboard.c (tty_read_avail_input):
24300 * w32term.c (x_delete_terminal):
24301 * xfns.c (Fx_create_frame, x_create_tip_frame):
24302 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24303
243042007-09-20 Glenn Morris <rgm@gnu.org>
24305
24306 * process.c (Fmake_network_process): Doc fix.
24307
243082007-09-19 Jason Rumney <jasonr@gnu.org>
24309
24310 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24311
243122007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24313
24314 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24315 Fix a C warning regarding variable constness.
24316
24317 * xterm.c (handle_one_xevent): Fix a C warning.
24318
243192007-09-18 Jason Rumney <jasonr@gnu.org>
24320
24321 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24322
243232007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24324
24325 * gtkutil.c (gdpy_def): New variable.
24326 (xg_initialize): Initialize gdpy_def.
24327 (xg_display_close): If no other display exists, set gdpy_def to a
24328 new connection.
24329
243302007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24331
24332 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24333 when we have no file name for the icon.
24334 (xg_tool_bar_expose_callback): Remove.
24335 (xg_create_tool_bar): Don't connect expose signal to
24336 xg_tool_bar_expose_callback.
24337 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24338
243392007-09-16 Andreas Schwab <schwab@suse.de>
24340
24341 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24342 values instead of zapping them.
24343
243442007-09-14 Glenn Morris <rgm@gnu.org>
24345
24346 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24347 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24348 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24349 scope and rename to omfib_buffer for clarity.
24350 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24351
243522007-09-14 Kenichi Handa <handa@m17n.org>
24353
24354 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24355
243562007-09-13 Jason Rumney <jasonr@gnu.org>
24357
24358 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24359
24360 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24361
24362 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24363 (mac_term_init): Call here instead, passing rif.
24364
243652007-09-13 Glenn Morris <rgm@gnu.org>
24366
24367 * s/hpux.h: No longer define `static' as nothing.
24368
243692007-09-13 Johan Bockgård <bojohan@gnu.org>
24370
24371 * callint.c (Fcall_interactively): Remove unused var `fun'.
24372
243732007-09-12 Romain Francoise <romain@orebokech.com>
24374
24375 * window.c (prefer_window_split_horizontally, display_buffer):
24376 Revert 2007-09-08 change.
24377
243782007-09-12 Glenn Morris <rgm@gnu.org>
24379
24380 * alloca.c: Remove file.
24381 * Makefile.in (alloca): Do not undef.
24382 (allocaobj, alloca.o): Remove.
24383 (otherobj): Remove allocaobj.
24384 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24385 * regex.c (C_ALLOCA): Remove all references and code that was only
24386 used when this was defined.
24387 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24388 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24389 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24390
24391 * Makefile.in (SOURCES, unlock, relock): Delete.
24392
24393 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24394 (menu_grab_callback): All uses changed.
24395
24396 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24397 (x_reply_selection_request): All uses changed.
24398
243992007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24400
24401 * lread.c (load_warn_old_style_backquotes): Change message to look
24402 better when it appears in the middle of byte-compiler messages.
24403
244042007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24405
24406 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24407
24408 * xterm.c (x_create_terminal): Add comment.
24409
24410 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24411
244122007-09-10 Richard Stallman <rms@gnu.org>
24413
24414 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24415
244162007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24417
24418 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24419 (DEFUN): Document `intspec', use it instead of `prompt'.
24420
24421 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24422
24423 * data.c (Finteractive_form): If the interactive specification starts
24424 with a `(', use it as a Lisp form.
24425
24426 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24427 name and file modes.
24428
24429 * callint.c (Fcall_interactively): Comment fixes.
24430
244312007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24432
24433 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24434 and compiled functions.
24435
244362007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24437
24438 * window.c (prefer_window_split_horizontally): New variable.
24439 (display_buffer): Consider splitting window horizontally depending
24440 on prefer_window_split_horizontally.
24441
244422007-09-08 Eli Zaretskii <eliz@gnu.org>
24443
24444 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24445
244462007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24447
24448 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24449
24450 * frame.c (x_set_frame_parameters): Check number is positive before
24451 using XFASTINT.
24452
24453 * window.c (freeze_window_start): Don't presume selected_window holds
24454 a window object.
24455 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24456
244572007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24458
24459 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24460
244612007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24462
24463 * window.c (Vsplit_window_preferred_function): New var.
24464 (Fdisplay_buffer): Use it.
24465 (syms_of_window): Export, and initialize it.
24466
244672007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24468
24469 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24470
244712007-09-06 Glenn Morris <rgm@gnu.org>
24472
24473 * gtkutil.c (menu_grab_callback) <cnt>:
24474 * xselect.c (x_reply_selection_request) <cnt>: Move static
24475 variable to file scope.
24476
244772007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24478
24479 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24480 consistent values of selected_frame and selected_window.
24481
244822007-09-04 Jason Rumney <jasonr@gnu.org>
24483
24484 * w32console.c (initialize_w32_display): Zero unused hooks.
24485
244862007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24487
24488 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24489 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24490
244912007-09-04 Jason Rumney <jasonr@gnu.org>
24492
24493 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24494 in w32console.c. Set up input. Remove XXX comments that have been
24495 confirmed as correct.
24496
24497 * s/ms-w32.h (MULTI_KBOARD): Define.
24498
24499 * w32console.c (one_and_only_w32cons): Remove.
24500 (initialize_w32_display): Take terminal argument.
24501
24502 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24503 initialize_w32_display.
24504 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24505
24506 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24507
24508 * keyboard.c (discard_mouse_events): Discard it.
24509 (make_lispy_event): Translate it to a lisp event.
24510 (lispy_wheel_names): Add wheel-left and right events.
24511 (syms_of_keyboard): Enlarge wheel_syms.
24512
24513 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24514 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24515
24516 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24517
24518 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24519 from WM_MOUSEHWHEEL.
24520 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24521
24522 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24523 terminal.
24524
24525 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24526 keyboard for the terminal.
24527
245282007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24529
24530 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24531 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24532 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24533 and resume-tty-function to resume-tty-hook.
24534 (Fsuspend_tty, Fresume_tty): Use new names.
24535
245362007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24537
24538 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24539 if it starts with "n:".
24540
245412007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24542
24543 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24544
245452007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24546
24547 * frame.h:
24548 * frame.c (Qterm_environment_variable): Remove.
24549 (syms_of_frame): Don't init and staticpro it.
24550
24551 * callproc.c (getenv_internal): Remove special case for $TERM.
24552
24553 * callproc.c (Vinitial_environment): New variable.
24554 (set_initial_environment): Initialize it.
24555 (syms_of_callproc): Declare it.
24556 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24557 TERM under which a process runs is never related to the TERM in which
24558 Emacs is running.
24559
245602007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24561
24562 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24563 * s/darwin.h: ... do it here.
24564
245652007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24566
24567 * lisp.h (set_initial_environment): Rename from set_global_environment.
24568
24569 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24570 removed by mistake on the multi-tty branch.
24571
24572 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24573 (Fmodify_frame_parameters): Return a value.
24574
24575 * image.c (png_load): Comment-out var only used in commented-out code.
24576
24577 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24578 before passing it to mark_object.
24579
24580 * xfaces.c (internal_resolve_face_name): Return a value.
24581 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24582
24583 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24584 (x_icon): Comment-out var only used in commented-out code.
24585
245862007-08-29 Romain Francoise <romain@orebokech.com>
24587
24588 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24589 QUIT hasn't been provided.
24590
245912007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24592
24593 * callproc.c (child_setup, getenv_internal): Use the
24594 display-environment-variable and term-environment-variable frame params.
24595 (set_initial_environment): Initialise Vprocess_environment.
24596
24597 * config.in: Disable multi-keyboard support on a mac.
24598
24599 * frame.c (Qterm_environment_variable)
24600 (Qdisplay_environment_variable): New variables.
24601 (syms_of_frame): Intern and staticpro them.
24602 (Fmake_terminal_frame): Disable output method test.
24603
24604 * frame.h: Declare them here.
24605
24606 * macfns.c (x_set_mouse_color): Get rif from the frame.
24607 (x_set_tool_bar_lines): Don't use updating_frame.
24608 (mac_window): Add 2 new parameters for consistency with other systems.
24609 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24610 frame parameters following what is done in X11 and w32. Don't use
24611 FRAME_MAC_DISPLAY_INFO.
24612 (Fx_open_connection, start_hourglass): Remove window-system check.
24613 (x_create_tip_frame): Get the keyboard from the terminal.
24614
24615 * macmenu.c: Reorder includes.
24616 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24617
24618 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24619 terminal parameter.
24620 (x_clear_frame): Add a frame parameter.
24621 (note_mouse_movement): Get rif from the frame.
24622 (mac_term_init): Initialize the terminal.
24623 (mac_initialize): Make static and move terminal initialization ...
24624 (mac_create_terminal): ... to this new function.
24625
24626 * macterm.h (struct mac_display_info): Add terminal.
24627 (mac_initialize): Delete declaration.
24628
24629 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24630
24631 * sysdep.c: Comment out text after #endif.
24632
24633 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24634 is defined. Better initialize ttys in windows. Use terminal
24635 specific mouse_position_hook.
24636
24637 * termhooks.h (union display_info): Add mac_display_info.
24638
24639 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24640 Set the default minibuffer frame, window_system and the rest of the
24641 frame parameters following what is done in X11.
24642
24643 * w32term.c (w32_initialize): Make static.
24644
24645 * xselect.c (x_handle_selection_clear): Only access
24646 terminal->kboard when MULTI_KBOARD is defined.
24647
24648 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24649 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24650
246512007-08-29 Jason Rumney <jasonr@gnu.org>
24652
24653 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24654 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24655
24656 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24657 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24658
24659 * keyboard.c (restore_kboard_configuration): Only define when
24660 MULTI_KBOARD defined.
24661
24662 * makefile.w32-in: Update dependancies from Makefile.in.
24663 (OBJ1): Add terminal.$(O)
24664
24665 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24666 Don't define function body.
24667 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24668
24669 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24670
24671 * w32.c (request_sigio, unrequest_sigio): Remove.
24672
24673 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24674 (w32con_clear_frame, w32con_clear_end_of_line)
24675 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24676 (w32con_delete_glyphs, w32con_set_terminal_window)
24677 (scroll_line, w32_sys_ring_bell): Add frame arg.
24678 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24679 Add terminal arg.
24680 (PICK_FRAME): Remove.
24681 (w32con_write_glyphs): Use frame specific terminal coding.
24682 (one_and_only_w32cons): New global variable.
24683 (initialize_w32_display): Use it for storing hooks.
24684 (create_w32cons_output): New function.
24685
24686 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24687 arg a frame.
24688
24689 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24690 Set window_system.
24691 (x_set_tool_bar_lines): Don't use updating_frame.
24692 (Fx_create_frame): Set terminal and ref count.
24693 (Fx_open_connection): Remove window-system check.
24694
24695 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24696
24697 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24698 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24699 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24700 Add frame arg.
24701 (x_delete_terminal, w32_create_terminal): New functions.
24702 (w32_term_init): Create a terminal.
24703 (w32_initialize): Move terminal specific initialization to
24704 w32_create_terminal.
24705
24706 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24707 (w32_clear_rect, w32_clear_area): Use background from frame.
24708 (w32_display_info): Add terminal.
24709 (w32_sys_ring_bell, x_delete_display): Declare here.
24710
24711 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24712
24713 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24714
247152007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24716
24717 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24718 Fix get_named_tty calls for the controlling tty.
24719
247202007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24721
194d44e7 24722 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24723
247242007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24725
24726 * term.c (tty_insert_glyphs): Add missing first parameter.
24727
247282007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24729
24730 * buffer.c (Fbuffer_list, Fbury_buffer):
24731 Take frame->buried_buffer_list into account.
24732
24733 * cm.c (current_tty): New variable, for cmputc().
24734 (cmputc): Use it.
24735 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24736 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24737 (cmgoto): Add tty parameter. Pass it on to calccost().
24738 Use emacs_tputs() instead of tputs().
24739
24740 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24741 tputs().
24742 (current_tty): New variable, for cmputc().
24743 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24744
24745 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24746 (internal_condition_case, internal_condition_case_1)
24747 (internal_condition_case_2): Don't abort when x_catching_errors.
24748
24749 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24750 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24751 prevent crashes caused by bogus longjmps in read_char.
24752
24753 * keymap.h (Fset_keymap_parent): Add EXFUN.
24754
24755 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24756 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24757 Remove redundant definition.
24758
24759 * macfns.c (x_set_mouse_color, x_make_gc):
24760 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24761
24762 * w32term.c (x_free_frame_resources):
24763 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24764 (w32_initialize): Use the accessor macros for terminal characteristics.
24765
24766 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24767 Use the accessor macros for terminal characteristics.
24768 * msdos.c (internal_terminal_init): Use the accessor macros for
24769 terminal characteristics.
24770 (ScreenVisualBell, internal_terminal_init):
24771 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24772
24773 * termopts.h (no_redraw_on_reenter): Declare.
24774
24775 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24776 (mark_terminals, mark_ttys): Declare.
24777 (Fgarbage_collect): Call them.
24778 (mark_object): Mark buried_buffer_list.
24779
24780 * prefix-args.c: Include stdlib.h for exit.
24781
24782 * syssignal.h: Add comment.
24783
24784 * indent.c: Include stdio.h.
24785
24786 * window.h (Vinitial_window_system): Declare.
24787 (Vwindow_system): Delete declaration.
24788
24789 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24790
24791 * image.c (lookup_image): Don't initialize `c' until the xasserts
24792 have been run.
24793
24794 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24795 FRAME_FOREGROUND_PIXEL.
24796
24797 * print.c (print_preprocess): Don't lose print_depth levels while
24798 iterating.
24799
24800 * widget.c (update_from_various_frame_slots):
24801 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24802
24803 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24804 frames.
24805 (window_internal_height): Remove bogus make_number call.
24806 (init_window_once): Call make_terminal_frame with two zero parameters.
24807
24808 * fileio.c (Fread_file_name): Update comment.
24809
24810 * callint.c (Fcall_interactively):
24811 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24812 Make sure it is correctly unwound.
24813
24814 * xsmfns.c (x_session_close): New function.
24815
24816 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24817 Delete declarations.
24818
24819 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24820 (x_output): Remove background_pixel and foreground_pixel fields.
24821 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24822 (x_delete_device, x_session_close): Declare.
24823
24824 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24825 (read_filtered_event): Call `read_char' with a local
24826 `wrong_kboard_jmpbuf'.
24827
24828 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24829 Don't call single_kboard_state. Use FRAME_RIF.
24830
24831 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24832 systems.
24833
24834 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24835 (Fframe_with_environment, Fset_input_meta_mode)
24836 (Fset_quit_char): EXFUN.
24837 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24838 (init_sys_modes, reset_sys_modes): Update prototypes.
24839 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24840
24841 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24842 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24843 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24844 Delete declarations.
24845 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24846 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24847 New declarations.
24848
24849 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24850 already does that during init_display(). Call syms_of_keymap
24851 before syms_of_keyboard. Call `syms_of_terminal'.
24852 Call set_initial_environment, not set_process_environment.
24853 (shut_down_emacs): Call reset_all_sys_modes() instead of
24854 reset_sys_modes().
24855
24856 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24857 (internal_resolve_face_name, resolve_face_name_error): New functions.
24858 (resolve_face_name): Protect against loops and errors thrown by Fget.
24859 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24860 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24861
24862 * scroll.c: Replace CURTTY() with local variables throughout the
24863 file (where applicable).
24864 (calculate_scrolling, calculate_direct_scrolling)
24865 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24866 characteristics.
24867
24868 * keymap.c (Vfunction_key_map): Remove.
24869 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24870 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24871 (Vkey_translation_map): Remove.
24872 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24873 (Fdescribe_buffer_bindings)
24874 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24875 Update for terminal-local key-translation-map.
24876
24877 * Makefile.in (callproc.o): Update dependencies.
24878 (lisp, shortlisp): Add termdev.elc.
24879 (obj): Add terminal.o.
24880 (terminal.o): Add dependencies.
24881 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24882 (data.o, fns.o): Add termhooks.h dependency.
24883 (SOME_MACHINE_LISP): Add dnd.elc.
24884 (minibuf.o): Fix typo.
24885 Update dependencies.
24886
24887 * data.c (do_symval_forwarding, store_symval_forwarding)
24888 (find_symbol_value): Use the selected frame's keyboard, not
24889 current_kboard.
24890
24891 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24892 Vwindow_system.
24893
24894 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24895 Fmenu_bar_open.
24896 (syms_of_xmenu): Update defsubr.
24897 (mouse_position_for_popup, Fx_popup_menu)
24898 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24899 (set_frame_menubar, free_frame_menubar)
b97439ce 24900 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24901 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24902 an X frame.
24903
24904 * xselect.c (x_own_selection): Abort if not an X frame.
24905 (some_frame_on_display): Check if it is an X frame.
24906 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24907
24908 * coding.c: Include frame.h and termhooks.h.
24909 (terminal_coding, keyboard_coding): Delete.
24910 (Fset_terminal_coding_system_internal)
24911 (Fset_keyboard_coding_system_internal)
24912 (Fkeyboard_coding_system)
24913 (Fterminal_coding_system): Add a terminal parameter.
24914 Get terminal_coding from the terminal.
24915 (init_coding_once): Don't call setup_coding_system here.
24916
24917 * dispextern.h (set_scroll_region, turn_off_insert)
24918 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24919 (tty_clear_end_of_line, tty_setup_colors)
24920 (delete_tty, updating_frame)
24921 (produce_special_glyphs, produce_glyphs, write_glyphs)
24922 (insert_glyphs): Remove.
24923 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24924 (tty_turn_off_highlight, get_tty_size): Add declaration.
24925 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24926
24927 * frame.h (enum output_method): Add output_initial.
24928 (struct x_output): Delete.
24929 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24930 Access foreground_pixel and background_pixel directly from the frame.
24931 (tty_display): Delete.
24932 (struct frame): Add buried_buffer_list, foreground_pixel,
24933 background_pixel and terminal. Delete kboard.
24934 (union output_data): Add tty.
24935 (FRAME_KBOARD): Get the kboard from the terminal.
24936 (FRAME_INITIAL_P): New macro.
24937 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24938 (Qterm_environment_variable, Qdisplay_environment_variable)
24939 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24940 New declarations.
24941
24942 * termchar.h (tty_output, tty_display_info): New structures.
24943 (tty_list): Declare.
24944 (FRAME_TTY, CURTTY): New macros.
24945 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24946 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24947 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24948 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24949
24950 * callproc.c: Include frame.h and termhooks.h, for terminal
24951 parameters.
24952 (add_env): New function.
24953 (child_setup): Use it.
24954 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24955 (getenv_internal): Fix get_terminal_param call.
24956 (Fgetenv_internal, egetenv): Update doc.
24957 (syms_of_callproc): Initialize Vprocess_environment to nil.
24958 Register and initialize them. Remove obsolete defvars. Update doc
24959 strings.
24960 (child_setup): Handle Vlocal_environment_variables.
24961 (getenv_internal): Add terminal parameter.
24962 Handle Vlocal_environment_variables.
24963 (Fgetenv_internal): Add terminal parameter.
24964 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24965 environment in a frame (not terminal) parameter. Update doc strings.
24966 (set_initial_environment): Rename from set_global_environment.
24967 Store Emacs environment in initial frame parameter.
24968
24969 * xdisp.c (redisplay_internal): Update references to
24970 `previous_terminal_frame'.
24971 (display_mode_line, Fformat_mode_line): Replace calls to
24972 `push_frame_kboard' with `push_kboard'.
24973 (get_glyph_string_clip_rects): Add extra parentheses and
24974 braces to prevent compiler warnings.
24975 (calc_pixel_width_or_height): Add xassert to check that the
24976 frame is alive. Don't call `lookup_image' on a termcap frame.
24977 (message2_nolog, message3_nolog, redisplay_internal)
24978 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24979 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24980 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24981 (Fx_display_pixel_width, Fx_display_pixel_height)
24982 (Fx_display_planes, Fx_display_color_cells)
24983 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24984 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24985 (Fx_display_backing_store, Fx_display_visual_class)
24986 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24987 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24988
24989 * xfns.c (x_set_foreground_color x_set_background_color)
24990 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24991 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24992 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24993 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24994 terminal that is being deleted.
24995 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24996 frame parameter, and make sure it overrides any user-supplied setting.
24997 (Fx_close_connection, Fx_synchronize): Unify argument names with
24998 the rest of the DEFUNs.
24999
25000 * dispnew.c (Fsend_string_to_terminal): Update call to
25001 `get_tty_terminal'.
25002 (Fredraw_frame, Fsend_string_to_terminal)
25003 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25004 FRAME_TERMCAP_P and FRAME_TTY.
25005 (window_change_signal): Don't believe width/height values that are
25006 impossibly small.
25007 (Vinitial_window_system): Rename from Vwindow_system.
25008 (termscript, Wcm, rif): Delete.
25009
25010 * termhooks.h (struct terminal): New struct containing the
25011 previously global text display hooks and new members NAME,
25012 DELETED and PARAM_ALIST.
25013 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25014 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25015 (FRAME_RIF): New macros.
25016 (get_terminal_param, get_device): New declarations.
25017 (termscript): Delete declaration.
25018
25019 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25020 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25021 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25022 FRAME_FOREGROUND_PIXEL.
25023 (x_fully_uncatch_errors): Disable definition.
25024 (x_scroll_bar_expose): Fix reference to foreground pixel.
25025 (XTread_socket): Disable loop on all X displays.
25026 (x_delete_terminal): Don't set terminal->deleted and let
25027 delete_terminal delete the frames on the terminal.
25028 (x_delete_display): Doc update to reflect changes in
25029 delete_terminal.
25030 (x_display_info) <terminal>: Move member earlier in the struct.
25031 (deleting_tty): Remove old variable.
25032 (Fsuspend_tty): Call clear_tty_hooks.
25033 (Fresume_tty, init_tty): Call set_tty_hooks.
25034 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25035 errors on X frames.
25036 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25037 (handle_one_xevent): Initialize `f' to NULL.
25038 (x_delete_terminal, x_create_terminal): New functions.
25039 (XTset_terminal_modes, XTreset_terminal_modes)
25040 (XTread_socket, x_connection_closed, x_term_init)
25041 (x_term_init, x_delete_display): Add terminal parameter.
25042 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25043 X connections.
25044
25045 * frame.c: Include termchar.h.
25046 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25047 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25048 (Qdisplay_environment_variable): New vars.
25049 (Fframep): Deal with output_initial.
25050 (Fframe-live-p): Doc fix.
25051 (Fwindow-system): New function.
25052 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25053 (make_terminal_frame): Don't create frames on a terminal that is
25054 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25055 (store_frame_param): Check for found_for_frame before calling XFRAME.
25056 (Fmake_terminal_frame): Handle NULL tty names correctly.
25057 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25058 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25059 frames to refer to a deleted frame in their 'environment parameter.
25060 (Fframe_with_environment): New function.
25061 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25062 (get_future_frame_param): New function.
25063 (Fmake_terminal_frame): Use it.
25064 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25065
25066 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25067 * sysdep.c (reset_sys_modes): Update for renames.
25068
25069 * keyboard.c (tty_read_avail_input): New function.
25070 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25071 (syms_of_keyboard): Defsubr them.
25072 (Fset_input_meta_mode, Fset_quit_char): New functions.
25073 (Fset_input_mode): Split to above functions.
25074 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25075 parameter. Use it in call to `read_char'.
25076 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25077 Set wrong_kboard_jmpbuf correctly in recursive calls.
25078 Use current_kboard to access Vkeyboard_translate_table.
25079 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25080 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25081 Update longjmp invocations. Remember the original current_kboard,
25082 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25083 changes it. Comment out unnecessary calls to
25084 `record_single_kboard_state' and `any_kboard_state'.
25085 Update recursive calls.
25086 (wrong_kboard_jmpbuf): Remove global variable.
25087 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25088 Handle deleted interrupted_kboards correctly; that is a legal
25089 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25090 and read_char calls. Abort if interrupted_kboard died in read_char.
25091 (any_kboard_state, single_kboard_state)
25092 (push_frame_kboard): Remove function.
25093 (pop_kboard): Switch out of single_kboard mode if the kboard has
25094 been deleted. Remove unused variable. Help debugging by not
25095 changing current_kboard unnecessarily. Set current_kboard to the
25096 kboard of the selected frame when the stored kboard object has
25097 been deleted before pop_kboard.
25098 (temporarily_switch_to_single_kboard): Change first parameter to a
25099 frame pointer. Throw an error when caller wants to change kboards
25100 while in single_kboard mode. Don't push_kboard if we weren't in
25101 single kboard state. Don't pop_kboard if we popped into any
25102 kboard state.
25103 (restore_kboard_configuration): Abort if pop_kboard changed the
25104 kboard in single_kboard mode. Call pop_kboard only after setting
25105 up single_kboard mode.
25106 (Frecursive_edit): Switch to single_kboard mode only in nested
25107 command loops.
25108 (cmd_error, command_loop, command_loop_1, timer_check):
25109 Comment out unnecessary call to `any_kboard_state' and
25110 `record_single_kboard_state'.
25111 (delete_kboard): Exit single_kboard mode if we have just deleted
25112 that kboard. Use FRAME_KBOARD.
25113 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25114 `fatal_error_signal'.
25115 (record_single_kboard_state): Don't push_kboard if we weren't in
25116 single kboard state. Don't pop_kboard if we popped into any
25117 kboard state.
25118 (push_frame_kboard): Rename to push_kboard.
25119 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25120 (read_avail_input): Read input from all terminals.
25121 (mark_kboards): Also mark Vkeyboard_translate_table.
25122 (kbd_buffer_store_event_hold): Simplify condition.
25123 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25124 (Vkeyboard_translate_table): Move to struct kboard.
25125 (init_kboard): Initialize Vkeyboard_translate_table.
25126 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25127 Vkeyboard_translate_table. Update doc strings. Update docs of
25128 local-function-key-map and function-key-map.
25129
25130 * terminal.c: New file.
25131
25132 * term.c: Include errno.h.
25133 (Vring_bell_function, device_list, initial_device)
25134 (next_device_id, ring_bell, update_begin, update_end)
25135 (set_terminal_window, cursor_to, raw_cursor_to)
25136 (clear_to_end, clear_frame, clear_end_of_line)
25137 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25138 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25139 (syms_of_term): Move their initialization to terminal.c.
25140 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25141 (Ftty_display_color_cells)
25142 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25143 (clear_tty_hooks, set_tty_hooks)
25144 (init_tty, maybe_fatal): New functions.
25145 (Ftty_type): Return nil if terminal is not on a tty instead of
25146 throwing an error. Doc update.
25147 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25148 Doc update. Initialize new subrs and variables.
25149 (delete_tty): Use terminal->deleted.
25150 (tty_set_terminal_modes): Rename from set_terminal_modes.
25151 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25152 (set_scroll_region): Rename to `tty_set_scroll_region'.
25153 (turn_on_insert): Rename to `tty_turn_on_insert'.
25154 (turn_off_insert): Rename to `tty_turn_off_insert'.
25155 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25156 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25157 (toggle_highligh): Rename to `tty_toggle_highlight'.
25158 (background_highlight): Rename to `tty_background_highlight'.
25159 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25160 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25161 (tty_set_scroll_region, tty_background_highlight)
25162 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25163 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25164 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25165 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25166 Add static modifier.
25167 (tty_reset_terminal_modes, tty_set_terminal_window)
25168 (tty_set_scroll_region, tty_background_highlight)
25169 (tty_highlight_if_desired, tty_cursor_to)
25170 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25171 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25172 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25173 renames.
25174
251752007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25176
25177 * keyboard.c: Qrtl is new.
25178 (parse_tool_bar_item): Handle :rtl keyword.
25179 (syms_of_keyboard): Intern :rtl keyword.
25180
25181 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25182
25183 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25184 so no Lisp code is executed.
25185 (file_for_image, find_rtl_image): New functions.
25186 (xg_get_image_for_pixmap): Use file_for_image.
25187 (update_frame_tool_bar): If direction is RTL, use RTL image if
25188 defined. Use Gtk stock images if defined.
25189
251902007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25191
25192 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25193 for nonexistent or zero-width glyph in composition glyph.
25194
251952007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25196
25197 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25198
25199 * xdisp.c (Finvisible_p): New function.
25200 (syms_of_xdisp): defsubr it.
25201
252022007-08-24 Juanma Barranquero <lekktu@gmail.com>
25203
25204 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25205 Doc fixes.
25206
252072007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25208
25209 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25210
252112007-08-24 Martin Rudalics <rudalics@gmx.at>
25212
25213 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25214 whether decoding has modified buffer contents.
25215
252162007-08-24 Jason Rumney <jasonr@gnu.org>
25217
25218 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25219 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25220 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25221 (init_svg_functions) [HAVE_NTGUI]: New function.
25222 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25223 (svg_load_image): Use them.
25224 (svg_load_image) [HAVE_NTGUI]: Implement background.
25225
252262007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25227
25228 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25229 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25230 (LIBX): Remove @RSVG_LIBS@.
25231 (LIBES): Add $(RSVG_LIBS).
25232
25233 * image.c (svg_load_image): Blend with specified background if exists.
25234 Use IMAGE_BACKGROUND. Add Mac OS Support.
25235
25236 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25237 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25238 Remove macros.
25239 [MAC_OSX] (socket_callback): Do nothing.
25240 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25241 ReceiveNextEvent.
25242 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25243 socket_callback.
25244 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25245
252462007-08-22 Glenn Morris <rgm@gnu.org>
25247
25248 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25249
252502007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25251
25252 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25253
25254 * image.c: Add support for SVG images. Some additional comments
25255 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25256 (svg_image_p): New function to test for SVG image.
25257 (svg_load): New function to load SVG image.
25258 (svg_load_image): New function, helper for svg_load.
25259 (Qsvg): New Lisp_object.
25260 (svg_keyword_index): New enum.
25261 (svg_format): New static `image_keyword' struct.
25262 (svg_type): New static `image_type' struct.
25263 (librsvg/rsvg.h): Include it.
25264
252652007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25266
25267 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25268
252692007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25270
25271 * lread.c (Qold_style_backquotes): New var.
25272 (syms_of_lread): Init and staticpro it.
25273 (load_warn_old_style_backquotes): New fun.
25274 (Fload): Use them to warn about old style backquotes.
25275 (end_of_file_error, Fload): Remove unused vars.
25276
25277 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25278
25279 * lread.c (Vold_style_backquotes): New var.
25280 (syms_of_lread): Init and export it to Elisp.
25281 (read1): Set it when we find an old-style (back)quote.
25282
252832007-08-22 Jason Rumney <jasonr@gnu.org>
25284
25285 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25286
252872007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25288
25289 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25290
252912007-08-19 Richard Stallman <rms@gnu.org>
25292
25293 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25294
252952007-08-19 Andreas Schwab <schwab@suse.de>
25296
25297 * alloc.c (pure): Round PURESIZE up.
25298
252992007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25300
25301 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25302 active frame.
25303
253042007-08-16 Richard Stallman <rms@gnu.org>
25305
25306 * eval.c (Fcommandp): Add parens to clarify.
25307
25308 * minibuf.c (Fall_completions): Use enum for type of table.
25309
25310 * emacs.c (USAGE2): Improve text.
25311
253122007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25313
25314 * term.c (tty_default_color_capabilities): Declare static
25315 variables in file scope, to avoid HPUX compiler problem.
25316
253172007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25318
25319 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25320 to gtk_toolbar_insert.
25321
253222007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25323
25324 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25325
25326 * insdel.c (reset_var_on_error): New fun.
25327 (signal_before_change, signal_after_change):
25328 Use it to reset (after|before)-change-functions to nil in case of error.
25329 Bind inhibit-modification-hooks to t.
25330 Don't bind (after|before)-change-functions to nil while they run.
25331
253322007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25333
25334 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25335 filling pixmap with stippled background.
25336
253372007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25338
25339 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25340 Don't use invisible frame as parent window for repositioning.
25341
253422007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25343
25344 * print.c (new_backquote_output): Rename from old_backquote_output.
25345 (print): Inverse its logic (according to its name) so as to match the
25346 behavior of new_backquote_flag in lread.c.
25347
253482007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25349
25350 * gmalloc.c (posix_memalign): New function.
25351
25352 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25353 ActivateControl/DeactivateControl here.
25354 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25355 frame-notice-user-settings is non-nil.
25356 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25357 for kEventParamFMFontStyle.
25358 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25359 mac_pass_command_to_system and mac_pass_control_to_system here.
25360 (XTread_socket): Call ActivateControl/DeactivateControl here.
25361 (XTread_socket) [TARGET_API_MAC_CARBON]:
25362 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25363 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25364 for window repositioning.
25365
253662007-08-08 Glenn Morris <rgm@gnu.org>
25367
25368 * Replace `iff' in doc-strings and comments.
25369
253702007-08-07 Chong Yidong <cyd@stupidchicken.com>
25371
25372 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25373
253742007-08-07 Martin Rudalics <rudalics@gmx.at>
25375
25376 * fileio.c (Finsert_file_contents): Run format-decode and
25377 after_insert_file_functions on entire buffer when REPLACE is
25378 non-nil and inhibit modification_hooks and point_motion_hooks.
25379 For consistency, run after_insert_file_functions iff something
25380 got inserted. Move signal_after_change and update_compositions
25381 after code running after_insert_file_functions. Make sure that
25382 undo_list doesn't record intermediate steps of the decoding process.
25383
253842007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25385
25386 * emacs.c (main)
25387 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25388 Call malloc_enable_thread on interactive startup.
25389
25390 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25391 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25392 [USE_PTHREAD]: Conditionalize with it.
25393 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25394 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25395 New functions.
25396
253972007-08-06 Chong Yidong <cyd@stupidchicken.com>
25398
25399 * xdisp.c (redisplay_window): When restoring original buffer
25400 position, make sure it is still valid.
25401
25402 * image.c (png_load): Ignore png-supplied background color.
25403
254042007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25405
25406 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25407 Use kCFAbsoluteTimeIntervalSince1970.
25408
25409 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25410 New variable.
25411 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25412 event loop should be quit.
25413 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25414 Quit dialog event loop if quit_dialog_event_loop is set.
25415
25416 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25417 (Selection): New typedef. Use instead of ScrapRef.
25418 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25419 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25420 (mac_clear_selection): Rename from clear_scrap.
25421 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25422 scrap_has_target_type. All uses changed.
25423 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25424 (mac_selection_has_target_p): New functions.
25425 (mac_put_selection_value): Rename from put_scrap_string.
25426 (mac_get_selection_value): Rename from get_scrap_string.
25427 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25428 (put_scrap_private_timestamp, scrap_has_target_type)
25429 (get_scrap_private_timestamp): Remove functions.
25430 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25431 (x_own_selection, x_get_local_selection):
25432 Use mac_valid_selection_value_p.
25433 (x_own_selection): Don't use put_scrap_private_timestamp.
25434 Record OWNERSHIP-INFO into Vselection_alist instead.
25435 (x_get_local_selection): Don't check type if request is local.
25436 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25437 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25438
254392007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25440
25441 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25442 add comment explaining why.
25443
254442007-08-03 Richard Stallman <rms@gnu.org>
25445
25446 * fileio.c (Fvisited_file_modtime): Use make_time.
25447
254482007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25449
25450 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25451 build.
25452
254532007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25454
25455 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25456
254572007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25458
25459 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25460
254612007-07-30 Richard Stallman <rms@gnu.org>
25462
25463 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25464
254652007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25466
25467 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25468
254692007-07-28 Nick Roberts <nickrob@snap.net.nz>
25470
25471 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25472 remote default-directory.
25473
25474 * buffer.c (mode-line-format): Update doc string.
25475
254762007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25477
25478 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25479 scroll bar gap.
25480 (x_scroll_bar_create): Set bar->fringe_extended_p.
25481 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25482 on frame edge. Check fringe background extension. Don't clear
25483 extended fringe background area.
25484
25485 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25486 (w32_fill_area): Enclose multiple statements with do ... while (0).
25487
25488 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25489 Extend fringe background to scroll bar gap.
25490 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25491 Set bar->fringe_extended_p.
25492 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25493 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25494 background extension. Don't clear extended fringe background area.
25495
25496 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25497 New member fringe_extended_p.
25498
254992007-07-25 Glenn Morris <rgm@gnu.org>
25500
25501 * Relicense all FSF files to GPLv3 or later.
25502
25503 * COPYING: Switch to GPLv3.
25504
255052007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25506
25507 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25508
25509 * data.c (Finteractive_form): Check for the presence of an
25510 `interactive-form' symbol property more thoroughly.
25511
25512 * data.c (Finteractive_form): Use an `interactive-form' property if
25513 present, analogous to the function-documentation property.
25514
255152007-07-24 Jason Rumney <jasonr@gnu.org>
25516
25517 * w32fns.c (x_real_positions): Get real position from OS instead of
25518 calculating it.
25519
255202007-07-23 Jason Rumney <jasonr@gnu.org>
25521
25522 * filelock.c (current_lock_owner): Allow for @ sign in username.
25523
255242007-07-22 Nick Roberts <nickrob@snap.net.nz>
25525
25526 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25527 remote default-directory.
25528
25529 * buffer.c (mode-line-format): Describe above case in doc string.
25530
255312007-07-20 Eli Zaretskii <eliz@gnu.org>
25532
25533 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25534 Define if not defined.
25535
255362007-07-18 Jason Rumney <jasonr@gnu.org>
25537
25538 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25539
255402007-07-18 Richard Stallman <rms@gnu.org>
25541
25542 * data.c (Fsetq_default): Doc fix.
25543
25544 * eval.c (Fsetq): Doc fix.
25545
255462007-07-18 Juanma Barranquero <lekktu@gmail.com>
25547
25548 * coding.c (Ffind_operation_coding_system):
25549 * eval.c (For, Fand): Doc fixes.
25550 Reported by Johan Bockgård.
25551
255522007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25553
25554 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25555
25556 * xterm.h: Declare x_ewmh_activate_frame.
25557
25558 * xterm.c (x_ewmh_activate_frame): New function.
25559 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25560
255612007-07-17 Martin Rudalics <rudalics@gmx.at>
25562
25563 * window.c (Fdisplay_buffer): If largest or LRU window is the
25564 only window, split it even if it is not eligible for splitting.
25565 This restores the original behavior broken by the 2007-07-15
25566 change.
25567
255682007-07-17 Glenn Morris <rgm@gnu.org>
25569
25570 * abbrev.c (abbrev_check_chars): New function.
25571 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25572 Call abbrev_check_chars to check abbrev characters are word
25573 constituents. Doc fix.
25574
255752007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25576
25577 * process.c (Fstart_process, Fmake_network_process)
25578 (read_process_output): Fix up last changes.
25579
255802007-07-16 Eli Zaretskii <eliz@gnu.org>
25581
25582 * makefile.w32-in (clean): Don't delete *~.
25583
255842007-07-16 Andreas Schwab <schwab@suse.de>
25585
25586 * window.c (Fdisplay_buffer): Use NILP.
25587 (Fset_window_scroll_bars): Likewise.
25588
255892007-07-15 Martin Rudalics <rudalics@gmx.at>
25590
25591 * window.c (window_min_size_2): New function.
25592 (window_min_size_1, size_window, Fdisplay_buffer)
25593 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25594 windows without mode- or header-lines when window-min-height is
25595 too small.
25596 (size_window): Reset nodelete_p after testing it, following an
25597 earlier note by Kim F. Storm.
25598 (display_buffer): Do not set split_height_threshold to twice the
25599 value of window_min_height to avoid changing the value of a
25600 customizable variable. Rather explicitly check whether the
25601 height of the window that shall be splitted is at least as large
25602 as split_height_threshold.
25603 (Fwindow_full_width_p): New defun.
25604 (syms_of_window): Defsubr it.
25605
25606 * window.h: Add EXFUN for Fwindow_full_width_p.
25607
256082007-07-14 Jason Rumney <jasonr@gnu.org>
25609
25610 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25611
256122007-07-14 Richard Stallman <rms@gnu.org>
25613
25614 * eval.c (maybe_call_debugger): New function.
25615 (find_handler_clause): Use maybe_call_debugger.
25616 Call it when the handler says `debug'.
25617 Eliminate DEBUGGER_VALUE_PTR.
25618 (Fsignal): Eliminate debugger_value.
25619 (Qdebug): New variable.
25620 (syms_of_eval): Initialize it.
25621
256222007-07-14 Juanma Barranquero <lekktu@gmail.com>
25623
25624 * eval.c (Fprogn):
25625 * keyboard.c (Ftrack_mouse):
25626 * print.c (Fwith_output_to_temp_buffer):
25627 * window.c (Fsave_window_excursion): Doc fix.
25628
256292007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25630
25631 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25632
256332007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25634
25635 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25636 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25637 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25638 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25639 Remove unused encoding_carryover.
25640 * process.c: Adjust all functions accordingly.
25641
256422007-07-12 Richard Stallman <rms@gnu.org>
25643
25644 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25645
256462007-07-11 Jason Rumney <jasonr@gnu.org>
25647
25648 * makefile.w32-in (LIBS): Include OLE32.
25649
25650 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25651 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25652
256532007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25654
25655 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25656 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25657 from a Lisp_Object into a bare pointer.
25658 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25659 Adjust the code correspondingly.
25660
25661 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25662
25663 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25664 (term_show_mouse_face): Remove unused var `j'.
25665 (handle_one_term_event): Remove unused vars `i' and `j'.
25666 Don't cast return value of ttyname since it's not necessary.
25667
256682007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25669
25670 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25671 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25672
25673 * fns.c (map_char_table): Use an array of int for `indices' rather than
25674 an array of Lisp_Objects (which are only ever integers anyway).
25675 (Fmap_char_table): Update caller.
25676 * lisp.h: Update prototype.
25677 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25678 * fontset.c (Ffontset_info):
25679 * casetab.c (set_case_table): Update callers.
25680
25681 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25682
25683 * keymap.c (struct accessible_keymaps_data)
25684 (struct where_is_internal_data): New structures.
25685 (accessible_keymaps_1, where_is_internal_1): Use them to change
25686 interface to adhere to the one used by map_keymap.
25687 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25688 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25689
25690 * keymap.h (map_keymap_function_t): More informative prototype.
25691
256922007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25693
25694 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25695 (looking_at_1): Don't change search_regs and last_thing_searched
25696 if `inhibit-changing-match-data' is non-nil.
25697 (string_match_1, search_buffer, set_search_regs): Likewise.
25698 (syms_of_search): Add Lisp level definition for
25699 `inhibit-changing-match-data' and set it to nil.
25700 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25701 start and end of the match, instead of using values in search_regs.
25702
257032007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25704
25705 * minibuf.c (Fcompleting_read): New value `confirm-only'
25706 for `require-match'.
25707
257082007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25709
25710 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25711 part of the 2007-06-27 change to syms_of_fileio.
25712
257132007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25714
25715 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25716 Check WINDOWP before using XWINDOW. Consolidate return statements.
25717
257182007-06-27 Richard Stallman <rms@gnu.org>
25719
25720 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25721
257222007-06-27 Juanma Barranquero <lekktu@gmail.com>
25723
25724 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25725
257262007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25727
25728 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25729 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25730 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25731 (_free_internal, memalign): Use them.
25732 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25733 Initialize to PTHREAD_MUTEX_INITIALIZER.
25734 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25735 (morecore_nolock): Rename from morecore. All uses changed.
25736 Use only nolock versions of internal allocation functions.
25737 (_malloc_internal_nolock, _realloc_internal_nolock)
25738 (_free_internal_nolock): New functions created from
25739 _malloc_internal, _realloc_internal, and _free_internal.
25740 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25741 Copy hook value to automatic variable before its use.
25742 (memalign): Copy hook value to automatic variable before its use.
25743
257442007-06-26 Kenichi Handa <handa@m17n.org>
25745
25746 * coding.c (Ffind_operation_coding_system): Docstring improved.
25747 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25748
257492007-06-25 David Kastrup <dak@gnu.org>
25750
25751 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25752 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25753 cater for additional parameter.
25754
25755 * keymap.h: Adjust number of parameters to `current-active-maps'.
25756
25757 * doc.c (Fsubstitute_command_keys): Adjust call of
25758 `current-active-maps'.
25759
257602007-06-25 David Kastrup <dak@gnu.org>
25761
25762 * callint.c (Fcall_interactively): Make the parsing of interactive
25763 specs somewhat more readable.
25764
257652007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25766
25767 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25768 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25769 if extended background has already been filled.
25770
257712007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25772
25773 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25774 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25775
25776 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25777 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25778 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25779 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25780 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25781 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25782 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25783 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25784 Run timers during dialog popup.
25785 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25786
257872007-06-21 Jason Rumney <jasonr@gnu.org>
25788
25789 * image.c (convert_mono_to_color_image): Swap fore and background.
25790
257912007-06-20 Jason Rumney <jasonr@gnu.org>
25792
25793 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25794 (w32_free_bdf_font): Unmap memory not handle.
25795
257962007-06-20 Sam Steingold <sds@gnu.org>
25797
25798 * gmalloc.c (__morecore): Fix the declaration to comply with the
25799 definition.
25800
258012007-06-20 Juanma Barranquero <lekktu@gmail.com>
25802
25803 * w32term.c (w32_delete_display): Remove leftover declaration.
25804 (w32_define_cursor, w32_initialize): Make static.
25805
25806 * w32.c (_wsa_errlist): Fix typo in error message.
25807 (init_environment): Ignore any environment variable from the
25808 registry having a null value.
25809
258102007-06-20 Glenn Morris <rgm@gnu.org>
25811
25812 * Makefile.in (LIBGIF): Default to -lgif.
25813
258142007-06-17 Jason Rumney <jasonr@gnu.org>
25815
25816 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25817 unicode strings.
25818
258192007-06-16 Juanma Barranquero <lekktu@gmail.com>
25820
25821 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25822 Fix typo in docstring.
25823
258242007-06-16 Eli Zaretskii <eliz@gnu.org>
25825
25826 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25827 and their keybindings.
25828
258292007-06-15 Chong Yidong <cyd@stupidchicken.com>
25830
25831 * composite.c (update_compositions): Fix last fix.
25832
258332007-06-14 Jason Rumney <jasonr@gnu.org>
25834
25835 * w32.c (get_process_times_fn): New function pointer.
25836 (globals_of_w32): Intialize it if present in kernel32.dll.
25837 (w32_get_internal_run_time): New function.
25838
25839 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25840
258412007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25842
25843 * composite.c (update_compositions): Check the validness of
25844 compositions.
25845
258462007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25847
25848 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25849 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25850
25851 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25852 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25853
25854 * macgui.h (USE_MAC_TOOLBAR): New define.
25855
25856 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25857 Return immediately unless popup is activated.
25858
25859 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25860 background to scroll bar gap.
25861 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25862 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25863 scroll bars on frame edge. Check fringe background extension.
25864 Don't clear extended fringe background area.
25865 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25866 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25867 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25868 [USE_MAC_TOOLBAR]: New macros.
25869 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25870 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25871 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25872 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25873 [USE_MAC_TOOLBAR]: New functions.
25874 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25875 manually if previous repositioning has failed.
25876 (mac_handle_keyboard_event): Use precomputed event kind.
25877 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25878 as tool bar item click. Handle mouse movement over tool bar items.
25879
25880 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25881 toolbar_win_gravity.
25882 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25883 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25884 Add externs.
25885
25886 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25887 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25888
258892007-06-14 Chong Yidong <cyd@stupidchicken.com>
25890
25891 * image.c (search_image_cache): Remove unused variable.
25892
258932007-06-13 Chong Yidong <cyd@stupidchicken.com>
25894
25895 * xfns.c, xmenu.c: Link to xaw3d if available.
25896
258972007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25898
25899 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25900 frame_foreground and frame_background.
25901
25902 * image.c (lookup_image): Save frame foreground and background colors.
25903 (search_image_cache): Check if saved and current frame colors match.
25904
259052007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25906
25907 * regex.c (regex_compile): Remove the `regnum' counter.
25908 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25909
259102007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25911
25912 * term.c: Include intervals.h to declare Fget_text_property.
25913
259142007-06-10 Jason Rumney <jasonr@gnu.org>
25915
25916 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25917
259182007-06-08 Juanma Barranquero <lekktu@gmail.com>
25919
25920 * callint.c (Fcall_interactively):
25921 * editfns.c (Fdelete_and_extract_region):
25922 * fileio.c (Fread_file_name):
25923 * fns.c (Fmapconcat):
25924 * keyboard.c (cmd_error_internal):
25925 * keymap.c (Fkey_description):
25926 * lread.c (openp):
25927 * minibuf.c (read_minibuf):
25928 * search.c (wordify):
25929 * sunfns.c (sel_read):
25930 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25931 * xfns.c (x_default_scroll_bar_color_parameter):
25932 * xmenu.c (menu_help_callback):
25933 * xselect.c (Fx_get_atom_name):
25934 * xterm.c (x_term_init): Use empty_unibyte_string.
25935
259362007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25937
25938 * alloc.c (init_strings): Initialize canonical empty strings.
25939 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25940 canonical empty string when the requested size is 0.
25941
25942 * emacs.c (empty_unibyte_string): Rename from empty_string.
25943 (empty_multibyte_string): New canonical empty string.
25944 (syms_of_emacs): Don't initialize empty_string.
25945
25946 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25947 string, if appropriate.
25948 (empty_unibyte_string, empty_multibyte_string): New externs.
25949 (empty_string): Remove extern.
25950
25951 * lread.c (syms_of_lread): Use empty_unibyte_string.
25952
259532007-06-07 Jason Rumney <jasonr@gnu.org>
25954
25955 * s/ms-w32.h: Don't define HAVE_TZNAME.
25956
25957 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25958
259592007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25960
25961 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25962
25963 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25964 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25965
25966 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25967 Don't call next handler.
25968 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25969 Remove argument. Install handler to application.
25970 (set_frame_menubar): Don't change deep_p.
25971 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25972 FRAME_OUTER_TO_INNER_DIFF_Y.
25973 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25974 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25975 [HAVE_DIALOGS]: New macros.
25976 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25977 Use them.
25978 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25979
25980 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25981 init_service_handler. All callers changed. Return OSStatus value.
25982
25983 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25984 All callers changed so as not to call SetPortWindowPort.
25985 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25986 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25987 mac_draw_string_common.
25988 (mac_draw_image_string_qd): Likewise.
25989 (mac_draw_string_common): Use them. Add INLINE.
25990 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25991 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25992 GetGlobalMouse.
25993 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25994 and FRAME_OUTER_TO_INNER_DIFF_Y.
25995 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25996 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25997 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25998 repositioning window to mac_handle_window_event.
25999 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26000 saving window location to mac_handle_window_event
26001 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26002 (install_menu_target_item_handler): Remove argument in extern.
26003 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26004 Also accept command events.
26005 (do_keystroke): New function created from XTread_socket.
26006 (init_command_handler): Remove functions.
26007 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26008 and save window location by kEventWindowShowing and kEventWindowHiding
26009 handlers here. Don't call next handler for window state change and
26010 focus events.
26011 (mac_handle_application_event, mac_handle_keyboard_event)
26012 [TARGET_API_MAC_CARBON]: New functions.
26013 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26014 kEventWindowShowing and kEventWindowHiding events. Move installation
26015 of mouse, font, text input and menu target item handlers to
26016 install_application_handler.
26017 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26018 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26019 New function.
26020 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26021 Register it.
26022 (XTread_socket) [TARGET_API_MAC_CARBON]:
26023 Consolidate SendEventToEventTarget calls.
26024 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26025 Move application activation handler to mac_handle_application_event.
26026 Move keyboard handler to mac_handle_keyboard_event.
26027 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26028 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26029 init_command_handler. Call install_application_handler.
26030
26031 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26032 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26033
260342007-06-07 Glenn Morris <rgm@gnu.org>
26035
26036 * emacs.c (main): Use `emacs-copyright' in --version output.
26037
260382007-06-06 Chong Yidong <cyd@stupidchicken.com>
26039
26040 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26041
260422007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26043
26044 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26045
26046 * macgui.h: Replace WindowPtr with WindowRef.
26047
26048 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26049 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26050 Replace ControlHandle with ControlRef.
26051 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26052
26053 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26054 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26055 Replace ControlHandle with ControlRef.
26056 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26057 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26058
26059 * macterm.h (struct scroll_bar): Rename member control_handle_low
26060 and control_handle_high to control_ref_low and control_ref_high.
26061 All uses changed.
26062 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26063 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26064 respectively. All uses changed.
26065 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26066 (install_window_handler, remove_window_handler): Replace WindowPtr
26067 with WindowRef in externs.
26068
260692007-06-05 Juanma Barranquero <lekktu@gmail.com>
26070
26071 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26072
260732007-06-03 Nick Roberts <nickrob@snap.net.nz>
26074
26075 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26076
26077 * frame.c (Fmouse_position, Fmouse_pixel_position):
26078 Condition on HAVE_GPM too.
26079
26080 * term.c (term_mouse_highlight): Remove unused variables.
26081 (Fterm_open_connection): Set gpm_zerobased to 1.
26082 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26083 Use zero based co-ordinates.
26084 (handle_one_term_event): Report a drag as mouse movement too.
26085
26086 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26087
260882007-06-03 Chong Yidong <cyd@stupidchicken.com>
26089
26090 * image.c (search_image_cache): New function. Require background
26091 color match if background color is unspecified in the image spec.
26092 (uncache_image, lookup_image): Use it.
26093
260942007-06-01 Juanma Barranquero <lekktu@gmail.com>
26095
26096 * window.c (Fshrink_window): Reflow docstring.
26097
260982007-06-02 Chong Yidong <cyd@stupidchicken.com>
26099
26100 * Version 22.1 released.
26101
261022007-06-01 Richard Stallman <rms@gnu.org>
26103
26104 * xfns.c (x_encode_text): Add GCPRO.
26105
261062007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26107
26108 * xfns.c (x_set_name_internal): Save encoded name before
26109 x_encode_text in case string data is relocated.
26110
261112007-05-31 Richard Stallman <rms@gnu.org>
26112
26113 * buffer.c (syms_of_buffer): Doc fix.
26114
261152007-05-30 Nick Roberts <nickrob@snap.net.nz>
26116
26117 * sysdep.c (init_sys_modes): Add rather than replace with
26118 O_NONBLOCK.
26119
26120 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26121 term_mouse_moveto.
26122
26123 * termhooks.h (term_mouse_moveto): New extern.
26124
26125 * term.c (mouse_face_window): Rename...
26126 (Qmouse_face_window): ...to this.
26127 (term_show_mouse_face, term_clear_mouse_face)
26128 (term_mouse_highlight): Use Qmouse_face_window.
26129 (term_mouse_moveto): New function.
26130 (term_mouse_position): Make it work.
26131 (syms_of_term): Uncomment assignment to mouse_position_hook.
26132 Staticpro Qmouse_face_window.
26133
261342007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26135
26136 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26137 around current_column call.
26138
261392007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26140
26141 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26142 * xdisp.c (next_element_from_buffer):
26143 * window.c (delete_window):
26144 * term.c (term_mouse_highlight):
26145 * msdos.c (getdefdir):
26146 * macterm.c (mac_create_bitmap_from_bitmap_data)
26147 (init_font_name_table):
26148 * fns.c (Fsxhash):
26149 * data.c (Fmake_local_variable):
26150 * ccl.c (ccl_driver): Likewise.
26151
261522007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26153
26154 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26155 Call mac_wakeup_from_rne on window size change.
26156
261572007-05-25 Chong Yidong <cyd@stupidchicken.com>
26158
26159 * image.c (uncache_image): Fix typo.
26160
261612007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26162
26163 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26164
261652007-05-22 Richard Stallman <rms@gnu.org>
26166
26167 * xterm.c (x_connection_closed): Remove NO_RETURN.
26168
261692007-05-22 Martin Rudalics <rudalics@gmx.at>
26170
26171 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26172
261732007-05-21 Chong Yidong <cyd@stupidchicken.com>
26174
26175 * image.c (uncache_image): New function.
26176 (Fimage_refresh): New function.
26177
261782007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26179
26180 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26181
261822007-05-20 Nick Roberts <nickrob@snap.net.nz>
26183
26184 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26185 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26186
261872007-05-20 Nick Roberts <nickrob@snap.net.nz>
26188
26189 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26190 conditional on [HAVE_GPM_H].
26191
261922007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26193
26194 * syntax.c (skip_chars): Update syntax-table only after we checked that
26195 the new location is valid.
26196
261972007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26198
26199 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26200 mac_get_window_bounds.
26201
262022007-05-20 Nick Roberts <nickrob@snap.net.nz>
26203
26204 * Makefile.in (LIBGPM): Allow it to be set from configure.
26205 If set then link Emacs with it.
26206
26207 * config.in: Regenerate.
26208
26209 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26210 New externs.
26211
26212 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26213 Include gpm.h.
26214 (handle_one_term_event, term_gpm): New externs.
26215
26216 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26217 and allow it to be interrupted by SIGIO.
26218
26219 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26220 (wait_reading_process_output): Wait on gpm_fd too.
26221 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26222 (add_gpm_wait_descriptor_called_flag): New variable.
26223 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26224
26225 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26226 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26227 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26228 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26229 (make_lispy_event): Add case GPM_CLICK_EVENT.
26230 (read_avail_input): Handle mouse input.
26231
26232 * term.c (write_glyphs_with_face): New function.
26233 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26234 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26235 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26236 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26237 (last_mouse_x, last_mouse_y): New variables.
26238 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26239 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26240 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26241 (Fterm_close_connection): New functions.
26242 (term_init): Initialise mouse_face_window.
26243
262442007-05-19 Chong Yidong <cyd@stupidchicken.com>
26245
26246 * xdisp.c (redisplay_window): If first window line is a
26247 continuation line, recompute the new window start instead of
26248 recentering.
26249
262502007-05-18 Glenn Morris <rgm@gnu.org>
26251
26252 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26253 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26254
262552007-05-17 Glenn Morris <rgm@gnu.org>
26256
26257 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26258
262592007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26260
26261 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26262 dead key repeat and up events.
26263
262642007-05-14 Chong Yidong <cyd@stupidchicken.com>
26265
26266 * image.c (pbm_load): Check image size for monochrome pbm.
26267
262682007-05-13 Chong Yidong <cyd@stupidchicken.com>
26269
26270 * xterm.c (XTread_socket): Revert last change.
26271
262722007-05-12 Chong Yidong <cyd@stupidchicken.com>
26273
26274 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26275
26276 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26277
262782007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26279
26280 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26281 mixup (YAILOM).
26282
262832007-05-07 Andreas Schwab <schwab@suse.de>
26284
26285 * keymap.c (Flookup_key): Fix typo in last change.
26286
262872007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26288
26289 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26290 mapping for unibyte strings.
26291
262922007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26293
26294 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26295 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26296
262972007-04-29 Richard Stallman <rms@gnu.org>
26298
26299 * insdel.c (replace_range): For undo, record insertion first.
26300
263012007-04-29 Andreas Schwab <schwab@suse.de>
26302
26303 * lisp.h (VECSIZE): Use OFFSETOF.
26304
263052007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26306
26307 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26308 disabled lines.
26309
263102007-04-28 Richard Stallman <rms@gnu.org>
26311
26312 * lread.c (read_escape): In a string, \s is always space.
26313
263142007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26315
26316 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26317
26318 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26319 submenu for menu bar items.
26320
26321See ChangeLog.10 for earlier changes.
26322
26323;; Local Variables:
26324;; coding: utf-8
26325;; add-log-time-zone-rule: t
aac0c6e3
MR
26326;; End:
26327
e3eb1dae 26328 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26329
26330 This file is part of GNU Emacs.
26331
26332 GNU Emacs is free software: you can redistribute it and/or modify
26333 it under the terms of the GNU General Public License as published by
26334 the Free Software Foundation, either version 3 of the License, or
26335 (at your option) any later version.
26336
26337 GNU Emacs is distributed in the hope that it will be useful,
26338 but WITHOUT ANY WARRANTY; without even the implied warranty of
26339 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26340 GNU General Public License for more details.
26341
26342 You should have received a copy of the GNU General Public License
26343 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26344
26345;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40