Ensure that erc-toggle-debug-irc-protocol logs protocol data.
[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.
93 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New
94 vars.
95 (command_loop_1): Set window selection prior to deactivating the
96 mark.
97
0e9c8657
JB
982010-08-07 Juanma Barranquero <lekktu@gmail.com>
99
100 * alloc.c (lisp_malloc):
101 * buffer.c (set_buffer_internal, set_buffer_internal_1):
102 * charset.h (emacs_mule_charset):
103 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
104 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
105 (bitch_at_user):
106 * lisp.h (Fcheck_coding_system, Fget_text_property)
107 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
108 Remove duplicate declarations.
109
648801d1
DN
1102010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
111
32bc6709
DN
112 * process.c: Simplify include logic.
113
3ef1d108
DN
114 * keyboard.h (quit_char): Add declaration.
115 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
116 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary): Add
117 declarations.
118 * sysdep.c:
119 * w32.c: Remove the above declarations.
120
97ec208f
DN
121 Remove extern declarations in .c files, .h files have them.
122 * xterm.c:
123 * xdisp.c:
97ec208f
DN
124 * msdos.c:
125 * image.c:
126 * gtkutil.c:
127 * fileio.c:
128 * eval.c: Remove declarations.
129
94eed851
DN
130 * frame.c (frame_params): Make const.
131
36e053eb
DN
132 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
133
0e843971
DN
134 * emacs.c (emacs_copyright, emacs_version): Make static.
135 (Vinitial_window_system, Vauto_save_list_file_name)
136 (Vinhibit_redisplay): Remove declarations.
137 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
138 for AIX.
139
648801d1
DN
140 Use const for some arrays and functions.
141 * xterm.h (xg_set_icon_from_xpm_data):
142 * xfns.c (xg_set_icon_from_xpm_data):
143 * term.c (fkeys):
144 * keyboard.c (lispy_accent_keys, lispy_function_keys)
145 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
146 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
147 (frame.c frame_parms):
148 * emacs-icon.h (gnu_xpm_bits):
149 * callint.c (callint_argfuns): Use const.
150
8646d999
J
1512010-08-06 Jan Djärv <jan.h.d@swipnet.se>
152
153 * sysdep.c: Move include term.h last of includes (Bug#6812).
154
cb4545ad
EZ
1552010-08-06 Eli Zaretskii <eliz@gnu.org>
156
157 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
158
159 * msdos.c (IT_display_cursor): Log cursor position on termscript.
160
161 * .gdbinit (pgx): Display the avoid_cursor_p flag.
162
da7e2be6
JB
1632010-08-06 Juanma Barranquero <lekktu@gmail.com>
164
165 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
166
3d608a86
J
1672010-08-06 Jan Djärv <jan.h.d@swipnet.se>
168
7908fb60
J
169 * xterm.h (x_get_focus_frame): Declare.
170
171 * keyboard.h (poll_for_input_1): Unconditionally declare.
172
4094bf36
J
173 * nsterm.h (x_set_menu_bar_lines): Declare.
174
175 * window.c: Don't include menu.h, it depends on lots of other .h-files.
176
3d608a86
J
177 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
178
179 * window.c: Include menu.h.
180
181 * unexmacosx.c (print_region_list, print_regions)
182 (build_region_list, find_emacs_zone_regions)
183 (unexec_regions_merge, read_load_commands, dump_it)
184 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
185
186 * term.c: Check HAVE_SYS_IOCTL_H.
187
686b968e 188 * sysdep.c: Check HAVE_TERM_H.
3d608a86 189
686b968e 190 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
191
192 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
193 (ns_ring_bell, ns_defined_color, hide_hourglass)
194 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
195 Convert to ANSI C prototypes.
196 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
197 before code.
198
199 * nsterm.h : Include sysselect.h.
200 (x_sync, x_get_focus_frame, x_set_mouse_position)
201 (x_set_mouse_pixel_position, x_make_frame_visible)
202 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
203 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
204 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
205 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 206 Declare.
3d608a86
J
207
208 * nsmenu.m (popup_activated, name_is_separator)
209 (syms_of_nsmenu): Convert to ANSI C prototypes.
210 (runMenuAt): Prototypes and move declarations before code.
211
212 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
213
214 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
215 prototypes.
216
217 * nsfns.m (have_menus_p, ns_display_info_for_name)
218 (x_set_cursor_type, ns_appkit_version_str)
219 (ns_appkit_version_int, ns_do_applescript)
220 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
221 (syms_of_nsfns): Convert to ANSI C prototypes.
222
223 * menu.h (x_set_menu_bar_line): Declare.
224 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
225
226 * lisp.h (fmod_float): Declare.
227
228 * image.c (xpm_scan, xpm_make_color_table_v)
229 (xpm_put_color_table_v, xpm_get_color_table_v)
230 (xpm_make_color_table_h, xpm_put_color_table_h)
231 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
232 (xpm_load): Convert to ANSI C prototypes.
233
234 * emacs.c: Include nsterm.h if HAVE_NS.
235
236 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
237
fce70521
DN
2382010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
239
240 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
241 subprocesses, only MSDOS does not define HAVE_SOCKETS.
242 (socket_options): Use const char* for name.
243
a11889ab
JB
2442010-08-06 Juanma Barranquero <lekktu@gmail.com>
245
246 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
247
248 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
249 Don't declare xmalloc_widget_value and digest_single_submenu.
250
251 * w32font.c (Qlatin): Remove declaration.
252
253 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
254
c95b508f 255 * dired.c (compile_pattern): Restore declaration.
a11889ab 256
6254cdda
DN
2572010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
258
04bab72c
DN
259 Remove extern declarations in .c files, .h files have them.
260 * data.c:
261 * dired.c:
262 * editfns.c:
263 * filelock.c:
264 * fns.c:
265 * font.c:
266 * fontset.c:
267 * frame.c:
268 * fringe.c:
269 * ftfont.c:
270 * gtkutil.c:
271 * indent.c:
272 * keyboard.c:
273 * keymap.c:
274 * lread.c:
275 * menu.c:
276 * print.c:
277 * search.c:
278 * sound.c:
279 * window.c:
280 * xdisp.c:
281 * xfaces.c:
282 * xfns.c:
283 * xfont.c:
284 * xftfont.c:
285 * xmenu.c:
286 * xterm.c: Remove declarations.
287
dff94ed5
DN
288 Cleanup syssignal.h.
289 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
290 (main_thread): Move down to remove #ifdef.
291 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
292 Remove conditional definition following unconditional ones.
293
99f3388e
DN
294 * lisp.h: Remove HAVE_SHM code, unused.
295 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
296 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
297 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
298 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
299 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
300 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
301 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
302 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
303 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
304 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
305 (Qwindow_scroll_functions, Vafter_load_alist)
306 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
307 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
308 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
309 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
310 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
311 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
312 (initial_argv, last_nonmenu_event, load_in_progress)
313 (noninteractive_need_newline, scroll_margin): Add declarations.
314
315 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
316 declarations, menu.h has them.
317 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
318 (Vinput_method_function, Qinput_method_function)
319 (Qevent_symbol_element_mask, last_event_timestamp):
320 * dispextern.h (Voverflow_newline_into_fringe):
321 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
322 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
323 (syms_of_w32font, syms_of_nsfont):
324 * fontset.h (find_font_encoding, Qlatin):
325 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
326 (Vtool_bar_mode, set_frame_menubar):
327 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
328 * xterm.h (Qx_gtk_map_stock):
329 * keymap.h (meta_prefix_char): Add declarations.
330
9f5dd6f2
DN
331 * term.c: Remove dead code.
332
6254cdda
DN
333 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
334 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
335 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
336 which is what was there before BSD_PGRPS was removed.
337
29cf3e20
EZ
3382010-08-05 Eli Zaretskii <eliz@gnu.org>
339
340 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
341
342 * unexcoff.c: Renamed from unexec.c.
343
aaa0a19a
SM
3442010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
345
346 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
347
8d1d9587
JB
3482010-08-03 Johan Bockgård <bojohan@gnu.org>
349
350 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 351 (Bug#6744)
8d1d9587 352
9a747ba6
JD
3532010-08-02 Jan Djärv <jan.h.d@swipnet.se>
354
4d464ae4
JD
355 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
356 to TRUE if depth of screen is < 16.
357
ac01763e
JD
358 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
359 USE_GTK_TOOLTIP.
e0d62a9b
JB
360 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
361 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 362 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
363 USE_GTK_TOOLTIP.
364 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
365
366 * xterm.h (USE_GTK_TOOLTIP): New define.
367 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
368
9a747ba6
JD
369 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
370 to Control-D (Bug#6771).
371
7b0815ba
JB
3722010-08-02 Juanma Barranquero <lekktu@gmail.com>
373
374 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
375 Wording by Drew Adams <drew.adams@oracle.com>.
376
aa1859f5
J
3772010-08-01 Jan Djärv <jan.h.d@swipnet.se>
378
379 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
380 ttip_lbl.
381
382 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
383 calling gtk_widget_queue_draw.
384 (x_free_frame_resources): Call xg_free_frame_widgets.
385
386 * xfns.c (x_gtk_use_system_tooltips): New variable.
387 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
388 new gtkutil tooltip functions to show the tooltip.
389 (Fx_hide_tip): Call xg_hide_tooltip.
390 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
391
392 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
393 (xg_show_tooltip, xg_hide_tooltip): Declare.
394
395 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
396 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
397 New functions.
aa1859f5
J
398 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
399 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
400 Remove code that is commented out.
401
76417ef4
SM
4022010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
403
404 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
405
16041401
CY
4062010-07-31 Chong Yidong <cyd@stupidchicken.com>
407
408 * xselect.c (x_own_selection): Use list4.
409
2c09a58f
DN
4102010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
411
412 * buffer.c (Qwindow): Do not define, already defined in data.c.
413 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
414
59df9fdd 4152010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 416
59df9fdd
JB
417 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
418 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
419 * config.in: Undef HAVE_DIRENT_H.
1c97e857 420 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 421 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 422
1b231651
DN
4232010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
424
425 Rename s/usg5-4.h -> s/usg5-4-common.h.
426 * s/usg5-4.h: Rename file to ...
427 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
428 * s/unixware.h:
429 * s/sol2-6.h:
430 * s/irix6-5.h: Update includes accordingly.
431
bfeabdc3
JD
4322010-07-29 Jan Djärv <jan.h.d@swipnet.se>
433
2ebf1083
J
434 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
435
bfeabdc3 436 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
437 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
438 Remove toolbar_height.
439 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
440 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
441 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
442 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
443
444 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
445
446 * xfns.c (x_set_tool_bar_position): New function.
447 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
448 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 449 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
450
451 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
452 and FRAME_TOOLBAR_LEFT_WIDTH.
453
454 * gtkutil.h (xg_change_toolbar_position): Declare.
455
456 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
457 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
458 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
459 (xg_create_frame_widgets): Create a hobox for placing widgets
460 vertically. Use gtk_box_pack_start.
461 (xg_height_or_width_changed): Renamed from xg_height_changed.
462 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
463 (xg_update_frame_menubar, free_frame_menubar): Change to
464 xg_height_or_width_changed.
465 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
466 size correctly. Remove hardcoded 4, instead use handlebox size -
467 toolbar size.
468 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 469 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
470 (xg_pack_tool_bar): POS is a new parameter.
471 Set orientation of tool bar based on pos.
472 Only make handlebox_widget if NULL.
473 Check if tool bar goes to vbox or hbox depending on pos.
474 (xg_update_tool_bar_sizes): New function.
686b968e 475 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
476 height, call xg_update_tool_bar_sizes instead.
477 (free_frame_tool_bar): Remove from hbox or vbox depending on
478 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
479 (xg_change_toolbar_position): New function.
480
481 * frame.h (struct frame): Add tool_bar_position.
482 (Qbottom): Declare.
483
484 * frame.c (Qtool_bar_position): New variable.
485 (make_frame): Set tool_bar_position to Qtop.
486 (frame_parms): Add tool-bar-position.
487 (x_report_frame_params): Store tool_bar_position.
488 (x_set_fringe_width): Reset wm size hint after fringe changes.
489
26469a38
DN
4902010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
491
492 Make lisp_time_argument declaration work on all systems.
493 * lisp.h (lisp_time_argument): Move declaration ...
494 * systime.h (lisp_time_argument): ... here
495 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
496
8848b728
JD
4972010-07-29 Jan Djärv <jan.h.d@swipnet.se>
498
499 * vm-limit.c (POINTER): Add typedef for it.
500 (start_of_data): Change return type from POINTER to char *.
501
502 * frame.h (Qtty_color_mode): Move declaration out of ifdef
503 HAVE_WINDOW_SYSTEM.
504
76fd1ee9
DN
5052010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
506
0441987e
DN
507 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
508 Remove reference to __osf__, unused.
509
56a000c7
DN
510 * mem-limits.h: Remove duplicated includes.
511 (NULL): Remove definition, unused.
512 (POINTER): Remove definition.
513 (start_of_data): Use char* in prototype, as the function
514 definition does.
515
e6cba650
DN
516 Remove extern declarations from .c files, and them to .h files.
517 * keyboard.h (Qhelp_echo, waiting_for_input)
518 (input_available_clear_time, ignore_mouse_drag_p)
519 (Vdouble_click_time, real_this_command, Vthis_original_command):
520 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
521 (Voverriding_local_map_menu_flag):
522 * lisp.h (Qinteractive_form, use_file_dialog)
523 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
524 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
525 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
526 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
527 (Qfunction, debug_on_next_call, Qfield)
528 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
529 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
530 (Qfile_directory_p, Qinsert_file_contents)
531 (Qcompletion_ignore_case, Qcompletion_ignore_case)
532 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
533 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
534 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
535 (Qminibuffer_prompt)
536 (Vtemporary_file_directory,char_ins_del_vector, Qface):
537 * xterm.h (gray_bitmap_width, gray_bitmap_height)
538 (gray_bitmap_bits, xic_create_fontsetname):
539 * coding.h (Vtranslation_table_for_input): Add extern declarations.
540
541 * xsmfns.c (Vuser_login_name):
542 * xrdb.c (Vdouble_click_time):
543 * xfaces.c (xic_create_fontsetname):
544 * w32select.c (waiting_for_input):
545 * print.c (minibuffer_auto_raise):
546 * msdos.c (Qhelp_echo):
547 * macros.c (real_this_command):
548 * keymap.c (Voverriding_local_map):
549 * xterm.c (poll_for_input_1, gray_bitmap_width)
550 (gray_bitmap_height, gray_bitmap_bits;
551 * xmenu.c ( Voverriding_local_map)
552 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
553 (use_file_dialog, Xt_app_con):
554 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
555 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
556 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
557 (Qtool_bar_lines, ignore_mouse_drag_p):
558 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
559 (Qrear_nonsticky, nconc2):
560 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
561 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
562 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
563 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
564 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
565 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
566 (gc_in_progress):
567 * doc.c (Voverriding_local_map, Qremap):
568 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
569 (Vcompletion_regexp_list):
570 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
571 (Qcompletion_ignore_case):
572 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
573 (Vhistory_length, Vthis_original_command, real_this_command)
574 (Qface, Qminibuffer_prompt, history_delete_duplicates):
575 * image.c (Qrisky_local_variable):
576 * fontset.c (QCname):
577 * fns.c (minibuffer_auto_raise, QCname):
578 * dispnew.c (char_ins_del_cost):
579 * composite.c (font_fill_lglyph_metrics):
580 * cmds.c (Qface, Vtranslation_table_for_input):
581 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
582 * ccl.c (charset_unicode):
583 * callproc.c (Vtemporary_file_directory):
584 * buffer.c (emacs_strerror): Remove extern declarations.
585
586 * data.c (Qwindow): Make non-static, used from other files too.
587 * frame.c (validate_x_resource_name): Remove shadow definition for i.
588
76fd1ee9
DN
589 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
590 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
591 * s/usg5-4.h (COFF):
592 * s/template.h:
593 * s/msdos.h (COFF, NO_REMAP):
594 * s/ms-w32.h (NO_REMAP):
595 * s/hpux10-20.h (NO_REMAP):
596 * m/sparc.h (SEGMENT_MASK):
597 * m/m68k.h (NO_REMAP):
598 * m/intel386.h (SEGMENT_MASK):
599 * m/arm.h (NO_REMAP):
600 * m/alpha.h (COFF):
601 * m/template.h: Remove references to unused defines.
602
8a52f00a
JD
6032010-07-28 Jan Djärv <jan.h.d@swipnet.se>
604
605 * xsettings.c (Ftool_bar_get_system_style): Also check for
606 Qtext_image_horiz.
607
608 * xdisp.c (Qtext_image_horiz): Define.
609 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 610 to documentation of tool-bar-style.
8a52f00a
JD
611
612 * lisp.h (Qtext_image_horiz): Declare.
613
614 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
615 style text_image_horiz.
616
89dc303e
DN
6172010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
618
60799703
DN
619 * emacs.c (Fkill_emacs): Remove return statement.
620
37254dc1
DN
621 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
622 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
623 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
624 local extern declarations.
625
71c7345a
DN
626 * xmenu.c: Do not included lwlib.h, not needed.
627
6ba577cb
DN
628 * m/iris4d.h (XUINT, XSET): Remove, not needed.
629
fdb183d6
DN
630 * process.c: Move definitions earlier to minimize #ifdefs.
631
632 * xterm.h (x_get_customization_string, x_load_resources)
633 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
634 (x_check_errors, x_property_data_to_lisp, defined_color)
635 (xic_set_xfontset, x_defined_color): Use const.
636
637 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
638 (x_text_icon, x_check_errors, x_connection_closed): Use const.
639
640 * xselect.c (selection_data_to_lisp_data)
641 (x_property_data_to_lisp):
642 * xrdb.c (x_get_string_resource, file_p)
643 (x_get_customization_string, magic_file_p, search_magic_path)
644 (get_system_app, get_user_app, x_load_resources, x_get_resource)
645 (x_get_string_resource): Use const.
646
647 * xfns.c: Include xlwmenu.h when USE_LUCID.
648 (x_defined_color, xic_set_xfontset): Use const.
649 (Fx_hide_tip): Remove local extern declaration.
650
651 * xfaces.c (Qmouse_face): Remove declaration.
652 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 653 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
654
655 * xdisp.c (do_mouse_tracking): Remove declaration.
656 (add_to_log): Use const.
657
658 * minibuf.c (Qmouse_face): Remove declaration.
659
660 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
661
662 * keyboard.h (do_mouse_tracking): Add declaration.
663
664 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
665 (QCdata, QCtype, Qcenter): Remove declarations.
666
667 * frame.c (x_get_resource_string, x_get_string_resource)
668 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
669 (x_default_parameter): Use const.
670
671 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
672 (QCheight, QCsize, QCname): Remove declarations.
673
674 * emacs.c (main): Remove local extern declaration.
675
676 * editfns.c (region_limit, syms_of_editfns): Remove local extern
677 declarations.
678
679 * dispnew.c: Remove duplicate #include <unistd.h>.
680 (update_window, update_frame_1, init_display): Remove local extern
681 declarations.
682
683 * dispextern.h (add_to_log): Remove declaration.
684 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
685 (x_frame_get_and_record_arg, x_default_parameter): Add const.
686
687 * dired.c (scmp): Add const.
688 (directory_files_internal): Remove local extern declaration.
689
690 * data.c (Finteractive_form): Use const.
691
692 * composite.c (syms_of_composite): Remove local extern declarations.
693
694 * charset.c (add_to_log): Remove declaration.
695
696 * character.c (strwidth, parse_str_to_multibyte): Add const.
697
698 * character.h (strwidth, parse_str_to_multibyte): Likewise.
699
700 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
701
89dc303e 702 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
703 (Lisp_Subr): Make doc and intspec constant.
704 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
705 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
706 (QCheight, QCsize, QCname, QCwidth, QCforeground)
707 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
708 (display_arg): Add declarations.
89dc303e 709
0ed082fe 7102010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
711
712 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
713
0ed082fe
JB
714 * window.c (Fwindow_height): Doc fix (bug#6518).
715
7162010-07-27 Juanma Barranquero <lekktu@gmail.com>
717
718 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
719
ccaf0336
DN
7202010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
721
977105dc
DN
722 * keyboard.c (Ftop_level, Fexit_recursive_edit)
723 (Fabort_recursive_edit): Remove return statements in NO_RETURN
724 functions.
725
f5ada890
DN
726 * frame.h (Qtty_color_mode): Add declaration.
727
ccaf0336
DN
728 * lisp.h (Ftop_level, Fexit_recursive_edit)
729 (Fabort_recursive_edit): Mark as NO_RETURN.
730
dfe3c90f
KH
7312010-07-26 Kenichi Handa <handa@m17n.org>
732
733 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 734 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 735
7d383292
JB
7362010-07-26 Juanma Barranquero <lekktu@gmail.com>
737
738 * lread.c (unreadpure, mapatoms_1): Make static.
739
da31e629
JB
7402010-07-25 Juanma Barranquero <lekktu@gmail.com>
741
742 * terminfo.c (tparam): Fix prototype of tparm.
743
7bfa6d77
AS
7442010-07-25 Andreas Schwab <schwab@linux-m68k.org>
745
dcc19aac
AS
746 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
747 find start of text segment.
748 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
749 is defined.
750
7bfa6d77
AS
751 * callproc.c (set_initial_environment): Avoid unbalanced braces.
752
63f9a672
KB
7532010-07-25 Ken Brown <kbrown@cornell.edu>
754
755 * vm-limit.c (check_memory_limits): Fix previous change;
756 accidentally reverted an earlier change.
757
24933075
KB
7582010-07-25 Ken Brown <kbrown@cornell.edu>
759
760 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
761 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
762
361358ea
JB
7632010-07-25 Juanma Barranquero <lekktu@gmail.com>
764
765 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
766 * dired.c (opendir, readdir): Fix prototypes.
767 * editfns.c (w32_get_internal_run_time): Fix prototypes.
768 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
769 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
770 (telldir): Remove declaration.
771 * ralloc.c (real_morecore, __morecore): Fix prototypes.
772 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
773 * syssignal.h (strsignal): Fix prototype.
774 * term.c (tparam): Fix prototype.
775 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
776 (term_get_fkeys): Set inside "#ifndef DOS_NT".
777 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
778 and __morecore.
779 * w32gui.h (XParseGeometry): Fix prototype.
780 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
781 * w32term.c (my_set_focus): Declare inside #if 0.
782 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
783 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
784 (drain_message_queue, get_next_msg, post_msg, parse_button)
785 (ClipboardSequence_Proc): Fix prototypes.
786 (wait_for_sync): Remove declaration.
787
630b9592
JB
7882010-07-24 Juanma Barranquero <lekktu@gmail.com>
789
790 * w32fns.c (w32_to_x_color): Remove, unused.
791
6a0d6611
AS
7922010-07-24 Andreas Schwab <schwab@linux-m68k.org>
793
794 * lisp.h: Remove leftover P_.
795
4e8608ff
DN
7962010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
797
798 * ecrt0.c, unexalpha.c: Remove files, unused.
799
c8197983
AS
8002010-07-24 Andreas Schwab <schwab@linux-m68k.org>
801
802 * cmds.c (internal_self_insert): Make static.
803 * lisp.h (internal_self_insert): Remove declaration.
804
97b372d7
JB
8052010-07-23 Juanma Barranquero <lekktu@gmail.com>
806
33ac0414
JB
807 * alloc.c (free_float):
808 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
809 * frame.c (delete_frame_handler):
810 * ralloc.c (reorder_bloc):
811 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
812 Remove unused static functions.
813
94da8397
JB
814 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
815 it is called only from NS code.
816
2e6c8532
JB
817 * w32term.c (my_set_focus): #ifdef away; it is called only from
818 "#ifdef 0" code.
819
97b372d7
JB
820 * w32fns.c (x_edge_detection):
821 * xfaces.c (may_use_scalable_font_p):
822 Remove obsolete static declarations.
823
7c3320d8
JB
8242010-07-20 Juanma Barranquero <lekktu@gmail.com>
825
826 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
827 (emacs_blocked_realloc, uninterrupt_malloc):
828 * fringe.c (w32_reset_fringes):
829 * image.c (convert_mono_to_color_image, lookup_rgb_color)
830 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
831 * sound.c (be2hs, do_play_sound):
832 * vm-limit.c (get_lim_data, ret_lim_data):
833 * w32term.c (x_free_frame_resources):
834 * xfaces.c (x_create_gc, x_free_gc):
835 Convert definitions to standard C.
836
d5273788
SM
8372010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
838
839 * eval.c (Feval, Ffuncall): Use the new names.
840
841 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
842 (DEFUN): Add braces around the union initialisation and use ## to
843 specify the right union alternative and avoid a cast.
844
8d16a259
JB
8452010-07-18 Juanma Barranquero <lekktu@gmail.com>
846
847 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
848
3b8eff32
CY
8492010-07-17 Chong Yidong <cyd@stupidchicken.com>
850
851 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
852
499322ce
J
8532010-07-17 Jan Djärv <jan.h.d@swipnet.se>
854
855 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
856 is related to the menu bar (Bug#6499).
a628ad9d 857 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 858
f6003da5 8592010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
860
861 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
862
863 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
864
865 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
866 i.e. don't put back ButtonRelease (Bug#6608).
867
868 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
869 instead of Window. Call xg_event_is_for_menubar when
870 USE_GTK (Bug#6499).
871
872 * gtkutil.h (xg_event_is_for_menubar): Declare.
873
874 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
875
f6003da5 8762010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
877
878 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
879 when it's the same as the old foreground. (Bug#6609)
880
23243f29
J
8812010-07-16 Jan Djärv <jan.h.d@swipnet.se>
882
883 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
884 widget is non-null (Bug#6645).
885
2b23d2a6
AS
8862010-07-15 Andreas Schwab <schwab@linux-m68k.org>
887
01b564ff
AS
888 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
889 Convert old-style definition.
890
2b23d2a6
AS
891 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
892 timestamp argument.
893
c4affd2c
EZ
8942010-07-15 Eli Zaretskii <eliz@gnu.org>
895
896 * fringe.c (update_window_fringes): Restore mistakenly reverted
897 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
898
cf28cebc
J
8992010-07-14 Jan Djärv <jan.h.d@swipnet.se>
900
901 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
902 (SET_SAVED_KEY_EVENT): Remove (not used).
903 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
904 remove size parameter.
905 (handle_one_xevent): Check popup_activated () for menu for Xt also.
906 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
907 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
908 ButtonRelease.
6b2c4bd9
J
909 (x_set_window_size_1): scroll_bar_actual_width is always
910 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
911
912 * xdisp.c (pending_menu_activation): Remove extern declaration.
913 (prepare_menu_bars): Remove setting of pending_menu_activation.
914
915 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
916 (x_activate_menubar): Set popup_activated_flag for Xt also.
917 Remove setting of pending_menu_activation.
cf28cebc
J
918 (set_frame_menubar): Remove check of pending_menu_activation.
919 Declare menubar_size before code. Correct spelling in comment.
920
f6c1c771
KH
9212010-07-14 Kenichi Handa <handa@m17n.org>
922
923 * font.c (font_open_entity): Cancel previous change.
924 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
925
20477505
EZ
9262010-07-13 Eli Zaretskii <eliz@gnu.org>
927
77defa9a
EZ
928 Remove subprocesses #ifdefs.
929 * process.c <inhibit_sentinels>: Move to the common part.
930 (Fwaiting_for_user_input_p): Move to the common part; return nil
931 if async subprocesses aren't supported.
932 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
933 MS-DOS. Remove "#ifdef subprocesses".
934 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
935 (gettimeofday): Remove "#ifdef subprocesses".
936 (wait_without_blocking): Remove function.
937 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
938 Remove "#ifdef subprocesses".
939 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
940 compiled on MS-DOS.
941 * callproc.c (Fcall_process) [!MSDOS]: Don't call
942 wait_for_termination on MS-DOS.
943 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
944 initialization of inhibit_sentinels.
945 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
946 subprocesses" conditional.
947 * callproc.c (Fcall_process) [!subprocesses]: Don't call
948 wait_for_termination, since `buffer' cannot be an integer when
949 async subprocesses are not supported
950 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
951 for ifdefing away the call to Fprocess_status.
952
20477505
EZ
953 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
954 away the entire body of the function.
955
b3ffc17c
DN
9562010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
957
01faa934
DN
958 Remove subprocesses #ifdefs from term.c.
959 * process.c (add_keyboard_wait_descriptor)
960 (delete_keyboard_wait_descriptor): Move to common section, do
961 nothing when subprocesses is not defined.
a628ad9d
JB
962 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
963 Remove subprocesses #ifdefs.
01faa934 964
b3ffc17c
DN
965 Convert maybe_fatal to standard C.
966 * lisp.h (verror): Declare.
967 * eval.c (verror): New function containing the code from ...
968 (error): ... this. Call verror.
969 * term.c (vfatal): New function containing the code from ...
970 (fatal): ... this. Call vfatal.
971 (maybe_fatal): Convert to standard C, use variable number of
972 arguments. Declare as non-return.
973 (init_tty): Fix maybe_fatal call.
974
0521f580
DN
9752010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
976
977 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
978 (_scroll_bar_note_movement): Convert definitions to standard C.
979 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
980 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
981
ebd15611
DN
9822010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
983
984 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
985 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
986 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
987 (xaw_jump_callback, xaw_scroll_callback)
988 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
989 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
990 definitions to standard C.
991 * xmenu.c (menubar_id_to_frame, popup_get_selection)
992 (popup_activate_callback, popup_deactivate_callback)
993 (menu_highlight_callback, menubar_selection_callback)
994 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
995 (free_frame_menubar, popup_selection_callback, as)
996 (create_and_show_popup_menu, dialog_selection_callback)
997 (create_and_show_dialog):
998 * xfns.c (hack_wm_protocols, x_window):
999 * xfaces.c (x_update_menu_appearance):
1000 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1001 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1002 (set_frame_size, update_wm_hints, setup_frame_gcs)
1003 (update_various_frame_slots, update_from_various_frame_slots)
1004 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1005 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1006 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1007
de06a2dd
AS
10082010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1009
a628ad9d 1010 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1011
fc549af9
EZ
10122010-07-12 Eli Zaretskii <eliz@gnu.org>
1013
1014 * process.c (setup_process_coding_systems): Move to the part
1015 shared by non-subprocesses systems, and make its body empty when
1016 subprocesses is not defined.
1017 (close_process_descs): Move to the part shared by non-subprocesses
1018 systems.
1408902e
EZ
1019 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1020 ANSI C.
fc549af9 1021
d5a3eaaf
AS
10222010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1023
1024 * editfns.c (transpose_markers): Convert old-style definition.
1025 * emacs.c (abort, shut_down_emacs, fixup_locale)
1026 (synchronize_system_time_locale)
1027 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1028 * floatfns.c (extract_float, matherr, init_floatfns)
1029 (syms_of_floatfns): Likewise.
1030 * fns.c (make_hash_table): Likewise.
1031 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1032 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1033 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1034 (ftfont_variation_glyphs): Likewise.
1035 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1036 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1037 * lread.c (read_filtered_event): Likewise.
1038 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1039 * process.c (wait_reading_process_output): Likewise.
1040 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1041 * search.c (search_buffer, boyer_moore): Likewise.
1042 * syntax.c (scan_sexps_forward): Likewise.
1043 * xdisp.c (try_scrolling): Likewise.
1044 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1045 (face_at_string_position): Likewise.
1046 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1047 * xselect.c (x_get_window_property, receive_incremental_selection)
1048 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1049 Likewise.
1050 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1051
6f704c76
DN
10522010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1053
ded80a25
DN
1054 * callproc.c (child_setup): Remove subprocesses conditional.
1055 Remove code dealing with SET_EMACS_PRIORITY, unused.
1056
49d937f4 1057 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1058 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1059
1060 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1061 (__do_global_dtors, __main): Use void in definition.
1062 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1063 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1064 the only users from ...
1065 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1066 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1067 (HAVE_VOLATILE): Remove, unused.
1068
6f704c76
DN
1069 Convert more function definitions to standard C.
1070 * xdisp.c (window_box_edges, handle_single_display_spec)
1071 (display_string): Convert definition to standard C.
1072 * scroll.c (do_direct_scrolling, scrolling_1):
1073 * dispnew.c (allocate_matrices_for_frame_redisplay)
1074 (mirrored_line_dance):
1075 * coding.c (code_convert_string):
1076 * charset.c (map_charset_chars):
1077 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1078 (Fregister_ccl_program, Fregister_code_conversion_map):
1079 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1080 (head_table): Make static and const.
1081
e6cfa7c3
AS
10822010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1083
1084 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1085 (PROFILING_LDFLAGS): Set from substitution.
1086 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1087 CFLAGS last.
1088
892dd565
KH
10892010-07-12 Kenichi Handa <handa@m17n.org>
1090
6f2cdcd1
KH
1091 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1092 (shortlisp): Likewise.
1093
892dd565
KH
1094 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1095
1096 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1097 of FONT_ENTITY_INDEX.
1098 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1099 property, get the property value dynamically.
1100 (Ffont_put): Accept font-entity and font-object too.
1101 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1102 return value changed.
1103 (syms_of_font): Adjusted for the above change.
1104
ae96d47a
AS
11052010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1106
c8fc18ee
AS
1107 * blockinput.h: Remove obsolete comment.
1108
89887d67
AS
1109 * lisp.h: Include <stddef.h>.
1110 (OFFSETOF): Don't define.
1111 (VECSIZE): Use offsetof instead of OFFSETOF.
1112 (PSEUDOVECSIZE): Likewise.
1113 * process.c (conv_sockaddr_to_lisp): Likewise.
1114 * alloc.c: Don't include <stddef.h>.
1115 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1116
ae96d47a
AS
1117 * process.c: Remove obsolete comment.
1118
635c0aa1
CY
11192010-07-11 Chong Yidong <cyd@stupidchicken.com>
1120
1121 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1122
a64df650
AS
11232010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1124
8966b757
AS
1125 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1126 index, rindex.
1127 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1128 * editfns.c (Fuser_full_name, Fformat): Likewise.
1129 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1130 * fileio.c (Ffile_symlink_p): Likewise.
1131 * filelock.c (current_lock_owner): Likewise.
1132 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1133 * fontset.c (fontset_pattern_regexp): Likewise.
1134 * lread.c (read1): Likewise.
1135 * sysdep.c (init_system_name): Likewise.
1136 * xfns.c (select_visual): Likewise.
1137 * s/hpux10-20.h (index, rindex): Don't define.
1138 * s/ms-w32.h (index): Likewise.
1139 * s/usg5-4.h: Likewise.
1140
cf237e27
AS
1141 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1142
a8fe7202
AS
1143 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1144 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1145 (egetenv): Likewise.
1146 * doprnt.c (doprnt): Likewise.
1147 * editfns.c (set_time_zone_rule, format2): Likewise.
1148 * emacs.c (decode_env_path): Likewise.
1149 * eval.c (signal_error, error): Likewise.
1150 * insdel.c (replace_range_2): Likewise.
1151 * keyboard.c (cmd_error_internal): Likewise.
1152 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1153 * print.c (write_string, write_string_1, print_error_message):
1154 Likewise.
1155 * vm-limit.c (warn_function, memory_warnings): Likewise.
1156 * xdisp.c (message1, message1_nolog, message_with_string)
1157 (vmessage, message, message_nolog): Likewise.
1158 * emacs.c: Remove duplicate declaration.
1159 * keyboard.h: Likewise.
1160 * lisp.h: Update prototypes.
1161
bb8e180f
AS
1162 * eval.c: Fix indentation problem.
1163
83380e65
AS
1164 * keyboard.c: Include "process.h"
1165
a64df650
AS
1166 * eval.c: Remove obsolete noinline declaration.
1167 * fns.c: Likewise.
1168
6a8033e1
KR
11692010-07-11 Ken Raeburn <raeburn@raeburn.org>
1170
1171 * doprnt.c (doprnt): Take a va_list argument instead of count and
1172 pointer.
1173 * eval.c (error): Change to a standard-C variadic function.
1174 * xdisp.c (vmessage): Renamed from message, made static, and
1175 changed to take a va_list argument.
1176 (message): New variadic wrapper.
1177 (message_nolog): Now a variadic function, calling vmessage.
1178 * lisp.h: Include stdarg.h for va_list.
1179 (doprnt, error, message, message_nolog): Decls updated.
1180
462aa963
EZ
11812010-07-11 Eli Zaretskii <eliz@gnu.org>
1182
1183 * process.c (syms_of_process) <delete-exited-processes>: Define
1184 even if !subprocesses.
1185 (delete_exited_processes): Ditto.
1186
1187 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1188 (delete_exited_processes): Don't define.
1189
48104462
CY
11902010-07-10 Chong Yidong <cyd@stupidchicken.com>
1191
1192 * frame.c (make_frame): Initialize menu_bar_lines and
1193 tool_bar_lines members.
1194 (make_initial_frame, make_terminal_frame): Initialize
1195 menu_bar_lines using value of menu-bar-mode.
1196
1197 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1198
f388c88a
EZ
11992010-07-10 Eli Zaretskii <eliz@gnu.org>
1200
1201 * process.c: Reshuffle #include's. Condition some of the global
1202 and static variables on `subprocesses'.
1203 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1204 Leave only one implementation.
1205 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
1206 (kill_buffer_processes, Flist_system_processes)
1207 (Fprocess_attributes, init_process, syms_of_process): Unify the
1208 implementations for with subprocesses and without them.
1209
723f5a07
J
12102010-07-09 Jan Djärv <jan.h.d@swipnet.se>
1211
1212 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
1213 correct size for Motif.
1214 (free_frame_menubar): Call x_set_window_size to update frame size.
1215
1216 * xfns.c (x_window): Set borderWidth to 0 for pane and
1217 EmacsFrame. Frame size calculation is wrong otherwise.
1218
2536a4b7
MA
12192010-07-09 Michael Albinus <michael.albinus@gmx.de>
1220
1221 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
1222 allows to suppress errors when polling in Emacs' main loop.
1223 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
1224 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1225 (Fdbus_method_error_internal, Fdbus_send_signal)
1226 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
1227 (Fdbus_register_method): Use it. (Bug#6579)
1228
5842a27b
DN
12292010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1230
1231 * alloc.c: Convert DEFUNs to standard C.
1232 * buffer.c:
1233 * bytecode.c:
1234 * callint.c:
1235 * callproc.c:
1236 * casefiddle.c:
1237 * casetab.c:
1238 * category.c:
1239 * character.c:
1240 * charset.c:
1241 * chartab.c:
1242 * cmds.c:
1243 * coding.c:
1244 * composite.c:
1245 * data.c:
1246 * dbusbind.c:
1247 * dired.c:
1248 * dispnew.c:
1249 * doc.c:
1250 * dosfns.c:
1251 * editfns.c:
1252 * emacs.c:
1253 * eval.c:
1254 * fileio.c:
1255 * filelock.c:
1256 * floatfns.c:
1257 * fns.c:
1258 * font.c:
1259 * fontset.c:
1260 * frame.c:
1261 * fringe.c:
1262 * image.c:
1263 * indent.c:
1264 * insdel.c:
1265 * keyboard.c:
1266 * keymap.c:
1267 * lread.c:
1268 * macros.c:
1269 * marker.c:
1270 * menu.c:
1271 * minibuf.c:
1272 * msdos.c:
1273 * nsfns.m:
1274 * nsmenu.m:
1275 * nsselect.m:
1276 * print.c:
1277 * process.c:
1278 * search.c:
1279 * sound.c:
1280 * syntax.c:
1281 * term.c:
1282 * terminal.c:
1283 * textprop.c:
1284 * undo.c:
1285 * w16select.c:
1286 * w32console.c:
1287 * w32fns.c:
1288 * w32font.c:
1289 * w32menu.c:
1290 * w32proc.c:
1291 * w32select.c:
1292 * window.c:
1293 * xdisp.c:
1294 * xfaces.c:
1295 * xfns.c:
1296 * xmenu.c:
1297 * xselect.c:
1298 * xsettings.c:
1299 * xsmfns.c: Likewise.
1300
d568829b
EZ
13012010-07-08 Eli Zaretskii <eliz@gnu.org>
1302
1303 * process.c (kbd_is_on_hold, hold_keyboard_input)
1304 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
1305
52214050
J
13062010-07-08 Jan Djärv <jan.h.d@swipnet.se>
1307
1308 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
1309 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
1310 unless USE_LUCID.
1311
313d9eb2
DN
13122010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1313
a628ad9d
JB
1314 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
1315 declaration.
d8825aa3 1316
295d0d8f
DN
1317 Clean up include guards.
1318 * tparam.c: Remove include guards for config.h, string.h and code
1319 that assumes #ifndef emacs.
1320 * termcap.c:
1321 * unexalpha.c:
1322 * sysdep.c:
1323 * filemode.c:
1324 * filelock.c:
1325 * bidi.c: Likewise.
1326
49d9e6b0
DN
1327 Remove prefix-args.c
1328 * prefix-args.c: Remove file.
1329 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
1330 * Makefile.in (temacs${EXEEXT}): Remove references to
1331 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
1332 (mostlyclean): Remove reference to prefix-args.
1333 (prefix-args): Remove.
1334
313d9eb2
DN
1335 Simplify cstart_of_data, start_of_code and related code.
1336 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1337 (start_of_data): Merge into start_of_data function.
1338 * sysdep.c (start_of_text): Remove. Move simplified versions of
1339 it in the only users: unexaix.c and unexec.c.
1340 (read_input_waiting): Remove local declaration of quit_char.
1341 (start, etext): Remove declarations.
1342 (start_of_data): Merge with the version in mem-limits.h and move
1343 to vm-limits.c.
1344 * vm-limit.c (start_of_data): Merged and simplified version of the
1345 code formerly in mem-limits.h and sysdep.c.
1346 * unexec.c (start): New declaration, moved from sysdep.c.
1347 (start_of_text): Simplified version of the code formerly in sysdep.c.
1348 * unexaix.c (start_of_text): Simplified version of the code
1349 formerly in sysdep.c.
1350 * m/alpha.h (HAVE_TEXT_START): Remove.
1351 (TEXT_START): Move ...
1352 * unexalpha.c (TEXT_START): ... here.
1353 * s/hpux10-20.h (TEXT_START): Remove.
1354 * s/darwin.h (TEXT_START):
1355 * m/mips.h (TEXT_START):
1356 * m/macppc.h (HAVE_TEXT_START):
1357 * m/m68k.h (TEXT_START):
1358 * m/iris4d.h (TEXT_START):
1359 * m/intel386.h (TEXT_START):
1360 * m/ibmrs6000.h (TEXT_START):
1361 * m/ia64.h (HAVE_TEXT_START):
1362 * s/msdos.h (TEXT_START): Likewise.
1363
72af86bd
AS
13642010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1365
1366 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1367 (overrun_check_free, xstrdup, allocate_string)
1368 (allocate_string_data, compact_small_strings, Fmake_string)
1369 (make_unibyte_string, make_multibyte_string)
1370 (make_string_from_bytes, make_specified_string, make_float)
1371 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1372 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1373 memcpy, memmove, memset, memcmp.
1374 * atimer.c (start_atimer, set_alarm): Likewise.
1375 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1376 (mmap_realloc, init_buffer_once): Likewise.
1377 * callint.c (Fcall_interactively): Likewise.
1378 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1379 (getenv_internal_1): Likewise.
1380 * casefiddle.c (casify_object): Likewise.
1381 * ccl.c (ccl_driver): Likewise.
1382 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1383 * charset.c (load_charset_map_from_file)
1384 (load_charset_map_from_file, load_charset_map_from_vector)
1385 (Fdefine_charset_internal): Likewise.
1386 * cm.c (Wcm_clear): Likewise.
1387 * coding.c (decode_eol, decode_coding_object)
1388 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1389 * data.c (Faset): Likewise.
1390 * dired.c (directory_files_internal, file_name_completion_stat):
1391 Likewise.
1392 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1393 (clear_glyph_row, copy_row_except_pointers)
1394 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1395 (save_current_matrix, restore_current_matrix)
1396 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1397 (mirror_line_dance, scrolling_window): Likewise.
1398 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1399 Likewise.
1400 * doprnt.c (doprnt): Likewise.
1401 * editfns.c (Fuser_full_name, make_buffer_string_both)
1402 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1403 * emacs.c (sort_args): Likewise.
1404 * eval.c (Fapply, Ffuncall): Likewise.
1405 * fileio.c (Ffile_name_directory, make_temp_name)
1406 (Fexpand_file_name, search_embedded_absfilename)
1407 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1408 (auto_save_error): Likewise.
1409 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1410 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1411 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1412 (Fmake_hash_table): Likewise.
1413 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1414 * ftfont.c (ftfont_text_extents): Likewise.
1415 * getloadavg.c (getloadavg): Likewise.
1416 * image.c (define_image_type, make_image, make_image_cache)
1417 (x_create_x_image_and_pixmap, xbm_image_p)
1418 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1419 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1420 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1421 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1422 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1423 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1424 Likewise.
1425 * indent.c (scan_for_column, compute_motion): Likewise.
1426 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1427 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1428 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1429 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1430 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1431 (store_user_signal_events, menu_bar_items, tool_bar_items)
1432 (process_tool_bar_item, append_tool_bar_item)
1433 (read_char_minibuf_menu_prompt, read_key_sequence)
1434 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1435 Likewise.
1436 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1437 Likewise.
1438 * lisp.h (STRING_COPYIN): Likewise.
1439 * lread.c (Fload, read1, oblookup): Likewise.
1440 * msdos.c (Frecent_doskeys): Likewise.
1441 * nsfns.m (Fx_create_frame): Likewise.
1442 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1443 Likewise.
1444 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1445 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1446 Likewise.
1447 * nsmenu.m (ns_update_menubar): Likewise.
1448 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1449 * print.c (print_unwind, printchar, strout, print_string)
1450 (print_error_message): Likewise.
1451 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1452 (Fmake_network_process, Fnetwork_interface_list)
1453 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1454 (init_process): Likewise.
1455 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1456 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1457 Likewise.
1458 * scroll.c (do_scrolling, do_direct_scrolling)
1459 (scrolling_max_lines_saved): Likewise.
1460 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1461 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1462 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1463 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1464 (emacs_set_tty): Likewise.
1465 * term.c (encode_terminal_code, calculate_costs)
1466 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1467 Likewise.
1468 * termcap.c (tgetst1, gobble_line): Likewise.
1469 * termhooks.h (EVENT_INIT): Likewise.
1470 * tparam.c (tparam1): Likewise.
1471 * unexalpha.c (unexec): Likewise.
1472 * unexec.c (write_segment): Likewise.
1473 * unexmacosx.c (unexec_write_zero): Likewise.
1474 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1475 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1476 * w32font.c (w32font_list_family, w32font_text_extents)
1477 (w32font_list_internal, w32font_match_internal)
1478 (w32font_open_internal, compute_metrics, Fx_select_font):
1479 Likewise.
1480 * w32menu.c (set_frame_menubar, add_menu_item)
1481 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1482 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1483 * w32uniscribe.c (uniscribe_list_family): Likewise.
1484 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1485 * window.c (make_window, replace_window, set_window_buffer)
1486 (Fsplit_window): Likewise.
1487 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1488 (add_to_log, message3, x_consider_frame_title)
1489 (append_space_for_newline, extend_face_to_end_of_line)
1490 (decode_mode_spec_coding, init_glyph_string): Likewise.
1491 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1492 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1493 (face_attr_equal_p, make_realized_face, make_face_cache)
1494 (free_realized_faces, lookup_named_face, smaller_face)
1495 (face_with_height, lookup_derived_face)
1496 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1497 (Finternal_set_font_selection_order, realize_default_face)
1498 (compute_char_face, face_at_buffer_position)
1499 (face_for_overlay_string, face_at_string_position, merge_faces):
1500 Likewise.
1501 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1502 (Fx_window_property, x_create_tip_frame)
1503 (Fx_backspace_delete_keys_p): Likewise.
1504 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1505 (xfont_text_extents): Likewise.
1506 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1507 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1508 * xselect.c (x_queue_event, x_get_window_property)
1509 (receive_incremental_selection): Likewise.
1510 * xsmfns.c (x_session_check_input): Likewise.
1511 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1512 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1513 Likewise.
1514 * character.h (BCOPY_SHORT): Removed.
1515 * config.in: Regenerate.
1516 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1517 * emacs.c (main) [PROFILING]: Don't declare
1518 dump_opcode_frequencies.
1519 * lisp.h (safe_bcopy): Remove declaration.
1520 (memset) [!HAVE_MEMSET]: Declare.
1521 (memcpy) [!HAVE_MEMCPY]: Likewise.
1522 (memmove) [!HAVE_MEMMOVE]: Likewise.
1523 (memcmp) [!HAVE_MEMCMP]: Likewise.
1524 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1525 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1526 Don't define.
1527 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1528 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1529 (BCOPY_DOWNWARD_SAFE): Don't define.
1530 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1531 (memcpy) [!HAVE_MEMCPY]: Define.
1532 (memmove) [!HAVE_MEMMOVE]: Define.
1533 (memcmp) [!HAVE_MEMCMP]: Define.
1534
cb768704
J
15352010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1536
1537 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1538 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1539 New functions.
cb768704
J
1540 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1541 select on empty input mask.
1542 (init_process): Initialize kbd_is_on_hold to 0.
1543
1544 * process.h (hold_keyboard_input, unhold_keyboard_input)
1545 (kbd_on_hold_p): Declare.
1546
1547 * keyboard.c (input_available_signal): Declare.
1548 (kbd_buffer_nr_stored): New function.
1549 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1550 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1551 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1552 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1553 (tty_read_avail_input): If input is on hold, return.
1554 Don't read more that free slots in kbd_buffer (Bug#6571).
1555
3a8ce822
EZ
15562010-07-07 Eli Zaretskii <eliz@gnu.org>
1557
1558 * msdos.h:
1559 * msdos.c:
1560 * dosfns.c:
1561 * w16select.c: Convert function definitions to ANSI C.
1562
a628ad9d
JB
1563 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1564 Remove unused prototypes.
3a8ce822 1565
cf84bb53
JB
15662010-07-07 Juanma Barranquero <lekktu@gmail.com>
1567
1568 * coding.c, sysdep.c: Convert some more functions to standard C.
1569
1a4990fb
JB
15702010-07-07 Juanma Barranquero <lekktu@gmail.com>
1571
1572 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1573 (encode_coding_object): Use SPECPDL_INDEX.
1574 (syms_of_coding): Use DOS_NT.
1575
c0f2f16b
DN
15762010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1577
48fb6855
DN
1578 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1579
c0f2f16b
DN
1580 Make the function member of Lisp_Subr use standard C prototypes.
1581 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1582 (DECL_ALIGN): Add a cast for the function.
1583 * eval.c (Feval, Ffuncall): Use the proper type for each type
1584 function call.
1585
67aecef9
CY
15862010-07-06 Chong Yidong <cyd@stupidchicken.com>
1587
1588 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1589 fringe face id, so face-remapping-alist works (Bug#6091).
1590
b56ceb92
JB
15912010-07-06 Juanma Barranquero <lekktu@gmail.com>
1592
1593 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1594 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1595 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1596
7af07b96
AS
15972010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1598
1599 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1600 * lisp.h: Declare x_get_keysym_name.
1601 * keyboard.c (modify_event_symbol): Don't declare
1602 x_get_keysym_name here.
1603
69e24e34
DN
16042010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1605
1606 * ecrt0.c: Revert conversion to standard C.
1607
d3da34e0 16082010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1609
1610 * vm-limit.c (memory_warnings):
1611 * keyboard.c (modify_event_symbol):
1612 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1613 (round2, emacs_rint):
1614 * process.c (send_process, old_sigpipe): Convert function
1615 definitions and declarations to standard C.
1616
16172010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1618
1619 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1620 * xdisp.c: Convert function definitions to standard C.
1621
1622 * cm.c (cmputc): Arg C is now int, not char.
1623 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1624
00be444c
J
16252010-07-05 James Cloos <cloos@jhcloos.com>
1626
1627 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1628
1629 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1630 _NET_WM_ICON_NAME atoms.
1631
1632 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1633 and _NET_WM_ICON_NAME properties, too, matching what is
1634 done in the Gtk+ case.
1635
e4c8d29a
J
16362010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1637
ff919460
J
1638 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1639
e4c8d29a
J
1640 * xsmfns.c (SSDATA): New macro.
1641 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1642 passed to strlen/strcpy/strcat.
1643 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1644 7:th arg to XChangeProperty to (unsigned char *)
1645
1646 * xsettings.c (something_changedCB, parse_settings)
1647 (apply_xft_settings): Reformat prototype.
1648 (something_changedCB, init_gconf): Remove unused variable i.
1649 (read_settings): Remove unused variable long_len.
1650
1651 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1652 (xg_get_image_for_pixmap, create_dialog)
1653 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1654 (menuitem_highlight_callback, make_menu_item)
1655 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1656 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1657 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1658 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1659 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1660 (xg_tool_bar_item_expose_callback): Reformat prototype.
1661 (xg_update_menubar): GList *group => GSList *group.
1662 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1663 before use.
1664 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1665 to GTK_IMAGE (wimage).
1666
dd4c5104
DN
16672010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1668
898b4c5c
DN
1669 * atimer.c: Use "" instead of <> for local includes for
1670 consistency with the rest of the code.
1671
dd4c5104
DN
1672 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1673 * xrdb.c (get_system_name):
1674 * window.c (shrink_windows):
1675 * syntax.c (forw_comment):
1676 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1677 (ins_del_costs):
1678 * mem-limits.h (start_of_data):
1679 * lread.c (readevalloop):
1680 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1681 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1682 * frame.c (x_get_focus_frame):
1683 * floatfns.c (fmod_float):
1684 * fileio.c (choose_write_coding_system):
1685 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1686 (malloc_initialize_hook, sort_args, synchronize_locale):
1687 * doprnt.c (doprnt):
1688 * dired.c (compile_pattern):
1689 * data.c (fmod_float):
1690 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1691 (map_char_table_for_charset):
1692 * charset.c (define_charset_internal):
1693 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1694 to standard C.
1695
9a39b306 16962010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1697 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1698
1699 * lread.c (read1): Fix up last change to not mess up `c'.
1700
e6cb2cbb
JB
17012010-07-04 Juanma Barranquero <lekktu@gmail.com>
1702
1703 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1704
438105ed
JB
17052010-07-04 Juanma Barranquero <lekktu@gmail.com>
1706
1707 Fix prototypes.
1708
e5447b22 1709 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1710 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1711 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1712 arg, as required by internal_condition_case_1.
dcc7404b 1713 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1714 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1715 (analyse_first): Fix "const const".
e5447b22 1716 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1717 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1718 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1719
971de7fb
DN
17202010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1721
1722 * alloc.c: Convert function definitions to standard C.
1723 * atimer.c:
1724 * bidi.c:
1725 * bytecode.c:
1726 * callint.c:
1727 * callproc.c:
1728 * casefiddle.c:
1729 * casetab.c:
1730 * category.c:
1731 * ccl.c:
1732 * character.c:
1733 * charset.c:
1734 * chartab.c:
1735 * cmds.c:
1736 * coding.c:
1737 * composite.c:
1738 * data.c:
1739 * dbusbind.c:
1740 * dired.c:
1741 * dispnew.c:
1742 * doc.c:
1743 * doprnt.c:
1744 * ecrt0.c:
1745 * editfns.c:
1746 * fileio.c:
1747 * filelock.c:
1748 * filemode.c:
1749 * fns.c:
1750 * font.c:
1751 * fontset.c:
1752 * frame.c:
1753 * fringe.c:
1754 * ftfont.c:
1755 * ftxfont.c:
1756 * gtkutil.c:
1757 * indent.c:
1758 * insdel.c:
1759 * intervals.c:
1760 * keymap.c:
1761 * lread.c:
1762 * macros.c:
1763 * marker.c:
1764 * md5.c:
1765 * menu.c:
1766 * minibuf.c:
1767 * prefix-args.c:
1768 * print.c:
1769 * ralloc.c:
1770 * regex.c:
1771 * region-cache.c:
1772 * scroll.c:
1773 * search.c:
1774 * sound.c:
1775 * strftime.c:
1776 * syntax.c:
1777 * sysdep.c:
1778 * termcap.c:
1779 * terminal.c:
1780 * terminfo.c:
1781 * textprop.c:
1782 * tparam.c:
1783 * undo.c:
1784 * unexelf.c:
1785 * window.c:
1786 * xfaces.c:
1787 * xfns.c:
1788 * xfont.c:
1789 * xftfont.c:
1790 * xgselect.c:
1791 * xmenu.c:
1792 * xrdb.c:
1793 * xselect.c:
1794 * xsettings.c:
1795 * xsmfns.c:
1796 * xterm.c: Likewise.
1797
ae492bec
EZ
17982010-07-03 Eli Zaretskii <eliz@gnu.org>
1799
76ea4cc9
EZ
1800 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1801 frames other than the initial one. Fix reversal of colors when
1802 `reverse' is specified in the frame parameters. Call
1803 update_face_from_frame_parameter instead of
1804 internal-set-lisp-face-attribute. Initialize screen colors from
1805 initial_screen_colors[] when f->default_face_done_p is zero,
1806 instead of depending on being called with default-frame-alist as
1807 the alist argument.
1808
1809 * xfaces.c (update_face_from_frame_parameter): Move out of
1810 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1811 with HAVE_WINDOW_SYSTEM.
1812
1e6255ae
EZ
1813 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1814 to menu-bar-mode, if not set in the frame parameters or in
1815 default-frame-alist.
1816
ae492bec
EZ
1817 * w32console.c (sys_tputs): Adjust argument list to prototype in
1818 term.c.
1819
3a35a84c
JB
18202010-07-03 Juanma Barranquero <lekktu@gmail.com>
1821
1822 * lisp.h (memory_warnings): Fix prototype.
1823
1824 * cm.h (evalcost): Fix prototype.
1825
1826 * cm.c (evalcost): Fix arg type.
1827
c532d349
DN
18282010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1829
1830 * term.c (term_clear_mouse_face, Fidentity):
1831 * syssignal.h (signal_handler_t):
1832 * lisp.h (memory_warnings):
1833 * coding.h (preferred_coding_system):
1834 * cm.h (evalcost):
1835 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1836
c0b36d46
EZ
18372010-07-02 Eli Zaretskii <eliz@gnu.org>
1838
1839 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1840 from prototypes.
1841
1842 * msdos.h (load_pixmap): Don't define away.
1843
383e0970
J
18442010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1845
f57e2426
J
1846 * lisp.h:
1847 * atimer.h: Remove define for P_.
1848
1849 * alloc.c: Remove __P and P_ from .c and .m files.
1850 * atimer.c:
1851 * buffer.c:
1852 * callint.c:
1853 * category.c:
1854 * charset.c:
1855 * chartab.c:
1856 * cm.c:
1857 * coding.c:
1858 * composite.c:
1859 * data.c:
1860 * dired.c:
1861 * dispnew.c:
1862 * doc.c:
1863 * editfns.c:
1864 * emacs.c:
1865 * eval.c:
1866 * fileio.c:
1867 * filelock.c:
1868 * fns.c:
1869 * font.c:
1870 * fontset.c:
1871 * frame.c:
1872 * ftfont.c:
1873 * ftxfont.c:
1874 * gmalloc.c:
1875 * gtkutil.c:
1876 * image.c:
1877 * indent.c:
1878 * intervals.c:
1879 * keyboard.c:
1880 * keymap.c:
1881 * lread.c:
1882 * marker.c:
1883 * menu.c:
1884 * minibuf.c:
1885 * print.c:
1886 * process.c:
1887 * scroll.c:
1888 * search.c:
1889 * sound.c:
1890 * strftime.c:
1891 * syntax.c:
1892 * sysdep.c:
1893 * term.c:
1894 * terminal.c:
1895 * textprop.c:
1896 * unexalpha.c:
1897 * w32console.c:
1898 * w32fns.c:
1899 * w32font.c:
1900 * w32menu.c:
1901 * w32term.c:
1902 * w32uniscribe.c:
1903 * window.c:
1904 * xdisp.c:
1905 * xfaces.c:
1906 * xfns.c:
1907 * xfont.c:
1908 * xftfont.c:
1909 * xmenu.c:
1910 * xselect.c:
1911 * xterm.c: Likewise.
1912
383e0970 1913 Remove P_ and __P macros.
f57e2426
J
1914 * atimer.h: Remove P_ and __P macros.
1915 * buffer.h:
383e0970
J
1916 * category.h:
1917 * ccl.h:
1918 * character.h:
1919 * charset.h:
1920 * cm.h:
1921 * coding.h:
1922 * composite.h:
1923 * dispextern.h:
1924 * disptab.h:
9e892c8d 1925 * dosfns.h:
383e0970
J
1926 * font.h:
1927 * fontset.h:
1928 * frame.h:
1929 * gtkutil.h:
1930 * indent.h:
1931 * intervals.h:
1932 * keyboard.h:
1933 * keymap.h:
1934 * lisp.h:
1935 * macros.h:
1936 * md5.h:
1937 * menu.h:
1938 * msdos.h:
1939 * nsterm.h:
1940 * puresize.h:
1941 * region-cache.h:
1942 * syntax.h:
1943 * syssignal.h:
1944 * systime.h:
1945 * termhooks.h:
9e892c8d 1946 * w32font.h:
383e0970
J
1947 * w32term.h:
1948 * widget.h:
1949 * window.h:
1950 * xgselect.h:
1951 * xsettings.h:
1952 * xterm.h: Likewise.
1953
98601119
DN
19542010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1955
d9170db5
DN
1956 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1957
98601119
DN
1958 Cleanup old code.
1959 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1960 * syssignal.h: Remove code for Lynx, not supported anymore.
1961 * vm-limit.c: Remove unused code the depends on emacs not being
1962 defined and NO_LIM_DATA being defined.
1963 * mem-limits.h: Remove dead code.
1964
1f984e12
J
19652010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1966
c49d071a
J
1967 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1968
9d5405ec
J
1969 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1970 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1971
7a18115b
J
1972 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1973 parameters, they are already absolute.
1974
a628ad9d
JB
1975 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1976 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1977
a628ad9d 1978 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1979
a628ad9d
JB
1980 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1981 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1982
a628ad9d
JB
1983 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1984 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1985
c1ef4455
CY
19862010-06-30 Chong Yidong <cyd@stupidchicken.com>
1987
1988 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1989 check default-frame-alist.
1990
ce8f5a9a
AS
19912010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1992
1993 * process.c (create_process): Avoid using invalid file descriptors.
1994
1995 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1996
bf935339
J
19972010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1998
1999 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2000 Improve documentation. Return font regardless of use_system_font.
2001 (syms_of_xsettings): Improve documentation for font-use-system-font.
2002
7c33a057
CY
20032010-07-10 Chong Yidong <cyd@stupidchicken.com>
2004
2ec1b5ee
CY
2005 * xfaces.c (realize_face): Garbage the frame if a face is removed
2006 (Bug#6593).
2007
20082010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2009
2010 * keyboard.c: Remove duplicate <setjmp.h>.
2011 (read_key_sequence): Remove volatile qualifiers.
2012
20132010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2014
2015 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2016 (struct glyph_row): New members left_fringe_offset and
2017 right_fringe_offset.
2018
2019 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2020 specially.
2021 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2022 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2023
2024 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2025 Take account of bitmap offset.
2ec1b5ee
CY
2026 (draw_window_fringes): Take account of window vscroll.
2027 (update_window_fringes): Likewise. Extend top-aligned top indicator
2028 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2029 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2030 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2031
20322010-07-04 Juanma Barranquero <lekktu@gmail.com>
2033
2034 * w32fns.c (Qtooltip): Declare.
2035 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2036
20372010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2038
2039 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2040 grab on just Press (Bug#6499).
2041
20422010-07-02 Chong Yidong <cyd@stupidchicken.com>
2043
2044 * frame.c (Qtooltip): New var.
2045 (delete_frame): Use it. Fix faulty if statement. Don't update
2046 mode line for tooltip frames. Suggested by Martin Rudalics.
2047
2048 * xfns.c (x_create_tip_frame):
2049 * w32fns.c (x_create_tip_frame): Use it.
2050
20512010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2052
2053 * xftfont.c (xftfont_open): Check font width one by one also when
2054 spacing is dual.
2055
2056 * ftfont.c (ftfont_open): Ditto.
2057
6259c2ec
GM
20582010-06-30 Glenn Morris <rgm@gnu.org>
2059
a46007e9
GM
2060 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2061
6259c2ec
GM
2062 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2063
2064 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2065 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2066 * s/darwin.h (SYSTEM_MALLOC):
2067 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2068
5d1d3d04
J
20692010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2070
2071 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2072 (ns_get_screen): Don't assign integer to f.
2073 (Fx_display_color_cells): Declarations before statements.
2074
e547b051
J
20752010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2076
5fc8e5bc
J
2077 * xfns.c (x_default_font_parameter): Remove got_from_system
2078 (Bug#6526).
2079
e547b051
J
2080 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2081 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2082 defines based on what configure finds.
2083
2084 * xterm.c (XTflash): Use gtk_widget_get_window.
2085 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2086 gtk_adjustment_get_page_size.
2087 (handle_one_xevent): Use gtk_widget_get_mapped.
2088 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2089 messages.
2090
2091 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2092
2093 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2094 HAVE_GTK_FILE_SELECTION_NEW.
2095
2096 * gtkutil.c (xg_display_open, xg_display_close): Remove
2097 HAVE_GTK_MULTIDISPLAY, it is always defined.
2098 (xg_display_open): Return type is void.
2099 (gtk_widget_set_has_window)
2100 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2101 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2102 (gtk_adjustment_set_page_increment)
2103 (gtk_adjustment_get_step_increment): #define these if not found
2104 by configure.
2105 (remove_submenu): New define based on Gtk+ version.
2106 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2107 gtk_widget_get_window.
2108 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2109 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2110 (create_dialog): Use gtk_dialog_get_action_area and
2111 gtk_dialog_get_content_area.
2112 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2113 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2114 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2115 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2116 g_object_ref and g_object_unref.
2117 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2118 gtk_widget_get_sensitive.
2119 (xg_update_submenu): Use remove_submenu.
2120 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2121 properties instead to get old x and y position.
2122 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2123 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2124 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2125 (xg_get_tool_bar_widgets): New function.
2126 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2127 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2128 (toolbar_set_orientation): New #define based on if configure
2129 finds gtk_orientable_set_orientation.
2130 (xg_create_tool_bar): Call toolbar_set_orientation.
2131 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2132 instead of gtk_box_pack_start_defaults.
2133
b9229673
CY
21342010-06-28 Chong Yidong <cyd@stupidchicken.com>
2135
2136 * cmds.c (Fdelete_backward_char): Move into Lisp.
2137
bbc803b0
DN
21382010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2139
2140 * s/freebsd.h (BSD4_2): Remove redundant definition.
2141 bsd-common.h defines it already.
2142
6431f2e6
CY
21432010-06-27 Chong Yidong <cyd@stupidchicken.com>
2144
2145 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2146 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2147 tool-bar-mode, which are now set using these X resources at
2148 startup, to determine the defaults (Bug#2249).
2149
2150 * w32fns.c (Fx_create_frame):
2151 * nsfns.m (Fx_create_frame): Likewise.
2152
2153 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2154
8c079ebb
JB
21552010-06-24 Juanma Barranquero <lekktu@gmail.com>
2156
2157 * gtkutil.c (xg_update_scrollbar_pos):
2158 Avoid C99 mid-block variable declaration.
2159
e9b7ab96
JD
21602010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2161
bc869eca
JD
2162 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2163
2b7e356a 2164 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2165
2166 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2167 if height is less than scroll bar min size.
2168 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2169
e9b7ab96
JD
2170 * xfns.c (x_default_font_parameter): Try to open font from system
2171 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2172
a628ad9d 21732010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2174
2175 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2176
70c4cfbb
EZ
21772010-06-20 Eli Zaretskii <eliz@gnu.org>
2178
2179 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2180 most-positive-fixnum, be extra accurate when scrolling window
2181 start, to avoid missing the cursor line.
2182
ad5a12b5
EZ
21832010-06-19 Eli Zaretskii <eliz@gnu.org>
2184
2185 * xdisp.c (try_scrolling): Compute the limit for searching point
2186 in forward scroll from scroll_max, instead of an arbitrary limit
2187 of 10 screen lines. See
2188 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2189 and
2190 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2191 for details.
2192
2a64315a 21932010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2194
2195 * editfns.c (Fbyte_to_string): Pacify compiler.
2196
288cf4e9
SM
21972010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2198
2199 * lread.c (read1): Phase out old-style backquotes a bit more.
2200
6e6e5760
EZ
22012010-06-12 Eli Zaretskii <eliz@gnu.org>
2202
cbc4fd20
EZ
2203 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
2204 bidimirror.h.
2205
2206 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
2207
317fbf33
EZ
2208 * bidi.c (bidi_initialize): Remove explicit initialization of
2209 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 2210 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 2211 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
2212
2213 * biditype.h: New file.
2214
cbc4fd20
EZ
2215 * bidimirror.h: New file.
2216
6e6e5760
EZ
2217 * window.c (syms_of_window): Doc fix (bug#6409).
2218
4176cba2
RF
22192010-06-12 Romain Francoise <romain@orebokech.com>
2220
2221 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
2222 ediff-hook.
2223
cb4bfcb5
GM
22242010-06-10 Glenn Morris <rgm@gnu.org>
2225
64c60c2f
GM
2226 * editfns.c (Fbyte_to_string): Pacify compiler.
2227
cb4bfcb5
GM
2228 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
2229
2ec1b5ee
CY
22302010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2231
2232 * alloc.c (Fmake_byte_code): Don't access undefined argument
2233 (Bug#6517).
2234
22352010-06-25 Chong Yidong <cyd@stupidchicken.com>
2236
2237 * xdisp.c (next_element_from_image): Ensure that after-strings are
2238 read the next time we hit handle_stop (Bug#1336).
2239
22402010-06-23 Andreas Schwab <schwab@linux-m68k.org>
2241
2242 * lread.c (read1): Signal error if #s is not followed by paren.
2243
22442010-06-19 Chong Yidong <cyd@stupidchicken.com>
2245
2246 * image.c (free_image): Mark frame as garbaged (Bug#6426).
2247
2248 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
2249
22502010-06-15 Glenn Morris <rgm@gnu.org>
2251
2252 * editfns.c (Fbyte_to_string): Pacify compiler.
2253
e454a4a3
SM
22542010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2255
2256 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
2257 Check `object's type before accessing its guts.
2258
c1b1acc2
DN
22592010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
2260
2261 * s/usg5-4.h: Fix previous change.
2262 Suggested by Lawrence Mitchell <wence@gmx.li>
2263
657d4c0b
AS
22642010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2265
2266 * minibuf.c (Fall_completions): Add more checks.
2267
9b27fd9f
JB
22682010-06-08 Juanma Barranquero <lekktu@gmail.com>
2269
2270 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
2271
a99ebb40
DN
22722010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
2273
d7c5d87d
DN
2274 * lread.c (X_OK): Remove, unused.
2275
0263a941
DN
2276 * dispnew.c: Remove obsolete comment.
2277
a99ebb40
DN
2278 Remove INCLUDED_FCNTL.
2279 * xterm.c (INCLUDED_FCNTL):
2280 * callproc.c (INCLUDED_FCNTL):
2281 * alloc.c (INCLUDED_FCNTL):
2282 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
2283 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
2284
13b5221f
MR
22852010-06-07 Martin Rudalics <rudalics@gmx.at>
2286
2287 * window.c (Fselect_window): Move `record_buffer' up to the
2288 beginning of this function, so the buffer gets recorded
2289 even if the selected window does not change.
2290 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
2291
5220357f
JB
22922010-06-07 Juanma Barranquero <lekktu@gmail.com>
2293
2294 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
2295 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
2296
3085237c
DN
22972010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2298
2299 Remove BSTRING related code, all platforms define it.
2300 * s/usg5-4.h (BSTRING): Remove definition.
2301 * s/template.h (BSTRING):
2302 * s/msdos.h (BSTRING):
2303 * s/ms-w32.h (BSTRING):
2304 * s/hpux10-20.h (BSTRING):
2305 * s/gnu-linux.h (BSTRING):
2306 * s/darwin.h (BSTRING):
2307 * s/cygwin.h (BSTRING):
2308 * s/bsd-common.h (BSTRING):
2309 * s/aix4-2.h (BSTRING): Likewise.
2310 * sysdep.c: Remove code depending on BSTRING not being defined.
2311
409f2919
JB
23122010-06-05 Juanma Barranquero <lekktu@gmail.com>
2313
2314 Remove obsolete macro BASE_LEADING_CODE_P.
2315 * character.h (BASE_LEADING_CODE_P): Remove.
2316 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
2317 * buffer.c (Fset_buffer_multibyte):
2318 * indent.c (scan_for_column, compute_motion):
2319 * insdel.c (count_combining_before, count_combining_after):
2320 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
2321
087fc47a
JB
23222010-06-04 Juanma Barranquero <lekktu@gmail.com>
2323
2324 Turn `directory-sep-char' into a noop.
2325
2326 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
2327 (DIRECTORY_SEP): Define unconditionally.
2328
2329 * s/ms-w32.h (DIRECTORY_SEP): Remove.
2330
2331 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
2332 call dostounix_filename directly.
2333
2334 * fileio.c (CORRECT_DIR_SEPS): Remove.
2335 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
2336 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2337 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2338 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2339
2340 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2341 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2342
0eb7675e
AS
23432010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2344
a628ad9d
JB
2345 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2346 (Bug#6346)
0eb7675e 2347
78edd3b7
JB
23482010-06-03 Juanma Barranquero <lekktu@gmail.com>
2349
2350 * ccl.c (Fccl_program_p): Fix typo in docstring.
2351
eb697db5
DN
23522010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2353
2354 Move UNEXEC definition to autoconf.
2355 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2356 * s/sol2-10.h (UNEXEC):
2357 * s/irix6-5.h (UNEXEC):
2358 * s/hpux10-20.h (UNEXEC):
2359 * s/gnu-linux.h (UNEXEC):
2360 * s/darwin.h (UNEXEC):
2361 * s/cygwin.h (UNEXEC):
2362 * s/bsd-common.h (UNEXEC):
2363 * s/aix4-2.h (UNEXEC):
2364 * m/alpha.h (UNEXEC): Likewise.
2365 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2366
aa3830c4
JB
23672010-06-03 Juanma Barranquero <lekktu@gmail.com>
2368
2369 Remove obsolete pre-unicode2 macros.
2370 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2371 * composite.c (composition_reseat_it):
2372 * data.c (Faset):
2373 * fns.c (Ffillarray):
2374 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2375 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2376
d234d13e
JL
23772010-06-03 Juri Linkov <juri@jurta.org>
2378
2379 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2380 (Fswitch_to_buffer): Remove unused variable `err'.
2381
0d4bcf4d
GM
23822010-06-03 Glenn Morris <rgm@gnu.org>
2383
e23dc1e2
GM
2384 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2385
05b09564
GM
2386 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2387 now that AH_BOTTOM does it.
2388
824e2978
GM
2389 * m/hp800.h (HAVE_ALLOCA):
2390 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2391
0d4bcf4d
GM
2392 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2393 Remove NOT_C_CODE tests, it is always true now.
2394
c55d2abf
DN
23952010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2396
08a494a3
DN
2397 Fix config.h includes.
2398 * xsettings.c:
2399 * xgselect.c:
2400 * nsterm.m:
2401 * nsselect.m:
2402 * nsimage.m:
2403 * nsfont.m:
2404 * nsfns.m:
2405 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2406 other files do.
2407
75934b1d
DN
2408 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2409
9f32a766
DN
2410 * s/sol2-6.h: Remove obsolete comments.
2411
c55d2abf
DN
2412 Remove unnecessary alloca.h includes.
2413 * keymap.c: Do not include alloca.h, config.h does that.
2414 * sysdep.c: Likewise. Do not define fwrite, not used.
2415
06ac62b4
SM
24162010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2417
2418 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2419 the HAVE_TERMIO where it belongs (bug#6149).
2420
1ab8293c
SM
24212010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2422
2423 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2424 of bug#6305).
2425
6dcfd253
EZ
24262010-05-30 Eli Zaretskii <eliz@gnu.org>
2427
2428 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2429 state is always cached (bug#6306).
2430
6d26bbb2
EZ
24312010-05-29 Eli Zaretskii <eliz@gnu.org>
2432
06fa4a23
EZ
2433 Fix cursor motion in bidi-reordered continued lines.
2434 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2435 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2436 over continuation lines in bidi-reordered buffers. Return
2437 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2438 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2439
f5783df3
MA
24402010-05-28 Michael Albinus <michael.albinus@gmx.de>
2441
2442 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2443
7d56b2dd
KH
24442010-05-28 Kenichi Handa <handa@m17n.org>
2445
2446 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2447 Don't sheck SPEC if it is nil.
2448 (font_list_entities): Call font_delete_unmatched if
b925d231 2449 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2450
e58d4ff7
GM
24512010-05-28 Glenn Morris <rgm@gnu.org>
2452
2453 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2454
f1a5d776
CY
24552010-05-27 Chong Yidong <cyd@stupidchicken.com>
2456
2457 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2458 whether to trash.
2459 (internal_delete_file, Frename_file): Callers changed.
2460 (delete_by_moving_to_trash): Doc fix.
2461 (Fdelete_directory_internal): Don't move to trash.
2462
2463 * callproc.c (delete_temp_file):
2464 * buffer.c (Fkill_buffer): Callers changed.
2465
2466 * lisp.h: Update prototype.
2467
f44a59e6
CY
24682010-05-27 Chong Yidong <cyd@stupidchicken.com>
2469
2470 * xdisp.c (redisplay_window): After redisplay, check if point is
2471 still valid before setting it (Bug#6177).
2472
81ac4f35
GM
24732010-05-27 Glenn Morris <rgm@gnu.org>
2474
2475 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2476 Convert comments to Makefile format.
2477
2478 * Makefile.in (bootstrap-clean): No more Makefile.c.
2479
ccd89fb3
GM
24802010-05-26 Glenn Morris <rgm@gnu.org>
2481
90278cb6
GM
2482 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2483 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2484
ccd89fb3
GM
2485 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2486 Remove.
2487 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2488
b7050583
KH
24892010-05-26 Kenichi Handa <handa@m17n.org>
2490
2491 * composite.c (composition_compute_stop_pos): Fix condition for
2492 backward scanning.
2493
e5458003
GM
24942010-05-25 Glenn Morris <rgm@gnu.org>
2495
c345fe90
GM
2496 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2497 Move before TEMACS_LDFLAGS.
2498 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2499 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2500
2e0689ab
GM
2501 * Makefile.in (NOT_C_CODE): No longer define.
2502 (config.h): No longer include.
2503
8009a5e8
GM
2504 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2505 variables it may reference.
2506
e5458003
GM
2507 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2508 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2509
10f72a37
KH
25102010-05-25 Kenichi Handa <handa@m17n.org>
2511
2512 * dispextern.h (struct composition_it): New members rule_idx and
2513 charpos.
2514
2515 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2516 that the character positions of IT point the last character of the
2517 current grapheme cluster.
2518 (next_element_from_composition): Don't change character positions
2519 of IT.
2520 (append_composite_glyph): Set glyph->charpos to
2521 it->cmp_it.charpos.
2522
2523 * composite.c (autocmp_chars): Change the first argument to RULE,
2524 and try composition with RULE only.
2525 (composition_compute_stop_pos): Record the index number of the
2526 composition rule in CMP_IT->rule_idx.
2527 (composition_reseat_it): Call autocmp_chars repeatedly until the
2528 correct rule of the composition is found.
2529 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2530 is at the last character of the current grapheme cluster when
2531 CMP_IT->reversed_p is nonzero.
2532
171eda53 25332010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2534
171eda53
SM
2535 * editfns.c (Fbyte_to_string): New function.
2536
66a9f7f4
SM
25372010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2538
2539 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2540 Suggested by Masatake YAMATO <yamato@redhat.com>.
2541
d8c315d1
EZ
25422010-05-23 Eli Zaretskii <eliz@gnu.org>
2543
171eda53 2544 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2545
f5b416d2 25462010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2547
2548 * s/netbsd.h: If terminfo is found, use it in preference to
2549 termcap. (Bug#6190) [Backport from trunk]
2550
0416466c
EZ
25512010-05-19 Eli Zaretskii <eliz@gnu.org>
2552
11117830 2553 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2554
2555 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2556 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2557 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2558 and maxpos members instead of start.pos and end.pos, respectively.
2559
2560 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2561 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2562 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2563 (try_window_reusing_current_matrix, try_window_id):
2564 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2565 (init_from_display_pos, init_iterator): Use EMACS_INT for
2566 character and byte positions.
66a9f7f4 2567 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2568 arguments for minimum and maximum buffer positions seen by
2569 display_line for this row. Don't use iterator to find the
2570 position following the maximum one; instead, increment the
11117830
EZ
2571 position found by display_line directly. Fix logic; eol_pos
2572 should be tested before the rest. Handle the case of characters
2573 delivered from display vector (bug#6036). Fix tests related to
2574 it->method. Handle the truncated_on_right_p rows.
2575 (RECORD_MAX_MIN_POS): New macro.
2576 (display_line): Use it to record the minimum and maximum buffer
2577 positions for glyphs in the row being assembled. Record the
2578 position of the newline that terminates the line. If word wrap is
2579 in effect, restore minimum and maximum positions seen up to the
2580 wrap point, when iterator returns to it.
2581 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2582 row and cursor not already at point. Restore original pre-bidi
2583 code for unidirectional buffers.
d36fe237
EZ
2584
2585 * dispnew.c (increment_row_positions, check_matrix_invariants):
2586 Increment and check row->start.pos and row->end.pos, in addition
2587 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2588
11117830
EZ
2589 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2590 Display truncated_on_left_p and truncated_on_right_p flags.
2591 Formatting fixes.
2592 (pmtxrows): Display the ordinal number of each row. Don't display
2593 rows beyond the last one.
2594
2595 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2596 it is not copied by bidi_copy_it.
2597
6e83d800
EZ
25982010-05-22 Eli Zaretskii <eliz@gnu.org>
2599
2600 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2601 (Bug#6237)
2602
110683ad
CY
26032010-05-22 Chong Yidong <cyd@stupidchicken.com>
2604
2605 * image.c (Fimage_flush): Rename from image-refresh.
2606
98fe5161
CY
26072010-05-21 Chong Yidong <cyd@stupidchicken.com>
2608
2609 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2610 just one window.
2611
2612 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2613 (clear_image_cache): If the number of cached images is unusually
2614 large, decrease the cache eviction delay (Bug#6230).
2615
e8752c66
GM
26162010-05-21 Glenn Morris <rgm@gnu.org>
2617
66dbf213
GM
2618 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2619 Move these rules to ns.mk.
2620 * ns.mk: New file.
2621
04384b2d
GM
2622 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2623
e8752c66
GM
2624 * Makefile.in (CANNOT_DUMP): New, set by configure.
2625 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2626
2e2bbddb
JL
26272010-05-20 Juri Linkov <juri@jurta.org>
2628
2629 * fileio.c (Fdelete_file): Change interative spec to use
2630 `read-file-name' like in `find-file-read-args' where the default
2631 value is `default-directory' instead of `buffer-file-name'.
2632 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2633
31c4aaf6
KR
26342010-05-20 Kevin Ryde <user42@zip.com.au>
2635
2636 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2637 (Voverriding_terminal_local_map, Vsystem_key_alist)
2638 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2639
9d5cf9b6
GM
26402010-05-20 Glenn Morris <rgm@gnu.org>
2641
2642 * Makefile.in (DEPDIR): New constant.
2643 (DEPFLAGS): Set with configure, not cpp.
2644 (MKDEPDIR): New, set by configure.
2645 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2646 (clean): Use $DEPDIR.
2647 (deps_frag): Include from configure.
2648 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2649 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2650
ead6f8f5
EZ
2651 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2652 reallocation of the cache. (Bug#6210)
2653
7f34aec3
GM
26542010-05-19 Glenn Morris <rgm@gnu.org>
2655
d494e8f2
GM
2656 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2657
c1d0dcfd
GM
2658 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2659 (GNULIB_VAR): Remove.
2660 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2661
2662 * m/ibms390x.h (LINKER):
2663 * m/macppc.h (LINKER) [GNU_LINUX]:
2664 * s/aix4-2.h (ORDINARY_LINK):
2665 * s/cygwin.h (LINKER):
2666 * s/darwin.h (ORDINARY_LINK):
2667 * s/gnu.h (ORDINARY_LINK):
2668 * s/netbsd.h (LINKER):
2669 * s/usg5-4.h (ORDINARY_LINK):
2670 Move to configure.
2671
7f34aec3
GM
2672 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2673
754790b6
CY
26742010-05-18 Chong Yidong <cyd@stupidchicken.com>
2675
2676 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2677 prevent stack overflow if number of arguments is too large
2678 (Bug#6214).
2679
161e44d1
JB
26802010-05-18 Juanma Barranquero <lekktu@gmail.com>
2681
2682 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2683
be4ff9da
GM
26842010-05-18 Glenn Morris <rgm@gnu.org>
2685
9539dc5d
GM
2686 * s/gnu-linux.h: Combine two conditionals.
2687
2688 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2689 $(POST_ALLOC_OBJ).
2690
40dc6bf4
GM
2691 * Makefile.in (RALLOC_OBJ): New, set by configure.
2692 (rallocobj): Replace with the previous variable.
2693 (otherobj): Use $RALLOC_OBJ.
2694
2695 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2696 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2697
be4ff9da
GM
2698 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2699 (gmallocobj, vmlimitobj): Replace with previous two variables.
2700 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2701
16455a85
GM
27022010-05-17 Glenn Morris <rgm@gnu.org>
2703
2704 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2705 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2706
5fdb7468
GM
27072010-05-16 Glenn Morris <rgm@gnu.org>
2708
7ca1f3f9
GM
2709 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2710
7541dad5
GM
2711 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2712
da53fab9
GM
2713 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2714 trailing "/".
2715
b02a6645
GM
2716 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2717 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2718
8877ca0f
GM
2719 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2720 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2721 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2722 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2723 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2724
5fdb7468
GM
2725 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2726 Remove ${STARTFLAGS}, nothing ever sets it.
2727
95adb4b1
DN
27282010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2729
2730 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2731
676b6304
GM
27322010-05-16 Glenn Morris <rgm@gnu.org>
2733
9beab9ce
GM
2734 * Makefile.in (LIBX_BASE): Always define.
2735
8a95f0e7
GM
2736 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2737
676b6304
GM
2738 * Makefile.in (LIBXT): Always define.
2739
6e546d18
GM
27402010-05-15 Glenn Morris <rgm@gnu.org>
2741
4235ca47 2742 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2743
6e546d18
GM
2744 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2745 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2746
8c5ff6dd
KR
27472010-05-15 Ken Raeburn <raeburn@raeburn.org>
2748
560bb7ae 2749 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2750 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2751
8b4eb796
KR
2752 * emacs.c (main): Initialize initial-environment and
2753 process-environment before generating from env, not after.
2754
8c5ff6dd
KR
2755 Handle --version reasonably in CANNOT_DUMP configuration.
2756 * emacs.c (emacs_version, emacs_copyright): New string variables.
2757 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2758 (syms_of_emacs): Defvar them, and initialize them from the C
2759 string variables.
2760 (main): If initialization hasn't been done, print initial version
2761 info from the C strings, instead of starting an interactive session.
2762
dbd3f723
EZ
27632010-05-15 Eli Zaretskii <eliz@gnu.org>
2764
d20e1419
EZ
2765 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2766 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2767 (bidi_paragraph_init): Remove redundant assertion that we are at
2768 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2769
2770 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2771 (syms_of_xdisp): Defsubr it.
2772
d36fe237
EZ
2773 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2774
dbd3f723
EZ
2775 * Makefile.in: Fix MSDOS-related comments.
2776
02be533b
GM
27772010-05-15 Glenn Morris <rgm@gnu.org>
2778
1a82cca9
GM
2779 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2780 (really-lwlib, really-oldXMenu): Always define.
2781 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2782
3df7b338
GM
2783 * Makefile.in: Simplify cpp conditional.
2784
2b5f541b
GM
2785 * Makefile.in (${ns_appdir}): Simplify using umask.
2786
02be533b
GM
2787 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2788
4e2db1fe
SM
27892010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2790
2791 * eval.c (specbind): Remove left-over duplicate test.
2792 Disallow let-binding frame-local vars. Add comment.
2793
4b292a22
EZ
27942010-05-14 Eli Zaretskii <eliz@gnu.org>
2795
2fe72643 2796 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2797 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2798 (bidi_init_it): Call it.
2799 (bidi_cache_iterator_state): Enlarge the cache if needed.
2800
4e2db1fe 2801 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2802 bidi_get_next_char_visually. All callers changed.
2803
82ebc97b
KH
28042010-05-14 Kenichi Handa <handa@m17n.org>
2805
2806 * dispextern.h (struct composition_it): New member reversed_p.
2807
2808 * composite.c (composition_compute_stop_pos): Search backward if
2809 ENDPOS < CHARPOS.
2810 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2811 Set CMP_IT->reversed_p.
b4b6e17e 2812 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2813
4e2db1fe
SM
2814 * xdisp.c (set_iterator_to_next):
2815 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2816 scanning backward. Call composition_compute_stop_pos if scan
2817 direction is changed.
2818 (next_element_from_buffer): Call composition_compute_stop_pos with
2819 negative ENDPOS if we are scanning backward.
2820 (next_element_from_composition): Pay attention to
2821 IT->cmp_it.reversed_p.
2822
0e5d7800
KH
28232010-05-14 Kenichi Handa <handa@m17n.org>
2824
560bb7ae 2825 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2826
cb027b32
GM
28272010-05-14 Glenn Morris <rgm@gnu.org>
2828
177b0288
GM
2829 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2830
fbc00890
GM
2831 * Makefile.in (mktime, X11, register): Move undefs to configure.
2832
f14d1dfd
GM
2833 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2834 (MSDOS_X_OBJ): New variable.
2835 (MSDOS_SUPPORT_REAL): New constant.
2836 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2837 (obj): Use MSDOS_X_OBJ.
2838 (lisp): Use MSDOS_SUPPORT as a variable.
2839
11842bd8
GM
2840 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2841 (GPM_MOUSE_SUPPORT): Now it's a constant.
2842 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2843 not cpp.
2844
489d31a4 2845 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2846 (ns_appresdir): Remove, unused.
e20f1f07 2847
489d31a4
GM
2848 * Makefile.in (SHELL): Move outside cpp section.
2849
cb027b32
GM
2850 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2851
5a903aa9
GM
28522010-05-13 Glenn Morris <rgm@gnu.org>
2853
3369c79f
GM
2854 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2855 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2856
d5e982a6
GM
2857 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2858 HAVE_WINDOW_SYSTEM must be too.
2859
6192e163
GM
2860 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2861 (lisp): Remove WINNT_SUPPORT.
2862
472c5d6b
GM
2863 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2864 Let configure set these variables (to empty) in this case as well.
2865
0116466b
GM
2866 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2867 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2868
5a903aa9
GM
2869 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2870 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2871 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2872 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2873 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2874 the values output by configure.
5a903aa9
GM
2875 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2876
1a0d7c06
GM
28772010-05-12 Glenn Morris <rgm@gnu.org>
2878
b5457f14
GM
2879 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2880 (LINKER_WAS_SPECIFIED): Remove.
2881
1a0d7c06
GM
2882 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2883 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2884 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2885 * s/cygwin.h (LIB_GCC):
2886 * s/freebsd.h (LIB_GCC):
2887 * s/gnu-linux.h (LIB_GCC):
2888 * s/msdos.h (LIB_GCC):
2889 * s/netbsd.h (LIB_GCC):
2890 Move to configure.
2891
3ffd4615 28922010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2893
2894 * ftfont.c: Fix incorrect parentheses of #if condition for
2895 definining M17N_FLT_USE_NEW_FEATURE.
2896
acddf8ae
GM
28972010-05-11 Glenn Morris <rgm@gnu.org>
2898
2899 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2900 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2901
ae5e04fa
EZ
29022010-05-10 Eli Zaretskii <eliz@gnu.org>
2903
2904 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2905 unibyte buffers. See
2906 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2907
7490175b
GM
29082010-05-10 Glenn Morris <rgm@gnu.org>
2909
97efb629
GM
2910 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2911 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2912 (LIBES): Use LIBS_SYSTEM as a variable.
2913 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2914 * s/aix4-2.h (LIBS_SYSTEM):
2915 * s/freebsd.h (LIBS_SYSTEM):
2916 * s/hpux10-20.h (LIBS_SYSTEM):
2917 * s/sol2-6.h (LIBS_SYSTEM):
2918 * s/unixware.h (LIBS_SYSTEM):
2919 Move to configure.
2920
7490175b
GM
2921 * s/aix4-2.h (MAIL_USE_LOCKF):
2922 * s/bsd-common.h (MAIL_USE_FLOCK):
2923 * s/darwin.h (MAIL_USE_FLOCK):
2924 * s/gnu-linux.h (MAIL_USE_FLOCK):
2925 * s/irix6-5.h (MAIL_USE_FLOCK):
2926 * s/template.h (MAIL_USE_FLOCK):
2927 Move to configure.
2928
0235128c 29292010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2930
2931 * Version 23.2 released.
2932
0235128c 29332010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2934
2935 * composite.c (autocmp_chars): Save point as marker before calling
2936 auto-composition-function (Bug#5984).
2937
2938 * lisp.h (restore_point_unwind): Add prototype.
2939
2940 * fileio.c (restore_point_unwind): Remove static attribute.
2941
0235128c 29422010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2943
2944 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2945 new feature of libotf and m17n-flt.
0235128c
SM
2946 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2947 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2948 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2949 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2950 that OUT is NULL. Use OTF_drive_gsub_with_log and
2951 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2952 OTF_drive_gpos.
2953 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2954 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2955 Setup mflt_enable_new_feature and mflt_try_otf.
2956
4721152c
J
29572010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2958
2959 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2960
2961 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2962 box and toolbar (Bug #6139).
2963 (xg_create_tool_bar): Remove comment (Bug #6139).
2964 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2965 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2966
ee0a16cf
JB
29672010-05-08 Juanma Barranquero <lekktu@gmail.com>
2968
2969 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2970 Update dependencies.
2971
96d79611
EZ
29722010-05-08 Eli Zaretskii <eliz@gnu.org>
2973
2974 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2975 R2L lines.
2976
40c17879
GM
29772010-05-08 Glenn Morris <rgm@gnu.org>
2978
7b42b29f
GM
2979 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2980
40c17879
GM
2981 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2982 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2983 (termcapobj): Replace with TERMCAP_OBJ.
2984 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2985 (LIBES): Use LIBS_TERMCAP as a variable.
2986
2987 * s/freebsd.h (osreldate.h): No longer include, since this file
2988 does not use __FreeBSD_version any more.
2989
2990 * s/aix4-2.h (TERMINFO):
2991 * s/cygwin.h (TERMINFO):
2992 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2993 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2994 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2995 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2996 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2997 * s/irix6-5.h (TERMINFO):
2998 * s/netbsd.h (LIBS_TERMCAP):
2999 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3000 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3001 * s/usg5-4.h (TERMINFO):
3002 Move to configure.
3003
94b612ad
SM
30042010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3005
3006 * eval.c (unbind_to): Don't unbind a local binding into the global
3007 binding when the local binding disappeared. Inversely, don't unbind
3008 a global binding into a newly created local binding.
3009 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3010 can specify the frame to use, when applicable. Adjust callers.
3011
15e12598 30122010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3013 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3014
3015 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3016
f724825e
EZ
30172010-05-07 Eli Zaretskii <eliz@gnu.org>
3018
5cba3209
EZ
3019 * w32fns.c: Include w32.h.
3020 (Fw32_shell_execute): Decode the error message before passing it
3021 to `error'. (Bug#6126)
3022
d16bdfc3
EZ
3023 * msdos.c (dos_set_window_size):
3024 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3025 instead of `XSYMBOL (foo)->value'.
3026
59d93e87
EZ
30272010-05-07 Eli Zaretskii <eliz@gnu.org>
3028
9fdec8bc
EZ
3029 Fix the MS-DOS build, broken by autoconfiscation.
3030
3031 * Makefile.in: Don't use Make-style comments past the "start of
3032 cpp stuff" line.
3033 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3034
3035 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3036 edited directly by msdos/sed1v2.inp).
f724825e 3037
2f86b22b
GM
30382010-05-07 Glenn Morris <rgm@gnu.org>
3039
3040 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3041 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3042 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3043 move out of cpp section.
3044 * s/freebsd.h (LD_SWITCH_SYSTEM):
3045 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3046 * s/netbsd.h (LD_SWITCH_SYSTEM):
3047 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3048
49ebbd65
DN
30492010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3050
3051 Define LIB_STANDARD and START_FILES using autoconf.
3052 * s/usg5-4.h (LIB_STANDARD):
3053 * s/netbsd.h (START_FILES):
3054 * s/irix6-5.h (LIB_STANDARD):
3055 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3056 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3057 * s/freebsd.h (START_FILES):
3058 * s/darwin.h (START_FILES):
3059 * s/cygwin.h (START_FILES):
3060 * s/aix4-2.h (LIB_STANDARD):
3061 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3062 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3063 autoconf, not cpp.
3064
d43c06d6
DN
30652010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3066
28823648
DN
3067 Remove NEED_BSDTTY and NEED_UNISTD_H.
3068 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3069 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3070 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3071 <sys/ptyio.h> and <unistd.h>.
3072
aca00430
DN
3073 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3074
d43c06d6
DN
3075 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3076 * s/gnu.h (START_FILES): Remove empty definition.
3077
3e56b11d
JD
30782010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3079
3080 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3081
e3cf0cde
GM
30822010-05-06 Glenn Morris <rgm@gnu.org>
3083
3084 * Makefile.in (CPP, LN_S): Remove unused variables.
3085
774b9a60
SM
30862010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3087
3088 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3089
4ab92842
LM
30902010-05-05 Lawrence Mitchell <wence@gmx.li>
3091
3092 * m/sparc.h: Fix typo in earlier change.
3093
178f2507
SM
30942010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3095
3096 Misc tweaks.
3097 * eval.c (Fdefvaralias): Remove unintended nested if.
3098 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3099
80f00217 31002010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3101
3102 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3103
ef03a4e6
DN
31042010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3105
58eb6cf0
DN
3106 Remove BSD_PGRPS.
3107 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3108 * s/gnu-linux.h (BSD_PGRPS): Remove.
3109 * term.c (dissociate_if_controlling_tty):
3110 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3111 (init_sys_modes, reset_sys_modes):
3112 * emacs.c (main):
3113 * callproc.c (Fcall_process, child_setup): Remove code depending
3114 on BSD_PGRPS.
3115
ef03a4e6
DN
3116 Remove POSIX_SIGNALS.
3117 * s/usg5-4.h (POSIX_SIGNALS):
3118 * s/netbsd.h (POSIX_SIGNALS):
3119 * s/msdos.h (POSIX_SIGNALS):
3120 * s/ms-w32.h (POSIX_SIGNALS):
3121 * s/hpux11.h (POSIX_SIGNALS):
3122 * s/gnu.h (POSIX_SIGNALS):
3123 * s/gnu-linux.h (POSIX_SIGNALS):
3124 * s/freebsd.h (POSIX_SIGNALS):
3125 * s/darwin.h (POSIX_SIGNALS):
3126 * s/cygwin.h (POSIX_SIGNALS):
3127 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3128 * s/unixware.h:
3129 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3130 * process.c (create_process):
3131 * syssignal.h:
3132 * sysdep.c (wait_for_termination, init_signals):
3133 * process.c (create_process):
3134 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3135 remove all code that assumes the contrary.
3136
49628785
GM
31372010-05-04 Glenn Morris <rgm@gnu.org>
3138
27a2cdfc
GM
3139 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3140 variable.
3141 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3142 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3143 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3144 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3145 LD_SWITCH_SYSTEM_tmp.
3146 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3147 New variables, set by configure.
3148
eb21eab5
GM
3149 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3150 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3151 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3152 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3153 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3154
49628785
GM
3155 * s/aix4-2.h (C_SWITCH_SYSTEM):
3156 * m/alpha.h (C_SWITCH_MACHINE):
3157 Move to configure.in.
3158 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3159 New variables, set by configure.
3160 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3161 $c_switch_machine and $c_switch_system.
3162
7dff330b
DN
31632010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3164
3165 * s/hpux10-20.h (LIB_STANDARD): New definition.
3166 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3167 on it, not used anymore.
3168
53967e09
CY
31692010-05-03 Chong Yidong <cyd@stupidchicken.com>
3170
3171 * eval.c (internal_condition_case_n): Rename from
3172 internal_condition_case_2.
3173 (internal_condition_case_2): New function.
3174
3175 * xdisp.c (safe_call): Use internal_condition_case_n.
3176
3177 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3178 (internal_delete_file, Frename_file): Callers changed.
3179
3180 * buffer.c (Fkill_buffer):
3181 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3182
3183 * lisp.h: Update prototypes.
3184
3dee6fdb
GM
31852010-05-03 Glenn Morris <rgm@gnu.org>
3186
3187 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3188 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3189 (LIBXT): Set with configure, not cpp.
3190 (LIBX): Remove.
3191 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3192
a101e0fb
DN
31932010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3194
3195 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3196 The FreeBSD is not needed, the default works, Solaris version is
3197 not needed, and the remaining case is not supported by configure.
3198
f63d0028
JD
31992010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3200
3201 * xsmfns.c (CHDIR_OPT): New define.
3202 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
3203 restarting emacs.
3204
3205 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
3206 shut_down_emacs.
3207
3208 * emacs.c (USAGE1): Mention --chdir.
3209 (main): Handle --chdir.
3210 (standard_args): Add --chdir.
3211 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
3212 #5552).
3213
e4814a9f
DN
32142010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
3215
cd03c74a
DN
3216 Remove LD_SWITCH_MACHINE.
3217 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
3218 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
3219
c3a398a1
DN
3220 Clean up IRIX code.
3221 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
3222 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
3223
87e7285c
DN
3224 Clean up AIX code.
3225 * m/ibmrs6000.inp: Remove file, unused.
3226 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
3227 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
3228 definition ...
3229 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
3230
80f00217
JB
3231 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
3232 unused.
e4814a9f 3233
59ca28de
EZ
32342010-05-01 Eli Zaretskii <eliz@gnu.org>
3235
197daef4
EZ
3236 Emulate POSIX_SIGNALS on MS-Windows.
3237
3238 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
3239 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
3240
3241 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
3242 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
3243 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
3244
80f00217
JB
3245 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
3246 New stubs.
197daef4 3247
af7c7572
EZ
3248 Miscellaneous fixes of bidi display.
3249
59ca28de
EZ
3250 * xdisp.c (find_row_end): New function, refactored from display_line.
3251 (display_line): Use it.
017ea819
EZ
3252 (extend_face_to_end_of_line): In almost-filled rows, extend only
3253 if the row is R2L and not continued.
166e930d 3254 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 3255 Preserve overlay and string info in row->end.
166e930d
EZ
3256 (insert_left_trunc_glyphs): Support addition of left truncation
3257 glyphs to R2L rows.
b47e0dcf 3258 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
3259 glyph between adjacent windows. Fix a crash when a display string
3260 is continued to the next line. Don't return zero if cursor was
3261 found by `cursor' property of a display string.
b47e0dcf
EZ
3262 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
3263 test for that explicitly.
59ca28de 3264
7acac9f4
GM
32652010-05-01 Glenn Morris <rgm@gnu.org>
3266
3267 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
3268 for clarity.
3269 (OTHER_OBJ): Remove.
3270 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
3271 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
3272
45841e65
KK
32732010-05-01 Karel Klíč <kklic@redhat.com>
3274
3275 * fileio.c (Ffile_selinux_context): Context functions may return null.
3276
afc61943
DN
32772010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
3278
80f00217 3279 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 3280
5a1bb006
GM
32812010-04-30 Glenn Morris <rgm@gnu.org>
3282
3283 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
3284 (OTHER_OBJ): Define as a separate variable, for clarity.
3285
210af043
J
32862010-04-30 Jan Djärv <jan.h.d@swipnet.se>
3287
3288 * xsettings.c: include limits.h and update file comment.
3289
0a7df391
GM
32902010-04-30 Glenn Morris <rgm@gnu.org>
3291
d5096f16
GM
3292 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
3293 Set with configure, not cpp.
3294 (LIBW): Remove, replace with $TOOLKIT_LIBW.
3295
7eb1ac33
GM
3296 * Makefile.in (mallocobj): Remove.
3297 (otherobj): Simplify using @OTHER_OBJ@.
3298
517d086b
GM
3299 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
3300 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
3301 Don't bother making nsgui.h dependency platform-specific.
3302
0a7df391
GM
3303 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
3304
d6d23852
SM
33052010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
3306
d2630aef
SM
3307 * process.c (read_process_output, exec_sentinel): Don't burp if the
3308 sentinel/filter kills the current buffer (bug#6060).
3309
f9dddf52 3310 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
3311 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
3312 Remove unused var `args'.
3313 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
3314 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
3315 * doc.c (store_function_docstring): Use XSETCAR.
3316
f1e3642a
GM
33172010-04-28 Glenn Morris <rgm@gnu.org>
3318
faf535f8
GM
3319 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
3320 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
3321
c40f9449
GM
3322 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
3323
658f86ca
GM
3324 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
3325 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
3326
bc0b5f61
GM
3327 * Makefile.in (FONT_OBJ): New, set by configure.
3328 (FONT_DRIVERS): Use $FONT_OBJ.
3329
294c50a0
GM
3330 * Makefile.in (LIBXMU): Set with configure, not cpp.
3331 * s/aix4-2.h (LIBXMU):
3332 * s/hpux10-20.h (LIBXMU):
3333 Remove definition, now set in configure.
3334
e6ec4e99
GM
3335 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
3336
f1e3642a
GM
3337 * m/amdx86-64.h [i386]: Move this test to configure.in.
3338
c6ea2936
GM
33392010-04-27 Glenn Morris <rgm@gnu.org>
3340
8fdac2c3
GM
3341 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3342 * s/unixware.h (NEED_LIBW): Remove definition.
3343
986fb647
GM
3344 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3345 (TOOLKIT_LIBW): New, set by configure.
3346 (@X_TOOLKIT_TYPE@): No longer define it.
3347
c6ea2936
GM
3348 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3349 (MOTIF_LIBW): Set with configure, not cpp.
3350 * s/aix4-2.h (LIB_MOTIF):
3351 * s/gnu-linux.h (LIB_MOTIF):
3352 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3353
aaa36002
DN
33542010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3355
3356 Reduce CPP usage.
3357 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3358 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3359 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3360 definitions and undefs. Inline definitions in the only user.
3361 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3362
b678dd8b
GM
33632010-04-27 Glenn Morris <rgm@gnu.org>
3364
76cda504
GM
3365 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3366 since the defaults (set by the system file) are fine in most cases.
3367 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3368 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3369 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3370 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3371 Remove definitions, since they are set correctly in s/gnu-linux.h.
3372 * s/freebsd.h (START_FILES, LIB_STANDARD):
3373 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3374 * s/hpux10-20.h (START_FILES):
3375 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3376 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3377
b678dd8b
GM
3378 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3379 (MOTIF_LIBW): Use $LIBXP.
3380 (otherobj): Use $WIDGET_OBJ.
3381
9452ded1
DN
33822010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3383
7e10844c
DN
3384 * Makefile.in (LIBS_MACHINE): Remove, unused.
3385
9452ded1
DN
3386 Use autoconf instead of cpp for LIB_MATH.
3387 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3388 * s/cygwin.h (LIB_MATH): Likewise.
3389 * Makefile.in (LIB_MATH): Do not define with cpp.
3390 (LIBES): Use autoconf for LIB_MATH.
3391
fcebfc6a
KH
33922010-04-26 Kenichi Handa <handa@m17n.org>
3393
3394 * composite.c (Ffind_composition_internal): Fix the return value
3395 for an automatic composition.
3396
39e2ad1b
DN
33972010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3398
3399 Remove all NO_ARG_ARRAY uses.
3400 * fns.c (concat2, concat3, nconc2):
3401 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3402 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3403 * m/xtensa.h (NO_ARG_ARRAY):
3404 * m/template.h (NO_ARG_ARRAY):
3405 * m/sparc.h (NO_ARG_ARRAY):
3406 * m/sh3.h (NO_ARG_ARRAY):
3407 * m/mips.h (NO_ARG_ARRAY):
3408 * m/macppc.h (NO_ARG_ARRAY):
3409 * m/iris4d.h (NO_ARG_ARRAY):
3410 * m/intel386.h (NO_ARG_ARRAY):
3411 * m/ibms390x.h (NO_ARG_ARRAY):
3412 * m/ibms390.h (NO_ARG_ARRAY):
3413 * m/ibmrs6000.h (NO_ARG_ARRAY):
3414 * m/ia64.h (NO_ARG_ARRAY):
3415 * m/hp800.h (NO_ARG_ARRAY):
3416 * m/arm.h (NO_ARG_ARRAY):
3417 * m/amdx86-64.h (NO_ARG_ARRAY):
3418 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3419
adf4f59c
EZ
34202010-04-25 Eli Zaretskii <eliz@gnu.org>
3421
6bdf5d65
EZ
3422 * xdisp.c (display_line): Don't assume 2nd call to
3423 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3424 (iterate_out_of_display_property): New function, body from pop_it.
3425 (pop_it): Use it.
adf4f59c 3426
dfbbda83
GM
34272010-04-24 Glenn Morris <rgm@gnu.org>
3428
3429 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3430 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3431 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3432 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3433
2d4018aa
EZ
34342010-04-24 Eli Zaretskii <eliz@gnu.org>
3435
a49884a6
EZ
3436 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3437 use `get_next_display_element' and `set_iterator_to_next' to
3438 advance to the next character, when looking for the character that
3439 begins the next row.
3440
76db6fcc 3441 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3442 definition of "struct Lisp_Symbol".
3443
70eab5c1
GM
34442010-04-24 Glenn Morris <rgm@gnu.org>
3445
3446 * Makefile.in (CRT_DIR): New variable, set by configure.
3447 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3448 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3449
1ad4cc3d
DN
34502010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3451
e769f484
DN
3452 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3453
4196ff33
DN
3454 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3455
879b0ee4
DN
3456 Remove redundant flags.
3457 * s/freebsd.h (C_SWITCH_SYSTEM):
3458 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3459 * s/netbsd.h (C_SWITCH_SYSTEM):
3460 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3461 of these.
3462
03cbbcb8
DN
3463 Simplify m/intel386.h.
3464 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3465 user: ecrt0.c.
3466 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3467 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3468 the only user: s/unixware.h.
3469 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3470 from m/intel386.h.
3471 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3472 moved here from m/intel386.h.
3473
1ad4cc3d
DN
3474 * m/mips.h: Remove #if 0 code.
3475
8785b888
EZ
34762010-04-23 Eli Zaretskii <eliz@gnu.org>
3477
728588cc
EZ
3478 Fix display of composed characters from L2R scripts in bidi buffers.
3479 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3480 After advancing IT past the composition, resync the bidi iterator
3481 with IT's position. (Bug#5977)
3482
a63f80b4
DN
34832010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3484
3485 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3486 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3487
ff5dec5c
SM
34882010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3489
3490 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3491
8785b888
EZ
34922010-04-23 Eli Zaretskii <eliz@gnu.org>
3493
58ccf243 3494 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3495 * xdisp.c (pop_it): When the stack is popped after displaying
3496 from a string, bidi-iterate to exit from the text portion covered
3497 by the `display' property or overlay. (Bug#5988, bug#5920)
3498
feeb1604
DN
34992010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3500
8e324eb6
DN
3501 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3502 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3503
809fcaba
DN
3504 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3505 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3506
ed710380
DN
3507 Simplify STARTFILES definition.
3508 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3509 relying on Makefile.in to define it.
3510 * s/cygwin.h (START_FILES): Likewise.
3511 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3512
feeb1604
DN
3513 Clean up Solaris code.
3514 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3515 (LIB_MOTIF): Remove, configure takes care of this.
3516 (NOT_USING_MOTIF): Remove, unused.
3517 * xrdb.c: Remove #if 0-ed #include.
3518 (SYSV): Remove conditional for old SysV.
3519 * sysdep.c (closedir): Remove conditional code for Solaris,
3520 Solaris has closedir.
3521
a0d0b563
JD
35222010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3523
3524 * xsettings.c (read_and_apply_settings): Check if current_font is
3525 NULL before strcmp (Bug#6001).
3526
56bae7c7
DN
35272010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3528
3529 Clean up HP-UX files.
3530 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3531 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3532 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3533 * s/hpux10-20.h: ... to the only user, here.
3534
372b7a95
EZ
35352010-04-21 Eli Zaretskii <eliz@gnu.org>
3536
3537 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3538 use buffer-local values of paragraph-start and paragraph-separate.
3539 <paragraph_start_re, paragraph_separate_re>: Rename from
3540 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3541 (Bug#5992)
3542
f904c0f9
JD
35432010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3544
3545 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3546 current_tool_bar_style are new.
3547 (store_config_changed_event): Rename from store_font_changed_event.
3548 (XSETTINGS_TOOL_BAR_STYLE): New define.
3549 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3550 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3551 HAVE_XFT.
3552 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3553 store_config_changed_event.
f904c0f9
JD
3554 (parse_settings): Rename from parse_xft_settings. Read
3555 non-xft xsettings outside #ifdef HAVE_XFT.
3556 (read_settings): Renamed from read_xft_settings.
3557 (apply_xft_settings): Take current settings as parameter. Do not
3558 call read_(xft)_settings.
3559 (read_and_apply_settings): New function.
3560 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3561 read_and_apply_settings if there are settings to be read.
3562 (init_xsettings): Renamed from init_xfd_settings.
3563 Call read_and_apply_settings unconditionally.
3564 (xsettings_initialize): Call init_xsettings.
3565 (Ftool_bar_get_system_style): New function.
3566 (syms_of_xsettings): Define Qmonospace_font_name and
3567 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3568 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3569 dynamic-setting.
31a01b90 3570 Move misplaced HAVE_GCONF
f904c0f9
JD
3571
3572 * xsettings.h (Ftool_bar_get_system_style): Declare.
3573
3574 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3575 Qtext, Qboth, Qboth_horiz are new.
3576 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3577 Vtool_bar_style, tool_bar_max_label_size.
3578
3579 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3580
3581 * keyboard.c: QClabel is new.
3582 (parse_tool_bar_item): Take out QClabel from tool bar items.
3583 Try to construct a label if ther is no QClabel.
3584 (syms_of_keyboard): Intern :label as QClabel.
3585
3586 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3587 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3588 New.
3589
3590 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3591 dynamic-setting.el.
3592
3593 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3594 (xg_make_tool_item, xg_show_toolbar_item): New function.
3595 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3596 Call xg_make_tool_item to make a tool bar item.
3597 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3598
3599 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3600 into account for toolbars.
3601
c632dfda
JD
36022010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3603
3604 * data.c (make_blv): Declarations before code (Bug#5993).
3605
10efe302
GM
36062010-04-21 Glenn Morris <rgm@gnu.org>
3607
3608 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3609 Define using autoconf, not cpp.
3610 (LIBXSM): New variable, set by autoconf.
3611 (LIBXT): Use $LIBXSM.
3612
4285ac5a
DN
36132010-04-21 Dan Nicolaescu <local_user@dannlt>
3614
3ec759e7
DN
3615 Remove NOMULTIPLEJOBS, unused.
3616 * s/template.h (NOMULTIPLEJOBS):
3617 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3618
4285ac5a
DN
3619 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3620 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3621 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3622 detects -znocombreloc and passes it to the linker
3623 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3624
2807228d
GM
36252010-04-21 Glenn Morris <rgm@gnu.org>
3626
3627 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3628
574c05e2
KK
36292010-04-21 Karel Klíč <kklic@redhat.com>
3630
3631 * Makefile.in (LIBSELINUX_LIBS): New.
3632 (LIBES): Add $LIBSELINUX_LIBS.
3633 * eval.c, lisp.h (call7): New function.
3634 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3635 (Ffile_selinux_context, Fset_file_selinux_context):
3636 New functions.
3637 (Fcopy_file): New parameter preserve-selinux-context.
3638 (Frename_file): Preserve selinux context when renaming by copy-file.
3639
91eac4bb 36402010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3641 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3642
50426a04
JB
3643 Don't depend on cm.c or termcap.c on Windows, use stubs.
3644 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3645 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3646 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3647 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3648 (sys_tputs, sys_tgetstr): New stubs.
3649 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3650 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3651
938efb77
JB
36522010-04-20 Juanma Barranquero <lekktu@gmail.com>
3653
3654 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3655
b4bf28b7
SM
36562010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3657
8b1e1112
SM
3658 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3659 Just signal a warning rather than an error when inside a let.
3660 (Fmake_variable_frame_local): Add the same test.
3661
933ac235
SM
3662 * font.c (syms_of_font): Make the style table vars read-only.
3663
b4bf28b7
SM
3664 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3665 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3666
3667 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3668
93d68d0c
EZ
36692010-04-20 Eli Zaretskii <eliz@gnu.org>
3670
3671 Fix R2L paragraph display on TTY.
3672
3673 * xdisp.c (unproduce_glyphs): New function.
3674 (display_line): Use it when produced glyphs are discarded from R2L
3675 glyph rows.
3676 (append_composite_glyph): In R2L rows, prepend the glyph rather
3677 than appending it.
3678
3679 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3680 rather than append it. Set up the resolved_level and bidi_type
3681 attributes of the appended glyph.
283ccc18
EZ
3682 (produce_special_glyphs): Mirror the backslash continuation
3683 character in R2L lines.
93d68d0c 3684
283ccc18 3685 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3686
283ccc18
EZ
3687 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3688 append_stretch_glyph.
3689 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3690 off-by-one error in computing x at end of text in the row.
3691 (append_stretch_glyph): In reversed row, prepend the glyph rather
3692 than append it. Set resolved_level and bidi_type of the glyph.
3693 (extend_face_to_end_of_line): If the row is reversed, prepend a
3694 stretch glyph whose width is such that the rightmost glyph will be
3695 drawn at the right margin of the window. Fix off-by-one error on
3696 TTY frames in testing whether a line needs face extension. Fix
3697 face extension at ZV. If this is the last glyph row, use
3698 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3699 region face.
3700 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3701 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3702 row->continuation_lines_width.
283ccc18
EZ
3703 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3704 are at ZV. Fixes a crash when reseated to ZV by
3705 try_window_reusing_current_matrix.
45903529
EZ
3706 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3707 which happens with R2L glyph rows. Fixes a crash when inserting a
3708 character at end of an R2L line.
283ccc18
EZ
3709 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3710 treat them as having zero-width characters. Improve comments.
3711 Don't reverse pos_before and pos_after for reversed glyph rows.
3712 Set cursor.x to negative value when the cursor might be on the
3713 left fringe.
3714 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3715 left fringe, not the right one.
f951a506
EZ
3716 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3717 (erase_phys_cursor): For reversed cursor_row, support cursor on
3718 the left fringe.
3719
283ccc18
EZ
3720 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3721 of continuation indicators on the fringes.
3722 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3723 left fringe.
3724
f951a506
EZ
3725 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3726 draw cursor on the left fringe.
3727
3728 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3729 cursor on the left fringe.
3730
f951a506
EZ
3731 * dispnew.c (update_text_area): Handle reversed desired rows when
3732 the cursor is on the left fringe.
3733 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3734 below, not by 0, for when the cursor is on the left fringe.
3735
3bb49aaf
JD
37362010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3737
3738 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3739 widget is a scrollbar.
3740
c0be27fd
KH
37412010-04-20 Kenichi Handa <handa@m17n.org>
3742
3743 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3744 only when the arg CHARSET_LIST is nil.
3745
ce5b453a
SM
37462010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3747
3748 Make variable forwarding explicit rather the using special values.
3749 Basically, this makes the structure of buffer-local values and object
3750 forwarding explicit in the type of Lisp_Symbols rather than use
3751 special Lisp_Objects for that. This tends to lead to slightly more
3752 verbose code, but is more C-like, simpler, and makes it easier to make
3753 sure we handled all cases, among other things by letting the compiler
3754 help us check it.
3755 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3756 Removing forwarding objects.
3757 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3758 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3759 explicit rather than hiding them inside Lisp_Object "values".
3760 (XFWDTYPE): New macro.
3761 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3762 (XBUFFER_LOCAL_VALUE): Remove.
3763 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3764 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3765 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3766 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3767 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3768 Remove the Lisp_Misc_* header.
3769 (struct Lisp_Buffer_Local_Value): Redefine.
3770 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3771 (struct Lisp_Misc_Any): Add filler to get the right size.
3772 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3773 Lisp_Intfwd.
3774 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3775 (DEFVAR_KBOARD): Allocate a forwarding object.
3776 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3777 (let_shadows_global_binding_p): New function.
3778 (union Lisp_Val_Fwd): New type.
3779 (make_blv): New function.
3780 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3781 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3782 (swap_in_symval_forwarding, find_symbol_value, Fset)
3783 (let_shadows_buffer_binding_p, set_internal, default_value)
3784 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3785 (Fkill_local_variable, Fmake_variable_frame_local)
3786 (Flocal_variable_p, Flocal_variable_if_set_p)
3787 (Fvariable_binding_locus):
3788 * xdisp.c (select_frame_for_redisplay):
3789 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3790 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3791 * frame.c (store_frame_param):
3792 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3793 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3794 value structure.
3795 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3796 (clone_per_buffer_values): Only adjust markers into the current buffer.
3797 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3798 (Fbuffer_local_value, set_buffer_internal_1)
3799 (swap_out_buffer_local_variables):
3800 Adapt to the new symbol value structure.
3801 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3802 (defvar_per_buffer): Take a new arg for the fwd object.
3803 (buffer_lisp_local_variables): Return a proper alist (different fix
3804 for bug#4138).
3805 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3806 (Fgarbage_collect): Don't handle buffer_defaults specially.
3807 (mark_object): Handle new symbol value structure rather than the old
3808 special Lisp_Misc_* objects.
3809 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3810 * term.c (set_tty_color_mode):
3811 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3812 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3813 a buffer_local_flags.
3814 * print.c (print_object): Get rid of impossible forwarding objects.
3815
fd3998ff
EZ
38162010-04-19 Eli Zaretskii <eliz@gnu.org>
3817
3818 * bidi.c (bidi_get_type, bidi_get_category)
3819 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3820 (bidi_type_of_next_char, bidi_level_of_next_char):
3821 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3822
e42cd1a7
JB
38232010-04-19 Juanma Barranquero <lekktu@gmail.com>
3824
3825 * dired.c (Ffile_attributes): Fix typo in docstring.
3826
6e104790 38272010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3828
3829 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3830 NSInteger (Bug#5811).
3831
6e104790 38322010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3833
3834 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3835 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3836
6e104790 38372010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3838
3839 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3840
6e104790
SM
38412010-04-19 Chong Yidong <cyd@stupidchicken.com>
3842
3843 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3844 terminal frames (Bug#5837).
3845
37dcfea0
EZ
38462010-04-19 Eli Zaretskii <eliz@gnu.org>
3847
d1da276f
EZ
3848 * .gdbinit (xsubchartable): New command.
3849
37dcfea0
EZ
38502010-04-19 Eli Zaretskii <eliz@gnu.org>
3851
3852 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3853 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3854 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3855 and
3856 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3857
e9515805
SM
38582010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3859
3860 * alloc.c (Fpurecopy): Hash-cons if requested.
3861 (syms_of_alloc): Update purify-flag docstring.
3862
22aa44a8
JD
38632010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3864
3865 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3866 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3867
ebb5722e
EZ
38682010-04-17 Eli Zaretskii <eliz@gnu.org>
3869
3870 Fix a crash when an NSM character is inserted at BEGV.
3871
3872 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3873 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3874 NEUTRAL_B or UNKNOWN_BT.
3875
0f4442ef
EZ
38762010-04-16 Eli Zaretskii <eliz@gnu.org>
3877
3878 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3879 other rows with cursor unless they are different from this row and
3880 this row is part of a continued line. (Bug#5943)
3881
7d4e45f8
DN
38822010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3883
3884 * s/freebsd.h: Restore osreldate.h include.
3885 Suggested by Naohiro Aota.
3886
5ba5ec85
J
38872010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3888
3889 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3890
20af301d
CY
38912010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3892
3893 * s/cygwin.h: Avoid linking against static libgcc.
3894
a4b000fb
JL
38952010-04-15 Juri Linkov <juri@jurta.org>
3896
3897 * window.c: Add Qscroll_command.
3898 Remove Vscroll_preserve_screen_position_commands.
3899 (window_scroll_pixel_based, window_scroll_line_based): Check the
3900 `scroll-command' property on the last command instead of searching
3901 the last command in Vscroll_preserve_screen_position_commands.
3902 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3903 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3904 (scroll-preserve-screen-position): Doc fix.
3905 (Vscroll_preserve_screen_position_commands): Remove variable.
3906
bc319ba4
DN
39072010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3908
6bb24457
DN
3909 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3910
19d4c244
DN
39112010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3912
3913 Reduce cpp use in Makefile.in.
3914 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3915 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3916 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3917 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3918 (CRT0_COMPILE): Remove, inline it in the only user.
3919
32129746
JL
39202010-04-14 Juri Linkov <juri@jurta.org>
3921
3922 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3923 `scroll-up-command' and `M-v' from `scroll-down' to
3924 `scroll-down-command'.
3925
9013a7f8
JL
39262010-04-14 Juri Linkov <juri@jurta.org>
3927
3928 * window.c (Vscroll_preserve_screen_position_commands): New variable
3929 with the default value as the list of Qscroll_down and Qscroll_up.
3930 (window_scroll_pixel_based, window_scroll_line_based): Search the
3931 last command in the list Vscroll_preserve_screen_position_commands
3932 instead of comparing with Qscroll_up and Qscroll_down.
3933
4bef8d26
JD
39342010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3935
92848133
JD
3936 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3937 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3938 does that.
3939
4bef8d26
JD
3940 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3941 to zero.
3942
58b963f7
SM
39432010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3944
84164a0d
SM
3945 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3946
2b0a91e7
SM
3947 Try to solve the problem of spurious EOF chars in long lines of text
3948 sent to interactive subprocesses.
3949 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3950 (system_process_attributes): Remove unused var `ttotal'.
3951 * process.c (send_process): Don't bother breaking long line with EOF
3952 chars when talking to ttys any more.
3953 (wait_reading_process_output): Output a warning when called in such
3954 a way that it could block without being interruptible.
3955
58b963f7
SM
3956 Try to detect file modification within the same second.
3957 * buffer.h (struct buffer): New field modtime_size.
3958 * buffer.c (reset_buffer): Initialize it.
3959 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3960 (Fverify_visited_file_modtime): Check it.
3961 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3962 (Fset_visited_file_modtime): Set (or clear) it.
3963
01f5787b
SM
39642010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3965
3966 * process.c (status_notify): Remove unused var `ro'.
3967
83725342
JD
39682010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3969
3970 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3971 more than one visual (Bug#5938).
3972
b9465836
DN
39732010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3974
50426a04
JB
3975 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3976 Undefine.
b9465836 3977
8d9c8ece
DN
39782010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3979
b1f52161
DN
3980 Remove C_SWITCH_SYSTEM_TEMACS.
3981 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3982 (malloc, realloc, free): Use emacs, not temacs for conditional
3983 definition.
3984
3985 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3986 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3987
8d9c8ece
DN
3988 Use autoconf, not cpp for some variables.
3989 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3990 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3991 (ALL_CFLAGS): Use them as make variables.
3992 (really-lwlib, really-oldXMenu): Do not pass them.
3993
1ecb2d3f
JD
39942010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3995
3996 * xmenu.c (apply_systemfont_to_dialog): New.
3997 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3998
3a4fa2f2
SM
39992010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4000
97e53006
SM
4001 * process.c (exec_sentinel): Preserve current-buffer.
4002
3a4fa2f2
SM
4003 * process.c (read_process_output): Move the save-current-buffer to
4004 apply to both the filter and the non-filter branches.
4005
88df7221
DN
40062010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4007
4008 * s/msdos.h (UNEXEC): New definition.
4009
5634ff85
YM
40102010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4011
6eff5c3d
YM
4012 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4013 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4014
4015 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4016 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4017 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4018 TRY_WINDOW_CHECK_MARGINS.
4019
4020 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4021 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4022 width only when it is for padding.
5634ff85 4023
b13aef54
J
40242010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4025
4026 * xfns.c (Fx_show_tip): Call try_window in a loop until
4027 fonts_changed_p is zero (Bug#2423).
4028
21d28484
EZ
40292010-04-08 Eli Zaretskii <eliz@gnu.org>
4030
4031 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4032 the end of TEXT_AREA. (Bug#5856)
4033
0269ef77
JD
40342010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4035
4036 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4037 HAVE_GCONF.
4038
5930fe97
EZ
40392010-04-08 Eli Zaretskii <eliz@gnu.org>
4040
4041 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4042 prev.orig_type, for resolving type of NSM. (Bug#5858)
4043
99852628
JD
40442010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4045
4046 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4047 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4048 in current_font.
4049 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4050 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4051 New functions.
4052 (syms_of_xsettings): Initialize current_font.
4053 defsubr Sfont_get_system_normal_font.
99852628 4054
686b968e
JB
4055 * xsettings.h (Ffont_get_system_normal_font)
4056 (xsettings_get_system_normal_font): Declare.
99852628
JD
4057
4058 * xfns.c (extern xlwmenu_default_font): Remove.
4059 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4060 to xlwmenu.c.
4061
4062 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4063 menu items in UTF-8.
4064
4065 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4066 (apply_systemfont_to_menu): New function.
4067 (set_frame_menubar, create_and_show_popup_menu): Call
4068 apply_systemfont_to_menu.
4069
7fc874c4
J
40702010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4071
4072 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4073 FRAME_LINE_TO_PIXEL_Y.
4074
4075 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4076 pixelwidth/height.
4077
863bf481
DN
40782010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4079
5e5a3b92
DN
4080 Simplify code for HP machines.
4081 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4082 for GNU_LINUX, not needed.
4083 (UNEXEC, NEED_BSDTTY): Move definitions...
4084 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4085
863bf481
DN
4086 * m/iris4d.h (UNEXEC): Move definition ...
4087 * s/irix6-5.h (UNEXEC): ... here.
4088
3e6bec3b
JD
40892010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4090
4091 * xfns.c (set_machine_and_pid_properties): New function.
4092 (Fx_create_frame): Call set_machine_and_pid_properties.
4093
2912322b
SM
40942010-04-03 Eli Zaretskii <eliz@gnu.org>
4095
1502b819
EZ
4096 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4097 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4098 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4099
2912322b
SM
4100 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4101 in this function. (Bug#5703)
4102
41032010-04-03 Chong Yidong <cyd@stupidchicken.com>
4104
4105 * nsterm.h: Fix last change.
4106
c435b432
DN
41072010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4108
a568f507
DN
4109 * m/intel386.h (NO_REMAP): Move definition ...
4110 * s/msdos.h (NO_REMAP): ... here.
4111
4cd9f6c2
DN
4112 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4113
c435b432
DN
4114 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4115 used on those platforms.
4116
42a2c622
DN
41172010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4118
4119 Remove extern errno declarations.
4120 * xterm.c:
4121 * xrdb.c:
4122 * w32term.c:
4123 * unexec.c:
4124 * unexaix.c:
4125 * sysdep.c:
4126 * process.c:
4127 * lread.c:
4128 * keyboard.c:
4129 * floatfns.c:
4130 * filelock.c:
4131 * fileio.c:
4132 * emacs.c (main):
4133 * ecrt0.c:
4134 * dispnew.c:
4135 * callproc.c:
4136 * buffer.c: Remove errno extern declarations.
4137 * s/netbsd.h (NEED_ERRNO): Remove.
4138
8224f93d
DN
41392010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4140
4141 Remove all uses of LIBX11_SYSTEM.
4142 * Makefile.in (LIBX11_SYSTEM): Remove.
4143 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4144 instead.
4145
814062c7
EZ
41462010-04-01 Eli Zaretskii <eliz@gnu.org>
4147
ed68db4d
EZ
4148 Remove support for DJGPP v1.x (bug#5813).
4149
4150 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4151 * s/msdos.h:
4152 * unexec.c (make_hdr, copy_text_and_data):
4153 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4154 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4155 (IT_set_terminal_modes, __write, _rename, gethostname)
4156 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4157 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4158 the value of __DJGPP__.
ed68db4d
EZ
4159 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4160 compatibility code.
8224f93d
DN
4161 * lread.c:
4162 * gmalloc.c (memalign):
4163 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4164 * emacs.c (main):
4165 * dosfns.c (init_dosfns):
ed68db4d
EZ
4166 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4167
52f4d8d5
EZ
41682010-04-01 Eli Zaretskii <eliz@gnu.org>
4169
814062c7
EZ
4170 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4171 string with `cursor' property comes from an `after-string'
4172 overlay. (Bug#5816)
4173
0dc2e11d
GM
41742010-04-01 Glenn Morris <rgm@gnu.org>
4175
4176 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4177 Define as Makefile variables.
4178 (LIBX): Use above variables rather than directly using autoconf.
4179
1d29df59
DN
41802010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4181
4182 Clean up BSD_SYSTEM use.
4183 * xterm.c:
4184 * process.c:
4185 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4186 for including <sys/ioctl.h>.
4187 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4188 code is only used for MSDOS.
4189
1546c559
JL
41902010-03-31 Juri Linkov <juri@jurta.org>
4191
4192 * image.c: Add `Qextension_data'.
4193 (syms_of_image): Initialize and staticpro `Qextension_data'.
4194 (Fimage_metadata): Rename from `Fimage_extension_data'.
4195 (gif_load): Put GIF extension data to the property
4196 `Qextension_data'.
4197
6521c534
CY
41982010-03-31 Chong Yidong <cyd@stupidchicken.com>
4199
4200 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4201 * nsterm.h: Fix prototype.
4202
52c30783
EZ
42032010-03-31 Eli Zaretskii <eliz@gnu.org>
4204
4205 * xdisp.c (highlight_trailing_whitespace): Support highlight of
4206 trailing whitespace in right-to-left rows.
4207
855a0da7
SM
42082010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4209
4210 Get rid of the direct_output optimizations.
4211 * keyboard.c (nonundocount): Remove extern declaration.
4212 (command_loop_1): Remove brittle optimisation for cheap and
4213 common operations.
4214 * xdisp.c (redisplay_internal): Don't bother checking
4215 redisplay_performed_directly_p any more.
4216 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
4217 any more.
4218 * dispnew.c (redisplay_performed_directly_p)
4219 (direct_output_for_insert, direct_output_forward_char):
4220 * dispextern.h (redisplay_performed_directly_p)
4221 (direct_output_for_insert, direct_output_forward_char): Remove.
4222 * cmds.c (nonundocount): Make it static.
4223
85738751 42242010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
4225
4226 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
4227
85738751 42282010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
4229
4230 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
4231 invisible (Bug#5766).
4232
85738751 42332010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 4234
855a0da7
SM
4235 * xdisp.c (x_consider_frame_title, update_window_cursor):
4236 Remove HAVE_NS conditionals.
194d44e7 4237 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
4238
4239 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
4240 filename for the title.
4241 (ns_set_doc_edited): Do nothing if the selected window is a
4242 minibuffer window.
4243
4244 * nsterm.h: Add prototypes for ns_set_name_as_filename and
4245 ns_set_doc_edited.
4246
4247 * nsterm.m: Remove unneeded prototype.
4248
85738751 42492010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
4250
4251 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
4252 in the DOC file. (Bug#5336)
4253
85738751 42542010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
4255
4256 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
4257
75d1428c
SM
42582010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4259
4260 * window.c (keys_of_window): Remove redundant/overridden bindings.
4261
82043cfb
EZ
42622010-03-30 Eli Zaretskii <eliz@gnu.org>
4263
4264 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
4265 Restore original behavior when the iterator is not bidi_p.
4266
b5dd0ae7
DN
42672010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4268
4269 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
4270
bd924a5d
EZ
42712010-03-30 Eli Zaretskii <eliz@gnu.org>
4272
4273 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
4274 are outside the range of cached character positions.
4275
3580374b
JB
42762010-03-30 Juanma Barranquero <lekktu@gmail.com>
4277
4278 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
4279
a7b02820
EZ
42802010-03-30 Eli Zaretskii <eliz@gnu.org>
4281
4282 Initial support for bidirectional editing.
4283
4284 * Makefile.in (obj): Include bidi.o.
4285 (bidi.o): New target.
4286
4287 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
4288 ($(BLD)/bidi.$(O)): New target.
4289
4290 * bidi.c: New file.
4291
4292 * buffer.h (struct buffer): New members bidi_display_reordering
4293 and bidi_paragraph_direction.
4294
4295 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
4296 and bidi_paragraph_direction.
4297 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
4298 and bidi-paragraph-direction.
4299 (Fbuffer_swap_text): Swap the values of
4300 bidi_display_reordering and bidi_paragraph_direction.
4301
4302 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
4303 (bidi_type_t, bidi_dir_t): New types.
4304 (bidi_saved_info, bidi_stack, bidi_it): New structures.
4305 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
4306 prev_stop, base_level_stop, and eol_pos.
4307 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
4308 (IT_STACK_SIZE): Enlarge to 5.
4309 (struct glyph_row): New member reversed_p.
4310 <string_buffer_position>: Update prototype.
4311 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
4312 glyph_row if bidi_it.paragraph_dir == R2L.
4313 (struct glyph): New members resolved_level and bidi_type.
4314
4315 * dispnew.c (direct_output_forward_char): Give up if we need bidi
4316 processing or buffer's direction is right-to-left.
4317 (prepare_desired_row): Preserve the reversed_p flag.
4318 (row_equal_p): Compare the reversed_p attributes as well.
4319
4320 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
4321 bidi_init_it and set it->paragraph_embedding from the current
4322 buffer's value of bidi_paragraph_direction.
4323 (reseat_1): Initialize bidi_it.first_elt.
4324 (set_iterator_to_next, next_element_from_buffer): Use the value of
4325 paragraph_embedding to determine the paragraph direction.
4326 (set_iterator_to_next): Under bidi reordering, call
4327 bidi_get_next_char_visually. Call bidi_paragraph_init if the
4328 new_paragraph flag is set in the bidi iterator.
4329 (next_element_from_buffer): If bidi_it.first_elt is set,
4330 initialize paragraph direction and find the first character to
4331 display in the visual order. If reseated to a middle of a line,
4332 prime the bidi iterator starting at the line's beginning. Handle
4333 the situation where we overstepped stop_charpos due to
4334 non-linearity of the bidi iteration. Likewise for when we back up
4335 beyond the previous stop_charpos. When moving across stop_charpos,
4336 record it in prev_stop.
4337 (display_line): Set row->end and it->start for the next row to the
4338 next character in logical order. Always extend reversed_p rows to
4339 the end of line, even if they end at ZV. Copy the reversed_p flag
4340 to the next glyph row. Keep calling set_cursor_from_row for
4341 bidi-reordered rows even if we already have a possible candidate
4342 for cursor position. Set row_end after all the row's glyphs have
4343 been produced, by looping over the glyphs. Record the position
4344 after EOL in it->eol_pos, and use it to set end_pos of the last
4345 row produced for a continued line.
4346 <Qright_to_left, Qleft_to_right>: New variables.
4347 (syms_of_xdisp): Initialize and staticpro them.
4348 (string_buffer_position_lim): New function.
4349 (string_buffer_position): Most of code moved to
4350 string_buffer_position_lim. Last argument and return value are
4351 now EMACS_INT; all callers changed.
4352 (set_cursor_from_row): Rewritten to support bidirectional text and
4353 reversed glyph rows.
4354 (text_outside_line_unchanged_p, try_window_id): Disable
4355 optimizations if we are reordering bidirectional text and the
4356 paragraph direction can be affected by the change.
4357 (append_glyph, append_composite_glyph)
4358 (produce_image_glyph, append_stretch_glyph): Set the
4359 resolved_level and bidi_type members of each glyph.
4360 (append_glyph): If the glyph row is reversed, prepend the glyph
4361 rather than appending it.
4362 (handle_stop_backwards): New function.
4363 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4364 (reseat): call handle_stop_backwards to recompute prev_stop and
4365 base_level_stop for the new position.
4366 (handle_invisible_prop): Under bidi iteration, skip invisible text
4367 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4368 paragraph direction. Update IT->prev_stop after skipping
4369 invisible text.
4370 (move_it_in_display_line_to): New variables prev_method
4371 and prev_pos. Compare for strict equality in
4372 BUFFER_POS_REACHED_P.
4373 (try_cursor_movement): Examine all the candidate rows that occlude
4374 point, to return the best match. If rows are bidi-reordered
4375 and point moved backwards, back up to the row that is not a
4376 continuation line, and start looking for a suitable row from
4377 there.
4378
4379 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4380 rather than appending, if the glyph_row's reversed_p flag is set.
4381 Set the resolved_level and bidi_type members of each glyph.
4382
4383 * .gdbinit (pbiditype): New command.
4384 (pgx): Use it to display bidi level and type of the glyph.
4385 (pitx): Display some bidi information about the iterator.
4386 (prowlims, pmtxrows): New commands.
4387
32a8894e
DN
43882010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4389
4390 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4391 * s/usg5-4.h (LIBS_DEBUG):
4392 * s/irix6-5.h (C_DEBUG_SWITCH):
4393 * s/gnu-linux.h (LIBS_DEBUG):
4394 * s/darwin.h (LIBS_DEBUG):
4395 * s/bsd-common.h (LIBS_DEBUG):
4396 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4397 * m/iris4d.h (LIBS_DEBUG):
4398 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4399
4400 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4401 (LIBS_DEBUG): Remove definition.
4402
649dbf36
CY
44032010-03-27 Chong Yidong <cyd@stupidchicken.com>
4404
4405 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4406 Windows.
4407
cad4261f
YM
44082010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4409
4410 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4411 `connect' (Bug#5723).
4412
cd591dbc
HE
44132010-03-25 Helmut Eller <eller.helmut@gmail.com>
4414
4415 * process.c (Fmake_network_process): Call `select' for interrupted
4416 `connect' rather than creating new socket (Bug#5173).
4417
e867cb5d 44182010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4419
4420 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4421
4422 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4423
4424 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4425
e867cb5d 44262010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4427
4428 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4429 XLoadQueryFont.
4430
e867cb5d 44312010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4432
4433 * coding.c (decode_coding_ccl): Fix previous change for the
4434 multibyte case.
fb608df3
KH
4435 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4436 case that the output buffer is fullfilled.
4437 (encode_coding): Setup ccl program here.
fbdc1721 4438
5845f0ed
DN
44392010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4440
814fb708
DN
4441 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4442
5845f0ed
DN
4443 Simplify LIBS_MACHINE definitions.
4444 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4445 * m/iris4d.h (LIBS_MACHINE): Likewise.
4446 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4447 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4448 * s/netbsd.h: Remove commented out code.
5845f0ed 4449
b7064064
DN
44502010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4451
df7734b2
DN
4452 Remove dead code dealing with POSIX_SIGNALS.
4453 * atimer.c (set_alarm): Remove dead code, all USG systems define
4454 POSIX_SIGNALS.
4455 * data.c (arith_error): Likewise.
4456 * keyboard.c (input_available_signal, handle_user_signal)
4457 (interrupt_signal): Likewise.
4458 * process.c (sigchld_handler): Likewise.
4459 (create_process): Remove if 0 code. Remove HPUX conditional when
4460 !defined (POSIX_SIGNALS), it cannot be true.
4461 * syssignal.h: Remove USG5_4 and USG conditionals when
4462 !POSIX_SIGNALS, they cannot be true.
4463
b7064064
DN
4464 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4465 NO_SOCK_SIGIO, not used anymore.
4466
55da5ee3
DN
44672010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4468
0be96e3a
DN
4469 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4470 support vax on BSDs.
4471
55da5ee3
DN
4472 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4473 * s/aix4-2.h (ORDINARY_LINK): ... here.
4474
c0282183
AS
44752010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4476
82c3d67a
AS
4477 * Makefile.in (abs_builddir): Define.
4478 (bootstrap_exe): Use it.
4479 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4480
3613edce
SM
44812010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4482
4483 * Makefile.in (bootstrap_exe): Use an absolute name.
4484
7f110ddc
DN
44852010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4486
22e87574
DN
4487 Remove support for old GNU/Linux using libc version 5.
4488 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4489 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4490
05a670e6
DN
4491 Consolidate redundant definitions in s/bsd-common.h.
4492 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4493 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4494 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4495 doing it in all files that include this one.
4496 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4497 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4498 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4499 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4500 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4501 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4502 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4503 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4504 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4505
2968f561
DN
4506 Consolidate redundant definitions.
4507 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4508 it's undefined in all files that include this one.
4509 (POSIX_SIGNALS): Define here instead of doing it in all files that
4510 include this one.
4511 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4512 (POSIX_SIGNALS): Do not define.
4513 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4514 (POSIX_SIGNALS): Do not define.
4515 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4516 (POSIX_SIGNALS): Do not define.
4517
15d25dc0
DN
4518 Remove support for old UNIX System V systems.
4519 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4520 * s/usg-5-4-2.h: Remove.
4521
07e339e4
DN
4522 Remove support for Solaris on PPC and for old versions.
4523 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4524 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4525 that cancel each other.
4526 * s/sol2-3.h:
4527 * s/sol2-4.h:
4528 * s/sol2-5.h: Remove.
4529 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4530 (NO_REMAP): Remove, unused.
4531 (UNEXEC): Move definition ...
4532 * s/aix4-2.h (UNEXEC): ... here.
4533
7f110ddc
DN
4534 * s/openbsd.h: Remove support for non-ELF and for systems that do
4535 not support shared libraries.
4536 * s/netbsd.h:
4537 * s/freebsd.h: Likewise.
4538
605f35cd
DN
45392010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4540
4541 Remove non-working support for lynxos 3.0.
4542 * s/lynxos.h: Remove file.
4543
4544 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4545 COFF_BSD_SYMBOLS, nothing defines it anymore.
4546
aed71cf4
DN
45472010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4548
4549 Remove obsolete uses of HAVE_SHM.
4550 * emacs.c (standard_args):
4551 (Fdump_emacs):
4552 (syms_of_emacs): Remove code depending on HAVE_SHM.
4553
4554 * alloc.c: Remove HAVE_SHM dependent definition.
4555
4556 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4557
aded53ff
GM
45582010-03-18 Glenn Morris <rgm@gnu.org>
4559
17284745
GM
4560 * emacs.c (USAGE4): Hard-code bug address.
4561 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4562 (bug_reporting_address): Remove.
4563 (main): Don't call bug_reporting_address.
4564
aded53ff
GM
4565 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4566 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4567
303500aa
CY
45682010-03-15 Chong Yidong <cyd@stupidchicken.com>
4569
4570 * xfns.c (Fx_create_frame):
4571 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4572 on left.
4573
cef3058f
CY
45742010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4575
4576 * editfns.c (Fformat): Account for string precision when computing
4577 field width (Bug#5710).
4578
a647d59d
CY
45792010-03-12 Chong Yidong <cyd@stupidchicken.com>
4580
4fa42018
CY
4581 * xfns.c (Fx_create_frame): Set default to Qright.
4582
a647d59d
CY
4583 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4584 all window systems.
4585
6da23aaa
EZ
45862010-03-12 Eli Zaretskii <eliz@gnu.org>
4587
a96f6398 4588 These changes remove termcap.c from the build on Posix platforms.
83d02def 4589 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4590 (MSDOS_OBJ): ...to here.
4591 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4592 now identical to when LIBS_TERMCAP is defined.
4593
4594 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4595
4596 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4597
a96f6398 4598 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4599
288f9fc0
CY
46002010-03-10 Chong Yidong <cyd@stupidchicken.com>
4601
4602 * Branch for 23.2.
4603
d48cd3f4
SM
46042010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4605
4606 Cleanup setup of gl_state in various parts of the code.
4607 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4608 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4609 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4610 (skip_chars):
4611 * regex.c (regex_compile): Use it.
4612 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4613 it's now set in regex_compile when/if we need it.
4614
618db430
SM
46152010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4616
c0335e02
SM
4617 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4618 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4619 (QUIT): Use it to consolidate code and remove redundancy.
4620 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4621
254c06a8
SM
4622 * regex.c (regex_compile): Setup gl_state as well.
4623
618db430
SM
4624 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4625 (in_classes): Use CONSP before XCAR/XCDR.
4626
233f0c9f
CY
46272010-03-03 Chong Yidong <cyd@stupidchicken.com>
4628
4629 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4630 definitions, so that keyboard macros are correctly handled
4631 (Bug#5481).
4632
75f80e63
EZ
46332010-03-02 Eli Zaretskii <eliz@gnu.org>
4634
4635 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4636 text that could be relocated inside the call to emacs_mule_char.
4637 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4638 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4639
dcfb9bc4
KH
46402010-03-02 Kenichi Handa <handa@m17n.org>
4641
fc9a17bc
KH
4642 * character.c (parse_str_as_multibyte): Fix handling of the
4643 multibyte form of raw-bytes.
4644 (str_as_multibyte): Likewise.
4645
dcfb9bc4
KH
4646 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4647 form of raw-bytes.
4648
412c01b6
CY
46492010-02-28 Chong Yidong <cyd@stupidchicken.com>
4650
4651 * charset.c (load_charset_map_from_file)
4652 (load_charset_map_from_vector): Zero out allocated
4653 charset_map_entries before using them.
4654
df7e1ea0
AS
46552010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4656
4657 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4658
fe69a722
CY
46592010-02-27 Chong Yidong <cyd@stupidchicken.com>
4660
4ed28cf4
CY
4661 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4662 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4663
7379cfce
KH
46642010-02-26 Kenichi Handa <handa@m17n.org>
4665
f88cc4d6
KH
4666 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4667
7379cfce
KH
4668 * xdisp.c (reseat_to_string): Fix previous change.
4669
cf2fdcfb
CY
46702010-02-26 David Reitter <david.reitter@gmail.com>
4671
4672 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4673 Lisp_Object (Bug#4736).
4674
cc6c7c75
KH
46752010-02-25 Kenichi Handa <handa@m17n.org>
4676
4677 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4678
32e737d7
JD
46792010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4680
4681 * xterm.c (XTflash): Move declarations before statements.
4682
4683 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4684 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4685 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4686 (xg_create_tool_bar): Remove unused variables.
4687 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4688 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4689
676cae9f
CY
46902010-02-21 Chong Yidong <cyd@stupidchicken.com>
4691
4692 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4693
886cc2b8
SM
46942010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4695
4696 * term.c (fatal): Add a final \n if needed (bug#5596).
4697
ddb2d8e2
CY
46982010-02-18 Chong Yidong <cyd@stupidchicken.com>
4699
4700 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4701
2a4f8d3d
GM
47022010-02-18 Glenn Morris <rgm@gnu.org>
4703
4704 * callint.c (Finteractive): Doc fix.
4705
ebaf11b6
KH
47062010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4707
886cc2b8
SM
4708 * coding.c (record_conversion_result):
4709 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4710 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4711 memory allocation error.
4712
d0396581
KH
47132010-02-17 Kenichi Handa <handa@m17n.org>
4714
886cc2b8
SM
4715 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4716 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4717 (decode_coding): Setup ccl program here. Keep looping when the
4718 decoder stopped because the output buffer is
4719 fullfilled (bug#5534).
4720
4721 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4722
98599f74
JD
47232010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4724
471e4f04 4725 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4726 bug #5571.
886cc2b8 4727 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4728 overdrawn.
98599f74 4729
182659ae
JD
47302010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4731
4732 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4733 doing_interact here.
4734 (ice_connection_closed): New function.
4735 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4736 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4737 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4738 returns I/O error.
4739 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4740 bug #5512.
4741
9be32c4e 47422010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4743
4744 * nsfont.m (nsfont_open): The system's value for the font descent
4745 is negative, so round it down to avoid clipping.
4746
a2f3eb19
CY
47472010-02-06 Chong Yidong <cyd@stupidchicken.com>
4748
4749 * charset.c (load_charset_map_from_file)
4750 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4751 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4752
3088147c
CY
47532010-02-05 Chong Yidong <cyd@stupidchicken.com>
4754
4755 * charset.c (load_charset_map_from_file): Allocate large
4756 charset_map_entries structure on the heap rather than the stack.
4757 (Bug#5526).
4758
b57d9029
KH
47592010-01-31 Kenichi Handa <handa@m17n.org>
4760
4761 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4762 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4763
c67d885b
CY
47642010-01-31 Chong Yidong <cyd@stupidchicken.com>
4765
4766 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4767 <deactivated@gmail.com> (Bug#3605).
4768
8fab2362
CY
47692010-01-31 David De La Harpe Golden <david@harpegolden.net>
4770
4771 * fileio.c (Frename_file): Correctly rename symlinks to
4772 directories (Bug#5496).
4773
cb2a62f2
CY
47742010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4775
4776 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4777
944c7a26
AS
47782010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4779
4780 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4781
c024ac08
CY
47822010-01-29 Chong Yidong <cyd@stupidchicken.com>
4783
4784 * frame.c (DEFAULT_ROWS): Change default to 35.
4785
4786 * xfns.c (x_default_font_parameter): Change default XFT font to
4787 monospace-10 (Bug#3643).
4788
af93af83
EZ
47892010-01-29 Eli Zaretskii <eliz@gnu.org>
4790
4791 * w32inevt.c (key_event): Remove unnecessary comparison of
4792 event->uChar.AsciiChar with 128.
4793
ca0eb708
CY
47942010-01-28 Chong Yidong <cyd@stupidchicken.com>
4795
b242dbfc
CY
4796 * fileio.c (Frename_file): Fix last change (Bug#5487).
4797
ca0eb708
CY
4798 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4799
4800 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4801
45d45af5
JD
48022010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4803
4804 * xfns.c (Fx_create_frame): Remove window size matching code from
4805 2010-01-15.
a73f9c9d 4806 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4807
7e233730
JR
48082010-01-27 Jason Rumney <jasonr@gnu.org>
4809
4810 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4811 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4812
86e893e3
KH
48132010-01-27 Kenichi Handa <handa@m17n.org>
4814
4815 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4816 pattern string (Bug#4209).
86e893e3 4817
8719abec
CY
48182010-01-27 David De La Harpe Golden <david@harpegolden.net>
4819
4820 * fileio.c (Frename_file): Call copy-directory and
4821 delete-directory for directories, in order to handle cross-device
4822 renaming (Bug#3353).
4823
844794c8
JD
48242010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4825
aa3e13b5 4826 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4827 sizes 24 and 10. Bug #3643.
844794c8 4828
bd4b5750
SM
48292010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4830
8dc1adf6 4831 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4832 * keymap.c (shadow_lookup): Add `remap' arg.
4833 (describe_map, describe_vector): Update calls to shadow_lookup.
4834 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4835 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4836 perform remapping during shadow_lookup check of remapped_sequences.
4837
285d07e2
CY
48382010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4839
4840 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4841 png_check_sig, which has been removed in libpng 1.4.
4842
c6d09b8d
CY
48432010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4844
4845 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4846 lacks this header file).
4847
3d782998
YM
48482010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4849
4850 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4851 as in Emacs 22.
4852
2aff7c53
YM
48532010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4854
4855 * lisp.h (make_pure_string): String pointer arg now points to const.
4856
4857 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4858 args now point to const.
4859
74327f7a
EZ
48602010-01-22 Eli Zaretskii <eliz@gnu.org>
4861
4862 * lread.c (Fload): Don't treat files without .elc extension as
4863 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4864 them. (bug#5303)
4865
4d1e6632
KH
48662010-01-20 Kenichi Handa <handa@m17n.org>
4867
4868 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4869 treat the source as actual byte sequence.
4870
1fdede8f
AM
48712010-01-19 Alan Mackenzie <acm@muc.de>
4872
4873 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4874 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4875 `signal_after_change_p' to `coherent_change_p', and make the
4876 invocation of `modify_region' conditional on it.
4877
67477f30
JD
48782010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4879
4880 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4881 for debug purpose.
4882 (syms_of_xsettings): Declare xft-settings.
4883
244b023e
CY
48842010-01-18 Chong Yidong <cyd@stupidchicken.com>
4885
4886 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4887
617364fe
CY
48882010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4889
4890 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4891
4fe22cdf
CY
48922010-01-16 Chong Yidong <cyd@stupidchicken.com>
4893
4894 * emacs.c (standard_args): Adjust arg priorities to reflect how
4895 they are processed in startup.el.
4896
e118d2be
AS
48972010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4898
4899 * Makefile.in (lisp, shortlisp): Update.
4900
523ae620
SM
49012010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4902
4903 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4904 code, link the new kboard into all_kboard before running Lisp code,
4905 and protect the new terminal with GCPRO (Bug#5365).
4906 (x_term_init): Remove unused var `atom'.
4907 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4908
f0d13888
JD
49092010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4910
4911 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4912 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4913 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4914 this. Bug #3643.
f0d13888 4915
cc320f07
KH
49162010-01-15 Kenichi Handa <handa@m17n.org>
4917
4918 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4919
7ffdf101
CY
49202010-01-15 Chong Yidong <cyd@stupidchicken.com>
4921
4922 * nsterm.m (Qnone): Define.
4923
4924 * nsfns.m (Qnone): Move definition to nsterm.m.
4925
d12bd917
KH
49262010-01-14 Kenichi Handa <handa@m17n.org>
4927
4928 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4929 systems.
4930
d9a7c140
KH
49312010-01-14 Kenichi Handa <handa@m17n.org>
4932
4933 Make auto-composition work on all buffers even if they are
4934 fundamental mode.
4935
4936 * composite.c (Vauto_composition_mode): New variable.
4937 (composition_compute_stop_pos): Check Vauto_composition_mode
4938 instead of Vauto_composition_function.
4939 (composition_adjust_point, Ffind_composition_internal): Likewise.
4940 (syms_of_composite): Declare Lisp variable
4941 "auto-composition-mode" here.
4942
63286bb2
CY
49432010-01-13 Chong Yidong <cyd@stupidchicken.com>
4944
4945 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4946 during call to vendor-specific-keysyms (Bug#5365).
4947
c2623ee7
YM
49482010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4949
4950 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4951 Call SIGNAL_THREAD_CHECK (Bug#5333).
4952
4953 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4954 Call SIGNAL_THREAD_CHECK.
4955
0b5397c2
SM
49562010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4957
4958 Try to fix bug#5314. This is probably not the final word, tho.
4959 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4960 recent-auto-save-p as a side-effect.
4961 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4962 * buffer.c (Fkill_buffer, reset_buffer):
4963 * editfns.c (Fsubst_char_in_region):
4964 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4965 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4966
dc954cb2
KH
49672010-01-13 Kenichi Handa <handa@m17n.org>
4968
4969 Display buffer name, etc. in mode line by composing correctly.
4970
4971 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4972 STRING is not nil.
0b5397c2 4973 (display_mode_element): Adjust for the change of
dc954cb2
KH
4974 decode_mode_spec and display_line.
4975 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4976 (display_string): Handle the case that STRING is non-null and
4977 LISP_STRING is not nil.
4978
0b5397c2
SM
4979 * xterm.c (x_draw_composite_glyph_string_foreground):
4980 Pay attention to s->face->overstrike.
dc954cb2
KH
4981
4982 * composite.c (composition_reseat_it): Don't check PT if STRING is
4983 non nil.
4984
4a00eaca
YM
49852010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4986
4987 * keyboard.c (read_char): Don't apply previous change when current
4988 buffer is unchanged by command execution.
4989
60abb287
JD
49902010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4991
4992 * keyboard.c (read_char): Return after executing from special map.
4993
893db5bc
GM
49942010-01-12 Glenn Morris <rgm@gnu.org>
4995
4996 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4997 bug-gnu-emacs rather than emacs-pretest-bug.
4998
4d03ece0
CY
49992010-01-11 Chong Yidong <cyd@stupidchicken.com>
5000
5001 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5002 initializing the Lisp variables that depend on them.
5003
1df47e38
YM
50042010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5005
5006 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5007 Clear areas that will not be updated after change of menu bar lines.
5008 Clear the menu bar window's current matrix when the window gets empty.
5009
2f1c6384
CY
50102010-01-09 Chong Yidong <cyd@stupidchicken.com>
5011
e398c61c
CY
5012 * intervals.h, textprop.c (extend_property_ranges): Return value
5013 and args changed. Discard properties that begin at or after the
5014 new end (Bug#5306).
5015
5016 * editfns.c (Fformat): Caller changed.
5017
e5a29a10
CY
5018 * nsterm.m (ns_set_default_prefs): Delete function.
5019 (syms_of_nsterm): Initialize ns_command_modifier,
5020 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5021 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5022
2f1c6384
CY
5023 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5024 position (Bug#4040).
5025
d427a9fa
EZ
50262010-01-09 Eli Zaretskii <eliz@gnu.org>
5027
5028 * editfns.c (Ffloat_time): Doc fix.
5029
21b9df2f
JD
50302010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5031
5032 * xfns.c (Fx_create_frame): Don't create frame larger than display
5033 by default bug#3643.
5034
4b00d3b1
YM
50352010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5036
5037 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5038 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5039 windows above internal border.
5040
5041 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5042 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5043 windows above internal border.
5044
5045 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5046 tool bar windows specially.
5047
5048 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5049
5050 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5051 specially.
5052 (XTflash): Take account of menu bar height.
5053
5054 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5055 specially.
5056
5075d853
JD
50572010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5058
ac146f82 5059 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5060 also be true before we can return early (bug #5339).
5061
474217c8
CY
50622010-01-06 David Reitter <david.reitter@gmail.com>
5063
5064 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5065 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5066 (Bug#3233).
5067
c0e6d47d
JD
50682010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5069
d0cf45b7
JD
5070 * font.c (font_open_entity): Enable chache and call cached_font_ok
5071 for the driver if defined.
5072 (QCuser_spec): New symbol.
5073 (font_spec_from_name): Save name as user-spec.
5074 (font_load_for_lface): Keep user-spec instead of name.
5075 (font_open_by_name): Save name as user-spec.
5076 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5077 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5078
5079 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5080 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5081 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5082
5083 * font.h (struct font_driver): Add cached_font_ok.
5084
c0e6d47d
JD
5085 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5086
7c583cd8
JD
50872010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5088
5089 * xterm.c (x_new_font): Move code for setting rows/cols before
5090 resizing ...
ac146f82 5091 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5092
5093 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5094 (xg_frame_resized, xg_frame_set_char_size):
5095 Call xg_clear_under_internal_border.
7c583cd8 5096 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5097
03f77f0a
CY
50982010-01-05 Chong Yidong <cyd@stupidchicken.com>
5099
5100 * keyboard.c (read_key_sequence): Catch keyboard switch after
5101 making a new tty frame (Bug#5095).
5102
2a1ef5be
KH
51032010-01-05 Kenichi Handa <handa@m17n.org>
5104
5105 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5106
e3eb1dae
SM
51072010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5108
5109 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5110 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5111 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5112
777013f2
MA
51132010-01-03 Michael Albinus <michael.albinus@gmx.de>
5114
5115 * dbusbind.c (xd_add_watch): Improve debug message.
5116 (xd_remove_watch): Improve debug message. If DATA is the session
5117 bus, unset D-Bus session environment.
5118 (Fdbus_init_bus): Pass the bus as argument to
5119 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5120
8932b1c2
CY
51212010-01-01 Chong Yidong <cyd@stupidchicken.com>
5122
87231e2c
CY
5123 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5124
4801c5fa
CY
5125 * lread.c (syms_of_lread): Make it clearer that these are the
5126 names of loaded files (Bug#5068).
5127
8932b1c2
CY
5128 * eval.c (run_hook_with_args): Handle the case where the global
5129 value has the obsolete single-function form (Bug#5026).
5130
11e3c684
CY
51312009-12-27 Chong Yidong <cyd@stupidchicken.com>
5132
5133 * minibuf.c (Fall_completions): Minor optimization.
5134
5b28ce35
EZ
51352009-12-26 Eli Zaretskii <eliz@gnu.org>
5136
5ce6e4f4
JB
5137 * .gdbinit (pgx): Fix display of composite glyphs.
5138 Display cmp.from and cmp.to as well.
5139 (pitx): Fix last change.
5b28ce35 5140
bcffff46
KH
51412009-12-25 Kenichi Handa <handa@m17n.org>
5142
5143 * composite.h (composition_adjust_point): Update prototype.
5144
5145 * composite.c (composition_reseat_it): Don't make a composition
5146 spanning over point.
5147 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5148 composable characters.
5149 (composition_adjust_point): New arg NEW_PT. Callers changed.
5150
5151 * keyboard.c (command_loop_1): Force redisplay if the last point
5152 was within a composition.
5153 (adjust_point_for_property): Don't adjust point for automatic
5154 composition when called after buffer modification.
5155
3f670e9a
EZ
51562009-12-19 Eli Zaretskii <eliz@gnu.org>
5157
5ce6e4f4
JB
5158 * .gdbinit (pitx): Don't use enum names, use their values.
5159 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5160 (pgx): Don't use enum names, use their values.
5161 (pitmethod): New helper command.
5162 (pitx): Use it to display iteration method.
5163 (pgrowit): New command.
5164
ad903955
EZ
5165 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5166
3f670e9a
EZ
5167 Update dependencies in Makefile.in.
5168
5169 * Makefile.in (alloc.o): Depend on termhooks.h.
5170 (atimer.o): Depend on blockinput.h.
5171 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5172 and frame.h.
5173 (callint.o): Depend on systime.h, coding.h, and composite.h.
5174 (callproc.o): Depend on buffer.h.
5175 (casefiddle.o): Don't depend on charset.h.
5176 (casetab.o): Depend on character.h.
5177 (ccl.o): Depend on composite.h.
5178 (chartab.o): Depend on ccl.h.
5179 (cm.o): Depend on dispextern.h.
5180 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5181 (coding.o): Don't depend on $(INTERVALS_H).
5182 (composite.o): Don't depend on dispextern.h explicitly (it's in
5183 $(INTERVALS_H)). Depend on ccl.h.
5184 (data.o): Depend on systime.h, coding.h, composite.h,
5185 dispextern.h, font.h, and ccl.h.
5186 (dired.o): Depend on composite.h.
5187 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5188 composite.h (it's in $(INTERVALS_H)).
5189 (doc.o): Depend on systime.h, coding.h, and composite.h.
5190 (editfns.o): Don't depend explicitly on dispextern.h.
5191 (emacs.o): Depend on frame.h and coding.h.
5192 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5193 (fileio.o): Depend on frame.h and commands.h. Don't depend
5194 explicitly on dispextern.h.
5195 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5196 composite.h.
5197 (fns.o): Don't depend on termhooks.h.
5198 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5199 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5200 coding.h, $(INTERVALS_H), window.h, xterm.h.
5201 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5202 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
5203 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
5204 fontset.h, ccl.h, and ftfont.h.
5205 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5206 (gtkutil.o): Depend on dispextern.h and composite.h.
5207 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
5208 termhooks.h, and ccl.h.
5209 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
5210 (intervals.o): Depend on systime.h and coding.h.
5211 (keyboard.o): Depend on composite.h and coding.h.
5212 (keymap.o): Depend on coding.h and frame.h.
5213 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
5214 (macros.o): Depend on systime.h, coding.h, and composite.h.
5215 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
5216 and atimer.h.
5217 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
5218 dispextern.h explicitly.
0b5397c2
SM
5219 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
5220 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
5221 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
5222 (regex.o): Don't depend on charset.h.
5223 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
5224 (search.o): Don't depend explicitly on composite.h.
5225 (sound.o): Depend on atimer.h and systime.h.
5226 (syntax.o): Don't depend explicitly on composite.h.
5227 (sysdep.o): Depend on coding.h and composite.h.
5228 (term.o): Depend on xterm.h and buffer.h.
5229 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
5230 (textprop.o): Don't depend on dispextern.h explicitly.
5231 (undo.o): Depend on dispextern.h.
5232 (window.o): Depend on coding.h and termhooks.h. Don't depend on
5233 dispextern.h and composite.h explicitly.
5234 (xdisp.o): Depend on ccl.h.
5235 (xfaces.o): Depend on coding.h and ccl.h.
5236 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
5237 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
5238 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
5239 ftfont.h.
5240 (xgselect.o): New dependency.
5241 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
5242 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
5243 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
5244 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
5245 (xsmfns.o): Depend on frame.h and dispextern.h.
5246 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
5247 sysselect.h.
5248
7a6f7fea
AS
52492009-12-19 Andreas Schwab <schwab@linux-m68k.org>
5250
5251 * font.c (Fclear_font_cache): Pass correct cache argument to
5252 font_clear_cache.
5253
f4c21026
AS
52542009-12-16 Andreas Schwab <schwab@linux-m68k.org>
5255
5256 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
5257 twice.
5258
f7ab0997
CY
52592009-12-15 Chong Yidong <cyd@stupidchicken.com>
5260
5261 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
5262 calling file-remote-p. Reported by Jim Meyering.
5263
fa8e045a
MA
52642009-12-15 Michael Albinus <michael.albinus@gmx.de>
5265
5266 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 5267 avoid compiler warnings. (Bug #5217)
fa8e045a 5268
a63dba42
KH
52692009-12-14 Kenichi Handa <handa@m17n.org>
5270
5271 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
5272 in 8-bit encoding.
5273
5ce6e4f4 52742009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
5275
5276 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
5277 tooltip windows.
5278
223e5fc6
JD
52792009-12-13 Jan Djärv <jan.h.d@swipnet.se>
5280
36acb2a7
JD
5281 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
5282 Xatom_net_window_type.
5283
5284 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
5285 Xatom_net_window_type.
5286
b8f00677
JD
5287 * xterm.c (my_log_handler): New function.
5288 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 5289 so we can filter out buggy messages. (Bug #5120).
b8f00677 5290
e5f0bc9a
JD
5291 * xterm.c (xg_scroll_callback): Parameter list changed,
5292 use parameter GtkScrollType to determine scroll/line/page.
5293 Only allow dragging if a button < 4 is grabbed (bug #5177).
5294 (xg_end_scroll_callback): New function.
5295 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
5296 xg_create_scroll_bar.
5297
5298 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
5299 (scroll_end_callback): Remove.
5300 (xg_create_scroll_bar): Add parameter end_callback, bind it to
5301 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 5302 bug #5177.
e5f0bc9a
JD
5303 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
5304 bug #5177.
5305
5306 * gtkutil.h (XG_LAST_SB_DATA): Remove.
5307 (xg_create_scroll_bar): Add GCallback end_callback.
5308
223e5fc6
JD
5309 * xftfont.c (QClcdfilter): New variable.
5310 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5311 (syms_of_xftfont): Initialize QClcdfilter.
5312
3c055b77
JD
53132009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5314
5315 * xsettings.c (struct xsettings): Add member seen.
5316 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5317 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
5318 (apply_xft_settings): Only update Xft settings with what member seen
5319 indicates as new.
5320
05fe33ff
EZ
53212009-12-12 Eli Zaretskii <eliz@gnu.org>
5322
c4cc8b9a 5323 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
5324 (struct glyph): Use EMACS_INT for charpos.
5325 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
5326 region_beg_charpos, region_end_charpos,
5327 redisplay_end_trigger_charpos, and also for
5328 iterator_stack_entry.end_charpos and
5329 iterator_stack_entry.stop_charpos.
5330
e8d7886a
JD
53312009-12-12 Jan Djärv <jan.h.d@swipnet.se>
5332
5ce6e4f4 5333 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
5334 (xg_create_scroll_bar): Call scroll_end_callback on button release
5335 event (bug #5177).
5336 (xg_event_is_for_scrollbar): != replaced with ==.
5337
d0db2ec8
KH
53382009-12-12 Kenichi Handa <handa@m17n.org>
5339
5340 * ftfont.c (struct ftfont_info): New member matrix.
5341 (ftfont_open): Setup xftfont_info->matrix.
5342 (MFLTFontFT): New member matrix.
5343 (FLOOR, CEIL, ROUND): New macros.
5344 (ftfont_get_metrics): Handle matrix transformation.
5345 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5346
5347 * xftfont.c (struct xftfont_info): New member matrix.
5348 (xftfont_open): Setup xftfont_info->matrix.
5349
53502009-12-10 Kenichi Handa <handa@m17n.org>
5351
5352 * xdisp.c (append_space_for_newline): Consider face-remapping.
5353
2cc7b62f
AS
53542009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5355
b87dd913
AS
5356 * xsettings.c: Include "keyboard.h".
5357
eba5eb94
AS
5358 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5359
2cc7b62f
AS
5360 Fix implicit function declarations.
5361 * cmds.c: Include "frame.h".
5362 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5363 * frame.h: Move declaration of delete_frame outside of
5364 HAVE_WINDOW_SYSTEM.
5365
a4ef73c8
CY
53662009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5367
5368 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5369
5370 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5371 GTK builds.
5372
944a300c
AS
53732009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5374
5375 * unexelf.c (unexec): Don't search for .data twice.
5376
022eef62
CY
53772009-12-05 Chong Yidong <cyd@stupidchicken.com>
5378
426ac949
CY
5379 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5380 if push failed.
5381 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5382 of push_display_prop (Bug#5000).
5383
022eef62
CY
5384 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5385 value of font_list_entities (Bug#5085).
5386
be95bee9
JB
53872009-12-04 Juanma Barranquero <lekktu@gmail.com>
5388
5389 Fix `string-to-number' to deal consistently with integers and floats.
5390 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5391 trailing characters, not just whitespace.
5392 (read1): Pass new arg 0 to keep old behavior.
5393 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5394 trailing chars, as it is already done for integers. Doc fixes.
5395 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5396
24c2d7ce
EZ
53972009-12-04 Eli Zaretskii <eliz@gnu.org>
5398
0b5397c2
SM
5399 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5400 Delete unused enumeration value.
24c2d7ce 5401
7e694795
EZ
54022009-12-03 Eli Zaretskii <eliz@gnu.org>
5403
5404 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5405
84b31826
SM
54062009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5407
5408 * process.c (Fmake_network_process): Fix up the tests for
5409 "connectionless socket", so they DTRT for seqpacket sockets as well.
5410
f00c449b
SM
54112009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5412
5413 * process.c (Qseqpacket): New symbol.
5414 (HAVE_SEQPACKET): New macro.
5415 (Fmake_network_process): Accept new :type `seqpacket'.
5416 (init_process): Add `seqpacket' feature when applicable.
5417 (syms_of_process): Initialize Qseqpacket.
5418
8096a0ff
YM
54192009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5420
5421 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5422 if entity is Qnil.
5423
3e0de07f
SM
54242009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5425
5426 * print.c (print_preprocess): Preprocess the key_and_value table of
5427 hashtables, even tho they're "hidden" (bug#5082).
5428
abeafb2a
JD
54292009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5430
5431 * frame.c (frame_make_pointer_invisible)
5432 (frame_make_pointer_visible): Declare f before statements.
5433
4bf47195
EZ
54342009-11-28 Eli Zaretskii <eliz@gnu.org>
5435
5436 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5437 omitted dependencies on lisp.h.
5438
c525b3f2
JD
54392009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5440
ece2d4ed
JD
5441 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5442 is NULL.
5443
5444 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5445
5446 * frame.c (frame_make_pointer_invisible)
3e0de07f 5447 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5448 frame.
5449
c525b3f2
JD
5450 * search.c (simple_search): Remove warning by making *p const.
5451
2f00e299
DN
54522009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5453
5454 * xdisp.c (power_letter): Remove duplicate const.
5455
084b049b
JD
54562009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5457
a1fadc6f
JD
5458 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5459
5ce6e4f4 5460 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5461 defaults (bug #5025).
5462
28259cac
SM
54632009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5464
5465 * insdel.c (adjust_markers_for_delete): Move it in the
5466 right direction! (bug#4803)
5467
e8e14166
YM
54682009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5469
5470 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5471
5472 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5473
86677b58
GM
54742009-11-24 Glenn Morris <rgm@gnu.org>
5475
5476 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5477
581e51e8
JD
54782009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5479
cfc86c7a
JD
5480 * Makefile.in: Must create deps for ecrt0.o in its rule.
5481
581e51e8
JD
5482 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5483 because that is what Gtk+ font dialog understands.
5484
5485 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5486 of Fcopy_sequence.
5487 (font_open_by_name): Put name given into QCname for font-object returned.
5488
5489 * frame.c (x_set_font): Save original font name as frame parameter
5490 font-parameter.
5491
5492 * xsettings.c (set_default_xft_settings): New function.
5493 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5494 is found.
5495
8b264ecb
AS
54962009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5497
5498 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5499 searching backwards through multibyte buffer.
5500
872870b2
JD
55012009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5502
5503 * xterm.c: #include xgselect.h.
5504 (x_initialize): Call xgselect_initialize.
5505
5506 * xsettings.c (something_changedCB): C++ comments => C comments.
5507 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5508 does that now.
5509
5510 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5511 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5512 (scroll_bar_button_cb): Remove.
5ce6e4f4 5513 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5514 event.
5515 (xg_create_scroll_bar): Don't bind button-press-event and
5516 button-release-event.
5517
5518 * process.c: Include xgselect.h if defined (USE_GTK) ||
5519 defined (HAVE_GCONF).
5520 (wait_reading_process_output): Call xg_select for the same condition.
5521
5522 * xgselect.c (xg_select): New function to better integrate with
5523 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5524
5525 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5526
5527 * Makefile.in (XOBJ): Add xgselect.o.
5528
62a6e103
AS
55292009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5530
0b5397c2
SM
5531 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5532 Remove ignored second argument. All callers changed.
62a6e103
AS
5533 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5534 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5535 * xdisp.c (string_char_and_length): Likewise.
5536
b0ca0f33
DN
55372009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5538
5539 * xterm.c (x_new_font):
5540 * print.c (print_object):
5541 * cmds.c (Fself_insert_command): Move declarations before statements.
5542
dd5a6279
CY
55432009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5544
5545 * s/cygwin.h: Remove unneeded linker flags.
5546
4a8e097d
JD
55472009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5548
0d1d0d26
JD
5549 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5550
5551 * xsettings.h: Declare xsettings_get_system_font.
5552
5553 * xsettings.c (xsettings_get_system_font): New function.
5554 (init_gconf): No use initiating gconf unless we have Xft also.
5555 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5556 HAVE_GCONF.
5557
4a8e097d
JD
5558 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5559 add a blank entry so it doesn't collapse into nothing.
5560
8ab1650e
SM
55612009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5562
5563 * lread.c (Funintern): Comment out last change.
5564
82c602f0
RS
55652009-11-19 Richard Stallman <rms@gnu.org>
5566
5567 * lread.c (Funintern): Error if symbol is t or nil.
5568
87e32266
SM
55692009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5570
5571 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5572 representation of Lisp integers.
5573 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5574
1b9ac145
AS
55752009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5576
5577 * lisp.h: Remove declaration of Ffont_get_system_font.
5578 * xfns.c: Move include of "xsettings.h".
5579 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5580
dfb3c4c6
JD
55812009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5582
87e32266
SM
5583 * xsettings.c (something_changedCB, Ffont_get_system_font):
5584 Check use_system_font.
dfb3c4c6
JD
5585 (syms_of_xsettings): DEFVAR font-use-system-font.
5586
9370c1d8
AS
55872009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5588
25fe851a
AS
5589 * xfns.c (x_default_font_parameter): Remove dead assignment.
5590
9370c1d8
AS
5591 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5592
637fa988
JD
55932009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5594
87e32266 5595 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5596 not have FC_LCD_*. #define them if not there.
a6eb20d8 5597
87e32266 5598 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5599
637fa988
JD
5600 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5601
5602 * xterm.c (handle_one_xevent): Call xft_settings_event for
5603 ClientMessage, PropertyNotify and DestroyNotify.
5604 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5605 Call xsettings_initialize.
5606
5607 * xftfont.c (xftfont_fix_match): New function.
5608 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5609 Call xftfont_fix_match after XftFontMatch.
5610
5611 * xfont.c (xfont_driver): Initialize all members.
5612
87e32266
SM
5613 * xfns.c (x_default_font_parameter):
5614 Try font from Ffont_get_system_font.
637fa988
JD
5615 Do not get font from x_default_parameter if we got one from
5616 Ffont_get_system_font.
87e32266 5617 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5618
5619 * w32font.c (w32font_driver): Initialize all members.
5620
5621 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5622
5623 * lisp.h: Declare syms_of_xsettings.
5624
87e32266
SM
5625 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5626 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5627
5628 * ftfont.c (ftfont_filter_properties): New function.
5629
5630 * frame.c (x_set_font): Remove unused variable lval.
5631
87e32266 5632 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5633
5634 * font.c (font_put_extra): Don't return if val is nil, it means
5635 boolean option is off.
5636 (font_parse_fcname): Collect all extra properties in extra_props
5637 and call filter_properties for all drivers with extra_props and
5638 font as parameter.
87e32266
SM
5639 (font_open_entity): Do not use cache, it does not pick up new
5640 fontconfig settings like hinting.
637fa988
JD
5641 (font_load_for_lface): If spec had a name in it, store it in entity.
5642
a73f9c9d 5643 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5644
5645 * config.in: HAVE_GCONF is new.
5646
5647 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5648 xsettings.o is new.
5649
5a942932
KH
56502009-11-17 Kenichi Handa <handa@m17n.org>
5651
5652 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5653 back to the default font in case that no suitable font is found.
5654
b7c7a4d1
SM
56552009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5656
5657 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5658 Suggested by Chad Brown <yandros@mit.edu>.
5659 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5660
072f1e39
JD
56612009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5662
5663 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5664
5d1e70a2
AS
56652009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5666
87e32266 5667 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5668
a53cfbe5
JD
56692009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5670
473a99b7
JD
5671 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5672 has a parent.
5673
a53cfbe5 5674 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5675 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5676
5677 * config.in: Generated (AUTO_DEPEND).
5678
f04bb9b2
MA
56792009-11-13 Michael Albinus <michael.albinus@gmx.de>
5680
b7c7a4d1 5681 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5682 Vdbus_registered_functions_table, because it contains also
5683 properties. Fix docstring.
b7c7a4d1 5684 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5685
8f11f7ec
SM
56862009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5687
5688 * alloc.c (mark_object): Don't reprocess marked strings.
5689 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5690 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5691
8a605fe8
KH
56922009-11-13 Kenichi Handa <handa@m17n.org>
5693
8f11f7ec 5694 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5695 semantics of Vword_combining_categories.
5696 (Vword_combining_categories): Describe the slight change of the
5697 semantics.
5698
241c4680
EZ
56992009-11-13 Eli Zaretskii <eliz@gnu.org>
5700
5701 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5702
5703 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5704
5d58e44c
SM
57052009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5706
5707 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5708
5e13f9d3
JB
57092009-11-12 Juanma Barranquero <lekktu@gmail.com>
5710
5711 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5712
cf54c754
DR
57132009-11-11 David Reitter <david.reitter@gmail.com>
5714
5715 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5716 variables to fix 2009-11-09 change.
5717
a4ada374
DN
57182009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5719
91433552
DN
5720 * process.c (ifflag_def): Make flag_sym constant.
5721 (Fnetwork_interface_info): Use a constant pointer.
5722 (ifflag_table):
5723 * xfns.c (cursor_bits):
5724 * xdisp.c (power_letter):
5725 * termcap.c (speeds, esctab):
5726 * sysdep.c (baud_convert):
5727 * keyboard.c (lispy_accent_codes, modifier_names):
5728 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5729 (jpeg_format, tiff_format, gif_format, svg_format)
5730 (interlace_start, interlace_increment, gs_format):
5731 * gtkutil.c (separator_names):
5732 * fringe.c (swap_nibble):
5733 * fns.c (base64_value_to_char, base64_char_to_value):
5734 * fileio.c (make_temp_name_tbl):
5735 * coding.c (suffixes): Make constant.
5736
f4265f6c
DN
5737 * frame.c (make_initial_frame):
5738 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5739 build_string.
5740 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5741
04420943
DN
5742 * s/freebsd.h:
5743 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5744
0a5d24ae
DN
5745 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5746 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5747
a4ada374
DN
5748 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5749 * xterm.c (syms_of_xterm):
5750 * xfaces.c (syms_of_xfaces):
5751 * xdisp.c (syms_of_xdisp):
5752 * lread.c (syms_of_lread):
5753 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5754 build_string.
91433552 5755
a4ada374
DN
5756 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5757
af98fc7f
SM
57582009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5759
8ab1650e 5760 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5761
e90292a9
JD
57622009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5763
5764 * keyboard.h: Declare timer_check.
5765
5766 * keyboard.c (timer_check_2): New function that does what the old
5767 timer_check did.
5768 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5769 returned, i.e. don't return -1 with timers pending.
5770
5771 * process.c: Remove extern declaration of timer_check.
5772
5773 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5774 even if timer_check returned -1.
5775
af98fc7f
SM
5776 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5777 xg_dialog_data.
e90292a9
JD
5778 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5779 the event loop.
5780 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5781 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5782 Destroy the dialog after xg_dialog_run.
5783
045b83c0
SM
57842009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5785
5786 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5787
1fb99a3a
JD
57882009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5789
5790 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5791
04e452cb
JB
57922009-11-09 Juanma Barranquero <lekktu@gmail.com>
5793
5794 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5795
ef7417fd
SM
57962009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5797
5798 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5799 w32menu.c, and nsmenu.m.
5800 Simplify the obsolete case where position is nil.
5801 (cleanup_popup_menu): New function, moved from nsmenu.m.
5802 (struct skp): Remove slot `notreal'.
5803 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5804 adjust callers.
5805 (single_menu_item): Adjust call to parse_menu_item.
5806 (syms_of_menu): Defsubr x-popup-menu.
5807 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5808 (keymap_panes): Don't export any more.
5809 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5810 (xmenu_show): Declare.
5811 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5812 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5813 * keyboard.h (parse_menu_item): Update declaration.
5814 * xmenu.c (Fx_popup_menu): Remove.
5815 (syms_of_xmenu): Don't defsubr x-popup-menu.
5816 * w32menu.c (Fx_popup_menu): Remove.
5817 (syms_of_w32menu): Don't defsubr x-popup-menu.
5818 * nsmenu.m (cleanup_popup_menu): Remove.
5819 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5820 moved to menu.c's Fx_popup_menu.
5821 (Fx_popup_menu): Remove.
5822 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5823 menu_items (it's done in menu.c already).
5824
424d6179
SM
58252009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5826
5827 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5828 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5829
c0df13a6 58302009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5831
5832 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5833 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5834 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5835 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5836
2de9f71c
SM
58372009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5838
5839 Let integers use up 2 tags to give them one extra bit and thus double
5840 their range.
5841 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5842 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5843 New macros.
5844 (enum Lisp_Type): Use them. Give explicit values.
5845 (Lisp_Type_Limit): Remove.
5846 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5847 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5848 Pay attention to USE_2_TAGS_FOR_INTS.
5849 (INTEGERP): Use LISP_INT_TAG_P.
5850 * fns.c (internal_equal): Simplify the default case.
5851 (sxhash): Use case_Lisp_Int.
5852 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5853 any more.
5854 (Ftype_of): Use case_Lisp_Int.
5855 (store_symval_forwarding): Take into account the fact that Ints can
5856 now have more than one tag.
5857 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 5858 (buffer_slot_type_mismatch):
2de9f71c
SM
5859 * xfaces.c (face_attr_equal_p):
5860 * print.c (print_object):
5861 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5862 Use case_Lisp_Int.
5863
323637a2
EZ
58642009-11-06 Eli Zaretskii <eliz@gnu.org>
5865
7ac65b38
EZ
5866 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5867
323637a2
EZ
5868 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5869 warning.
5870
e511451f
JD
58712009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5872
5873 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5874
5875 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5876
5877 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5878 ButtonPressRelease and MotionNotify (bug#4870).
5879
5e2327cf
DN
58802009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5881
5adc433e
DN
5882 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5883
d67b4f80
DN
5884 * xterm.c (syms_of_xterm):
5885 * xselect.c (syms_of_xselect):
5886 * xmenu.c (syms_of_xmenu):
5887 * xfns.c (syms_of_xfns):
5888 * xfaces.c (syms_of_xfaces):
5889 * xdisp.c (syms_of_xdisp):
5890 * window.c (syms_of_window):
5891 * w32fns.c (syms_of_w32fns):
5892 * undo.c (syms_of_undo):
5893 * textprop.c (syms_of_textprop):
5894 * terminal.c (syms_of_terminal):
5895 * syntax.c (syms_of_syntax):
5896 * sound.c (syms_of_sound):
5897 * search.c (syms_of_search):
5898 * print.c (syms_of_print):
5899 * minibuf.c (syms_of_minibuf):
5900 * macros.c (syms_of_macros):
5901 * keymap.c (syms_of_keymap, initial_define_key)
5902 (initial_define_lispy_key):
5903 * keyboard.c (syms_of_keyboard):
5904 * insdel.c (syms_of_insdel):
5905 * image.c (syms_of_image):
5906 * fringe.c (syms_of_fringe):
5907 * frame.c (syms_of_frame):
5908 * fontset.c (syms_of_fontset):
5909 * fns.c (syms_of_fns):
5910 * fns.c (syms_of_fns):
5911 * fileio.c (syms_of_fileio):
5912 * fileio.c (syms_of_fileio):
5913 * eval.c (syms_of_eval):
5914 * doc.c (syms_of_doc):
5915 * dispnew.c (syms_of_display):
5916 * dired.c (syms_of_dired):
5917 * dbusbind.c (syms_of_dbusbind):
5918 * data.c (syms_of_data):
5919 * composite.c (syms_of_composite):
5920 * coding.c (syms_of_coding):
5921 * cmds.c (syms_of_cmds):
5922 * charset.c (define_charset_internal, syms_of_character):
5923 * ccl.c (syms_of_ccl):
5924 * category.c (syms_of_category, init_category_once):
5925 * casetab.c (syms_of_casetab):
5926 * casefiddle.c (syms_of_casefiddle):
5927 * callint.c (syms_of_callint):
5928 * bytecode.c (syms_of_bytecode):
5929 * buffer.c (keys_of_buffer, syms_of_buffer):
5930 * alloc.c (syms_of_alloc):
5931 * process.c (syms_of_process, init_process):
5932 * lread.c (syms_of_lread, init_obarray):
5933 * font.c (build_style_table):
5934 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5935 intern_c_string, calls to make_pure_string with
5936 make_pure_c_string. Use pure_cons instead of Fcons.
5937
5e2327cf
DN
5938 * process.c (socket_options): Make it const.
5939 (set_socket_option, init_process): Use a const pointer.
5940
5941 * lread.c (intern_c_string): New function.
5942 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5943 (defvar_int): Uset it. Make the name const char*.
5944
5945 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5946 (defvar_int): Update prototypes.
5947 (DEFUN, EXFUN): Support for prototypes is now required.
5948 (intern_c_string): New prototype.
5949 (struct Lisp_Subr): Make symbol_name constant.
5950
5951 * font.c (struct table_entry): Remove unused member. Make NAMES
5952 constant.
5953 (weight_table, slant_table, width_table): Make constant.
5954
5955 * emacs.c (struct standard_args): Make name and longname constant.
5956
5957 * character.h (DEFSYM): Use intern_c_string.
5958
a56eaaef
DN
59592009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5960
5961 * alloc.c (make_pure_c_string): New function.
5962
5963 * eval.c (Fautoload): Purecopy all arguments.
5964
f6a07420
KH
59652009-11-05 Kenichi Handa <handa@m17n.org>
5966
5967 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5968 the buffer in case of replace.
5969
5d28d4b1
DN
59702009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5971
5972 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5973
b349d111
SM
59742009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5975
d528b1ce
SM
5976 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5977 when applicable (bug#4851).
5978
b349d111
SM
5979 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5980 (P_): Support for prototypes is now required.
5981
c38eb027
CY
59822009-10-31 Chong Yidong <cyd@stupidchicken.com>
5983
5984 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5985 (Bug#4827).
5986
0405f8d9
EZ
59872009-10-30 Eli Zaretskii <eliz@gnu.org>
5988
d528b1ce 5989 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5990
ca0a881a
DN
59912009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5992
5993 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5994
d528b1ce
SM
5995 * lread.c (Fload): Purecopy the file name when building
5996 Vpreloaded_file_list.
ca0a881a 5997
47e0e0e4
JR
59982009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5999
6000 * w32fns.c (syms_of_w32fns): Change default value of
6001 w32-scroll-lock-modifier to nil. (Bug#2827)
6002
057bce6f
JB
60032009-10-26 Juanma Barranquero <lekktu@gmail.com>
6004
782a943e 6005 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6006
242bc74c
AS
60072009-10-26 Andreas Schwab <schwab@redhat.com>
6008
6009 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6010
522d013a
JB
60112009-10-26 Juanma Barranquero <lekktu@gmail.com>
6012
6013 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6014 For delta < 0, skip check that only makes sense when the mini-window
6015 is going to be enlarged. (Bug#4534)
6016
18060980
CY
60172009-10-25 Chong Yidong <cyd@stupidchicken.com>
6018
6019 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6020 string in menu maps (Bug#4471).
6021
fec8f0fe
CY
60222009-10-24 Chong Yidong <cyd@stupidchicken.com>
6023
6024 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6025 FRAME_NS_VIEW on terminal frames (Bug#4765).
6026
10d66ec0
AS
60272009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6028
1cae01f7
AS
6029 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6030 DBUS_TYPE_UINTnn separately to get proper sign extension.
6031
58a12889
AS
6032 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6033 can properly handle unsigned types.
d528b1ce 6034 (make_uid, make_gid): Remove.
58a12889 6035
987c9327
AS
6036 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6037 types again.
6038
522d013a 6039 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6040 (system_process_attributes): Likewise.
6041
905a9ed3
DN
60422009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6043
6044 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6045
6046 * eval.c (Fautoload): Purecopy the filename. Simplify.
6047
6048 * category.c (Fdefine_category): Purecopy docstring.
6049
a599b3e8
AS
60502009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6051
7b792fc9
AS
6052 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6053
a599b3e8
AS
6054 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6055
b35ac83e
CY
60562009-10-23 Chong Yidong <cyd@stupidchicken.com>
6057
6058 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6059 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6060 (Bug#4775).
6061
e8903e00
SM
60622009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6063
6064 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6065 (init_fileio_once):
6066 * lisp.h (init_fileio_once): Remove.
6067 * emacs.c (main): Don't call init_fileio_once.
6068
8f43cbf3
DN
60692009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6070
6071 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6072
26898943
AS
60732009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6074
6075 * doprnt.c (doprnt): Fix overflow check.
6076
5c646d5a
JD
60772009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6078
3132a7ea
JD
6079 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6080
5c646d5a
JD
6081 * xterm.h (x_wait_for_event): Declare it.
6082
6083 * xterm.c (pending_event_wait): New variable.
6084 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6085 see pending_event_wait.eventtype.
6086 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6087 (x_new_font): Call change_frame_size with new rows/columns before we
6088 try to resize the frame.
5c646d5a 6089 (x_wait_for_event): New function.
d528b1ce
SM
6090 (x_set_window_size_1): Don't change gravity unless change_gravity
6091 is set.
5c646d5a
JD
6092 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6093 don't change frame size, instead wait for the ConfigureNotify.
6094 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6095 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6096 (x_initialize): Initialize pending_event_wait.
6097
6098 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6099 size.
6100
6101 * widget.c (EmacsFrameSetValues): Add comment.
6102 (EmacsFrameSetCharSize): Just call x_set_window_size.
6103
6104 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6105 x_wait_for_event.
d528b1ce 6106 (flush_and_sync): Remove again.
5c646d5a
JD
6107 (xg_get_font_name): Suggest monospace if no previous font is known.
6108
e9c1637d
SM
61092009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6110
6111 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6112 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6113
5a72cccb
YM
61142009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6115
6116 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6117 processing pending events when event is filtered for input method.
ab04798f 6118 (Bug#3681)
5a72cccb 6119
2629aa37
JB
61202009-10-20 Juanma Barranquero <lekktu@gmail.com>
6121
6122 * fns.c: Add #endif accidentally removed in previous change.
6123
c3417a74
DN
61242009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6125
6126 * fns.c: Remove code for unsupported system: MAC_OS.
6127 * image.c: Likewise. Include setjmp.h.
6128
9685cef2
JD
61292009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6130
6131 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6132 pixel -1 (bug #4742).
6133
d7306fe6
DN
61342009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6135
019d2c4c
DN
6136 * process.c (create_pty): Remove conditionals for no longer
6137 supported systems: UNIPLUS and RTU.
6138
ee6bacd4
DN
6139 * xterm.c:
6140 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6141
d7306fe6
DN
6142 * alloc.c: Do not define struct catchtag.
6143 * eval.c: Move struct catchtag definition ...
6144 * lisp.h: ... here.
6145
6146 * image.c: Move png.h #include earlier to avoid warnings.
6147
6148 * xterm.c:
6149 * xsmfns.c:
6150 * xselect.c:
6151 * xrdb.c:
6152 * xmenu.c:
6153 * xftfont.c:
6154 * xfont.c:
6155 * xfns.c:
6156 * xfaces.c:
6157 * xdisp.c:
6158 * window.c:
6159 * widget.c:
6160 * w32xfns.c:
6161 * w32uniscribe.c:
6162 * w32term.c:
6163 * w32select.c:
6164 * w32reg.c:
6165 * w32proc.c:
6166 * w32menu.c:
6167 * w32inevt.c:
6168 * w32heap.c:
6169 * w32font.c:
6170 * w32fns.c:
6171 * w32console.c:
6172 * w32.c:
6173 * w16select.c:
6174 * vm-limit.c:
6175 * unexsol.c:
6176 * unexec.c:
6177 * unexcw.c:
6178 * unexaix.c:
6179 * undo.c:
6180 * tparam.c:
6181 * textprop.c:
6182 * terminfo.c:
6183 * terminal.c:
6184 * termcap.c:
6185 * term.c:
6186 * syntax.c:
6187 * sound.c:
6188 * sheap.c:
6189 * search.c:
6190 * scroll.c:
6191 * region-cache.c:
6192 * regex.c:
6193 * ralloc.c:
6194 * process.c:
6195 * print.c:
b024548b
DN
6196 * nsterm.m:
6197 * nsselect.m:
6198 * nsmenu.m:
6199 * nsimage.m:
6200 * nsfont.m:
6201 * nsfns.m:
d7306fe6
DN
6202 * msdos.c:
6203 * minibuf.c:
6204 * menu.c:
6205 * marker.c:
6206 * macros.c:
6207 * keymap.c:
6208 * keyboard.c:
6209 * intervals.c:
6210 * insdel.c:
6211 * indent.c:
6212 * gtkutil.c:
6213 * ftxfont.c:
6214 * ftfont.c:
6215 * fringe.c:
6216 * frame.c:
6217 * fontset.c:
6218 * font.c:
6219 * fns.c:
6220 * floatfns.c:
6221 * filelock.c:
6222 * fileio.c:
6223 * emacs.c:
6224 * editfns.c:
6225 * dosfns.c:
6226 * doprnt.c:
6227 * doc.c:
6228 * dispnew.c:
6229 * dired.c:
6230 * dbusbind.c:
6231 * data.c:
6232 * composite.c:
6233 * coding.c:
6234 * cmds.c:
6235 * cm.c:
6236 * chartab.c:
6237 * charset.c:
6238 * character.c:
6239 * ccl.c:
6240 * category.c:
6241 * casetab.c:
6242 * casefiddle.c:
6243 * callproc.c:
6244 * callint.c:
6245 * bytecode.c:
6246 * buffer.c:
6247 * atimer.c: Include setjmp.h. (Bug#4643)
6248
fd5f21e6
SM
62492009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
6250
4c0354d7
SM
6251 Remove leftover table unibyte_to_multibyte_table.
6252 * character.c (unibyte_to_multibyte_table): Remove.
6253 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
6254 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
6255 * character.h (UNIBYTE_TO_CHAR): New macro.
6256 (MAKE_CHAR_MULTIBYTE): Use it.
6257 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
6258 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
6259 (message_dolog, set_message_1):
6260 * search.c (Freplace_match):
6261 * editfns.c (Fcompare_buffer_substrings):
6262 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
6263 (concat):
6264 * insdel.c (copy_text, count_size_as_multibyte):
6265 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
6266 * term.c (produce_glyphs):
6267 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
6268 * regex.c (RE_CHAR_TO_MULTIBYTE):
6269 * cmds.c (internal_self_insert):
6270 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
6271
fd5f21e6
SM
6272 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
6273
4418646e
DN
62742009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
6275
6276 * puresize.h (BASE_PURESIZE): Increase to 1310000.
6277
35f5c1d2
JB
62782009-10-16 Juanma Barranquero <lekktu@gmail.com>
6279
6280 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
6281
a0cd8f6b
AR
62822009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6283
6284 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
6285 still needed under Tiger.
6286
6287 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
6288
6289 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
6290 __Apple__.
6291
6292 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
6293
01a8d3fa
KH
62942009-10-15 Kenichi Handa <handa@m17n.org>
6295
6296 * print.c (print_object): Escape a symbol like "2E10" too.
6297
bf6c75c9 62982009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
6299
6300 Cleanups and changes for 64-bit compile under Snow Leopard.
6301 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
6302
6303 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
6304
c5959062 6305 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
6306 (ns_findfonts, nsfont_list_family): Use long format in printf, and
6307 cast argument.
6308 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 6309 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
6310
6311 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
6312
6313 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
6314 where appropriate.
6315
6316 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
6317 where appropriate.
6e4780c5
JB
6318 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
6319 Use stringWithUTF8String.
bf6c75c9
AR
6320 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
6321
6e4780c5
JB
6322 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
6323 Add formal protocol mention to inheritance.
bf6c75c9
AR
6324 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
6325
6e4780c5
JB
6326 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
6327 Fix printf format.
bf6c75c9
AR
6328 (ns_query_color): Use CGFloat where appropriate.
6329 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 6330 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
6331 argument.
6332
3d87f118
AR
6333 * config.in (NS_HAVE_NSINTEGER): Drop.
6334
a95c8102
AR
6335 * dbusbind.c (dbus-method-return-internal)
6336 (dbus-method-error-internal): Use long format in printf, and cast
6337 argument.
6338
6339 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6340 in printf, and cast argument.
6341
6873acca 6342 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6343 cast argument.
6344
9ec6f100
GM
63452009-10-11 Glenn Morris <rgm@gnu.org>
6346
6347 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6348
5be883cd
JD
63492009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6350
6351 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6352 menu bar with a small width so it doesn't enlarge the frame.
6353
d7a39b51
JB
63542009-10-08 Juanma Barranquero <lekktu@gmail.com>
6355
6356 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6357
0c2b6f8e
GM
63582009-10-06 Glenn Morris <rgm@gnu.org>
6359
6360 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6361 SOME_MACHINE_LISP (this enters indirectly via DOC).
6362
e02131a2
EZ
63632009-10-05 Eli Zaretskii <eliz@gnu.org>
6364
6365 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6366
b4744254
EZ
63672009-10-04 Eli Zaretskii <eliz@gnu.org>
6368
6369 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6370 Doc fix.
6371
dbf64827
JB
63722009-10-03 Martin Rudalics <rudalics@gmx.at>
6373
6374 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6375
e9a0aef8
MA
63762009-10-02 Michael Albinus <michael.albinus@gmx.de>
6377
d528b1ce 6378 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6379 used anymore outside fileio.c.
6380
6381 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6382
64eb2b56
JB
63832009-10-01 Juanma Barranquero <lekktu@gmail.com>
6384
6385 * lisp.h (Qdelete_directory_internal):
6386 Declare, instead of Qdelete_directory.
6387
6388 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6389
9d28c33e
SM
63902009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6391
6392 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6393
9d8f3bd9
MA
63942009-10-01 Michael Albinus <michael.albinus@gmx.de>
6395
9d28c33e 6396 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6397 Fdelete_directory. It is not a command anymore. It has no file
6398 name handler.
6399
9694740b
SM
64002009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6401
6402 * xdisp.c (get_next_display_element): Use an enum in last change.
6403
748e162f
KH
64042009-09-28 Kenichi Handa <handa@m17n.org>
6405
9694740b 6406 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6407 unibyte_display_via_language_environment in handling
6408 Vnobreak_char_display.
6409
17efd58d
AR
64102009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6411
6412 * nsterm.h (ns_app_name): New extern variable.
6413
6414 * nsterm.m (ns_app_name): New variable.
6415 (ns_term_init): Set and use it.
6416 (ns_term_shutdown): Use it.
6417
6418 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6419 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6420
6421 * nsfns.m (ns_set_name_iconic, ns_set_name)
6422 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6423 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6424
9694740b
SM
6425 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6426 Remove double-casting in client_data comparison.
31c2d412 6427
3208cb35
YM
64282009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6429
6430 * keyboard.c (make_lispy_event): Remember last wheel direction.
6431 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6432
b7d552d6
GM
64332009-09-26 Glenn Morris <rgm@gnu.org>
6434
6435 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6436 internal.elc. Add term/pc-win.elc.
6437 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6438 term/x-win.elc.
6439 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6440 term/w32-win.elc.
6441 (NS_SUPPORT): New.
6442 (lisp): Add NS_SUPPORT.
6443 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6444
4ff670a8
DR
64452009-09-25 David Reitter <david.reitter@gmail.com>
6446
6447 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6448 on Mac OS X 10.6+ (bug#4513).
6449
feabfb6c
JB
64502009-09-24 Juanma Barranquero <lekktu@gmail.com>
6451
6452 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6453 some parts of Emacs code (like font selection) don't grok them.
6454 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6455
de59072a
AS
64562009-09-24 Andreas Schwab <schwab@redhat.com>
6457
6458 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6459
a489517b
JB
64602009-09-24 Juanma Barranquero <lekktu@gmail.com>
6461
6462 * dired.c (Fdirectory_files): Fix typo in docstring.
6463
0592970c
AR
64642009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6465
6466 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6467 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6468 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6469 under GNUstep.
6470 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6471
6472 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6473 glyph advancement.
6474
48e8a88b
AR
64752009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6476
6477 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6478 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6479
6480 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6481 deleted (bug #4492).
6482
e14f0a78
AR
6483 * nsfont.m (Vns_reg_to_script): New lisp variable.
6484 (syms_of_nsfont): Declare it.
6485 (ns_registry_to_script): New function.
6486 (ns_get_req_script): Call it.
6487 (ns_findfonts): Don't give up on non-unicode registry.
6488
6489 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6490
5b650faa
SM
64912009-09-20 Tom Tromey <tromey@redhat.com>
6492
6493 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6494 batch mode (bug#4228).
6495
a489517b 64962009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6497
6498 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6499 carefully. (Bug #4339)
0bae4e09 6500
fcfe06f3
CY
65012009-09-18 Chong Yidong <cyd@stupidchicken.com>
6502
d798ba87 6503 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6504
31642728
AR
65052009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6506
6507 * emacs.c (inhibit_x_resources): Update doc string for NS.
6508 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6509 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6510
6511 * nsterm.h (ns_no_defaults): Remove.
6512
6513 * nsterm.m (ns_no_defaults): Remove.
6514 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6515 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6516 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6517 don't update the NSWindow itself.
6518 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6519 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6520
6521 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6522 ns_use_qd_smoothing.
6523
6524 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6525 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6526 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6527 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6528
8686ac71
JB
65292009-09-17 Juanma Barranquero <lekktu@gmail.com>
6530
6531 * emacs.c (inhibit_x_resources): New variable.
6532 (main) [HAVE_NS]: Don't process --quick command line option.
6533 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6534
6535 * lisp.h (inhibit_x_resources): Declare it extern.
6536
6537 * w32reg.c (x_get_string_resource):
6538 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6539
e227ba05
EZ
65402009-09-17 Eli Zaretskii <eliz@gnu.org>
6541
362654a6
JB
6542 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6543 Add lisp/term/internal.elc.
e227ba05 6544
742d40e8
SM
65452009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6546
6547 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6548 (bug#4461).
6549
005bd5a2
DN
65502009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6551
6552 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6553
6554 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6555 (OBJECTS_MACHINE): Remove, unused.
6556
f9af9719
SM
65572009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6558
6559 * frame.c (x_get_resource_string): Remove unused.
6560
0307c7d2
JD
65612009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6562
6563 * xterm.c (x_new_font): Call change_frame_size before calling
6564 x_set_window_size, in case frame size won't change.
6565
6566 * frame.c (x_set_font): Remove dead code.
6567
428b13d6
SM
65682009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6569
6570 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6571
5766c380
SM
65722009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6573
6574 * lread.c (Fload): Don't output a message after loading an obsolete
6575 package any more (done in Lisp now).
6576
2fd0161b
CY
65772009-09-12 Chong Yidong <cyd@stupidchicken.com>
6578
6579 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6580
bc5e75b6
SM
65812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6582
6583 * keymap.c (Fwhere_is_internal): Use nconc2.
6584
c31c985e
AM
65852009-09-11 Alan Mackenzie <acm@muc.de>
6586
6587 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6588 batch mode.
6589
78012bd2
AS
65902009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6591
6592 * xdisp.c (display_mode_element): Detect cycles.
6593
9d889332
SM
65942009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6595
6596 * keymap.c (where_is_internal): Don't erroneously return nil right after
6597 filling the cache.
6598 (where_is_internal_1): Fix up typo.
6599
7ab5d780
GM
66002009-09-11 Glenn Morris <rgm@gnu.org>
6601
6602 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6603 share a common doc-string.
6604
5238a749
SM
66052009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6606
66d77eda
SM
6607 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6608 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6609
5238a749
SM
6610 * keymap.c (QCadvertised_binding): New constant.
6611 (syms_of_keymap): Initialize it.
6612 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6613 if applicable.
6614
19f48442
SM
66152009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6616
50d4ba39
SM
6617 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6618 (parse_menu_item): Streamline since bindings are recomputed all the
6619 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6620 more and don't support lmenu's menu-alias any more either.
6621
a88a5372
SM
6622 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6623 (where_is_internal): Strip it down to only traverse the keymaps.
6624 Move the cache handling from Fwhere_is_internal to here.
6625 (Fwhere_is_internal): Move the handling of remapping and the choice of
6626 the best binding from where_is_internal to here.
6627 Unify the cached/noncached paths, so remapping is also handled
6628 correctly when the cache is used, and so the cache can be used to
6629 speed up remap-handling when applicable.
6630 Give preference to non-remapped bindings.
6631 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6632 non-remapped bindings.
6633 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6634 command remapping.
6635
19f48442
SM
6636 * xdisp.c (display_mode_element): Move list length limit from 50 to
6637 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6638
599498c3 66392009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6640
6641 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6642
f9b7b5ac
SM
66432009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6644
a53af587
JB
6645 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6646 (Bug#4334)
6647
f9b7b5ac
SM
6648 * keymap.c (where_is_internal): Filter out shadowed remappings.
6649 Assume that where_is_internal returns unshadowed bindings to simplify
6650 the code and get rid of the gotos. Use ASIZE.
6651
04f4b72d
JD
66522009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6653
4da146f2
JD
6654 * xterm.c (x_focus_changed): If we get a focusout and pointer
6655 is invisible, make it visible.
6656
04f4b72d
JD
6657 * xterm.h: Remove condition for declaration of
6658 x_*_window_to_frame.
6659
7cef7ce3
SM
66602009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6661
6662 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6663 initial terminal as well.
6664
a54fa5b7
JD
66652009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6666
6667 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6668 x_menubar_window_to_frame.
a54fa5b7 6669
50426a04 6670 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6671 (XTmouse_position): Do not return valid positions
6672 for clicks in the menubar and the toolbar for Gtk+.
6673
6674 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6675 if the widget for the event has the same top level as a frame,
6676 return the frame.
6677 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6678 internal windows, bug #4122.
6679 (x_non_menubar_window_to_frame): Remove.
6680
5a021dd0
GM
66812009-09-02 Glenn Morris <rgm@gnu.org>
6682
6683 * buffer.c (default-major-mode): Move most of the doc from here...
6684 (major-mode): ... to here.
6685
548fe2f3
NR
66862009-08-30 Nick Roberts <nickrob@snap.net.nz>
6687
6688 * process.c (wait_reading_process_output): Keep the descriptor
6689 when pty is used by a non-child process, e.g., in I/O buffer of
6690 GDB this allows inferior to be restarted.
6691
e0840eef
EZ
66922009-08-29 Eli Zaretskii <eliz@gnu.org>
6693
6694 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6695 both branches into one.
6696
82e98df4
SM
66972009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6698
6699 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6700 (main): Use enable-multibyte-characters rather than
6701 default-enable-multibyte-characters. Output a warning message when
6702 running a unibyte session.
6703
890617cb
YM
67042009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6705
6706 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6707 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6708 (copy_data_segment): Also copy __program_vars section.
6709 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6710 (dump_it) [LC_DYLD_INFO]: Use it.
6711
6712 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6713
e7adeadc
EZ
67142009-08-28 Eli Zaretskii <eliz@gnu.org>
6715
6716 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6717 $(SRC)/buildobj.h.
6718 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6719 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6720 $(SRC)/buildobj.h.
6721 (clean): Add buildobj.h.
6722
3ed8bbdc
TZ
67232009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6724
6725 * print.c (print_object): Set escapeflag to 1 when printing
6726 hashtable keys and values.
6727
155a6764
SM
67282009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6729
6730 * lread.c (read_integer): Use doubles (and potentially return a float
6731 number) as we do in string-to-number.
6732 (read1): Use strtol to read integers, signal errors on strtol's
6733 overflow and use floats if strtol's output is too large for
6734 Elisp integers.
6735
877610de
EZ
67362009-08-27 Eli Zaretskii <eliz@gnu.org>
6737
6738 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6739 (make-buildobj-SH): Fix last change.
6740 (SRC): Move to before where it's first used.
6741
ef73e7be
KH
67422009-08-27 Kenichi Handa <handa@m17n.org>
6743
550c8289
KH
6744 * process.c (send_process): Use encode_coding_object instead of
6745 encode_coding_string to perform eol-conversion even if the string
6746 is unibyte.
6747
60afa08d
KH
6748 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6749 character.
6750
ef73e7be 6751 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6752 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6753
7b3a82d7
DN
67542009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6755
5654bf63
DN
6756 * callproc.c (Fcall_process): Remove always true #if.
6757
7b3a82d7
DN
6758 * lisp.h: Replace #if 0 code for checking with text pointing to
6759 the --enable-checking configure flag.
6760
6761 * emacs.c (main): Mention the --enable-profiling configure flag
6762 instead of using CFLAGS.
6763
878bde49
KR
67642009-08-26 Ken Raeburn <raeburn@raeburn.org>
6765
6766 * Makefile.in (buildobj.h): New target.
6767 (doc.o): Depend on it.
6768 (temacs${EXEEXT}): Don't generate buildobj.lst.
6769 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6770 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6771 ($(BLD)/doc.$(O)): Depend on it.
6772 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6773 provided by Eli Zaretskii.)
6774 ($(TEMACS)): Don't generate buildobj.lst.
6775 * doc.c: Include buildobj.h.
6776 (buildobj): New static variable.
6777 (Fsnarf_documentation): Use it, instead of opening and reading
6778 buildobj.lst.
6779
1574224c
MA
67802009-08-25 Michael Albinus <michael.albinus@gmx.de>
6781
6782 * dbusbind.c (Fdbus_call_method)
6783 (Fdbus_call_method_asynchronously): Use English numeric format for
6784 timeout values in doc string.
6785
d9da2f45
KH
67862009-08-25 Kenichi Handa <handa@m17n.org>
6787
ef73e7be
KH
6788 * alloc.c (mark_char_table): New function.
6789 (mark_object): Use mark_char_table for a char-table.
6790
d9da2f45
KH
6791 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6792 (CHAR_TABLE_REF): Use it.
6793
c8edcc01
KR
67942009-08-23 Ken Raeburn <raeburn@raeburn.org>
6795
6796 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6797 before invoking the newly build emacs to check for load-path
6798 shadowing.
6799
7763401b
GM
68002009-08-22 Glenn Morris <rgm@gnu.org>
6801
6802 * Makefile.in (bootstrap_exe): New variable.
6803 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6804 Use ${bootstrap_exe}.
6805
729eadda
EZ
68062009-08-22 Eli Zaretskii <eliz@gnu.org>
6807
6808 * coding.h (encode_coding_string): Don't encode unibyte strings.
6809 (Bug#4047)
6810
eb4c6ace
MA
68112009-08-22 Michael Albinus <michael.albinus@gmx.de>
6812
6813 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6814
6815 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6816 intended as hotfix only.
6817 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6818
36e34d1b
AR
68192009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6820
6821 * nsterm.m (ns_get_color): Update documentation properly for last
6822 change, and clean up loose ends in the code left by it. Fix
6823 longstanding bug with 16-bit hex parsing, and add support for
6824 yet another X11 format (rgb:r/g/b) for compatibility.
6825 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6826 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6827
f983eb8a
SM
68282009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6829
6830 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6831
3f56d3c6
MA
68322009-08-20 Michael Albinus <michael.albinus@gmx.de>
6833
6834 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6835 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6836 (xd_initialize, xd_pending_messages): Check, whether
6837 $DBUS_SESSION_BUS_ADDRESS is set.
6838
fb641d68
YM
68392009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6840
6841 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6842
6843 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6844
cf59a374
GM
68452009-08-20 Glenn Morris <rgm@gnu.org>
6846
6847 * emacs.c (system-type): Doc fix.
6848
1373f3be
SM
68492009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6850
6851 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6852 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6853
058ed861
MA
68542009-08-18 Michael Albinus <michael.albinus@gmx.de>
6855
1373f3be
SM
6856 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6857 New functions.
058ed861
MA
6858 (xd_initialize): Revert change from 2009-08-16.
6859
563a866e 68602009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6861
6862 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6863 font-group vector, return nil.
5fc05db0 6864
e42bdf01
CY
68652009-08-17 Chong Yidong <cyd@stupidchicken.com>
6866
6867 * process.c (status_notify): Don't perform redisplay.
6868 (Fdelete_process, list_processes_1, process_send_signal):
6869 Expliticly perform redisplay.
6870 (wait_reading_process_output): Always check process status, but
6871 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6872
4230ab74
KR
68732009-08-17 Ken Raeburn <raeburn@raeburn.org>
6874
1373f3be 6875 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6876 (XFLOAT_INIT): New macro for storing a float value.
6877 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6878 * fns.c (sxhash): Copy out the value of a float in order to
6879 examine its bytes.
6880 * dbusbind.c (xd_append_arg): Likewise.
6881
4230ab74
KR
6882 * emacs.c (main): Don't call syms_of_data twice.
6883
a0645cdd
MA
68842009-08-16 Michael Albinus <michael.albinus@gmx.de>
6885
6886 * dbusbind.c (xd_initialize): Add connection file descriptor to
6887 input_wait_mask, in order to let select() detect, whether a new
6888 message has been arrived.
ca4f31ea 6889 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6890
485db0ba
MA
68912009-08-15 Michael Albinus <michael.albinus@gmx.de>
6892
1373f3be
SM
6893 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6894 New functions.
485db0ba
MA
6895
6896 * lisp.h (xd_pending_messages): Declare.
6897
6898 * keyboard.c (readable_events): Call xd_pending_messages.
6899
b5b98ff4
CY
69002009-08-15 Chong Yidong <cyd@stupidchicken.com>
6901
1373f3be 6902 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6903
f8354c6e
CY
6904 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6905
b5b98ff4
CY
6906 * buffer.c (set_buffer_internal_1)
6907 (swap_out_buffer_local_variables): Check for unbound local
6908 variables (Bug#4138).
6909
8b9fc636
EZ
69102009-08-14 Eli Zaretskii <eliz@gnu.org>
6911
6912 * process.c (create_pty): Fix last change.
6913
ce959360
CY
69142009-08-13 Chong Yidong <cyd@stupidchicken.com>
6915
6916 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6917 (xbm_load_image): Caller changed.
64b807c9 6918 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6919
c7baf7e9
NR
69202009-08-13 Nick Roberts <nickrob@snap.net.nz>
6921
6922 * process.c (create_pty): New function.
6923 (Fstart_process): Use it to allow Emacs to just associate a pty
6924 with the buffer. See associated change in gdb-mi.el.
6925 (list_processes_1): Deal with no program name.
6926 (start_process_unwind): Use pid == -2 to mean no process.
6927
1ac9108a
SM
69282009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6929
6930 * cmds.c (nonundocount): New global variable.
6931 (keys_of_cmds): Initialize it.
6932 (Fself_insert_command): Use it to combine upto 20 sequential chars
6933 into a single undo entry, just like the Qself_insert_command code in
6934 keyboard.c does.
6935 Call frame_make_pointer_invisible, also like the Qself_insert_command
6936 code in keyboard.c does.
6937 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6938 than its own local replacement for it.
6939
e267324c
KR
69402009-08-10 Ken Raeburn <raeburn@raeburn.org>
6941
1ac9108a 6942 * fns.c (concat): Don't re-set string length to its current value.
77437343 6943
1ac9108a
SM
6944 * coding.h (decode_coding_string, encode_coding_string):
6945 Use SBYTES macro.
f0bed503 6946
1ac9108a 6947 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6948 (doprnt): Merge with doprnt1, discarding lispstrings code.
6949 * lisp.h (doprnt_lisp): Don't declare.
6950
416e006d
JL
69512009-08-07 Juri Linkov <juri@jurta.org>
6952
6953 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6954
6f7d5780
DN
69552009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6956
6957 * print.c (syms_of_print): Undo previous change.
6958
f19a0f5b
TZ
69592009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6960
6961 * lread.c (read1, syms_of_lread): Read hashtables back from the
6962 readable format.
6963
6964 * print.c (print_preprocess, print_object): Print hashtables fully
6965 and readably.
6966 (syms_of_print): Provide 'hashtable-print-readable.
6967
b9173dc2
AR
69682009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6969
6970 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6971 no family set.
6972 (nsfont_open): Handle case when entity has no family.
6973
1586503c
AR
69742009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6975
6976 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6977 element, not a list, for match case.
6978
087048cd
KH
69792009-07-28 Kenichi Handa <handa@m17n.org>
6980
6981 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6982 rigidly.
6983
6984 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6985 font_parse_xlfd. Check font properties more rigidly.
6986
780c2506
DN
69872009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6988
31fd7c5c
JB
6989 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6990 bsd-common.h.
780c2506 6991
a8c0cc18
KH
69922009-07-27 Kenichi Handa <handa@m17n.org>
6993
6994 * xfaces.c (face_with_height): Call font_clear_prop.
6995
4fbe2306
CY
69962009-07-26 Chong Yidong <cyd@stupidchicken.com>
6997
111d9af3
CY
6998 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6999
7000 * xterm.c (x_term_init): Use Qx.
7001
4fbe2306
CY
7002 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7003
1ac9108a 7004 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7005 (ns_get_color): Revert 2009-07-16 change.
7006
beb0b7f9
EZ
70072009-07-25 Eli Zaretskii <eliz@gnu.org>
7008
7009 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7010 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7011
2baf5e76
KR
70122009-07-25 Ken Raeburn <raeburn@raeburn.org>
7013
1ac9108a
SM
7014 * coding.h (decode_coding_string, encode_coding_string):
7015 Use SCHARS macro.
8890e5f5 7016
2baf5e76 7017 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7018 (load_depth): Delete.
2baf5e76
KR
7019 (Qload_in_progress): New variable.
7020 (load_unwind): Don't reference load_depth or load_in_progress.
7021 (Fload): Likewise; specbind Qload_in_progress instead.
7022 (init_lread): Don't initialize load_depth.
7023 (syms_of_lread): Initialize and protect Qload_in_progress.
7024
1395c6f5
AR
70252009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7026
7027 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7028
4e2f36cf
AR
70292009-07-23 Yavor Doganov <yavor@gnu.org>
7030
7031 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7032
5dd9a6f7
AR
70332009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7034
7035 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7036 Bugs 3792, 3720, 2402.
7037 (ns_lookup_indexed_color): Check for bad index.
7038 (ns_index_color): Init unused slot to 0.
7039 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7040 Bug 3714, possibly 3082.
5dd9a6f7 7041
c902b920
JR
70422009-07-22 Jason Rumney <jasonr@gnu.org>
7043
1ac9108a
SM
7044 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7045 Position IME window at cursor (Bug#2570).
c902b920
JR
7046 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7047 (globals_of_w32fns): Dynamically load functions required above.
7048
7049 * w32term.c (w32_draw_window_cursor): Send message to reposition
7050 any IME window.
7051
090101cf
CY
70522009-07-21 Chong Yidong <cyd@stupidchicken.com>
7053
7054 * fileio.c: Revert 2009-07-16 changes.
7055 (Vauto_save_include_big_deletions): New variable.
7056 (Fdo_auto_save): Disable auto-save only if
7057 auto-save-include-big-deletions is nil.
7058
e6583e3d
CY
70592009-07-21 Chong Yidong <cyd@stupidchicken.com>
7060
7061 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7062 the overflowed pixels into account (Bug#3879).
7063
ece435a5
KR
70642009-07-21 Ken Raeburn <raeburn@raeburn.org>
7065
7066 * lread.c (load_depth): New variable.
7067 (Fload, load_unwind, init_lread): Set it to the load recursion
7068 depth; set load_in_progress as a simple boolean based on the
7069 current load_depth. (Bug#3892)
7070
40b2d973
AR
70712009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7072
7073 * nsfont.m (ns_has_attribute): Remove.
7074 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7075
10be7e0d
JL
70762009-07-18 Juri Linkov <juri@jurta.org>
7077
7078 * process.c (Fset_process_query_on_exit_flag): Mention killing
7079 a buffer in docstring.
7080
fa055055
KH
70812009-07-17 Kenichi Handa <handa@m17n.org>
7082
7083 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7084
042f7b69
YM
70852009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7086
7087 * nsfns.m (Fns_set_alpha): Remove function.
7088 (syms_of_nsfns): Don't defsubr it.
7089
7090 * nsterm.m (ns_get_color): Remove incompatible color formats.
7091 (ns_color_to_lisp): Generate #rrggbb color format string.
7092
4be941e3
RS
70932009-07-16 Richard Stallman <rms@gnu.org>
7094
7095 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7096 (Fset_buffer_auto_saved): Handle save_length = -2.
7097
4e6b227d
CY
70982009-07-16 Chong Yidong <cyd@stupidchicken.com>
7099
7100 * xterm.c (Qx_gtk_map_stock): New var.
7101
7102 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7103 of calling intern each time.
7104
a1856973
YM
71052009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7106
7107 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7108 does tiling.
7109
7110 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7111
497e54d8
KH
71122009-07-14 Kenichi Handa <handa@m17n.org>
7113
72d36834
KH
7114 * font.c (font_vconcat_entity_vectors): New function.
7115 (struct font_sort_data): New member font_driver_preference.
7116 (font_compare): Check font_driver_preference.
7117 (font_sort_entities): The format of the first argument changed.
7118 (font_delete_unmatched): Likewise.
7119 (font_list_entities): The return type changed.
7120 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7121 (font_find_for_lface): Adjuste for the above changes.
7122 Don't suppress the checking of C even if the repertory supports it.
7123 (Flist_fonts): Adjust for the above changes.
72d36834 7124
1ac9108a
SM
7125 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7126 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7127 Reject a font who has adstyle property that is different from a
7128 langname derived from registry property.
1ac9108a 7129 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7130
b6046155
EZ
71312009-07-13 Eli Zaretskii <eliz@gnu.org>
7132
7133 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7134 local copy of dirfilename.
7135
fb6b6049
KH
71362009-07-13 Kenichi Handa <handa@m17n.org>
7137
e2402a5e
KH
7138 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7139 against max_char.
7140
fb6b6049
KH
7141 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7142 calling XSYMBOL (sym).
7143
65156807
EZ
71442009-07-11 Eli Zaretskii <eliz@gnu.org>
7145
1ac9108a
SM
7146 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7147 New function.
7148 (directory_files_internal) [WINDOWSNT]:
7149 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7150 the filesystem of the directory is fast or slow.
7151
7152 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7153 file name.
7154 (is_slow_fs): New function.
7155 (stat): Use it to determine whether to issue more system calls to
7156 get accurate file attributes, when w32-get-true-file-attributes is
7157 `local'.
7158
e0ab5fcf
JD
71592009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7160
7161 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7162 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7163 parameter font-parameter as default to the font dialog.
7164
784ceded
KH
71652009-07-10 Kenichi Handa <handa@m17n.org>
7166
7167 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7168
fb8edc0b
EZ
71692009-07-09 Eli Zaretskii <eliz@gnu.org>
7170
1ac9108a 7171 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7172
fb8edc0b
EZ
7173 * w32.c (stat): Treat UNC file names as residing on remote
7174 drives. (Bug#3542)
7175
635c75b1
KH
71762009-07-09 Kenichi Handa <handa@m17n.org>
7177
7178 * fontset.c (fontset_find_font): Fix previous change.
7179
c1d5ce94
MA
71802009-07-08 Michael Albinus <michael.albinus@gmx.de>
7181
7182 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7183 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7184 error flag.
7185
edb61b39
KH
71862009-07-08 Kenichi Handa <handa@m17n.org>
7187
374bf7e4
KH
7188 * fontset.c (fontset_find_font): Fix the logic of handling
7189 charset_matched.
7190 (font_for_char): Delete unused var.
7191 (generate_ascii_font_name): Delete it.
7192
edb61b39
KH
7193 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7194
7195 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7196 (encode_coding_sjis): Fix the code range check.
7197
0f3f018c
CY
71982009-07-07 Chong Yidong <cyd@stupidchicken.com>
7199
7200 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7201 (Fexpand_file_name): Copy string data properly (Bug#3772).
7202
fcaf6f3a
JD
72032009-07-07 Jan Djärv <jan.h.d@swipnet.se>
7204
7205 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
7206 first MapNotify.
7207
6809ca75
KH
72082009-07-07 Kenichi Handa <handa@m17n.org>
7209
7210 * character.h (unibyte_has_multibyte_table): Delete extern.
7211 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
7212
7213 * charset.c (Fset_charset_priority): Update charset_unibyte.
7214 (syms_of_charset): Initialize charset_unibyte.
7215
7216 * character.c (unibyte_has_multibyte_table): Delete it.
7217 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
7218 charset_unibyte.
7219 (multibyte_char_to_unibyte_safe): Likewise.
7220 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
7221
1ac9108a 7222 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
7223 (x_produce_glyphs): Likewise.
7224
7225 * .gdbinit (xcharset): Fix the treating $arg0.
7226
ad9e2d54
EZ
72272009-07-04 Eli Zaretskii <eliz@gnu.org>
7228
7229 Emulation of `getloadavg' on MS-Windows.
50426a04 7230 * w32.c: Include float.h.
ad9e2d54
EZ
7231 (g_b_init_get_native_system_info, g_b_init_get_system_times)
7232 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
7233 (get_native_system_info, get_system_times): New functions.
7234 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
7235 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
7236 (globals_of_w32): Initialize g_b_init_get_native_system_info,
7237 g_b_init_get_system_times, and num_of_processors.
7238
0a3472c7
JR
72392009-07-03 Jason Rumney <jasonr@gnu.org>
7240
7241 * w32term.c (w32_initialize): Use standard types.
7242
80904120
EZ
72432009-07-03 Eli Zaretskii <eliz@gnu.org>
7244
7245 * dired.c (Ffile_attributes): Decode user and group names by the
7246 locale's encoding. (Bug#3443)
7247
6978862d
DN
72482009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
7249
f8d23104
DN
7250 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
7251 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
7252
7253 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
7254
7255 * term.c (init_tty): Remove spurious #ifdef.
7256
6978862d
DN
7257 * m/mips.h: Mention this file is also used for netbsd.
7258 * m/pmax.h: Remove file.
7259
e044e4fc
JD
72602009-07-03 Jan Djärv <jan.h.d@swipnet.se>
7261
7262 * xterm.h (struct x_display_info): Add invisible_cursor.
7263 (struct x_output): Add current_cursor.
7264
7265 * xterm.c (XTtoggle_invisible_pointer): New function.
7266 (x_define_frame_cursor): Don't define cursor if invisible or the
7267 same as before. Set current_cursor.
7268 (x_create_terminal): Set toggle_invisible_pointer_hook.
7269
7270 * xfns.c (make_invisible_cursor): New function.
7271 (x_set_mouse_color): Call make_invisible_cursor.
7272 Set current_cursor.
7273 (x_window): Set current_cursor.
7274
7275 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
7276
7277 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
7278 inserting a character.
7279 (read_avail_input): Call frame_make_pointer_visible.
7280
7281 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
7282 (frame_make_pointer_invisible, frame_make_pointer_visible):
7283 New functions.
e044e4fc
JD
7284 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
7285
7286 * frame.h: Declare frame_make_pointer_invisible and
7287 frame_make_pointer_visible.
7288 (struct frame): Add pointer_invisible.
7289
574c8efa
JD
72902009-07-02 Jan Djärv <jan.h.d@swipnet.se>
7291
7b507248
JD
7292 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
7293 frame isn't visible.
7294 (xg_frame_resized): If width/height is -1, get size of window
7295 from X server.
7296
7297 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
7298 for MapNotify.
7299
835bdaa7 7300 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 7301 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 7302 (flush_and_sync): Reintroduce.
574c8efa 7303
3f1c6666 73042009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 7305
31fd7c5c 7306 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
7307
7308 * xterm.c (x_handle_net_wm_state): Also look for sticky.
7309 (x_term_init): Initialize Xatom_net_wm_state_sticky.
7310
7311 * frame.h: Declare Qsticky.
7312
cad9ef74
JD
7313 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
7314
7315 * nsfns.m (ns_frame_parm_handlers): Ditto.
7316
7317 * frame.c: Declare Qsticky.
7318 (frame_parms): Add sticky.
7319
7320 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
7321
7322 * xterm.h: Declare x_set_sticky.
7323
7324 * xterm.c (x_set_sticky): New function.
7325
69b16610
JD
7326 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
7327 (xg_tool_bar_menu_proxy): Attach enter/leave events to
7328 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
7329
7330 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
7331
7332 * frame.c: Qmaximized is new.
7333 (x_set_frame_parameters): Do not handle fullscreen specially.
7334 Only set width and height if explicitly set.
7335 (x_set_fullscreen): Handle Qmaximized.
7336 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7337 (syms_of_frame): Initialize Qmaximized.
7338
1ac9108a
SM
7339 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7340 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7341
7342 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7343 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7344 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7345 set gravity to NorthWestGravity when USE_GTK.
7346 (set_wm_state): New function.
31fd7c5c 7347 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7348 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7349 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7350 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7351 to x_real_positions and x_fullscreen_adjust.
7352
7353 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7354 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7355 flush_and_sync.
7356 (xg_height_changed): New function.
7357 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7358 and gtk_window_set_policy. Set frame gravity after parsing the
7359 geometry string.
3f1c6666
JD
7360 (xg_update_frame_menubar, free_frame_menubar)
7361 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7362 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7363 Remove calls to xg_frame_set_char_size.
7364
fd503d99
KH
73652009-07-01 Kenichi Handa <handa@m17n.org>
7366
7367 * keyboard.c (decode_keyboard_code): New function.
7368 (tty_read_avail_input): Decode the input bytes if necessary.
7369
1ac9108a
SM
7370 * coding.c (setup_coding_system):
7371 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7372 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7373 use Qno_conversion.
7374
24ed93fb
YM
73752009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7376
7377 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7378
99061dfc
CY
73792009-06-30 Chong Yidong <cyd@stupidchicken.com>
7380
1ac9108a 7381 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7382
ff90fbde
JR
73832009-06-30 Jason Rumney <jasonr@gnu.org>
7384
7385 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7386 is already loaded.
7387 Set user model ID if supported (bug#1849).
7388
5f445726
JM
73892009-06-29 Jim Meyering <meyering@redhat.com>
7390
7391 Remove useless if-before-xfree test.
7392 * nsfont.m (nsfont_close): Remove useless test.
7393 * term.c (delete_tty): Likewise.
7394 * w32.c (system_process_attributes): Likewise.
7395 * w32font.c (w32font_close): Likewise.
7396 * xfaces.c (x_free_gc): Likewise.
7397 * xselect.c (buffer): Likewise.
7398
b9607587
AS
73992009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7400
7401 * process.c (send_process): Keep decoded string in a local
7402 variable and protect it from GC. (Bug#3521)
7403
89ba96f4
EZ
74042009-06-28 Eli Zaretskii <eliz@gnu.org>
7405
7406 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7407 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7408
098a1589
CY
74092009-06-28 Chong Yidong <cyd@stupidchicken.com>
7410
485422be
CY
7411 * xdisp.c (start_display, handle_face_prop)
7412 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7413 (redisplay_window, try_window_id, produce_image_glyph):
7414 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7415
098a1589
CY
7416 * xterm.c (x_update_window_begin, x_new_focus_frame)
7417 (x_scroll_bar_handle_click, handle_one_xevent)
7418 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7419 (x_make_frame_visible, x_make_frame_invisible)
7420 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7421 code chunks that are now obsolete.
7422
78c38319
MA
74232009-06-28 Michael Albinus <michael.albinus@gmx.de>
7424
7425 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7426 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7427 for hours, when optimzation is enabled.
7428 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7429 (xd_read_message): Make them static.
7430
4189ed40
CY
74312009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7432
7433 * term.c (turn_on_face): Allow simultaneously bold and dim
7434 terminal faces (Bug#3530).
7435
cd9b5e16
CY
74362009-06-27 Chong Yidong <cyd@stupidchicken.com>
7437
4e23bedb
CY
7438 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7439
cd9b5e16
CY
7440 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7441 truncation glyphs (Bug#3686).
7442
07cc3c35
GM
74432009-06-27 Glenn Morris <rgm@gnu.org>
7444
7445 * m/pmax.h: Restore file, with only netbsd portions.
7446
31fd7c5c 74472009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7448
cd9b5e16 7449 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7450
42d4a64f
KH
74512009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7452
7453 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7454 the arg FORCE_SYMBOL.
7455
930fe55b 74562009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7457
7458 * fontset.c (fontset_find_font): When a usable rfont_def is found
7459 in a fallback font-group, make it the first element of the group.
7460
57ebc3fd
CY
74612009-06-24 Chong Yidong <cyd@stupidchicken.com>
7462
7463 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7464
f084f942
KH
74652009-06-24 Kenichi Handa <handa@m17n.org>
7466
7467 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7468 set for C.
7469 (fontset_font): Record the availability of a font for C both in
7470 the realized fontsets of the current one and the default one.
7471
2f686c87
DN
74722009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7473
7474 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7475 conditional, it is always defined on AIX.
7476
666e158e
MB
74772009-06-23 Miles Bader <miles@gnu.org>
7478
7479 * window.c (Vrecenter_redisplay): New variable.
7480 (syms_of_window): Initialize it.
7481 (Qtty): New extern declaration.
7482 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7483
c6da7cd2
JM
74842009-06-23 Jim Meyering <meyering@redhat.com>
7485
1ac9108a
SM
7486 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7487 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7488 pointer dereferences are guaranteed to be valid.
c6da7cd2 7489
678dca3d
KH
74902009-06-23 Kenichi Handa <handa@m17n.org>
7491
74d75424
KH
7492 * emacs.c (main): Call init_font ().
7493
7494 * font.h (Vfont_log): Extern it.
7495 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7496
7497 * font.c (font_sort_entities, font_list_entities)
7498 (font_matching_entity, font_open_entity)
7499 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7500 (Vfont_log): Delete static.
7501 (font_log_env_checked): Delete this variable.
7502 (font_add_log): Don't check font_log_env_checked.
7503 (font_deferred_log): Check Vfont_log.
7504 (init_font): New function.
7505
678dca3d
KH
7506 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7507
7508 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7509
7510 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7511
7512 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7513
7514 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7515 (face_for_char): Don't call font_deferred_log here.
7516 (font_for_char): Likewise.
7517
8a668709
CY
75182009-06-22 Chong Yidong <cyd@stupidchicken.com>
7519
9a01ee33
CY
7520 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7521 rather than its background_width for drawing the overline and
7522 underline (Bug#489).
7523
7524 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7525 rather than its background_width for drawing the overline and
7526 underline (Bug#489).
ec7c9926
CY
7527 (xg_default_icon_file): New variable.
7528 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7529 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7530
8a668709
CY
7531 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7532 (load_overlay_strings): Remove externs.
7533 (fast_find_position): Function deleted.
7534 (mouse_face_from_buffer_pos): New function, based on
7535 fast_find_position. Correctly handle before-strings,
7536 display-strings, and after-strings (Bug#1220).
7537 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7538
4d4c02d8
CY
75392009-06-21 Chong Yidong <cyd@stupidchicken.com>
7540
1ac9108a 7541 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7542 (move_it_in_display_line_to, move_it_in_display_line_to)
7543 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7544
70243478
CY
75452009-06-21 Chong Yidong <cyd@stupidchicken.com>
7546
7547 * Branch for 23.1.
7548
13087e59
JR
75492009-06-21 Jason Rumney <jasonr@gnu.org>
7550
7551 * w32term.c (keyboard_codepage): New static variable.
7552 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7553 (w32_read_socket) [WM_CHAR]: Use it to decode character
7554 input (bug#3237).
7555 (w32_initialize): Initialize it.
7556 (codepage_for_locale): New function.
7557
4735b74e
KR
75582009-06-20 Ken Raeburn <raeburn@raeburn.org>
7559
7560 * process.c (status_message): Pass Faset index argument as a lisp
7561 object, so as to work with USE_LISP_UNION_TYPE.
7562
0e727afa
YM
75632009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7564
7565 * coding.c (Ffind_coding_systems_region_internal):
7566 Cache checked characters.
7567
cf299835
KH
75682009-06-18 Kenichi Handa <handa@m17n.org>
7569
1ac9108a 7570 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7571
90f20d94
AS
75722009-06-18 Andreas Schwab <aschwab@redhat.com>
7573
7574 * xdisp.c (redisplay_internal): Check that the frame is still
7575 live after redisplay of its windows.
7576 (redisplay_windows): Check that the window is still live.
7577
7f1faf1c
KH
75782009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7579
7580 * coding.c (detect_coding_utf_16): Fix previous change.
7581
cc13543e
KH
75822009-06-16 Kenichi Handa <handa@m17n.org>
7583
7584 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7585 UTF-16 by checking the dispersion of Eth and Oth bytes.
7586
977b85f4
AS
75872009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7588
7589 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7590
66bd43d1
KH
75912009-06-15 Kenichi Handa <handa@m17n.org>
7592
7593 * process.c (status_message): Fix previous change. Be sure to
7594 decode a localized string.
7595
cb5ca9c5
YM
75962009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7597
7598 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7599 add comment explaining why.
7600
ec7709ba 76012009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7602
ec7709ba 7603 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7604
4b7f335c
AR
76052009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7606
7607 * nsfont.m (ns_attribute_value): Remove.
7608 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7609 (ns_has_attribute): Shrink the normal range.
7610 (ns_findfonts): Don't worry about requested spec in determining
7611 need for synthItal.
e41820ee 7612 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7613
73b26103
SZ
76142009-06-14 Seiji Zenitani <zenitani@mac.com>
7615
7616 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7617
5753e4da
KH
76182009-06-11 Kenichi Handa <handa@m17n.org>
7619
7620 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7621 overhang for the static composition case.
7622
3561b671
KH
76232009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7624
5753e4da
KH
7625 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7626 overhang for the automatic composition case.
7627
3561b671
KH
7628 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7629 composition case.
7630
852bbd41
CY
76312009-06-10 Chong Yidong <cyd@stupidchicken.com>
7632
7633 * xdisp.c (get_next_display_element): When handling wrap-prefix
7634 and line-prefix, treat \n as a control character (bug#3502).
7635
9903d1e6
KH
76362009-06-10 Kenichi Handa <handa@m17n.org>
7637
7638 * font.c (font_parse_family_registry): Fix for one-char foundry.
7639 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7640
0bcbaaaa
CY
76412009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7642
7643 * process.c (status_message): Fix handling of multibyte signal
7644 string (Bug#3499).
7645
40aa3f13
JM
76462009-06-09 Jim Meyering <meyering@redhat.com>
7647
1f80c7e2
CY
7648 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7649 color name is missing.
40aa3f13 7650
72d51285
KH
76512009-06-09 Kenichi Handa <handa@m17n.org>
7652
7653 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7654 FROM-CODE and TO-CODE are codepoints of CHARSET.
7655
c1d04d84
AR
76562009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7657
7658 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7659
76602009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7661
7662 Changes to support :script/:lang/:otf in NS font driver.
7663 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7664 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7665 indicate not part of font driver interface, and change callers.
7666 (ns_get_family): Remove pointless null check.
7667 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7668 ns_spec_to_descriptor, ns_descriptor_to_entity.
7669 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7670 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7671 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7672 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7673 (ns_get_req_script, ns_accumulate_script_ranges)
7674 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7675 New functions.
7676 (nsfont_list, nsfont_match): Use ns_findfonts.
7677 (nsfont_open): Use font descriptor instead of traits.
7678 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7679 (dump_glyphstring): Rename to ns_dump_glyphstring.
7680
c7eb9816
AR
7681 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7682
c1d04d84
AR
7683 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7684
7685 * fontset.c (fontset_from_font): Remove NS-specific code.
7686
ec7709ba 76872009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7688
7689 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7690 nonactive windows.
7691
31fd7c5c 76922009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7693
1ac9108a 7694 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7695
68852c13 76962009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7697
7698 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7699
6756cd1d
CY
77002009-06-07 Chong Yidong <cyd@stupidchicken.com>
7701
7702 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7703 account for the overflowing of newlines into the last glyph on the
7704 display line (Bug#3482).
7705
28bf482a
DR
77062009-06-05 David Reitter <david.reitter@gmail.com>
7707
ec7709ba
JB
7708 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7709 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7710 Fns_selection_exists_p, Fns_selection_owner_p.
7711
fdb55376
JR
77122009-06-03 Jason Rumney <jasonr@gnu.org>
7713
7714 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7715 available. (Bug#3379)
7716
05129fbe
KH
77172009-05-29 Kenichi Handa <handa@m17n.org>
7718
1ac9108a
SM
7719 * coding.c (get_translation_table):
7720 Check Venable_character_translation.
05129fbe 7721
ec7709ba 77222009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7723
ec7709ba
JB
7724 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7725 (x_make_frame_visible): Move frame to front rather than calling
15891144 7726 ns_raise_frame().
ec7709ba 7727 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7728 isn't key window.
ec7709ba 7729 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7730 drawRect may be called by NSView even if the frame is hidden.
7731
ec7709ba
JB
7732 * nsfns.m (Fx_create_frame): Follow other ports in
7733 determining visibility; default to t. Ensure async_visible is set.
15891144 7734
21f73755
EZ
77352009-05-23 Eli Zaretskii <eliz@gnu.org>
7736
7737 * dired.c (Ffile_attributes): Doc fix.
7738
34001e41
CY
77392009-05-22 Chong Yidong <cyd@stupidchicken.com>
7740
7741 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7742
46306a17
SM
77432009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7744
7745 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7746 and xfont_scratch_props.
7747 (syms_of_xfont): Do it here instead.
7748 (xfont_find_ccl_program): Delete, unused.
7749 (xfont_open): Delete unused var `i'.
7750
ef6e0694
KH
77512009-05-21 Kenichi Handa <handa@m17n.org>
7752
7753 * fontset.c (Qlatin): Don't make it static.
7754
46306a17
SM
7755 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7756 New functions.
ef6e0694
KH
7757 (xfont_scripts_cache, xfont_scratch_props): New variables.
7758 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7759 (xfont_list_pattern): Argument changed. Callers changed.
7760 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7761 (xfont_list): Don't reject a font spec with :script property.
7762 (xfont_has_char): Fix setting of encoding.
7763 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7764 xfont_scratch_props.
7765
77662009-05-19 Kenichi Handa <handa@m17n.org>
7767
46306a17 7768 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7769 Callers changed.
7770
77712009-05-18 Kenichi Handa <handa@m17n.org>
7772
7773 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7774
ac71ced7
SM
77752009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7776
7777 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7778 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7779
1c6d1051
YM
77802009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7781
7782 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7783 (x_delete_terminal): Dissociate resource database from display and
7784 then call XrmDestroyDatabase before closing display.
7785
9b9b779c
AR
77862009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7787
7788 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7789 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7790 whether selected frame is viable before raising it (based on patch
7791 by David Reitter), and improve commentary.
7792 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7793
cccd42d5
KH
77942009-05-15 Kenichi Handa <handa@m17n.org>
7795
7796 * font.c (Ffont_spec): Check arguments.
7797
337fbd17
CY
77982009-05-14 Chong Yidong <cyd@stupidchicken.com>
7799
7800 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7801 weight when testing attributes (Bug#3282).
7802
47a6002f
JD
78032009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7804
7805 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7806 what we expect to get in the next ConfigureNotify event.
7807
9cb363db
YM
7808 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7809 before Xft one (Bug#1696).
7810
b9126609
CY
78112009-05-07 David Reitter <david.reitter@gmail.com>
7812
7813 * nsfns.m (Fx_display_planes): Compute bitplanes using
7814 NSBitsPerPixelFromDepth (Bug#3207).
7815
27a69fd9
CY
78162009-05-10 Chong Yidong <cyd@stupidchicken.com>
7817
7818 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7819
00f37552
TTN
78202009-05-10 Ulrich Mueller <ulm@gentoo.org>
7821
7822 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7823
2d82a920
DR
78242009-05-07 David Reitter <david.reitter@gmail.com>
7825
ec7709ba
JB
7826 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7827 Respect mouse face background.
2d82a920 7828
46b0d52d
DR
78292009-05-07 David Reitter <david.reitter@gmail.com>
7830
ec7709ba
JB
7831 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7832 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7833 in ns_update_begin and ns_update_end.
7834
ce1b23bb
SM
78352009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7836
5996e1b7
SM
7837 * nsfns.m (ns_get_screen): Rewrite.
7838 Don't presume selected-frame is of type `ns'.
7839
ba98e3a0
SM
7840 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7841 all drivers.
7842
ce1b23bb
SM
7843 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7844
bcda200f
YM
78452009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7846
7847 * keyboard.h (add_user_signal): Fix typo in extern.
7848
7849 * lisp.h (add_user_signal): Remove extern.
7850
7851 * unexelf.c (unexec): Consider a section to precede the .bss section
7852 if its addresses overlap that of .bss.
7853 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7854 instead of dumping process.
7855
864660a2
SM
78562009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7857
7858 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7859
50da4e56
SM
78602009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7861
7862 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7863
51520a1a
DN
78642009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7865
7866 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7867 any statements.
7868
409ea3a1
AS
78692009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7870
59c4c60f
AS
7871 * process.c (read_process_output): Make sure the current buffer is
7872 always restored.
7873
409ea3a1
AS
7874 * coding.c (record_conversion_result): Don't modify
7875 Vlast_code_conversion_error for successful result.
7876 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7877
56f00ed2
KH
78782009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7879
7880 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7881 (load_charset_map): Remove unnecessary code.
56f00ed2 7882
4491c9d2
DR
78832009-04-30 David Reitter <david.reitter@gmail.com>
7884
35f5b128 7885 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7886 through f24.
7887
6970f632
CY
78882009-04-30 Chong Yidong <cyd@stupidchicken.com>
7889
7890 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7891
7892 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7893 face_at_buffer_position.
7894 (face_before_or_after_it_pos, get_next_display_element)
7895 (note_mouse_highlight): Update face_at_buffer_position call.
7896
7897 * term.c (term_mouse_highlight):
7898 * msdos.c (IT_note_mouse_highlight):
7899 * fontset.c (Finternal_char_font):
35f5b128 7900 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7901
7902 * dispextern.h (face_at_buffer_position): Update prototype.
7903
0c616f63
KH
79042009-04-30 Kenichi Handa <handa@m17n.org>
7905
35f5b128 7906 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7907
ad3aaf33
AS
79082009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7909
7910 * callproc.c (Fcall_process): Fix GC protection. Make sure
7911 current buffer is always restored.
7912
c3c963a0
YM
79132009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7914
7915 * atimer.c (init_atimer): Also clear stopped_atimers.
7916
7917 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7918
7e3386cb
YM
7919 * process.c (create_process): Clean up merger residues of
7920 2008-07-17 change.
7921
91f68422
CY
79222009-04-29 Ulrich Mueller <ulm@gentoo.org>
7923
7924 * lread.c (Vread_circle): New variable.
7925 (read1): Disable recursive read if Vread_circle is nil.
7926
24b34550
KH
79272009-04-29 Kenichi Handa <handa@m17n.org>
7928
7929 * fontset.h (set_default_ascii_font): Delete extern.
7930
7931 * fontset.c (set_default_ascii_font): Delete this unused function.
7932
7933 * frame.c (x_set_font): When ARG is a font-object, check if the
7934 font-object matches with the ASCII font-spec of the frame's
9c358bda 7935 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7936
77bf07e1
AS
79372009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7938
7939 * fns.c (Flocale_info): Protect vector from GC during decoding.
7940
7941 * process.c (Fstart_process): Protect argv strings from GC during
7942 encoding.
7943
2c55aacf
AS
79442009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7945
7946 * sysdep.c: Include <ctype.h>.
7947
b892d3c9
DR
79482009-04-27 David Reitter <david.reitter@gmail.com>
7949
35f5b128 7950 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7951 Remove commented-out code.
7952
9d0644c4
JB
79532009-04-26 Johan Bockgård <bojohan@gnu.org>
7954
7955 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7956
b7053016
JR
79572009-04-25 Jason Rumney <jasonr@gnu.org>
7958
7959 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7960
4e8231f3
YM
79612009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7962
7963 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7964 Swap bytes in short integer if fringe bitmap width > 8.
7965
493dcf2c
KH
79662009-04-23 Kenichi Handa <handa@m17n.org>
7967
7968 * xfaces.c (Fx_list_fonts): If a font size is specified in
7969 PATTERN, set it in returned scalable fonts.
7970
401e9e57
CY
79712009-04-22 Chong Yidong <cyd@stupidchicken.com>
7972
708e05dc
CY
7973 * keyboard.c (Fset_input_meta_mode): Doc fix.
7974
7975 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7976
1ac9108a 7977 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7978
7979 * coding.c (Fterminal_coding_system): Doc fix.
7980
7981 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7982 (Fx_display_pixel_height, Fx_display_planes)
7983 (Fx_display_color_cells, Fx_server_max_request_size)
7984 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7985 (Fx_display_mm_height, Fx_display_mm_width)
7986 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7987 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7988 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7989 (check_x_display_info): Handle terminal objects instead of
7990 terminal ids.
7991
401e9e57
CY
7992 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7993 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7994 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7995 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7996
df80c7f0
KH
79972009-04-21 Kenichi Handa <handa@m17n.org>
7998
5a8f12af 7999 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8000 (font_score): Check AVGWIDTH too.
908567ef 8001
df80c7f0
KH
8002 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8003 worst case.
1ac9108a
SM
8004 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8005 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8006
705af33f
JR
80072009-04-19 Jason Rumney <jasonr@gnu.org>
8008
8009 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8010 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8011
8012 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8013 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8014 get_phys_cursor_geometry.
8015
b71ac3dd 8016 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8017 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8018 using get_phys_cursor_geometry.
8019
8020 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8021 correctly calculated.
8022
dc2933eb
JD
80232009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8024
1ac9108a
SM
8025 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8026 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8027 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8028 is deprecated.
8029
973e7849
AS
80302009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8031
8032 * font.c (font_put_frame_data): Use xfree instead of free.
8033
314d66f4
JB
80342009-04-17 Juanma Barranquero <lekktu@gmail.com>
8035
8036 * w32font.c (Qja, Qko): Remove declarations.
8037 (syms_of_w32font): Don't DEFSYM them.
8038
cf702558
CY
80392009-04-17 Chong Yidong <cyd@stupidchicken.com>
8040
8041 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8042
8043 * font.h (Qja, Qko): Extern them.
8044
8045 * ftfont.c (Qja, Qko): Remove declarations.
8046
8047 * xfont.c (Qja, Qko): Remove declarations.
8048
b50504f5
KH
80492009-04-17 Kenichi Handa <handa@m17n.org>
8050
bde25748
KH
8051 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8052 string from a vector to handle Latin-1 characters correctly.
8053
b50504f5
KH
8054 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8055 entity even if the cache hits.
8056
f4646fff
AS
80572009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8058
8059 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8060 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8061
e7deaab0
AS
8062 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8063 * lisp.h: Adjust prototypes.
8064
0a0e7d49
CY
80652009-04-16 Chong Yidong <cyd@stupidchicken.com>
8066
8067 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8068 change (Bug#3003).
8069
3c908a57
KH
80702009-04-16 Kenichi Handa <handa@m17n.org>
8071
1ac9108a 8072 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8073
8074 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8075 adstyle.
8076
8077 * ftfont.c (Qja, Qko): Don't make them static.
8078 (enum ftfont_cache_for): New enum.
8079 (fc_charset_table): Undo the previous change.
8080 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8081 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8082 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8083 non-scarable font, try to get AVERAGE_WIDTH.
8084 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8085 Change ft_face_cache from a list of a hash-table. Don't check
8086 `ja' and `ko' adstyle here.
8087 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8088 FTFONT_CACHE_FOR_CHARET.
8089 (ftfont_get_charset): Undo the previous change.
1ac9108a 8090 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8091 (ftfont_close): Likewise.
8092 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8093
8094 * font.c (font_sort_entites): Change the meaning of the arg
8095 BEST-ONLY. Don't optimize for VEC of lenght 1.
8096 (font_select_entity): Just return the value of font_sort_entites.
8097
8098 * xfaces.c (merge_face_vectors): Reflect font properties in
8099 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8100 font_clear_prop if a face attribute doesn't change.
8101
3c908a57
KH
8102 * charset.h (charset_ksc5601): Extern it.
8103
8104 * charset.c (charset_ksc5601): New variable.
8105 (Fdefine_charset_internal): Set charset_ksc5601.
8106 (init_charset_once): Initialize charset_ksc5601 to -1.
8107
d65859c3
DN
81082009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8109
8110 * fileio.c (history_delete_duplicates): Remove unused declaration.
8111
8112 * callint.c (history_delete_duplicates): New declaration.
8113 (Fcall_interactively): Remove command history duplicates when
8114 history_delete_duplicates is true.
8115
3ba010e5
EZ
81162009-04-14 Eli Zaretskii <eliz@gnu.org>
8117
8118 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8119
06f19b91
KH
81202009-04-14 Kenichi Handa <handa@m17n.org>
8121
8122 * font.c (Ffont_info): Fix docstring. Fix the second element of
8123 the returned value (bug#2949).
8124
2cce8bfc
CY
81252009-04-14 Chong Yidong <cyd@stupidchicken.com>
8126
8127 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8128
d156542d
KH
81292009-04-14 Kenichi Handa <handa@m17n.org>
8130
8131 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8132 encoding charset is ascii_compatible.
8133
8134 * charset.c (Fdefine_charset_internal): Make charset
8135 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8136 code_offset is 0, and covers all ASCII characters.
8137
86fa089e
SM
81382009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8139
8140 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8141 (ns_string_to_pasteboard_internal):
8142 * nsmenu.m (process_dialog):
8143 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8144 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8145 * lisp.h (Fx_load_color_file): Declare.
8146
a8a3728b
KH
81472009-04-13 Kenichi Handa <handa@m17n.org>
8148
1ac9108a 8149 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8150 (font_select_entity): Suppress the code to optimize for the same
8151 kind of fonts.
8152 (font_load_for_lface): Get a font that supports at least ASCII
8153 characters.
8154
8155 * ftfont.c (Qja, Qko): New variables.
8156 (fc_charset_table): Delete uniquifier data for iso8859-1.
8157 (ftfont_get_latin1_charset): New function.
8158 (get_adstyle_property): New function.
8159 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8160 bitmap fonts.
8161 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8162 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8163 `ko' or `ja'.
8164 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8165 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8166 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8167 property.
8168 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8169 (syms_of_ftfont): DEFSYM Qja and Qko.
8170
483670b5
KH
81712009-04-09 Kenichi Handa <handa@m17n.org>
8172
12b55765
KH
8173 * charset.c (map_charset_chars): For a charset of `superset'
8174 method, fix calculation of code range.
8175
483670b5
KH
8176 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8177 from the list of extra properties.
8178 (font_clear_prop): Be sure to delete `:name' font property.
8179
57d3b93b
KH
81802009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8181
b4b2c2ca
YM
8182 * dispnew.c (redraw_overlapping_rows): Fix detection of
8183 overlapping for topmost and bottommost rows.
8184
1ac9108a 8185 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8186
472c3609
JR
81872009-04-06 Jason Rumney <jasonr@gnu.org>
8188
8189 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8190
ab193662
KH
81912009-04-06 Kenichi Handa <handa@m17n.org>
8192
8193 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8194
8195 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8196
0c26f026
KH
81972009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8198
8199 * ftfont.c (ftfont_open): Fix checking of the return value of
8200 FT_Load_Char. Fix setting font->underline_thickness.
8201
e173bbce
CY
82022009-04-04 Chong Yidong <cyd@stupidchicken.com>
8203
8204 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
8205 (Fterminal_parameters, Fterminal_parameter)
8206 (Fset_terminal_parameter): In doc string, refer to terminal
8207 objects rather than terminal ids.
8208
693a2698
EZ
82092009-04-04 Eli Zaretskii <eliz@gnu.org>
8210
8211 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
8212 ret_lim_data. (Bug#2867)
8213
d5221487
CY
82142009-04-03 Chong Yidong <cyd@stupidchicken.com>
8215
8216 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
8217 so they don't get wider than the window, matching 2006-01-23
8218 change to the partner function in xdisp.c (Bug#2800).
8219
223509a3
KH
82202009-04-03 Kenichi Handa <handa@m17n.org>
8221
8222 * print.c (print_object): Make each lowest sub_char_table start a
8223 new line (Bug#2866).
8224
74fcd0b1
KH
82252009-04-02 Kenichi Handa <handa@m17n.org>
8226
8227 * fontset.c (fontset_font): Record no-font when a fontset
8228 explicitly tells not to try another font-specs.
8229
c542407d
SM
82302009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
8231
8232 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
8233
e3869731
KH
82342009-03-30 Kenichi Handa <handa@m17n.org>
8235
d8d2f142
KH
8236 * fontset.c (fontset_from_font): Specify only registry in a
8237 font-spec for all characters supported by that registry.
8238
e3869731
KH
8239 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
8240 even if HAVE_M17N_FLT is not defined.
8241
5da5f805
CY
82422009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
8243
8244 * ftfont.c: Conditionalize prototyping and use of
8245 ftfont_variation_glyphs.
8246
ab226c50
SM
82472009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
8248
9628fed7
SM
8249 * frame.c (delete_frame): Work around compiler bug.
8250
8251 * editfns.c (general_insert_function): Adjust to insdel.c changes.
8252 * insdel.c (prepare_to_modify_buffer, signal_before_change):
8253 Some more EMACS_INT.
8254 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
8255
8256 * xdisp.c (dump_glyph): Fix typo.
8257
ae19ba7c
SM
8258 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
8259 (adjust_markers_gap_motion, adjust_markers_for_delete)
8260 (adjust_markers_for_insert, adjust_point)
8261 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
8262 (make_gap, copy_text, count_size_as_multibyte, insert)
8263 (insert_and_inherit, insert_before_markers)
8264 (insert_before_markers_and_inherit, insert_1)
8265 (count_combining_before, count_combining_after, insert_1_both)
8266 (insert_from_string, insert_from_string_before_markers)
8267 (insert_from_string_1, insert_from_gap, insert_from_buffer)
8268 (insert_from_buffer_1, adjust_after_replace)
8269 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
8270 (replace_range_2, del_range, del_range_1, del_range_byte)
8271 (del_range_both, del_range_2, modify_region)
8272 (prepare_to_modify_buffer, signal_before_change)
8273 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
8274 for buffer positions and sizes.
8275 * lisp.h: Adjust prototypes accordingly.
8276
8277 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
8278 (non_regular_inserted, non_regular_nbytes, read_non_regular)
8279 (Finsert_file_contents): Use EMACS_INT for buffer positions.
8280
ab226c50
SM
8281 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
8282
46dfb8fb
JD
82832009-03-27 Jan Djärv <jan.h.d@swipnet.se>
8284
8285 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
8286 lines and columns so we keep the same pixel height and width.
8287
8288 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
8289 the property _NET_WM_STATE has changed.
46dfb8fb
JD
8290 (x_handle_net_wm_state): New function to update frame parameter
8291 fullscreen.
8292 (x_term_init): Initialize atoms for _NET_WM_STATE.
8293
8294 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
8295
d347e494
SM
82962009-03-27 Kevin Ryde <user42@zip.com.au>
8297
8298 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
8299 Gpm_GetEvent as an error that justifies closing the filedescriptor.
8300 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
8301 (Fgpm_mouse_stop): Pass that new parameter.
8302 * termhooks.h (close_gpm): Adjust prototype.
8303
84db11d6
SM
83042009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
8305
c95a5008
SM
8306 * lisp.h (Fx_focus_frame): Declare.
8307
84db11d6
SM
8308 * callint.c (Fcall_interactively): For '^' just delegate the work to
8309 handle-shift-selection.
8310 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
8311
0a1958d6
CY
83122009-03-24 Chong Yidong <cyd@stupidchicken.com>
8313
0bfdff23
CY
8314 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
8315
0a1958d6
CY
8316 * data.c (Qinteractive_form): New variable.
8317 (Finteractive_form): Use it.
8318
8319 * eval.c (Fcommandp): Use Qinteractive_form.
8320
58aec0d6
JR
83212009-03-24 Jason Rumney <jasonr@gnu.org>
8322
8323 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
8324 Calculate total size precisely. Decode environment variables
8325 before substituting. (Bug#38)
8326
553dd618
KH
83272009-03-24 Kenichi Handa <handa@m17n.org>
8328
8329 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 8330 encoding (Bug#2722).
553dd618 8331
c39ea606
JD
83322009-03-23 Jan Djärv <jan.h.d@swipnet.se>
8333
8334 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
8335 that gdpy is set.
8336
bc9b2b5e
AM
83372009-03-22 Alan Mackenzie <acm@muc.de>
8338
8339 * callint.c (Finteractive): Clarify the doc string - even
8340 promptless elements need \n separators.
8341
9f995a76
JR
83422009-03-22 Jason Rumney <jasonr@gnu.org>
8343
8344 * w32term.c (syms_of_w32term): Doc fix for
8345 x-use-underline-position-properties.
8346
22749e9a
EZ
83472009-03-21 Eli Zaretskii <eliz@gnu.org>
8348
8349 * w32.c (getpwuid): Change argument type to unsigned.
8350 (struct w32_id): Change type of `rid' member to unsigned.
8351 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8352 argument ID to unsigned. All callers changed.
8353 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8354
e00553bf
EZ
83552009-03-20 Eli Zaretskii <eliz@gnu.org>
8356
8357 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8358 negative, produce a float value.
8359
8360 * dired.c (make_uid, make_gid): New functions.
8361 (Ffile_attributes): Use them to avoid negative UID and GID.
8362
f761d6b6
JB
83632009-03-20 Juanma Barranquero <lekktu@gmail.com>
8364
8365 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8366 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8367 Fix typos in docstrings.
8368
d507f8d7
KH
83692009-03-19 Kenichi Handa <handa@m17n.org>
8370
8371 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8372 changed, use font_load_for_lface to get a new font object.
8373 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8374
8375 * frame.c (x_set_font): Handle the case that ARG is a cons.
8376
c68845e0
GM
83772009-03-19 Glenn Morris <rgm@gnu.org>
8378
8379 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8380
bfa49dd1
CY
83812009-03-19 Chong Yidong <cyd@stupidchicken.com>
8382
8383 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8384
8458d4c1
KH
83852009-03-19 Kenichi Handa <handa@m17n.org>
8386
8387 * charset.c (load_charset_map_from_file): When a mapfile can't be
8388 loaded, signal an error.
8389
78e7d1fe
EZ
83902009-03-18 Eli Zaretskii <eliz@gnu.org>
8391
8392 * dired.c (Ffile_attributes): Make sure UID and GID are always
8393 positive, even if the value is too large for a positive EMACS_INT.
8394 Doc fix.
8395
8396 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8397
5da9fdfa
YM
83982009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8399
8400 * xmenu.c (xdialog_show): Move Fredisplay call ...
8401 (Fx_popup_dialog): ... here.
8402
7519c40d
SM
84032009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8404
8405 * dired.c (file_name_completion): Disable the first optimization just
8406 installed, since it is not implemented correctly.
8407
2cd298e2
SM
84082009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8409
8410 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8411 only if the entry can affect bestmatch.
2cd298e2
SM
8412 Stop the search early, as Ftry_completion already does.
8413
48d37adf
CY
84142009-03-17 Chong Yidong <cyd@stupidchicken.com>
8415
e10c9c93 8416 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8417
9286b16a
CY
84182009-03-15 Chong Yidong <cyd@stupidchicken.com>
8419
8420 * keyboard.c (parse_menu_item): Don't display remappings as menu
8421 equivalent bindings (Bug#788).
8422
f7b146dc
JR
84232009-03-15 Jason Rumney <jasonr@gnu.org>
8424
8425 * w32term.h (WM_EMACS_PAINT): New message.
8426 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8427 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8428 before passing to lisp thread. (Bug#950)
8429
f761d6b6 84302009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8431
d93f9575
CY
8432 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8433 variable as it was never reset.
8434 (ns_term_init): Remove initialization of Lisp-settable defaults
8435 and ns_expand_space.
8436 (-setPanelFromDefaultValues): Remove ns_expand_space.
8437 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8438 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8439 i.e. no additional spacing, similar to Carbon port.
8440
d93f9575
CY
8441 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8442 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8443
305018ec
JD
84442009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8445
8446 * sound.c (alsa_configure): Remove call to deprecated
8447 snd_pcm_sw_params_set_xfer_align.
8448
f761d6b6 84492009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8450
8451 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8452 after clicking in a detached tool bar.
8453 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8454
46e722a9
SM
84552009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8456
348db3dd
SM
8457 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8458 int/Lisp_Object mixup).
46e722a9 8459
a3d16f39
KH
84602009-03-13 Kenichi Handa <handa@m17n.org>
8461
8462 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8463 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8464 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8465 (set_fontset_font): Change ARG to a vector. Handle range_list in
8466 ARG correctly.
8467 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8468 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8469 the above change.
8470 (fontset_from_font): Fix previous change.
fe24f56a 8471 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8472 entry. If FONTSET is the default fontset, don't set the extra
8473 slot of the returning char-table.
8474
b066e6b6
JB
84752009-03-12 Juanma Barranquero <lekktu@gmail.com>
8476
8477 * nsfns.m (Fx_close_connection): Doc fix.
8478 (Fns_do_applescript): Reflow docstring.
8479 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8480 (Fx_display_pixel_width, Fx_display_pixel_height)
8481 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8482 Fix typos in docstrings.
8483 (Fns_set_alpha): Fix typos in error messages.
8484
d472514e 84852009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8486
d472514e 8487 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8488 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8489 were used for such events.
8490
d472514e
JB
8491 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8492 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8493
d472514e 8494 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8495 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8496
fb930676
KH
84972009-03-11 Kenichi Handa <handa@m17n.org>
8498
ff85581a
KH
8499 * font.h (font_open_by_spec): Extern it.
8500
c50b7e98
KH
8501 * font.c (font_open_by_spec): New function.
8502 (font_open_by_name): Use font_open_by_spec.
8503
fb930676
KH
8504 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8505 fontset of the frame.
8506
8507 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8508 modify the default font of frames that use this fontset.
8509 (num_auto_fontsets): New variable.
8510 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8511 name. Be sure to set FONTSET_ASCII to the correct font name.
8512 (update_auto_fontset_alist): New function.
8513
df4e8455
JB
85142009-03-11 Juanma Barranquero <lekktu@gmail.com>
8515
8516 * makefile.w32-in: Update dependencies.
8517
0a375797
AR
85182009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8519
8520 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8521
61313fa3
SM
85222009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8523
8524 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8525
b55103fb
CY
85262009-03-10 Chong Yidong <cyd@stupidchicken.com>
8527
8528 * lread.c (Feval_buffer): Doc fix.
8529
dde2559c
KH
85302009-03-09 Kenichi Handa <handa@m17n.org>
8531
8532 * charset.c (Qfile_name_handler_alist): Extern it.
8533 (load_charset_map_from_file): Temporarily bind
8534 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8535
df4e8455 85362009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8537
47f588bb
GM
8538 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8539 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8540
4ddf94bd
AR
85412009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8542
4c9bdfc2
AR
8543 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8544 (x_set_window_size): Change back to calculated method of setting
8545 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8546 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8547 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8548
fe41ae9e
AR
8549 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8550
4c9bdfc2
AR
8551 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8552 accelerator in parens under GNUstep.
8553
825d0875
KH
85542009-03-06 Kenichi Handa <handa@m17n.org>
8555
8556 These changes are to detect incorrect composition sequence without
f3b3be74 8557 looking ahead the source. (Bug#2370)
825d0875
KH
8558
8559 * coding.h: Include "composite.h".
8560 (enum compisition_state): New enum.
8561 (struct compisition_status): New struct.
8562 (struct iso_2022_spec): New member cmp_status.
8563 (struct emacs_mule_spec): New struct.
8564 (struct coding_system): New members ctext_extended_segment_len and
8565 embedded_utf_8. Change the union member
8566 spec.emacs_mule_full_support to spec.emacs_mule.
8567
8568 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8569 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8570 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8571 (ADD_COMPOSITION_DATA): New arg nbytes.
8572 (emacs_mule_char): New arg cmp_status.
8573 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8574 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8575 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8576 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8577 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8578 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8579 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8580 (EMACS_MULE_COMPOSITION_END): New macro.
8581 (emacs_mule_finish_composition): New function.
8582 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8583 (decode_coding_emacs_mule): Avoid long looking ahead while
8584 handling composition.
8585 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8586 (ENCODE_COMPOSITION_RULE): New macro.
8587 (finish_composition): New function.
8588 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8589 (DECODE_COMPOSITION_START): New implementation.
8590 (DECODE_COMPOSITION_END): Likewise.
8591 (STORE_COMPOSITION_RULE): New macro.
8592 (decode_coding_iso_2022): Avoid long looking ahead while handling
8593 composition, CTEXT extended segment, and embedded UTF-8.
8594 (setup_coding_system): For a coding of type iso-2022, reset
8595 CODING_ISO_EXTSEGMENT_LEN (coding) and
8596 CODING_ISO_EMBEDDED_UTF_8 (coding).
8597 (get_translation): Delete arguments last_block, from_nchars,
8598 to_nchars. Callers changed.
8599 (produce_chars): Don't modify charbuf. Adjusted for the change of
8600 get_translation.
98a326f7 8601 (produce_composition): Adjust for the new annotation sequence.
825d0875 8602 (handle_composition_annotation): Likewise.
98a326f7 8603 (consume_chars): Adjust for the change of get_translation.
825d0875 8604
ccbc4452
AR
86052009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8606
4ddf94bd 8607 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8608
988a7ddb
KH
86092009-03-05 Kenichi Handa <handa@m17n.org>
8610
8611 * font.c (font_select_entity): New function.
8612 (font_find_for_lface): Use font_select_entity to select a font.
8613
8614 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8615 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8616 font with C restriction.
8617
98a326f7 86182009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8619
be1bce46 8620 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8621
10ea2b82
JR
86222009-03-04 Jason Rumney <jasonr@gnu.org>
8623
2c93b248 8624 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8625 characters that have already been read. (Bug#2569)
2c93b248 8626
10ea2b82
JR
8627 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8628 Log an error message if check_image_size failed.
8629 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8630 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8631
71a0c011
EZ
86322009-03-02 Eli Zaretskii <eliz@gnu.org>
8633
8634 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8635 when decoding process output.
8636
2f63bba8
RS
86372009-03-01 Richard M Stallman <rms@gnu.org>
8638
8639 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8640
8641 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8642
0a9564cb
EZ
86432009-02-28 Eli Zaretskii <eliz@gnu.org>
8644
8645 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8646 (decode_coding_emacs_mule, decode_coding_iso_2022)
8647 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8648 (decode_coding_raw_text, decode_coding_charset)
8649 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8650 Honor inhibit-eol-conversion. (Bug #2186)
8651
449148b3
JR
86522009-02-28 Jason Rumney <jasonr@gnu.org>
8653
8654 * coding.c (detect_coding_charset): If not checking latin extra,
8655 fail on characters between 0x80 and 0xA0. (Bug#2354)
8656
a4aee864
EZ
86572009-02-28 Eli Zaretskii <eliz@gnu.org>
8658
8659 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8660 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8661
d88bee5a
GM
86622009-02-27 Glenn Morris <rgm@gnu.org>
8663
8664 * callint.c (Finteractive): Doc fix.
8665
a808f22d
KH
86662009-02-27 Kenichi Handa <handa@m17n.org>
8667
8668 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8669
caf8d60c
CY
86702009-02-27 Chong Yidong <cyd@stupidchicken.com>
8671
8672 * font.c (font_style_to_value): Set value for unknown symbols to
8673 100 instead of 255.
b61137ea
CY
8674 (weight_table, slant_table, width_table): Treat "unspecified" as
8675 the default value.
caf8d60c 8676
1a0de25c
JB
86772009-02-26 Juanma Barranquero <lekktu@gmail.com>
8678
8679 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8680
8fc45744
JB
86812009-02-25 Juanma Barranquero <lekktu@gmail.com>
8682
107bd7d1
JB
8683 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8684 error as soon as a recursive load is detected.
8fc45744 8685
f097e223
AR
86862009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8687
8688 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8689 before caching.
8690
8810a12f
KH
86912009-02-24 Kenichi Handa <handa@m17n.org>
8692
8693 * fontset.c (fontset_find_font): Fix the condition for checking
8694 unavailable font.
8695
2c7d1565
GM
86962009-02-24 Glenn Morris <rgm@gnu.org>
8697
8698 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8699 whitespace that confuses documentation.
8700
a20878b6
MB
87012009-02-23 Miles Bader <miles@gnu.org>
8702
8703 * process.c (Flist_system_processes, Fprocess_attributes)
8704 (syms_of_process): Rename `system-process-attributes' to
8705 `process-attributes'.
8706
b3b58c01
AS
87072009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8708
1b3b981b
AS
8709 * coding.h (struct coding_system): Make safe_charsets a pointer to
8710 unsigned char.
8711 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8712 being 255.
8713 (SAFE_CHARSET_P): Likewise.
8714 (setup_iso_safe_charsets): Properly setup safe_charsets.
8715 (Fdefine_coding_system_internal): Likewise.
8716 (setup_coding_system): Likewise. Remove unneeded casts.
8717 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8718 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8719 unneeded casts.
8720
b3b58c01
AS
8721 * insdel.c (del_range_2): Don't modify gap contents when called
8722 from decode_coding_object. (Bug#1809)
8723
0b6f228c
CY
87242009-02-21 Chong Yidong <cyd@stupidchicken.com>
8725
8726 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8727 Qfont_object.
8728 (Ftype_of): Recognize font objects.
8729
8730 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8731
8732 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8733 moved to data.c.
8734
52f8870b
AR
87352009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8736
8737 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8738 async_iconified. Based on a patch by Christian Lynbech
8739 <christian.lynbech@tieto.com>.
8740 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8741
7087d5e9
GM
87422009-02-20 Glenn Morris <rgm@gnu.org>
8743
8744 * syntax.c (Fskip_chars_forward): Fix doc typo.
8745
41d2ceef
CY
87462009-02-20 Chong Yidong <cyd@stupidchicken.com>
8747
8748 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8749
1a3b7ca6
CY
87502009-02-19 Chong Yidong <cyd@stupidchicken.com>
8751
8752 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8753
73cce38d
KH
87542009-02-19 Kenichi Handa <handa@m17n.org>
8755
8756 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8757 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8758
a51092ee
DN
87592009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8760
8761 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8762
c423ecca
KH
87632009-02-18 Kenichi Handa <handa@m17n.org>
8764
8765 * font.c (font_check_otf_features): Fix handling of `nil' element.
8766 (Ffont_spec): Describe :lang and :otf in the docstring.
8767
4c1958f4
AS
87682009-02-16 Andreas Schwab <schwab@suse.de>
8769
8770 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8771 string.
8772
5704f39a
KH
87732009-02-16 Kenichi Handa <handa@m17n.org>
8774
8775 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8776 (Bug#1723)
5704f39a 8777
8f0085aa
CY
87782009-02-14 Chong Yidong <cyd@stupidchicken.com>
8779
a057d86a 8780 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8781
8782 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8783 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8784
aff01dd9
EZ
87852009-02-14 Eli Zaretskii <eliz@gnu.org>
8786
8787 * msdos.c (MAX_SCREEN_BUF): New macro.
8788 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8789 Encode the entire run of glyphs sharing the same face, instead of
8790 doing that one glyph at a time (fixes a bug with displaying
8791 double-size characters).
8792
ba301db3
AR
87932009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8794
8795 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8796
8797 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8798 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8799 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8800
8801 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8802 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8803
51d861de
SM
88042009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8805
ac146f82 8806 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8807 invisible areas.
8808
7fed8996
JR
88092009-02-12 Jason Rumney <jasonr@gnu.org>
8810
631ea4fb
JR
8811 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8812 (add_font_entity_to_list): Call check_face_name even when family
8813 is unspecified.
8814
cb4a3e42
JR
8815 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8816 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8817 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8818
7fed8996 8819 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8820 raster fonts. (Bug#2219)
7fed8996 8821
895416e3
KH
88222009-02-12 Kenichi Handa <handa@m17n.org>
8823
8824 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8825 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8826 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8827 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8828 (find_automatic_composition): While looking forward and backward,
8829 check static composition. Fix where to stop looking forward.
8830 (composition_adjust_point): Fix checking of static composition.
8831 (Fcomposition_get_gstring): Pay attention to
1dacf998 8832 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8833
8834 * lisp.h (fast_looking_at): Extern it.
8835
8836 * search.c (fast_looking_at): New function.
8837
51d861de 8838 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8839 <struct glyph>.u.cmp.to.
8840 (append_composite_glyph): Likewise.
8841
51d861de 8842 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8843 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8844 composition.
51d861de 8845 (append_composite_glyph): Adjust for the change of
895416e3
KH
8846 <strcut glyph>.u.cmp.to.
8847
8510724d
JB
88482009-02-11 Juanma Barranquero <lekktu@gmail.com>
8849
8850 * casetab.c (init_casetab_once):
8851 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8852 * font.c (font_update_lface):
8853 * fontset.c (Fnew_fontset):
8854 * ftfont.c (ftfont_drive_otf):
8855 * xfont.c (xfont_open):
8856 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8857
294fa707
SM
88582009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8859
8860 * fileio.c (Fwrite_region): !NILP -> CONSP.
8861
b5bfebec
AS
88622009-02-10 Andreas Schwab <schwab@suse.de>
8863
8864 * process.c (send_process): Properly relocate pointer into data
adab88bd 8865 when using encoded data. (Bug#2272)
b5bfebec 8866
cb84a2be
KH
88672009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8868
8869 * coding.c (detect_coding_charset): Fix previous change.
8870
89e09428
JR
88712009-02-08 Jason Rumney <jasonr@gnu.org>
8872
8873 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8874 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8875
4470a277
AS
88762009-02-07 Andreas Schwab <schwab@suse.de>
8877
8878 * unexelf.c (unexec): Fix error message.
8879
3175b12a
AR
88802009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8881
8882 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8883 when modal window is active. (Bug #2152)
3175b12a
AR
8884 (applicationShouldTerminate:): Remove now-unneeded while loop
8885 around NSRunAlertPanel.
8886
8887 * nsmenu.m (popupSession): New file-global variable.
8888 (pop_down_menu): End the popupSession before closing dialog.
8889 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8890 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8891 don't query NSApp for events (just sleep instead).
8892
8434d0b8
EZ
88932009-02-07 Eli Zaretskii <eliz@gnu.org>
8894
51d861de
SM
8895 * coding.c (syms_of_coding) <translation-table-for-input>:
8896 Modify doc string to discourage use for character code unification.
8434d0b8 8897
aa82edfd
CY
88982009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8899
8900 * atimer.c (run_timers): Update pending_atimers.
8901
2d283c7c
CY
89022009-02-06 Chong Yidong <cyd@stupidchicken.com>
8903
eb306cab
CY
8904 * image.c (svg_load_image): Fix last change.
8905
2d283c7c
CY
8906 * xfns.c (Fx_create_frame): Signal an error if no font is
8907 found (Bug#2147).
8908
4d8e170e
JB
89092009-02-05 Juanma Barranquero <lekktu@gmail.com>
8910
8911 * character.c (syms_of_character) <script-representative-chars>:
8912 Fix typo in docstring.
8913
c96169a0
AR
89142009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8915
8916 * nsmenu.m (pop_down_menu): New function.
8917 (ns_popup_dialog): Call it on unwind.
8918 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8919 call timer_check() (Bug#2154).
8920 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8921 handling_signal is set.
8922 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8923
31fd7c5c 8924 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8925
8926 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8927
8928 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8929
51d861de
SM
8930 * keyboard.c (poll_for_input_1, handle_async_input):
8931 Set handling_signal under HAVE_NS.
c96169a0 8932
aacd8ba1
GM
89332009-02-04 Glenn Morris <rgm@gnu.org>
8934
8935 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8936
4cb75c4b
KH
89372009-02-04 Kenichi Handa <handa@m17n.org>
8938
8939 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8940
8941 * charset.c (Fchar_charset): New optional arg restriction.
8942
8943 * coding.h (coding_system_charset_list): Extern it.
8944
8945 * coding.c (coding_system_charset_list): New function.
8946
8947 * composite.c: Include coding.h and termhooks.h.
8948 (composition_gstring_p): Fix for the terminal case.
8949 (composition_gstring_width): Likewise.
8950 (fill_gstring_body): Likewise.
8951 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8952 the frame.
8953 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8954 is within a composition.
867d4bb3 8955 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8956
8957 * term.c (encode_terminal_code): Fix handling of composition.
8958 (produce_composite_glyph): For static composition, get pixel_width
8959 from struct composition.
8960
826ba17e
AS
89612009-02-02 Andreas Schwab <schwab@suse.de>
8962
8963 * unexelf.c (unexec): Handle unaligned bss offset.
8964
8ad093db
AR
89652009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8966
8967 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8968 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8969
8ad093db
AR
8970 * keyboard.c (handle_interrupt): Don't call
8971 quit_throw_to_read_char() under NS.
d0a76a6e 8972
8ad093db
AR
8973 * blockinput.h: Remove NS-specific code.
8974
4d18a7a2
DN
89752009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8976
db878925
DN
8977 * dispnew.c (window_change_signal): Don't try to get the size of a
8978 suspended tty frame.
8979 * term.c (Fresume_tty): Resize if the size has changed while the
8980 tty was suspended.
8981
4d18a7a2
DN
8982 * alloc.c (mark_stack): Properly conditionalize previous change.
8983
8984df7c
JB
89842009-01-30 Juanma Barranquero <lekktu@gmail.com>
8985
8986 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8987 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8988 Remove; this code is not used on Windows.
8989
75f4f1ac
EZ
89902009-01-30 Eli Zaretskii <eliz@gnu.org>
8991
8992 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8993 EOLs that also has stray ^M characters.
8994
07a1e794
JB
89952009-01-30 Juanma Barranquero <lekktu@gmail.com>
8996
8997 * atimer.c (run_timers, alarm_signal_handler):
8998 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8999 * w32inevt.c (w32_console_read_socket):
9000 * w32term.c (w32_read_socket):
9001 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9002
a8b11cc9
CY
90032009-01-30 Chong Yidong <cyd@stupidchicken.com>
9004
9005 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9006 Initialize it as a relative filename pattern.
9007 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9008 (Fcall_process_region): Simplify temp file creation using
9009 temporary-file-directory.
9010
c279587b
EZ
90112009-01-29 Eli Zaretskii <eliz@gnu.org>
9012
9013 * msdos.c: Rename pending_signals to msdos_pending_signals.
9014 (sig_suspender, sigprocmask): Adjust.
9015
a8fe3242
CY
90162009-01-29 Chong Yidong <cyd@stupidchicken.com>
9017
9018 * keyboard.c (pending_signals): New var.
9019 (poll_for_input, input_available_signal, init_keyboard): Set it.
9020 (process_pending_signals): New function.
9021
9022 * lisp.h (QUIT): Check pending_signals instead of
9023 interrupt_input_pending. Use process_pending_signals.
9024
51d861de 9025 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9026
51d861de 9027 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9028
9029 * sysdep.c (emacs_write): Use process_pending_signals.
9030
9031 * xterm.c (XTread_socket): Update pending_signals.
9032
9033 * w32term.c (w32_read_socket): Update pending_signals.
9034
9035 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9036
6570a1c4
KH
90372009-01-29 Kenichi Handa <handa@m17n.org>
9038
9039 * xftfont.c (xftfont_has_char): New function.
9040 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9041
d72a4afa
AR
90422009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9043
9044 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9045 under GNUstep.
9046 (ns_query_color): New declaration.
9047
9048 * nsterm.m (ns_confirm_quit): New variable.
9049 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9050 (EmacsApp-applicationShouldTerminate:): Use it.
9051 (EmacsPrefsController): Let user set it.
9052 (ns_query_color): New function.
9053 (ns_defined_color): Use it.
9054 (ns_initialize): Drop.
9055 (ns_term_init): Add two lines from ns_initialize(), and set
9056 input_interrupt_mode to nil.
9057
9058 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9059 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9060
9fe78804
KH
90612009-01-28 Kenichi Handa <handa@m17n.org>
9062
9063 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9064 (fontset_get_font_group): Remember that no font-group is specified
9065 for C.
9fe78804 9066
fa57de36
CY
90672009-01-27 Chong Yidong <cyd@stupidchicken.com>
9068
930600e9
CY
9069 * fns.c (concat): Check for string overflow (bug#1787).
9070
fa57de36
CY
9071 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9072 Quadruple undo limits (bug#1501).
9073
7179ce7b
KH
90742009-01-27 Kenichi Handa <handa@m17n.org>
9075
9076 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9077 directly use GT_Get_Char_index.
9078
9079 * xftfont.c (struct xftfont_info): New member `index'.
9080
9081 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9082 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9083
5be8fcc0
CY
90842009-01-26 Kenichi Handa <handa@m17n.org>
9085
9086 * fontset.c (fontset_find_font): Fix handling of non-cons return
9087 value of fontset_get_font_group.
9088 (fontset_font): Revert last change.
9089
19ae3e61
JR
90902009-01-26 Jason Rumney <jasonr@gnu.org>
9091
9092 * w32font.c (w32font_list_internal): Return quickly if registry is
9093 unknown. Simplify final return.
9094 (add_font_entity_to_list): Break complex logic down into more
9095 manageable chunks. Move unknown registry check to
9096 w32font_list_internal.
9097
8612b71a
AR
90982009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9099
9100 Changes to remove Feval calls from GUI under NS.
9101
d8038940
JB
9102 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9103 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9104 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9105
9106 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9107 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9108 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9109 instead of NON_ASCII_KEYSTROKE_EVENT.
9110 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9111 (EmacsApp-applicationShouldTerminate:): Query user.
9112 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9113 instead of Feval.
9114
9115 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9116
9117 * keyboard.c (kbd_buffer_get_event): Check for it.
9118 (keys_of_keyboard): Define lispy keys for
9119 ns-put/unput-working-text.
9120
9121 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9122 versions.
9123 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9124
6288ae55
CY
91252009-01-25 Chong Yidong <cyd@stupidchicken.com>
9126
9127 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9128 setting current_buffer directly. (Bug#2044)
6288ae55 9129
289e7f8f
CY
91302009-01-24 Chong Yidong <cyd@stupidchicken.com>
9131
5ce87308 9132 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9133 any work. (Bug#1952, bug#1990).
5ce87308 9134
64cc3cf6 9135 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9136
b3243e6f
AR
91372009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9138
9139 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9140 (ns_no_defaults): New declaration.
9141 (main): Use it.
e0d2e69a 9142
d900b2af 9143 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9144
d900b2af 9145 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9146
d900b2af
AR
9147 * nsterm.m (ns_no_defaults): New variable.
9148 (ns_initialize): Don't read defaults when ns_no_defaults.
9149 (EmacsView-readSelectionFromPasteboard:)
9150 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9151 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9152 (ns_dumpglyphs_stretch): New function.
9153 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9154 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9155
e0d2e69a
AR
9156 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9157
3ac71f5d
CY
91582009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9159
9160 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9161 call for Sparc64.
9162
3fe53a83
AR
91632009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9164
9165 * nsfns.m:
9166 * nsgui.h:
9167 * nsmenu.m:
9168 * nsselect.m:
9169 * nsterm.h:
9170 * nsterm.m: Remove '23' comments that indicated code added during
9171 update from emacs-20 -> emacs-23.
9172
10f87c6f 91732009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9174
9175 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9176 ns_alternate_modifier. (Bug#1217)
a3b53a85 9177
c7cef62d
AR
9178 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9179 Display all shortcuts, including those w/o super modifier.
9180
575fb8bd
AR
9181 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9182
918b848b
CY
91832009-01-22 Chong Yidong <cyd@stupidchicken.com>
9184
9185 * fileio.c (Vwrite_region_post_annotation_function)
9186 (Vwrite_region_annotation_buffers): New vars.
9187 (build_annotations_unwind): Just reset
9188 Vwrite_region_annotation_buffers.
9189 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9190 Call write-region-post-annotation-function.
9191 (build_annotations): Add to Vwrite_region_annotation_buffers if
9192 buffer changes.
9193
a39e2539
AR
91942009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9195
9196 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9197 Tiger.
51d861de
SM
9198 * nsfns.m (ns_do_applescript):
9199 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9200
35ed44db
AR
92012009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9202
9203 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
9204
cbe0b5bf
AR
92052009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9206
9207 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 9208
6049d3a0
AR
9209 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
9210
9211 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
9212 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
9213 handle Ctrl-tab. (Bug#1841)
9214 (ns_get_color): Use unsigned long long for scanned hex string value.
9215 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 9216 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 9217 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 9218 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 9219 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 9220 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 9221 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 9222
d3810c21 9223 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 9224 DPI. (Bug#1316)
d3810c21
AR
9225 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
9226 values in onTiger section.
4c7077c3 9227
e301e634
CY
92282009-01-19 Chong Yidong <cyd@stupidchicken.com>
9229
7f82490b
CY
9230 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
9231 Check return value of font_spec_from_name.
64cc3cf6 9232 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
9233
9234 * font.c (font_spec_from_name): Return Qnil if font name could not
9235 be parsed.
9236 (font_parse_name): Treat a `?' character as part of an XLFD.
9237
e301e634
CY
9238 * fns.c (Fsubstring): Doc fix.
9239
1c0db158
KH
92402009-01-19 Kenichi Handa <handa@m17n.org>
9241
51d861de 9242 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
9243 (ftfont_list): Likewise.
9244
acf20901
JB
92452009-01-18 Juanma Barranquero <lekktu@gmail.com>
9246
fff4e459
JB
9247 * dbusbind.c (Fdbus_register_signal):
9248 * process.c (conv_sockaddr_to_lisp):
9249 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
9250
acf20901
JB
9251 * callproc.c (Fgetenv_internal): Doc fix.
9252
e7abcdfb
CY
92532009-01-16 Chong Yidong <cyd@stupidchicken.com>
9254
9255 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
9256 it is not even used.
9257
b60861e6
GM
92582009-01-16 Glenn Morris <rgm@gnu.org>
9259
9260 * font.c (Ffont_variation_glyphs): Silence compiler.
9261
8db52afe
JB
92622009-01-15 Juanma Barranquero <lekktu@gmail.com>
9263
9264 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
9265 Reported by David Robinow <drobinow@gmail.com>.
9266
4cddb209
KH
92672009-01-15 Kenichi Handa <handa@m17n.org>
9268
51d861de 9269 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 9270
f247f67b
JR
92712009-01-14 Jason Rumney <jasonr@gnu.org>
9272
9273 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 9274 never a fontset. (Bug#1562)
f247f67b 9275
f56a4450
KH
92762009-01-14 Kenichi Handa <handa@m17n.org>
9277
9278 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 9279 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 9280
4e99855e
CY
92812009-01-13 Chong Yidong <cyd@stupidchicken.com>
9282
9283 * font.c (font_clear_prop): If clearing the family, clear the font
9284 width index too.
9285
fff4e459 9286 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 9287
24f01470
JB
92882009-01-12 Juanma Barranquero <lekktu@gmail.com>
9289
9290 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
9291 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
9292 functions, use sizeof.
9293
a41240a3
MR
92942009-01-12 Martin Rudalics <rudalics@gmx.at>
9295
9296 * keyboard.c (read_char): Fix case where last_nonmenu_event
9297 returned a bad value with submenus. (Bug#447)
9298
944636b8
CY
92992009-01-12 Chong Yidong <cyd@stupidchicken.com>
9300
9301 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
9302 family, clear the font width index too.
9303
0dad7c6f
JR
93042009-01-11 Jason Rumney <jasonr@gnu.org>
9305
9306 * keyboard.c (cmd_error_internal): Exit when errors occur before
9307 frame creation and not in daemon mode. (Bug#1836)
9308
7c2363af
CY
93092009-01-10 Chong Yidong <cyd@stupidchicken.com>
9310
9311 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
9312 of a display vector, backtrack.
9313 (try_window_reusing_current_matrix): Check glyph type before
9314 referencing charpos member.
9315
97b1b294
EZ
93162009-01-10 Eli Zaretskii <eliz@gnu.org>
9317
9318 Fix Bug #876:
9319
9320 * coding.c (inhibit_null_byte_detection): New variable.
9321 (detect_coding, detect_coding_system): Don't pay attention to null
9322 bytes if inhibit_null_byte_detection is non-zero.
51d861de 9323 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
9324 <inhibit-iso-escape-detection>: Doc fix.
9325
4624b6e3
JR
93262009-01-09 Jason Rumney <jasonr@gnu.org>
9327
9328 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 9329 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
9330 Only report Unicode Plane 2 fonts as unicode-sip.
9331
323b840c
CY
93322009-01-09 Chong Yidong <cyd@stupidchicken.com>
9333
51d861de
SM
9334 * xfaces.c (Fx_font_family_list): Delete function.
9335 Move compatibility version to faces.el.
323b840c 9336
51d861de 9337 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9338
eba7400d
MR
93392009-01-09 Martin Rudalics <rudalics@gmx.at>
9340
9341 * frame.c (x_set_frame_parameters): Remember requested value for
9342 fullscreen before it's reset by the parameter handler.
9343
4b09796d
GM
93442009-01-09 Glenn Morris <rgm@gnu.org>
9345
9346 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9347 (last_command_event): ... and update all users.
4b09796d
GM
9348 (last_input_char): For clarity, rename to...
9349 (last_input_event): ... and update all users.
9350 (last-command-char, last-input-char): Move to subr.el as aliases.
9351 * cmds.c, commands.h: Update for last_command_char rename.
9352
14ccea62
CY
93532009-01-08 Chong Yidong <cyd@stupidchicken.com>
9354
51d861de 9355 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9356
5f004711
JR
93572009-01-08 Jason Rumney <jasonr@gnu.org>
9358
9359 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9360 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9361 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9362 Don't declare.
fff4e459 9363 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9364 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9365
b71f6f73
KH
93662009-01-07 Kenichi Handa <handa@m17n.org>
9367
50b06221 9368 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9369 remember the coding system used for decoding in
50b06221
KH
9370 coding_system (Bug#1039).
9371
b71f6f73 9372 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9373 breaking the loop. (Bug#870)
b71f6f73
KH
9374 (decode_coding_utf_16, decode_coding_emacs_mule)
9375 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9376 (decode_coding_charset): Likewise.
9377
56f668f7
MR
93782009-01-05 Martin Rudalics <rudalics@gmx.at>
9379
9380 * frame.c (x_set_frame_parameters): Make sure height (width) get
9381 applied when fullwidth (fullheight) is set. (Bug#1522)
9382
5da9424d
JB
93832009-01-04 Juanma Barranquero <lekktu@gmail.com>
9384
9385 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9386 (utc_base): Declare as ULONGLONG, not long double.
9387 (convert_time_raw): Delete.
9388 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9389 (initialize_utc_base): New function.
9390 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9391 (convert_from_time_t): Use initialize_utc_base; compute result with
9392 64-bit arithmetic.
9393 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9394
c4605e09
EZ
93952009-01-03 Eli Zaretskii <eliz@gnu.org>
9396
9acef61c 9397 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9398 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9399 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9400 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9401 [!subprocesses]: Define.
9402 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9403 (Flist_system_processes, Fsystem_process_attributes)
9404 [!subprocesses]: Call list_system_processes and
9405 system_process_attributes instead of returning Qnil.
9406
9acef61c
JB
9407 * dosfns.c (system_process_attributes, list_system_processes):
9408 New functions.
c4605e09
EZ
9409
9410 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9411
9412 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9413 Don't use the default (no-op) implementation.
9414
8b7d0a16
JR
94152009-01-03 Jason Rumney <jasonr@gnu.org>
9416
a6d46bc1
JR
9417 * keyboard.c (parse_modifiers_uncached): Wheel events are
9418 clicks (bug#687).
9419
8b7d0a16
JR
9420 * w32term.c (x_query_colors, x_query_color): New functions.
9421
9422 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9423 (svg_load_image): Cast returned pointers from dynamically loaded
9424 functions. Eliminate W32 specific code.
9425
bfe11752
DN
94262009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9427
89e2438a
DN
9428 * nsfns.m (x_set_foreground_color, x_set_background_color)
9429 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9430 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9431 x_ prefix instead of ns_. Update references.
9432 (syms_of_nsfns): Add a FIXME comment.
9433
9434 * nsterm.m (x_set_cursor_type): New prototype.
9435 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9436
bfe11752
DN
9437 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9438 for Solaris instead of incorrectly providing Qutime and Qcutime.
9439
031da700
EZ
94402009-01-02 Eli Zaretskii <eliz@gnu.org>
9441
9442 * w32.c (process_times): Compute sum of utime and stime.
9443 (system_process_attributes): Add Qtime to the alist.
9444
9445 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9446 and add them to the alist.
9447
9448 * process.c (top level) <Qtime, Qctime>: New variables.
9449 (syms_of_process): staticpro them.
9450 (Fsystem_process_attributes): Add their documentation to the doc
9451 string.
9452
9453 * process.h: Declare Qtime and Qctime.
9454
df23bf08
JR
94552009-01-02 Jason Rumney <jasonr@gnu.org>
9456
9acef61c 9457 * image.c (Qgobject): New symbol.
df23bf08
JR
9458 (syms_of_image): Initialize it.
9459 (init_svg_functions): Load some functions from gobject library.
9460
5bbdf7aa
DN
94612009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9462
9463 * frame.c (make_terminal_frame): Remove redundant code and useless
9464 block.
9465
63136da6
AS
94662009-01-01 Andreas Schwab <schwab@suse.de>
9467
9468 * process.c (conv_sockaddr_to_lisp): Add workaround for
9469 getsockname bug on BSD.
9470
9ef69046
CY
94712009-01-01 Chong Yidong <cyd@stupidchicken.com>
9472
d6fafbe0
CY
9473 * xfns.c (x_create_tip_frame): Set border width of the X window.
9474
51d861de 9475 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9476
f9c34147
JR
94772009-01-01 Jason Rumney <jasonr@gnu.org>
9478
9acef61c 9479 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9480 Don't block input, as per earlier xterm.c changes.
9481
f5497e45
AR
94822008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9483
9484 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9485 (ns_appkit_version_int): New function.
9486 (x-server-version): Use ns_appkit_version_int and follow 21+
9487 convention of returning 3 integers.
9488
c19cab20
KH
94892008-12-30 Kenichi Handa <handa@m17n.org>
9490
9491 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9492 (CHAR_SURROGATE_PAIR_P): New macro.
9493
9494 * font.h (struct font_driver): New member get_variation_glyphs.
9495
9acef61c 9496 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9497 (Ffont_variation_glyphs): New function.
9498 (syms_of_font): Defsubr it.
9499
9500 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9501 ftfont_variation_glyphs.
9502 (setup_otf_gstring): New function.
9503 (ftfont_drive_otf): Use it.
9504 (ftfont_shape_by_flt): Handle variation selector.
9505 (ftfont_variation_glyphs): New function.
9506
28cd591f
MR
95072008-12-30 Martin Rudalics <rudalics@gmx.at>
9508
9509 * frame.c (Vemacs_iconified): Remove.
9510
7f714baf
JR
95112008-12-30 Jason Rumney <jasonr@gnu.org>
9512
9513 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9514 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9515
9d2d22ab
CY
95162008-12-30 Chong Yidong <cyd@stupidchicken.com>
9517
9518 * indent.c (Fvertical_motion): Don't advance iterator if we have
9519 reseated to the desired position.
9520
9521 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9522 checking for pos match.
9523
545312c2
KH
95242008-12-30 Kenichi Handa <handa@m17n.org>
9525
1ede3eb6
KH
9526 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9527 just get the low 8-bit of the code.
9528
545312c2
KH
9529 * font.c (font_intern_prop): Validate str as multibyte.
9530
bd7bbf29
DN
95312008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9532
31e0750e
DN
9533 * dispextern.h (struct face): Move lface and hash from the middle
9534 of bitfields.
9535
bd7bbf29
DN
9536 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9537
b5672e7c
DN
95382008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9539
9540 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9541 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9542 instead of intervals.h.
9543
d704470f
AS
95442008-12-26 Andreas Schwab <schwab@suse.de>
9545
9546 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9547 cons.
9548
54b33868
MR
95492008-12-26 Martin Rudalics <rudalics@gmx.at>
9550
9551 * textprop.c (Qminibuffer_prompt): New variable.
9552 (syms_of_textprop): Initialize it.
9553 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9554 in minibuffer-prompt face. (Bug#1662)
9555
40b615d6
JR
95562008-12-25 Jason Rumney <jasonr@gnu.org>
9557
9558 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9559
baae5c2d
JR
95602008-12-24 Jason Rumney <jasonr@gnu.org>
9561
9562 * ralloc.c (r_alloc_reset_variable): New function.
9563
9564 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9565 record of what points where. (Bug#716)
baae5c2d 9566
a9051c88
DN
95672008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9568
9569 * minibuf.c (read_minibuf): Follow the non-interactive case when
9570 running as a daemon, before detaching.
9571
8b146312
AS
95722008-12-22 Andreas Schwab <schwab@suse.de>
9573
9574 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9575 * gtkutil.c (free_widget_value): Use xfree instead of free.
9576
56f2de10
MR
95772008-12-22 Martin Rudalics <rudalics@gmx.at>
9578
9579 * frame.c (delete_frame): New function derived from
9580 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9581 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9582 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9583 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9584 * frame.h: Extern delete_frame.
9585 * window.c (window_loop):
9586 * terminal.c (delete_terminal):
9587 * xterm.c (x_connection_closed):
9588 * xfns.c (Fx_hide_tip):
9acef61c 9589 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9590
1fc200d6
JR
95912008-12-21 Jason Rumney <jasonr@gnu.org>
9592
9593 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9594 when character maps to .notdef character.
9595
5e252df2
SM
95962008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9597
9598 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9599
99b72cc4
JR
96002008-12-20 Jason Rumney <jasonr@gnu.org>
9601
9602 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9603 a graphical frame on Windows. (Bug#1325)
99b72cc4 9604
acc49a52
JD
96052008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9606
9607 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9608
6ea15123
CY
96092008-12-20 Chong Yidong <cyd@stupidchicken.com>
9610
9611 * minibuf.c (Fread_buffer): Doc fix.
9612
b2dab6c8
JR
96132008-12-20 Jason Rumney <jasonr@gnu.org>
9614
54ea0c87 9615 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9616 server name in UNC paths. (Bug#719)
54ea0c87 9617
b2dab6c8 9618 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9619 charbuf. (Bug#1035)
b2dab6c8 9620
6d1921be
DN
96212008-12-19 Daniel Engeler <engeler@gmail.com>
9622
9623 * sysdep.c (serial_configure): Fix typo.
9624
53934c98
DN
96252008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9626
9627 * sysdep.c: Include alloca.h.
f4f634e8
DN
9628 (system_process_attributes): Add implementation for Solaris.
9629
9630 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9631
06e111a6
DN
96322008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9633
9634 Reorganize implementation of Flist_system_processes and
9635 Fsystem_process_attributes. No functional changes.
9636 * process.c: Don't #include pwd.h, grp.h and limits.h.
9637 (Flist_system_processes): Just call list_system_processes.
9638 (Fsystem_process_attributes): Just call system_process_attributes.
9639 (procfs_list_system_processes, time_from_jiffies)
9640 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9641 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9642
9643 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9644 (list_system_processes): Rename from
9645 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9646 Provide a do nothing implementation.
9647 (system_process_attributes): Rename from
9648 procfs_list_system_processes.
9649 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9650 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9651
9652 * w32.c (list_system_processes): Rename from
9653 w32_list_system_processes.
9654 (system_process_attributes): Rename from
9655 w32_system_process_attributes.
9656
9657 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9658
9659 * process.h (w32_list_system_processes)
9660 (w32_system_process_attributes): Remove.
362654a6
JB
9661 (list_system_processes, system_process_attributes):
9662 New prototypes.
06e111a6 9663
6a705b23
KH
96642008-12-19 Kenichi Handa <handa@m17n.org>
9665
9666 * xfont.c (xfont_decode_coding_xlfd): New function.
9667 (xfont_encode_coding_xlfd): New function.
9668 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9669 (xfont_list): Decode and encode XLFD by iso-8859-1.
9670 (xfont_match): Likewise.
9671 (xfont_list_family): Likewise.
9672 (xfont_open): Likewise.
9673
d66c0241 9674 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9675 names are utf-8.
9676
d66c0241 9677 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9678 names are utf-8.
9679
5a130941
JD
96802008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9681
9682 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9683 changed.
bfd20325
JD
9684 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9685 clicked on a detached tool bar button.
5a130941 9686
fd95644b
DN
96872008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9688
9689 * emacs.c (main): Print and error and exit when no data is read
9690 from the pipe.
9691
e6eee6ae
JR
96922008-12-17 Jason Rumney <jasonr@gnu.org>
9693
9694 * w32font.c (w32font_has_char): Always return -1.
9695
a35dd56b
KH
96962008-12-16 Kenichi Handa <handa@m17n.org>
9697
9698 * font.c (font_open_entity): Fix previous change.
9699
0e3635c2
DN
97002008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9701
9702 * process.c: Include <limits.h>.
9703
d4835507 97042008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9705
9706 * font.c (font_update_drivers): Fix mistake in reconstructing the
9707 driver list.
9708
97092008-12-16 Chong Yidong <cyd@stupidchicken.com>
9710
9711 * font.c (font_clear_cache): Fix format of font cache data.
9712
e2cbc401
CY
97132008-12-15 Chong Yidong <cyd@stupidchicken.com>
9714
9715 * xftfont.c (xftfont_open): Free Xft font pattern if
9716 XftFontOpenPattern fails.
9717
9718 * xterm.c (x_free_frame_resources): Remove extraneous call to
9719 free_frame_faces.
9720
b131d535
CY
97212008-12-13 Chong Yidong <cyd@stupidchicken.com>
9722
9723 * xterm.c (x_delete_display): Move xim_close_dpy call to
9724 x_delete_terminal.
9725 (x_delete_terminal): Call xim_close_dpy.
9726
e6df5336
JR
97272008-12-13 Jason Rumney <jasonr@gnu.org>
9728
9729 * w32font.c (intern_font_name): New function.
9730 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9731 (w32font_open_internal, Fx_select_font): Decode font name.
9732 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9733
9734 * w32font.h (intern_font_name): Declare new function.
9735
9736 * w32uniscribe.c (add_opentype_font_name_to_list):
9737 Use intern_font_name.
9738
20d68145
CY
97392008-12-13 Chong Yidong <cyd@stupidchicken.com>
9740
9f2554de
CY
9741 * frame.c (Fdelete_frame): Call free_font_driver_list.
9742
3d9bec9a
CY
9743 * font.c (free_font_driver_list): Implement missing function.
9744
20d68145
CY
9745 * w32term.c (w32_term_init): Don't initialize the image cache
9746 here; it will be done in init_frame_faces.
9747
9748 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9749 (struct x_display_info): Remove unused member null_pixel. New
9750 member xim_callback_data.
9751
9752 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9753 (xim_initialize): Save pointer to callback function data.
9754 (xim_close_dpy): Free callback function data. Call XCloseIM,
9755 reverting 2008-11-04 change by David Smith.
9756 (x_term_init): Don't initialize the image cache here; it will be
9757 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9758 (x_delete_display): Free x_dnd_atoms member.
9759
96f9306b
KH
97602008-12-13 Kenichi Handa <handa@m17n.org>
9761
6dec9044
JB
9762 * font.c (font_rescale_ratio): Moved from xfaces.c.
9763 Argument type changed. Handle a font-spec too.
96f9306b 9764 (font_score): Check Vface_font_rescale_alist.
6dec9044 9765 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9766
9767 * xfaces.c (font_rescale_ratio): Moved to font.c.
9768
8d5b4964
CY
97692008-12-13 Chong Yidong <cyd@stupidchicken.com>
9770
9771 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9772
e6df5336
JR
97732008-12-12 Jason Rumney <jasonr@gnu.org>
9774
9775 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9776 Vwindow_system_version to the real w32 major version.
9777
97c6058a
DN
97782008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9779
9780 * term.c (init_tty): Move setting the terminal name before the
9781 potential user: maybe_fatal.
9782
ec4e88d7
CY
97832008-12-11 Chong Yidong <cyd@stupidchicken.com>
9784
d4835507
JB
9785 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9786 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9787
b4233ec9
JR
97882008-12-11 Jason Rumney <jasonr@gnu.org>
9789
8ec71e23 9790 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9791 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9792
b4233ec9 9793 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9794 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9795
011a0143
JB
97962008-12-11 Juanma Barranquero <lekktu@gmail.com>
9797
9798 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9799
3c309f34
JB
98002008-12-11 Juanma Barranquero <lekktu@gmail.com>
9801
9802 * process.c (Fsystem_process_attributes, syms_of_process):
9803 Fix typo in name of Ssystem_process_attributes.
9804 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9805
fedc6ab5
JB
98062008-12-11 Juanma Barranquero <lekktu@gmail.com>
9807
9808 * syntax.c (Fmodify_syntax_entry): Doc fix.
9809
ba3de0e8
JB
98102008-12-10 Juanma Barranquero <lekktu@gmail.com>
9811
9812 * font.c (Ffont_spec): Move usage to end of docstring.
9813
174f1c74
JR
98142008-12-10 Jason Rumney <jasonr@gnu.org>
9815
9816 * w32font.c (Qcham): New symbol.
9817 (font_supported_scripts): Add cham, and comments for other new
9818 scripts in bitfield from OpenType spec.
9d32f818
JR
9819 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9820 contain characters beyond the bmp.
174f1c74 9821
7b649478
KH
98222008-12-10 Kenichi Handa <handa@m17n.org>
9823
9824 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9825 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9826 Qunicode_sip.
9827
2133e2d1
JB
98282008-12-10 Juanma Barranquero <lekktu@gmail.com>
9829
9830 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9831 (Fcoding_system_put): Use QCdefault_char.
9832 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9833
9af886ee
CY
98342008-12-09 Chong Yidong <cyd@stupidchicken.com>
9835
74d819eb
CY
9836 * xftfont.c (syms_of_xftfont): Fix typo.
9837
4ccfa1c0 9838 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9839
7c19d3ae
DN
98402008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9841
9842 * emacs.c (main): Close daemon_pipe on exec.
9843
567826bb
CY
98442008-12-08 Chong Yidong <cyd@stupidchicken.com>
9845
9846 * termchar.h (struct tty): New members termcap_term_buffer and
9847 termcap_strings_buffer.
9848
9849 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9850 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9851 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9852 All callers changed.
9853 (init_tty): Store termcap data and string buffers in new struct
9854 tty members termcap_term_buffer and termcap_strings_buffer.
9855 (delete_tty): Free them.
4ccfa1c0 9856 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9857
aa96c42b
SZ
98582008-12-07 Seiji Zenitani <zenitani@mac.com>
9859
9860 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9861 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9862
b7e1d896
CY
98632008-12-06 Chong Yidong <cyd@stupidchicken.com>
9864
9865 * coding.c (make_conversion_work_buffer): Disable buffer
9866 modification hooks in the work buffer.
9867
b5ec91a5
EZ
98682008-12-05 Eli Zaretskii <eliz@gnu.org>
9869
9870 * process.c (procfs_system_process_attributes): If `nread' has a
9871 negative value, assign zero to it.
9872
a5d2a52b
CY
98732008-12-05 Chong Yidong <cyd@stupidchicken.com>
9874
68c5540b 9875 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9876
7bf1bb21
KH
98772008-12-05 Kenichi Handa <handa@m17n.org>
9878
9879 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9880 second character is a combining character.
9881
2fdc7d00
EZ
98822008-12-05 Eli Zaretskii <eliz@gnu.org>
9883
9884 * process.c (procfs_system_process_attributes): Don't use cmd,
9885 cmdsize, and q without initializing them first.
9886
bf6bfba8
JR
98872008-12-04 Jason Rumney <jasonr@gnu.org>
9888
9889 * w32font.c (w32font_draw): Initialize orig_clip before getting
9890 it, and delete it when finished.
9891
a3b1a468
DN
98922008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9893
9894 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9895 case when running as a daemon before detaching.
9896
8b8be8eb
JB
98972008-12-03 Juanma Barranquero <lekktu@gmail.com>
9898
805f2638 9899 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9900
b1bde622
KH
99012008-12-03 Kenichi Handa <handa@m17n.org>
9902
e500c47d
KH
9903 * font.c (font_at): Set `multibyte' at first.
9904
ca516334
KH
9905 * coding.c (decode_coding_charset): Check type of an element of
9906 vector VALIDS.
7bf1bb21 9907 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9908
4ccfa1c0 9909 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9910 (font_for_char): Likewise.
9911
1e5ecd37
CY
99122008-12-03 Chong Yidong <cyd@stupidchicken.com>
9913
d5b01609 9914 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9915 (font_update_lface): Handle fonts with corrupted size specs,
9916 i.e. non-int and non-float.
d5b01609 9917
11e3a6e4 9918 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9919 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9920 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9921
ab06788b
CY
9922 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9923
1e5ecd37 9924 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9925 underline_minimum_offset for underline position.
1e5ecd37 9926
63c125ab
DN
99272008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9928
9929 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9930
9931 * character.c (c_string_width): Specify the type for LEN.
9932
3a8406e1
KH
99332008-12-03 Kenichi Handa <handa@m17n.org>
9934
4ccfa1c0 9935 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9936 (decode_coding_utf_8): Likewise.
4ccfa1c0 9937 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9938 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9939
651df7d9
CY
99402008-12-02 Chong Yidong <cyd@stupidchicken.com>
9941
9942 * keyboard.c (make_lispy_position): Only use PT if the selected
9943 window is current.
9944
1f625c6c
AS
99452008-12-02 Andreas Schwab <schwab@suse.de>
9946
f7741ce9
AS
9947 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9948
1f625c6c
AS
9949 * doprnt.c (doprnt1): Fix size of charbuf.
9950
92bc2678
CY
99512008-12-02 Chong Yidong <cyd@stupidchicken.com>
9952
9953 * keyboard.c (timer_check): Revert last change.
9954
93b9e8cc
JB
99552008-12-02 Juanma Barranquero <lekktu@gmail.com>
9956
9957 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9958
fd7a37d5
JB
99592008-12-01 Juanma Barranquero <lekktu@gmail.com>
9960
9961 * makefile.w32-in: Update dependencies.
9962 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9963
c115043b
AS
99642008-12-01 Andreas Schwab <schwab@suse.de>
9965
9966 * font.c (register_font_driver): Use xmalloc.
9967 (font_put_frame_data): Likewise.
9968
f5668d2a
CY
99692008-12-01 Chong Yidong <cyd@stupidchicken.com>
9970
860d96be
CY
9971 * xfaces.c (realize_x_face): Make abort condition clearer.
9972
f5668d2a
CY
9973 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9974
379c17e7
CY
99752008-11-30 Chong Yidong <cyd@stupidchicken.com>
9976
9977 * keyboard.c (timer_check): After a timer runs, ensure that the
9978 selected window's buffer is current.
9979
35f36d65
JB
99802008-11-30 Juanma Barranquero <lekktu@gmail.com>
9981
f952c61c
JB
9982 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9983 It was accidentally restored by the Unicode merge.
9984
35f36d65
JB
9985 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9986
b23077df
JB
99872008-11-29 Juanma Barranquero <lekktu@gmail.com>
9988
9989 * w32proc.c: Include "coding.h".
9990 (Fw32_short_file_name): Encode filename passed to Windows API.
9991 (Fw32_long_file_name): Encode filename passed to Windows API and
9992 decode back the result. (Bug#1433)
9993
b8ebe9dd
KH
99942008-11-29 Kenichi Handa <handa@m17n.org>
9995
8cc53f96
KH
9996 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9997 not before accessing it.
9998
b8ebe9dd
KH
9999 * charset.c (Fdefine_charset_internal): After calculating
10000 min_char, max_char, and fastmap, copy the charset structure again.
10001 (encode_char): Fix the previous change.
10002
59bc82c0
SZ
100032008-11-28 Seiji Zenitani <zenitani@mac.com>
10004
10005 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10006
10007 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10008
10009 * nsterm.m (x_set_frame_alpha): New function.
10010
32247e3d
EZ
100112008-11-27 Eli Zaretskii <eliz@gnu.org>
10012
10013 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10014
b003e5ff
JB
100152008-11-27 Juanma Barranquero <lekktu@gmail.com>
10016
10017 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10018 pointer to check_face_name.
10019
708550f5
KH
100202008-11-27 Kenichi Handa <handa@m17n.org>
10021
10022 * category.h (SET_CATEGORY_SET): Call set_category_set.
10023 (set_category_set): Extern it.
10024
10025 * category.c (hash_get_category_set): New function.
10026 (Fmodify_category_entry): Adjusted for the change of
10027 char_table_ref_and_range. Call hash_get_category_set to get a
10028 category set to store in the table.
10029
10030 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10031 Funify_charset.
10032
2ae37cf0 10033 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10034 (DECODE_CHAR): Check if the decoder vector is ready.
10035 (ENCODE_CHAR): Check if the encoder char-table is ready.
10036 (maybe_unify_char): Extern it.
10037
10038 * charset.c (Vchar_unified_charset_table): Delete it.
10039 (inhibit_load_charset_map): New variable.
10040 (temp_charset_work): New variable.
10041 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10042 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10043 New macros.
10044 (load_charset_map): Meaning of control_flag changed. If
10045 inhibit_load_charset_map is nonzero, setup a table in
10046 temp_charset_work.
10047 (load_charset): New argument control_flag.
10048 (map_charset_for_dump): New function.
10049 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10050 map_charset_for_dump.
10051 (Fdefine_charset_internal): If the charset method is MAP, load
10052 mapping tables by calling load_charset.
10053 (Funify_charset): Don't load a mapping table but directly set
10054 Vchar_unify_table.
10055 (maybe_unify_char): New function.
10056 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10057 Handle the case of inhibit_load_charset_map being nonzero.
10058 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10059 Handle the case of inhibit_load_charset_map being nonzero.
10060 (Fclear_charset_maps): Just free temp_charset_work.
10061 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10062 variable.
10063
10064 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10065 change of char_table_ref_and_range.
10066 (char_table_ref_and_range): Change the meaning of argument FROM
10067 and TO. Now the caller must provide initial values for *FROM
10068 and *TO.
10069
10070 * fontset.c (fontset_add): Adjusted for the change of
10071 char_table_ref_and_range.
10072 (fontset_get_font_group): Likewise.
10073 (Ffontset_info): Likewise.
10074
10075 * keymap.c (describe_vector): Adjusted for the change of
10076 char_table_ref_and_range. For char-table, put boundary between
10077 non-ASCII and 8-bit characters.
10078
10079 * print.c (print_object): For bool-vector, delete unnecessary
10080 check of ASCII_BYTE_P.
10081
9196133b
JR
100822008-11-26 Jason Rumney <jasonr@gnu.org>
10083
10084 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10085 leading in font height. (Bug#879)
9196133b 10086
9f688acf
GM
100872008-11-26 Glenn Morris <rgm@gnu.org>
10088
10089 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10090 redefinition with ifdef. (Bug#1383)
10091
90d19aff
AR
100922008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10093
10094 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10095
4ccfa1c0 100962008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10097
10098 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10099 New EmacsView methods.
10100 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10101 Fixes bug #1048,1357,1414.
10102
101032008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10104
10105 Fix bug #1362.
10106 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10107 is not an indexed color.
10108 * nsterm.m (free_indexed_color): Add argument checking.
10109 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10110
e7d5ecb3
CY
101112008-11-24 Chong Yidong <cyd@stupidchicken.com>
10112
10113 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10114 Document confirm-after-completion value for
10115 minibuffer-completion-confirm.
10116
c285743c
JR
101172008-11-24 Jason Rumney <jasonr@gnu.org>
10118
10119 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10120 warning.
10121
b0857706
JR
101222008-11-23 Jason Rumney <jasonr@gnu.org>
10123
10124 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10125 restored before returning.
10126
10127 * w32font.c (check_face_name): New function.
10128 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10129 fonts. (Bug#642)
b0857706 10130
ee50ff07
MR
101312008-11-22 Martin Rudalics <rudalics@gmx.at>
10132
10133 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10134 confirm-nonexistent-file-or-buffer in doc-string.
10135
b8ff72fa
SM
101362008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10137
10138 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10139 Fix copy/paste typo. Add checks.
10140
cee53ed4
KH
101412008-11-21 Kenichi Handa <handa@m17n.org>
10142
10143 * coding.c (detect_coding_iso_2022): Reject invalid composition
10144 sequence.
10145 (DECODE_COMPOSITION_START): If the current source is the last
10146 block, and the current composition doesn't end, regard this
10147 sequence as invalid.
10148 (decode_coding_iso_2022): Handle invalid composition sequence.
10149
f6ef1e65
MR
101502008-11-20 Martin Rudalics <rudalics@gmx.at>
10151
10152 * window.c (coordinates_in_window): Don't return
10153 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10154 line when the window is not the rightmost one. (Bug#1372)
10155
e08b1705
MR
101562008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10157
10158 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10159
ad98e89f
EZ
101602008-11-15 Eli Zaretskii <eliz@gnu.org>
10161
10162 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10163 and bright_bg if noninteractive is non-zero.
10164
fb098a4b
CY
101652008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10166
10167 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10168 x_draw_glyph_string_background.
10169
10170 * w32term.c (x_draw_glyph_string): Likewise.
10171
ce952b6e
CY
101722008-11-15 Chong Yidong <cyd@stupidchicken.com>
10173
10174 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10175 the next glyph string once past the overhang width.
10176
10177 * nsterm.m (ns_draw_glyph_string): Likewise.
10178
10179 * w32term.c (x_draw_glyph_string): Likewise.
10180
26ea7079
CY
101812008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10182
10183 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10184 double file close.
10185
1c33c906
MR
101862008-11-14 Martin Rudalics <rudalics@gmx.at>
10187
10188 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10189 dedicated status of window before attempting to display another
10190 buffer in it.
10191
8fc29035
JB
101922008-11-14 Juanma Barranquero <lekktu@gmail.com>
10193
10194 * msdos.c (Fmsdos_long_file_names):
10195 (syms_of_msdos) <dos-unsupported-char-glyph>:
10196 * dosfns.c (Fint86): Fix typos in docstrings.
10197
55fb4286
EZ
101982008-11-14 Eli Zaretskii <eliz@gnu.org>
10199
10200 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10201
3fda0315
KY
102022008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
10203
10204 * puresize.h (BASE_PURESIZE): Increase to 1260000.
10205
7e849c17
CY
102062008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
10207
10208 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
10209
10210 * frame.h: Negative alpha means "don't touch".
10211
10212 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
10213
10214 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
10215
b9fd67bd
DN
102162008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
10217
10218 * hftctl.c:
10219 * chpdef.h:
10220 * acldef.h: Remove files used only for systems no longer supported.
10221
10222 * Makefile.in: Fix .o alphabetical ordering.
10223 (hftctl.o): Remove dependency, file removed.
10224 (keymap.o, print.o): Depend on charset.h.
10225
d5998e03
KH
102262008-11-10 Kenichi Handa <handa@m17n.org>
10227
2ae37cf0 10228 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 10229
be70e183
CY
102302008-11-08 Chong Yidong <cyd@stupidchicken.com>
10231
10232 * dired.c (file_name_completion): If completion_ignore_case is
10233 enabled, ignore case when checking completion-regexp-list.
10234
7cf94eac
EZ
102352008-11-08 Eli Zaretskii <eliz@gnu.org>
10236
10237 * vm-limit.c (get_lim_data): Fix last change.
10238
ee107a89
KH
102392008-11-08 Kenichi Handa <handa@m17n.org>
10240
10241 * character.c (Fget_byte): New function.
10242 (syms_of_character): Defsubr Fget_byte.
10243
5fd15622
CY
102442008-11-07 Chong Yidong <cyd@stupidchicken.com>
10245
10246 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
10247 cursor position is valid after scrolling.
10248
13d62fad
JB
102492008-11-06 Juanma Barranquero <lekktu@gmail.com>
10250
10251 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
10252
a1dd2936
GM
102532008-11-06 Glenn Morris <rgm@gnu.org>
10254
10255 * xterm.c (handle_one_xevent): Don't let popup menus cause
10256 mouse-autoselect-window related window switching. (Bug#1261)
10257
860cd236
CY
102582008-11-04 David Smith <davidsmith@acm.org> (tiny change)
10259
10260 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
10261
653a3150
AS
102622008-11-04 Andreas Schwab <schwab@suse.de>
10263
10264 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
10265
870f5cac
CY
102662008-11-03 Chong Yidong <cyd@stupidchicken.com>
10267
10268 * xfns.c (Fx_wm_set_size_hint): New function.
10269
1e02f3cb
MR
102702008-11-03 Martin Rudalics <rudalics@gmx.at>
10271
10272 * textprop.c (Fprevious_single_char_property_change): Return 0
10273 when there's no change in a string. (Bug#1301)
10274
e630dfc6
MR
102752008-11-02 Martin Rudalics <rudalics@gmx.at>
10276
10277 * frame.c (do_switch_frame): New argument NORECORD passed to
10278 Fselect_window.
10279 (Fselect_frame): New argument NORECORD passed to
10280 do_switch_frame.
10281 (Fset_frame_selected_window): New argument NORECORD passed to
10282 Fselect_frame.
10283 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
10284 in call of do_switch_frame.
10285 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
10286 Handle NORECORD argument in call of Fselect_frame.
10287 * lisp.h (do_switch_frame, Fselect_frame)
10288 (Fset_frame_selected_window): Adjust declarations.
10289 * window.c (select_frame_norecord): New function.
10290 (run_window_configuration_change_hook): Use it and call
10291 Fselect_frame with NORECORD set.
10292 (Fselect_window): Pass NORECORD to Fselect_frame.
10293 (Fset_window_configuration): Handle NORECORD argument in call of
10294 do_switch_frame.
10295 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
10296 Fset_frame_selected_window.
10297 * keyboard.c (command_loop_1): Handle NORECORD in call of
10298 Fselect_frame (currently ifdefd).
10299
9020b223
GM
103002008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
10301
10302 * emacs.c (USAGE2): Untabify.
10303
793ffee8
SM
103042008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
10305
10306 * composite.c (fill_gstring_header): Fix copy/paste typo.
10307
ab6d1131
MR
103082008-10-31 Martin Rudalics <rudalics@gmx.at>
10309
10310 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
10311 (Fother_window): Rename argument and rewrite doc-string.
10312 (select_window_norecord): Fix return value. (Bug#1276)
10313
601a9cf1
JB
103142008-10-30 Juanma Barranquero <lekktu@gmail.com>
10315
10316 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
10317 new frames overriding foreground for tooltips. Based on similar patch
10318 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
10319
813b0652
CY
103202008-10-29 Chong Yidong <cyd@stupidchicken.com>
10321
10322 * emacs.c (Fdaemon_initialized): Initialize nfd.
10323
4414f58f
MR
103242008-10-29 Martin Rudalics <rudalics@gmx.at>
10325
10326 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
10327 (Fwindow_text_height): Clarify doc-strings.
10328 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
10329 doc-string of window-scroll-functions.
10330
ecdcaa09
RS
103312008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
10332
10333 * category.c (syms_of_category): Fix typo in docstring.
10334
23fe745a
JB
103352008-10-28 Juanma Barranquero <lekktu@gmail.com>
10336
10337 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10338 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10339 Fix typos in docstrings.
10340
ff808935
DN
103412008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10342
10343 * emacs.c (daemon_pipe): Make non-static.
10344 (IS_DAEMON): Move definition ...
10345 * lisp.h (IS_DAEMON): ... here.
10346 (daemon_pipe): Declare.
10347 (is_daemon): Remove.
10348 * dispnew.c (init_display): Use IS_DAEMON.
10349
fc012771
SM
103502008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10351
10352 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10353 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10354
10355 * emacs.c (is_daemon): Remove.
10356 (main): Don't set is_daemon.
10357 (IS_DAEMON): New macro.
10358 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10359 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10360 parent exits.
10361 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10362
d8bdbe6f
CY
103632008-10-27 Chong Yidong <cyd@stupidchicken.com>
10364
d1a072bf
CY
10365 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10366 over-sized glyph, draw it with the default glyph width.
10367
e2e325aa
CY
10368 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10369 glyph, draw it with the default glyph width.
10370
10371 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10372 glyph, draw it with the default glyph width.
10373
d8bdbe6f
CY
10374 * xdisp.c (try_scrolling): When computing the distance from the
10375 scroll margin to PT, try moving some distance past the window
10376 bottom before giving up.
10377
7bfac547
MR
103782008-10-27 Martin Rudalics <rudalics@gmx.at>
10379
10380 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10381 (Fset_window_buffer): Explain in doc-string that a window can be
10382 "strongly" dedicated to its buffer.
10383
4ff029f6
DN
103842008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10385
10386 * emacs.c (daemon_name): New variable.
10387 (main): Deal with --daemon=SERVER_NAME.
10388 (Fdaemonp): Return a name if one was passed to --daemon.
10389
5790ef40
DN
103902008-10-26 Romain Francoise <romain@orebokech.com>
10391
f9bd0df9 10392 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10393 (main): Create a pipe before forking, make the parent exit only after
10394 the child has closed its end of the pipe. Move closing the
10395 descriptors ...
10396 (Fdaemon_initialized): ... here. New function.
10397
f5385255
SM
103982008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10399
4d632321
SM
10400 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10401 the previous unoptimized table.
10402
f5385255
SM
10403 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10404 the distinction between non-nil and non-t value of `dedicated'.
10405
6c56a0f3
CY
104062008-10-25 Chong Yidong <cyd@stupidchicken.com>
10407
10408 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10409 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10410
fec89261
MR
104112008-10-25 Martin Rudalics <rudalics@gmx.at>
10412
10413 * window.c (Fget_buffer_window, Fdelete_windows_on)
10414 (Freplace_buffer_in_windows): Make buffer argument optional and
10415 rename to buffer_or_name.
10416
34fcddd0
CY
104172008-10-24 Chong Yidong <cyd@stupidchicken.com>
10418
f5385255
SM
10419 * xdisp.c (handle_single_display_spec, handle_display_prop):
10420 Undo 2005-05-16 change.
34fcddd0
CY
10421 (handle_stop): Pop iterator if it's loaded with an empty string.
10422 (get_overlay_strings_1): Don't save iterator if it's loaded with
10423 an empty string (bug#1201).
10424
064766f2
KH
104252008-10-24 Kenichi Handa <handa@m17n.org>
10426
10427 * ftfont.c (ftfont_otf_features): Fix previous change.
10428 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10429 calling ftfont_otf_features.
10430
f9bd0df9 104312008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10432
10433 * font.c (font_match_p): Fix for the case that a vector of
10434 characters is in script-representative-chars.
10435
1dae9197
MA
104362008-10-24 Michael Albinus <michael.albinus@gmx.de>
10437
10438 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10439 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10440 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10441 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10442 macro. (Bug#1186)
1dae9197 10443
f9bd0df9 104442008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10445
10446 * s/sol2-10.h: New file.
10447
878a4584
JB
104482008-10-23 Juanma Barranquero <lekktu@gmail.com>
10449
10450 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10451 poor beast has survived 9+ years and the jump from xterm.c!).
10452
cd265ca6
MR
104532008-10-23 Martin Rudalics <rudalics@gmx.at>
10454
10455 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10456 Reword doc-string.
f5385255 10457 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10458
472a4dc9
JB
104592008-10-23 Juanma Barranquero <lekktu@gmail.com>
10460
10461 * character.c (syms_of_character) <script-representative-chars>:
10462 <unicode-category-table>: Doc fixes.
10463
159bd5a2
NF
104642008-10-23 Noah Friedman <friedman@splode.com>
10465
10466 * coding.c (make_conversion_work_buffer): Check that
10467 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10468 Fget_buffer_create.
10469
49f9c344
KH
104702008-10-23 Kenichi Handa <handa@m17n.org>
10471
10472 * font.c (font_add_log): Check the values of extra properties.
10473
12bb3111
MR
104742008-10-22 Martin Rudalics <rudalics@gmx.at>
10475
10476 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10477 Reword doc-string.
10478 (Fset_window_parameter): Use NILP.
10479 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10480 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10481
bbeb4e99
JB
104822008-10-22 Juanma Barranquero <lekktu@gmail.com>
10483
10484 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10485
104862008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10487
10488 * nsfns.m (ns_appkit_version): New function.
10489 (x-server-version): Use it.
10490 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10491 (x-server-vendor): Don't check_ns().
10492
10493 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10494
a9b555d3
JB
104952008-10-22 Juanma Barranquero <lekktu@gmail.com>
10496
10497 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10498 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10499
4626499f
KH
105002008-10-22 Kenichi Handa <handa@m17n.org>
10501
e3681952
KH
10502 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10503 scripts.
10504
4626499f
KH
10505 * category.c (word_boundary_p): Check scripts instead of charset.
10506 Handle nil value in word-separating-categories and
10507 word-combining-categories.
10508 (syms_of_category): Fix docstrings of word-separating-categories
10509 and word-combining-categories.
10510
1560f91a
EZ
105112008-10-21 Eli Zaretskii <eliz@gnu.org>
10512
10513 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10514 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10515
f4668441
MR
105162008-10-21 Martin Rudalics <rudalics@gmx.at>
10517
10518 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10519 Rename arg "buffer" to "buffer_or_name".
10520 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10521 it optional.
10522 (no_switch_window): Remove since the return value is not used.
a9b555d3 10523 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10524 Consider window as dedicated when Fwindow_dedicated_p returns a
10525 non-nil value.
10526 * lisp.h: Remove prototype for no_switch_window.
10527
fd75ddb2
JD
105282008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10529
10530 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10531 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10532
07295713
KH
105332008-10-21 Kenichi Handa <handa@m17n.org>
10534
10535 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10536 check Vlatin_extra_code_table.
10537
712adc82
EZ
105382008-10-20 Eli Zaretskii <eliz@gnu.org>
10539
10540 * fileio.c (Fset_file_modes): Doc fix.
10541
f549eb0b
MA
105422008-10-19 Michael Albinus <michael.albinus@gmx.de>
10543
10544 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10545 in arrays.
10546
aac0c6e3
MR
105472008-10-19 Martin Rudalics <rudalics@gmx.at>
10548
10549 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10550 Mention kill-buffer in doc-string.
10551 (Fset_window_buffer): Reinsert tem check removed in last commit.
10552 (Fenlarge_window, Fshrink_window): Have argument names and
10553 doc-string follow Elisp manual more closely.
10554
105552008-10-18 Eli Zaretskii <eliz@gnu.org>
10556
10557 * fileio.c (Fset_file_modes): Doc fix.
10558
105592008-10-18 Martin Rudalics <rudalics@gmx.at>
10560
10561 * window.c (Fwindow_width, Fset_window_start)
10562 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10563 (Fdelete_windows_on, Freplace_buffer_in_windows):
10564 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10565 (Fwindow_dedicated_p): Make window argument optional.
10566 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10567 (Fset_window_buffer): Respect any non-nil dedicated value for
10568 window. Rename "buffer" argument to "buffer_or_name".
10569
105702008-10-18 Ulrich Mueller <ulm@gentoo.org>
10571
10572 * m/sh3.h: New file, machine description for SuperH.
10573
105742008-10-17 Martin Rudalics <rudalics@gmx.at>
10575
10576 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10577
105782008-10-17 Kenichi Handa <handa@m17n.org>
10579
10580 * ftfont.c (ftfont_otf_features): Fix indexing
10581 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10582
105832008-10-16 Magnus Henoch <mange@freemail.hu>
10584
10585 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10586 (Fdbus_call_method_asynchronously): Ditto.
10587 This change makes C-h f display the argument list.
10588
105892008-10-16 Chong Yidong <cyd@stupidchicken.com>
10590
10591 * fileio.c (Fexpand_file_name): Doc fix.
10592
10593 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10594 of :foreground and :background equivalent to unspecified (20.x
10595 compatibility).
10596
105972008-10-15 Eli Zaretskii <eliz@gnu.org>
10598
10599 * buffer.c (syms_of_buffer): Doc fix.
10600
106012008-10-14 Kenichi Handa <handa@m17n.org>
10602
10603 * font.c (font_clear_prop): When clearing font width, clear the
10604 average width field too.
10605
106062008-10-12 Andreas Schwab <schwab@suse.de>
10607
10608 * ftfont.c (ftfont_shape_by_flt): Make static.
10609 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10610
10611 * font.c: Don't include <m17n-flt.h>.
10612
106132008-10-10 Eli Zaretskii <eliz@gnu.org>
10614
10615 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10616
106172008-10-09 Eli Zaretskii <eliz@gnu.org>
10618
10619 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10620 away code.
10621
106222008-10-09 Chong Yidong <cyd@stupidchicken.com>
10623
10624 * dispnew.c (update_text_area): Avoid looping due to large glyph
10625 overhangs (bug#1070).
10626
106272008-10-09 Kenichi Handa <handa@m17n.org>
10628
10629 * fontset.c (face_for_char): If face->fontset is negative, just
10630 return ascii_face.
10631
f5385255
SM
10632 * font.c (font_delete_unmatched): Fix previous change.
10633 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10634
106352008-10-09 Martin Rudalics <rudalics@gmx.at>
10636
10637 * frame.c (Fraise_frame): On text-only terminals select frame in
10638 order to make it visible. (Bug#1061)
10639
106402008-10-08 Chong Yidong <cyd@stupidchicken.com>
10641
10642 * fontset.c (fontset_find_font): Check frame validity.
10643
106442008-10-07 Chong Yidong <cyd@stupidchicken.com>
10645
a9b555d3 10646 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10647 (xg_display_close): Allow Emacs to close all displays (bug#985).
10648
106492008-10-06 Andreas Schwab <schwab@suse.de>
10650
f5385255 10651 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10652
106532008-10-06 Chong Yidong <cyd@stupidchicken.com>
10654
f5385255 10655 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10656
a9b555d3 10657 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10658
10659 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10660 during initialization.
10661
106622008-10-04 Eli Zaretskii <eliz@gnu.org>
10663
10664 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10665 whole thing on MSDOS frames as well as on a TTY.
10666
10667 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10668 well as for TTY.
10669 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10670 well as on a TTY.
10671
10672 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10673 as well as for TTY.
10674
10675 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10676
10677 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10678 MSDOS frames as well.
10679
106802008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10681
10682 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10683 correct arguments.
b71ac3dd 10684 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10685
106862008-10-03 Glenn Morris <rgm@gnu.org>
10687
10688 * emacs.c (USAGE1): Add --daemon.
10689
106902008-10-02 Eli Zaretskii <eliz@gnu.org>
10691
10692 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10693 100, so it's in percents as advertised.
10694
106952008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10696
10697 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10698 (ns_output.current_cursor, ns_output.desired_cursor)
10699 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10700 (FRAME_NEW_CURSOR_COLOR): Remove.
10701
10702 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10703 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10704 enumeration (HOLLOW_BOX_CURSOR, etc.).
10705
10706 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10707 (draw_window_cursor): Simplify code.
f5385255
SM
10708 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10709 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10710 updates manually.
a9b555d3
JB
10711 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10712 Use core Emacs cursor types.
aac0c6e3 10713
b8ff72fa 10714 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10715
107162008-10-02 Martin Rudalics <rudalics@gmx.at>
10717
10718 * process.c (Faccept_process_output): Fix doc-string.
10719
107202008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10721
10722 * gmalloc.c (__sbrk): Also define for uClibc.
10723
10724 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10725 for uClibc.
10726
107272008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10728
10729 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10730 styles.
10731 (nsfont_open): Reenable the cache.
10732
107332008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10734
10735 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10736 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10737
107382008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10739
10740 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10741 a suspended terminal.
10742
107432008-09-30 Michael Albinus <michael.albinus@gmx.de>
10744
10745 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10746
107472008-09-30 Eli Zaretskii <eliz@gnu.org>
10748
10749 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10750
107512008-09-30 Chong Yidong <cyd@stupidchicken.com>
10752
10753 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10754 in a continued line coincides with a line beginning.
10755
107562008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10757
10758 * nsfont.m (nsfont_trait_distance): Fix bug.
10759 (nsfont_list): Return a list rather than a vector (syncs with Handa
10760 changes of 2008-05-14).
10761 (nsfont_open): Improve logging.
10762
107632008-09-29 Andreas Schwab <schwab@suse.de>
10764
10765 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10766
107672008-09-28 Martin Rudalics <rudalics@gmx.at>
10768
10769 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10770 name as char-resolve-modifiers.
10771 Reported by: Markus Triska <markus.triska@gmx.at>
10772
107732008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10774
10775 * dispnew.c (init_display): Return earlier when running as a daemon.
10776
107772008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10778
10779 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10780
107812008-09-27 Eli Zaretskii <eliz@gnu.org>
10782
10783 * composite.c (Fcomposition_get_gstring)
10784 (Fcompose_region_internal, Fcompose_string_internal)
10785 (Ffind_composition_internal): Doc fix.
10786 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10787 (syms_of_composite) <auto-composition-function>: Doc fix.
10788 (syms_of_composite) <composition-function-table>: Doc fix.
10789
107902008-09-25 Chong Yidong <cyd@stupidchicken.com>
10791
10792 * search.c (wordify): New argument for lax word-ends.
10793 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10794
107952008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10796
10797 * lisp.h (is_daemon): Declare.
10798 * dispnew.c (init_display): Do not try to initialize the terminal
10799 when running as a daemon.
10800
108012008-09-22 Chong Yidong <cyd@stupidchicken.com>
10802
10803 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10804 x_display_pixel_height.
10805
108062008-09-22 Martin Rudalics <rudalics@gmx.at>
10807
10808 * undo.c (record_point): Don't call Fundo_boundary for first
10809 change. (Bug#731)
10810
108112008-09-22 Juanma Barranquero <lekktu@gmail.com>
10812
10813 * emacs.c (Fdaemonp): Doc fix.
10814
108152008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10816
10817 * emacs.c (main): Place #ifdef in the proper place.
10818
108192008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10820
10821 * emacs.c (standard_args): Add --daemon.
10822 (main): Disconnect from the terminal when --daemon is passed.
10823 (is_daemon): New variable.
10824 (Fdaemonp): New function.
10825 (syms_of_emacs): Defsubr it.
10826
108272008-09-20 Chong Yidong <cyd@stupidchicken.com>
10828
10829 * xdisp.c (get_next_display_element): Handle string display
10830 correctly when checking for the end of a box run.
10831
108322008-09-20 Glenn Morris <rgm@gnu.org>
10833
10834 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10835 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10836 (Frename_file): Avoid copying to trash if a rename involves
10837 a delete. (Bug#964).
10838
108392008-09-20 Eli Zaretskii <eliz@gnu.org>
10840
10841 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10842 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10843 frames as well as termcap frames.
10844 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10845 get_named_tty.
10846
108472008-09-19 Eli Zaretskii <eliz@gnu.org>
10848
10849 * process.c (procfs_system_process_attributes): Fix cmdline in
10850 case /proc/PID/cmdline is empty.
10851
10852 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10853 x_display_pixel_height.
10854
108552008-09-19 Juanma Barranquero <lekktu@gmail.com>
10856
10857 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10858
10859 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10860 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10861
108622008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10863
10864 * dispextern.h (struct it): Move line_wrap away from the middle of
10865 bitfields. Move voffset in struct iterator_stack_entry after the
10866 bitfields. Move tab_width near after another short.
10867
108682008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10869
10870 * frame.h (struct frame): Move alpha from the middle of bitfields.
10871
10872 * window.h (struct window): Move frozen_window_start_p after the
10873 rest of the bitfields to reduce padding.
10874
108752008-09-18 Chong Yidong <cyd@stupidchicken.com>
10876
10877 * xterm.h (x_display_info): Remove `height' and `width' members.
10878
10879 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10880
10881 * w32term.h (w32_display_info): Remove `height', `width',
10882 `height_in', and `width_in' members.
10883
b8ff72fa
SM
10884 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10885 New functions.
aac0c6e3
MR
10886 (x_calc_absolute_position): Use them.
10887 (x_term_init): Omit removed `height' and `width' members.
10888
b8ff72fa
SM
10889 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10890 New functions.
aac0c6e3
MR
10891 (w32_read_socket, x_calc_absolute_position): Use them.
10892 (w32_initialize_display_info, w32_term_init): Omit removed members
10893 of w32_display_info.
10894
b8ff72fa
SM
10895 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10896 New functions.
10897 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10898
b8ff72fa
SM
10899 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10900 New functions.
aac0c6e3
MR
10901 (x_calc_absolute_position): Use them.
10902 (x_term_init): Omit removed `height' and `width' members.
10903
10904 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10905 (compute_tip_xy):
10906 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10907 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10908 x_display_pixel_width.
10909
109102008-09-18 Kenichi Handa <handa@m17n.org>
10911
10912 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10913 (composition_compute_stop_pos): Fix handling of static composition.
10914 (Fcomposition_get_gstring): Check FROM and TO at first.
10915
109162008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10917
46e722a9 10918 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10919 mixup (YAILOM).
10920
109212008-09-17 Chong Yidong <cyd@stupidchicken.com>
10922
10923 * indent.c (Fvertical_motion): Use position reported by iterator
10924 instead of PT for determining screen motion (bug#943).
10925
109262008-09-17 Romain Francoise <romain@orebokech.com>
10927
10928 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10929
109302008-09-17 Kenichi Handa <handa@m17n.org>
10931
10932 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10933
10934 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10935 if necessary.
10936
109372008-09-16 Kenichi Handa <handa@m17n.org>
10938
10939 * coding.c (make_conversion_work_buffer): Avoid calling
10940 Fget_buffer_create if it is not necessary.
10941
109422008-09-15 Martin Rudalics <rudalics@gmx.at>
10943
10944 * window.c (Fselect_window): Don't update window_select_count and
10945 use_time when norecord is not nil.
10946
109472008-09-14 Kenichi Handa <handa@m17n.org>
10948
10949 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10950 specpdl_ptr.
10951
109522008-09-12 Kenichi Handa <handa@m17n.org>
10953
10954 * indent.c (scan_for_column): Don't handle automatic composition
10955 if the current buffer is not associated with a window.
10956
10957 * composite.c (composition_reseat_it): If the current buffer is
10958 not associated with a window, ignore the automatic composition.
10959 (find_automatic_composition): Likewise.
10960
109612008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10962
10963 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10964 (Fgpm_mouse_stop): Use it.
10965 * termhooks.h (close_gpm): Declare.
10966 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10967 connection if Gpm_GetEvent fails.
10968
10969 * window.c (set_window_buffer): Always preserve current-buffer.
10970
109712008-09-12 Glenn Morris <rgm@gnu.org>
10972
10973 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10974
109752008-09-11 Glenn Morris <rgm@gnu.org>
10976
10977 * charset.c (charset-map-path): Doc fix.
10978
109792008-09-10 Kenichi Handa <handa@m17n.org>
10980
10981 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10982
10983 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10984 compose a grapheme cluster with the preceding base glyph.
10985
10986 * composite.c (composition_compute_stop_pos): Fix previous change.
10987 Reset cmp_it->id to -1 at first.
10988
109892008-09-10 Glenn Morris <rgm@gnu.org>
10990
10991 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10992
109932008-09-09 Chong Yidong <cyd@stupidchicken.com>
10994
10995 * keyboard.c (read_key_sequence): Reapply translation maps when
10996 switching keyboards.
10997
109982008-09-09 Kenichi Handa <handa@m17n.org>
10999
11000 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11001 characters.
11002
11003 * composite.c (FORWARD_CHAR): Fix calculation
11004 of (POSITION).pos_byte.
11005 (composition_compute_stop_pos): Limit the search of composition to
11006 at most 500 characters ahead. If we reach the limit or find a
11007 newline, set cmp_it->ch to -2 and return 0.
11008 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11009
110102008-09-08 Kenichi Handa <handa@m17n.org>
11011
11012 * indent.c (Fvertical_motion): Be sure to set
11013 it_overshoot_expected if it.cmp_it.id is non-negative.
11014
110152008-09-07 Andreas Schwab <schwab@suse.de>
11016
11017 * callproc.c (Fcall_process): Don't hold references to string data
11018 across garbage collection. Move initialisation of new_argv down
11019 to avoid compiler bug.
11020
110212008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11022
11023 * process.c (Fsystem_process_attributes): Doc fix.
11024
110252008-09-07 Chong Yidong <cyd@stupidchicken.com>
11026
11027 * callproc.c (Fcall_process): Canonicalize current directory name.
11028
11029 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11030 iterator advances to the next line if the current line ends in a
11031 continued tab.
11032
110332008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11034
11035 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11036 member to point to cmp_from.
11037
11038 * xdisp.c: Doc fix for references to gidx data member.
11039
110402008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11041
11042 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11043
110442008-09-07 Kenichi Handa <handa@m17n.org>
11045
11046 * composite.c (FORWARD_CHAR): Check STOP after
11047 incrementing (POSITION).pos.
11048
110492008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11050
11051 * process.c (Fsystem_process_attributes): Doc fix.
11052
110532008-09-06 Chong Yidong <cyd@stupidchicken.com>
11054
11055 * keyboard.c (Ftop_level): Doc fix.
11056
110572008-09-06 Eli Zaretskii <eliz@gnu.org>
11058
11059 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11060 minibuffer, don't let lower part of menu invade the echo area.
11061
11062 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11063 "char *q" to access menu text and advance through it. Revert the
11064 change that displayed ">" instead of ASCII character 0x10.
11065
110662008-09-05 Eli Zaretskii <eliz@gnu.org>
11067
11068 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11069 toggle boxes and radio buttons on MS-DOS as well.
11070
110712008-09-05 Kenichi Handa <handa@m17n.org>
11072
11073 * composite.c (autocmp_chars): Check lookback count.
11074 (composition_compute_stop_pos): Set cmp_it->lookback.
11075 (composition_reseat_it): Check lookback count.
11076 (struct position_record): New struct.
11077 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11078 (find_automatic_composition): New function.
11079 (composition_adjust_point): Use find_automatic_composition.
11080
11081 * dispextern.h (struct composition_it): New member lookback.
11082
110832008-09-02 Chong Yidong <cyd@stupidchicken.com>
11084
11085 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11086 if moving by a single line.
11087
110882008-09-02 Andreas Schwab <schwab@suse.de>
11089
11090 * xterm.c (x_delete_display): Fix merge error.
11091
11092 * fileio.c (Fexpand_file_name): Remove unused variables.
11093
110942008-09-02 Eli Zaretskii <eliz@gnu.org>
11095
11096 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11097 storage on all platforms, not just on DOS_NT.
11098
110992008-09-02 Jason Rumney <jasonr@gnu.org>
11100
b8ff72fa
SM
11101 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11102 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11103
111042008-09-01 Chong Yidong <cyd@stupidchicken.com>
11105
11106 * xfaces.c (Finternal_set_alternative_font_family_alist)
11107 (Finternal_set_alternative_font_registry_alist): Properly copy
11108 entire alist structure.
11109
111102008-09-01 Kenichi Handa <handa@m17n.org>
11111
d66c0241 11112 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11113 representative chars of the script is a vector.
d66c0241
JB
11114 (ftfont_list): Handle the case where the representative chars of
11115 the script is a vector.
aac0c6e3
MR
11116
11117 * character.c (syms_of_character): Docstring of
11118 script-representative-chars fixed.
11119
111202008-08-31 Eli Zaretskii <eliz@gnu.org>
11121
11122 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11123 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11124 the menu. Allocate larger buffer for `text', to account for
11125 possible ^C characters.
11126
111272008-08-31 Martin Rudalics <rudalics@gmx.at>
11128
11129 * xdisp.c (prepare_menu_bars): Don't call
11130 Vwindow_size_change_functions with arg Qt.
11131
111322008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11133
11134 * font.h (font_range):
11135 * fileio.c (report_file_error):
46e722a9
SM
11136 * composite.c (composition_update_it): Yet another int/Lisp_Object
11137 mixup (YAILOM).
aac0c6e3
MR
11138
111392008-08-30 Glenn Morris <rgm@gnu.org>
11140
11141 * data.c (Fmake_variable_frame_local): Doc fix.
11142
11143 * frame.c (Fmodify_frame_parameters): Doc fix.
11144
111452008-08-30 Eli Zaretskii <eliz@gnu.org>
11146
11147 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11148 needed by GetTokenInformation.
11149 (w32_system_process_attributes): Check return values of all system
11150 APIs.
11151
11152 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11153 only when the state changes.
11154 (IT_update_begin, IT_update_end): Add termscript trace.
11155
11156 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11157 clipboard is unavailable. Set dst to NULL if it doesn't point to
11158 malloc'ed data.
11159 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11160 passing random values to xfree.
11161
11162 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11163 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11164
111652008-08-29 Jason Rumney <jasonr@gnu.org>
11166
11167 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11168
111692008-08-29 Eli Zaretskii <eliz@gnu.org>
11170
11171 * composite.c (fill_gstring_body): Avoid compiler warnings.
11172
11173 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11174 LGLYPH_SET_CODE to avoid compiler warnings.
11175
2ae37cf0 11176 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11177
11178 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11179
11180 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11181 LGLYPH_SET_CODE.
11182
111832008-08-29 Kenichi Handa <handa@m17n.org>
11184
11185 * fileio.c (report_file_error): Don't downcase the first character
11186 of errstring if it is still unibyte.
11187
111882008-08-29 Kenichi Handa <handa@m17n.org>
11189
11190 These changes are to re-implement the automatic composition so
11191 that it doesn't use text properties.
11192
11193 * Makefile.in (ftfont.o): Depend on composite.h.
11194 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11195
11196 * character.h (Vunicode_category_table): Extern it.
11197
11198 * character.c (Vunicode_category_table): New variable.
11199 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11200
11201 * chartab.c (optimize_sub_char_table): Perform more greedy
11202 optimization.
11203
b8ff72fa
SM
11204 * composite.h (enum composition_method):
11205 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
11206 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
11207 (Vcomposition_function_table): Extern it.
11208 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
11209 (composition_gstring_put_cache, composition_gstring_from_id)
11210 (composition_gstring_p, composition_gstring_width)
11211 (composition_compute_stop_pos, composition_reseat_it)
11212 (composition_update_it, composition_adjust_point): Extern them.
11213 (Fcomposition_get_gstring): EXFUN it.
11214
d66c0241 11215 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
11216 (Vcomposition_function_table)
11217 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
11218 (gstring_hash_table, gstring_work, gstring_work_headers):
11219 New variables.
aac0c6e3
MR
11220 (gstring_lookup_cache, composition_gstring_put_cache)
11221 (composition_gstring_from_id, composition_gstring_p)
11222 (composition_gstring_width, fill_gstring_header)
11223 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
11224 (composition_reseat_it, composition_update_it)
b8ff72fa 11225 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
11226 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
11227 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 11228 Defsubr composition_get_gstring.
aac0c6e3
MR
11229
11230 * dispextern.h (struct glyph): New union u.cmp. Delete the member
11231 cmp_id.
11232 (struct glyph_string): Delete the member gidx. New members
11233 cmp_id, cmp_from, and cmp_to.
11234 (enum it_method): Delete GET_FROM_COMPOSITION.
11235 (struct composition_it): New struct.
11236 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
11237 Delete c, len, cmp_id, cmp_len in u.comp.
11238
11239 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 11240 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 11241 (enum lglyph_indices): Likewise.
b8ff72fa 11242 (font_range): Adjust extern.
aac0c6e3
MR
11243 (font_fill_lglyph_metrics): Extern it.
11244
11245 * font.c (QCf): New variable.
11246 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11247 (font_prepare_composition): Delete this function.
11248 (font_range): Type and arguments changed.
11249 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
11250 (font_fill_lglyph_metrics): New function.
b8ff72fa 11251 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 11252 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
11253 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
11254 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
11255
11256 * fontset.h (font_for_char): Extern it.
11257
11258 * fontset.c (font_for_char): New function.
11259
11260 * ftfont.c: Include composite.h.
11261 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 11262 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
11263
11264 * indent.c: Include composite.h and dispextern.h.
11265 (check_composition): Delete this function.
11266 (scan_for_column): Handle composition by
11267 composition_compute_stop_pos, composition_reseat_it, and
11268 composition_update_it.
11269 (compute_motion): Likewise.
11270 (Fvertical_motion): Fix checking of composition.
11271
11272 * keyboard.c (adjust_point_for_property): Check composition by
11273 composition_adjust_point.
11274
b8ff72fa 11275 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
11276 struct glyph_string.
11277
b8ff72fa
SM
11278 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
11279 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
11280 struct glyph.
11281 (produce_composite_glyph): Likewise.
11282
b8ff72fa
SM
11283 * w32term.c (x_draw_composite_glyph_string_foreground):
11284 Adjust for the change of struct glyph_string.
aac0c6e3
MR
11285 (x_draw_glyph_string): Likewise.
11286
11287 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
11288 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
11289
11290 * xdisp.c: Include font.h.
11291 (it_props): Delete the entry for Qauto_composed.
11292 (init_iterator): Initialize it->cmp_it.id to -1.
11293 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 11294 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
11295 (handle_auto_composed_prop): Delete it.
11296 (handle_composition_prop): Handle only static composition.
11297 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
11298 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 11299 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
11300 (pop_it): Likewise.
11301 (get_next_element): Delete next_element_from_composition.
11302 (CHAR_COMPOSED_P): New macro.
11303 (get_next_display_element): For automatic composition, get a face
11304 from the font in the glyph-string.
11305 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 11306 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
11307 (next_element_from_string): Check if the character at the current
11308 position is composed by CHAR_COMPOSED_P.
11309 (next_element_from_buffer): Likewise.
d66c0241
JB
11310 (next_element_from_composition): Adjust for the change of struct it.
11311 Update it->cmp_it.
b8ff72fa
SM
11312 (dump_glyph): Adjust for the change of struct glyph.
11313 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
11314 it and struct glyph. Don't handle automatic composition here.
11315 (fill_gstring_glyph_string): New function.
11316 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 11317 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
11318 (BUILD_GSTRING_GLYPH_STRING): New macro.
11319 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
11320 automatic composition.
b8ff72fa 11321 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 11322 struct glyph.
b8ff72fa 11323 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 11324
b8ff72fa 11325 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
11326 the change of struct glyph_string.
11327 (x_draw_glyph_string): Likewise.
11328
113292008-08-29 Glenn Morris <rgm@gnu.org>
11330
11331 * buffer.c (word-wrap): Doc fix.
11332 * xdisp.c (truncate-partial-width-windows): Doc fix.
11333 Increase default to 50.
11334
113352008-08-29 Chong Yidong <cyd@stupidchicken.com>
11336
11337 * xdisp.c (update_tool_bar_unwind): New function.
11338 (update_tool_bar): Temporarily set selected frame before building
11339 tool-bar items.
11340
113412008-08-28 Michael Albinus <michael.albinus@gmx.de>
11342
11343 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11344 snprintf, respectively.
11345 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11346
113472008-08-28 Chong Yidong <cyd@stupidchicken.com>
11348
11349 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11350 LDFLAGS to GNUstep CC invocation.
11351
113522008-08-27 Chong Yidong <cyd@stupidchicken.com>
11353
11354 * indent.c (Fvertical_motion): Revert last change. Handle the
11355 general case where we are moving forward, and PT spans multiple
11356 screen lines.
11357
11358 * eval.c (find_handler_clause): Temporarily increase
11359 max-lisp-eval-depth while printing the backtrace buffer, to
11360 guarantee that help-mode code can run.
11361
113622008-08-27 Eli Zaretskii <eliz@gnu.org>
11363
11364 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11365 colors under -rv.
11366 (IT_set_frame_parameters): Don't swap foreground and background
11367 colors if `(reverse . t)' is present in the frame properties.
11368 (internal_terminal_init): Call init_frame_faces only for the
11369 initial frame.
11370
113712008-08-27 Andreas Schwab <schwab@suse.de>
11372
11373 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11374
113752008-08-27 Andreas Schwab <schwab@suse.de>
11376
11377 * search.c (search_buffer): Set char_base to zero only at the end.
11378
113792008-08-27 Kenichi Handa <handa@m17n.org>
11380
b8ff72fa 11381 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11382
113832008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11384
11385 * xterm.c (x_term_init): Temporarily hide the partially
11386 initialized terminal while calling vendor-specific-keysyms.
11387
113882008-08-26 Eli Zaretskii <eliz@gnu.org>
11389
11390 * msdos.c (internal_terminal_init): Most initializations done only
11391 once, especially initial_screen_colors[] and termscript open.
11392
113932008-08-26 Chong Yidong <cyd@stupidchicken.com>
11394
11395 * eval.c (Fcondition_case): Doc fix.
11396
11397 * widgetprv.h (EmacsFramePart): Change font member to the new font
11398 struct.
11399
11400 * widget.c: Include character.h and font.h for XSETFONT.
11401 (setup_frame_gcs): Compute X font id from font struct, just once.
11402
114032008-08-26 Eli Zaretskii <eliz@gnu.org>
11404
11405 * term.c (get_named_tty): Fix last change.
11406
114072008-08-26 Chong Yidong <cyd@stupidchicken.com>
11408
11409 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11410 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11411
114122008-08-25 Eli Zaretskii <eliz@gnu.org>
11413
11414 * frame.c (do_switch_frame): Mark previously displayed frame as
11415 obscured for FRAME_MSDOS_P frames as well.
11416
114172008-08-24 Eli Zaretskii <eliz@gnu.org>
11418
11419 * frame.c (make_terminal_frame): Initialize f->terminal,
11420 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11421 Set the top frame to newly created frame.
11422 (Fmake_terminal_frame): Reuse the_only_display_info.
11423
11424 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11425 estimating available memory.
11426
b97439ce 114272008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11428
11429 * nsterm.m (ns_draw_window_cursor): Don't call
11430 NSDisableScreenUpdates and NSEnableScreenUpdates on
11431 non-NS_IMPL_COCOA systems.
11432
114332008-08-23 Andreas Schwab <schwab@suse.de>
11434
11435 * process.c (procfs_system_process_attributes): Fix use of
11436 uninitialized variables.
11437
114382008-08-23 Eli Zaretskii <eliz@gnu.org>
11439
11440 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11441
11442 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11443 calling tty-set-up-initial-frame-faces.
11444
b8ff72fa
SM
11445 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11446 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11447
11448 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11449 addition to output_termcap.
11450
11451 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11452
11453 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11454 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11455 highlight.
11456
11457 * process.c [!subprocesses]: Define QCname.
11458 (syms_of_process): Intern and staticpro it.
11459
11460 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11461 Adjust for changes in encoding/decoding routines.
11462 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11463 encode_coding and decode_coding.
11464
b8ff72fa 11465 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11466
11467 * dosfns.c: Include frame.h before termhooks.h.
11468 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11469 variable termscript.
11470
11471 * s/msdos.h (USER_FULL_NAME): Define.
11472 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11473
11474 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11475 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11476 pw->pw_gecos.
11477
11478 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11479 SELECTED_FRAME as additional (1st) argument.
11480 (tty_read_avail_input): Handle output_msdos_raw in
11481 addition to output_termcap.
11482
11483 * msdos.c: Include frame.h before termhooks.h.
11484 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11485 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11486 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11487 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11488 (IT_set_terminal_modes, IT_reset_terminal_modes)
11489 (IT_set_frame_parameters): Use tty->termscript instead of a global
11490 variable termscript.
11491 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11492 global variable terminal_coding. Don't refer to
11493 Vnonascii_translation_table.
11494 (internal_terminal_init): Set Vwindow_system in current_kboard.
11495 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11496 Announce date and time of session start, if termscript is open.
11497 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11498 term.c:init_tty). Open termscript only of not already open.
11499 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11500 here instead of dos_ttraw. Don't initialize display if this is an
11501 initial tty. Don't set FRAME_FONT.
11502 (Vwindow_system_version): Bump to 23.
11503 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11504 is available, set up mouse_position_hook.
11505 (dos_ttraw, IT_set_terminal_modes): If called with initial
11506 terminal, do nothing.
11507 (IT_set_frame_parameters): Handle the Qtty_type frame
11508 parameter by calling internal_terminal_init.
11509 (dos_set_window_size, show_mouse_face)
11510 (clear_mouse_face, IT_note_mode_line_highlight)
11511 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11512 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11513 (initialize_msdos_display): New function.
11514 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11515 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11516 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11517 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11518 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11519 (request_sigio, unrequest_sigio): Don't define, now defined on
11520 sysdep.c.
11521 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11522
11523 * term.c [MSDOS]: Include msdos.h.
11524 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11525 conditional to DOS_NT. Allow only one call to this function in a
11526 session. Don't allocate a new struct tty_display_info; instead,
11527 reuse the_only_display_info. Call get_tty_size to get screen
11528 dimensions. Call init_baud_rate to set bad_rate.
11529 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11530 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11531 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11532 (get_tty_terminal, get_named_tty, Ftty_type)
11533 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11534 output_termcap.
b8ff72fa
SM
11535 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11536 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11537 only when subprocesses are supported.
aac0c6e3
MR
11538
11539 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11540 f->output_data.x.
11541 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11542 terminal devices.
11543
5582fbc7 11544 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11545 x_output.
11546 (FRAME_FONT): Use output_data.tty.
11547 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11548 (struct x_display_info): Rename from display_info. Update all users in
11549 msdos.c.
aac0c6e3 11550 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11551 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11552 (dos_ttraw): Update prototype.
11553
11554 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11555 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11556
115572008-08-23 Jason Rumney <jasonr@gnu.org>
11558
11559 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11560 (fn_TIFFSetDirectory): New library function used.
11561 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11562 (tiff_load): Use :index to select among multiple images. Set count
11563 property when multiple images exist.
11564 (gif_format): Use :index, not :image.
11565
115662008-08-23 Chong Yidong <cyd@stupidchicken.com>
11567
11568 * xdisp.c (try_scrolling): Check INT_MAX instead of
11569 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11570 to obtain INT_MAX.
11571
115722008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11573
11574 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11575
115762008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11577
11578 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11579 GNUstep library location.
11580
115812008-08-21 Chong Yidong <cyd@stupidchicken.com>
11582
11583 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11584 before using it.
11585
11586 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11587
115882008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11589
11590 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11591 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11592 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11593 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11594 (EmacsApp-cursor_blink_handler): Remove declaration.
11595 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11596 match 01 Feb 2008 changes in xterm.c.
11597 (ns_read_socket): Add cast to avoid warning.
11598 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11599 GNUstep.
11600
116012008-08-20 Chong Yidong <cyd@stupidchicken.com>
11602
11603 * xselect.c (x_get_foreign_selection): Return nil if desired
11604 selection could not be obtained, instead of signalling an error.
11605
116062008-08-20 David Reitter <david.reitter@gmail.com>
11607
11608 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11609 * nsterm.m: Remove ns-specific code for cursor blinking.
11610 (ns_draw_window_cursor): Clear cursor properly rather than
11611 redrawing the area. Respect width of bar cursors.
11612 These changes enable the use of generic blink-cursor-mode and
11613 generic cursor types in NS and support smooth cursor movements (do
11614 not blink off after command).
11615 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11616 Nextstep, too.
11617
116182008-08-19 Kenichi Handa <handa@m17n.org>
11619
11620 * font.c (Vfont_log_deferred): New variable.
11621 (font_add_log): Check Vfont_log_deferred.
11622 (font_deferred_log): New function.
11623
11624 * font.h (font_deferred_log): Extern it.
11625
11626 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11627 for sorting.
11628 (face_for_char): Use deferred log.
11629
116302008-08-18 Kenichi Handa <handa@m17n.org>
11631
11632 * fontset.c (face_for_char): Add font log.
11633
11634 * font.c (font_add_log): Add the font properties :script, :lang,
11635 and :otf in the log.
11636
116372008-08-17 Chong Yidong <cyd@stupidchicken.com>
11638
11639 * xdisp.c: Remove dead code.
11640 (handle_invisible_prop, next_overlay_string): Defer call to
11641 setup_for_ellipsis.
11642 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11643
116442008-08-15 Chong Yidong <cyd@stupidchicken.com>
11645
11646 * xfaces.c (lookup_derived_face): Properly handle possible zero
11647 return value of get_lface_attributes.
11648 (merge_faces): Don't tell lookup_derived_face to signal an error
11649 if face is not found.
11650
11651 * dired.c (Fdirectory_files): Doc fix.
11652
11653 * process.c (make_process): Initialize kill_without_query struct
11654 member.
11655
116562008-08-15 Eli Zaretskii <eliz@gnu.org>
11657
11658 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11659 Alternative calculation of totphys for Visual Studio 6.
11660
11661 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11662
11663 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11664 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11665 All users changed.
11666 (stat): Only root directory passed to GetDriveType. Allow RAM
11667 disk as well as local fixed disk when w32-get-true-file-attributes
11668 is set to `local'.
11669 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11670 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11671 (w32_cached_id, w32_add_to_cache): New functions.
11672 (get_name_and_id): Look account names in the cache before calling
11673 lookup_account_sid.
11674 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11675 New initialization flags.
11676 (globals_of_w32): Initialize them to zero.
11677 (w32_system_process_attributes): Use w32_cached_id and
11678 w32_add_to_cache.
11679
116802008-08-14 Lawrence Mitchell <wence@gmx.li>
11681
11682 * lread.c (Fread_char, Fread_char_exclusive): If no character
11683 event is read before timeout is reached, return nil, rather than
11684 converting to a number.
11685
116862008-08-14 Chong Yidong <cyd@stupidchicken.com>
11687
11688 * fns.c (use_dialog_box): Doc fix.
11689
11690 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11691 on OS X.
11692
116932008-08-13 Chong Yidong <cyd@stupidchicken.com>
11694
11695 * frame.c (Qns_parse_geometry): New var.
11696 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11697
116982008-08-11 Chong Yidong <cyd@stupidchicken.com>
11699
11700 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11701 space character in calculating tabs.
11702
117032008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11704
11705 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11706
117072008-08-10 Glenn Morris <rgm@gnu.org>
11708
11709 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11710 silence gcc "limited range of data type" warnings in some
11711 make_fixnum_or_float calls.
11712
117132008-08-09 Eli Zaretskii <eliz@gnu.org>
11714
11715 * w32.c (w32_system_process_attributes): If the process does not
11716 exist, return nil.
11717
11718 * w32.c: Include thelp32.h, psapi.h and coding.h.
11719 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11720 declarations.
11721 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11722 (Process32Next_Proc): New typedefs.
11723 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11724 (g_b_init_process32_next, g_b_init_open_thread_token)
11725 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11726 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11727 (g_b_init_get_process_working_set_size)
11728 (g_b_init_global_memory_status_ex): New static variables.
11729 (globals_of_w32): Initialize them.
11730 (create_toolhelp32_snapshot, process32_first, process32_next)
11731 (open_thread_token, impersonate_self, revert_to_self)
11732 (get_process_memory_info, get_process_working_set_size)
11733 (global_memory_status, global_memory_status_ex): New wrapper
11734 functions.
11735 (w32_list_system_processes, w32_system_process_attributes)
11736 (enable_privilege, restore_privilege, ltime, process_times):
11737 New functions.
11738 (convert_time_raw): New function.
11739 (convert_time): Remove conversion of FILETIME into time in 100
11740 nsec units, call convert_time_raw instead.
11741
11742 * process.h (w32_list_system_processes, w32_system_process_attributes):
11743 Add prototypes.
11744 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11745 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11746 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11747 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11748
11749 * process.c (Fsystem_process_attributes): Doc fix.
11750
117512008-08-08 Chong Yidong <cyd@stupidchicken.com>
11752
11753 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11754 a continued multi-char glyph; if so, advance to the actual glyph.
11755
117562008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11757
11758 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11759
11760 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11761 (.m.o): Use it.
11762 * config.in: Regenerate.
11763
117642008-08-07 Chong Yidong <cyd@stupidchicken.com>
11765
11766 * xdisp.c (redisplay_window): Revert last change.
11767 (try_window): Check bottom scroll margin too.
11768
117692008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11770
11771 * config.in: Regenerate.
11772
11773 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11774 -list-load-path-shadows'.
11775 (nsgui.h): Reduce number of things depending on it.
11776
117772008-08-06 Chong Yidong <cyd@stupidchicken.com>
11778
11779 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11780 instead of window-end which does the wrong thing at eob.
11781 (try_cursor_movement): Minor optimization.
11782 (redisplay_window): If scroll margin is defined, don't assume
11783 window doesn't need scrolling.
11784
117852008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11786
11787 * config.in: Regenerate.
11788
11789 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11790 (mostlyclean): Don't delete *.d under NS.
11791
11792 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11793
117942008-08-06 Kenichi Handa <handa@m17n.org>
11795
11796 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11797
117982008-08-06 Andreas Schwab <schwab@suse.de>
11799
11800 * config.in: Regenerate.
11801
118022008-08-05 Chong Yidong <cyd@stupidchicken.com>
11803
11804 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11805 forcing a window start.
11806
11807 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11808 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11809
118102008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11811
11812 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11813 argument.
11814
118152008-08-05 Juanma Barranquero <lekktu@gmail.com>
11816
11817 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11818 <scroll-down-aggressively, before-change-functions>:
11819 <after-change-functions>: Reflow docstrings.
11820
118212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11822 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11823
11824 Dock menu customization, based on a patch by Ken Raeburn, plus some
11825 other fixes.
11826 * nsmenu.m (dockMenu): New variable.
11827 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11828
11829 * nsterm.h (dockMenu): Declare.
11830
11831 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11832 (ns_term_init): Initialize dockMenu.
11833 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11834 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11835 left.
11836
11837 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11838
118392008-08-04 Chong Yidong <cyd@stupidchicken.com>
11840
11841 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11842
11843 * config.in: Regenerate.
11844
118452008-08-04 Seiji Zenitani <zenitani@mac.com>
11846
11847 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11848
118492008-08-04 Chong Yidong <cyd@stupidchicken.com>
11850
11851 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11852
118532008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11854
11855 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11856
11857 * keyboard.h: Comment an #endif.
11858
11859 * lisp.h (have_menus_p): Adjust comment.
11860
11861 * menu.c (find_and_return_menu_selection): Fix comparison with
11862 client_data.
11863
11864 * nsmenu.m (popup_activated_flag): New variable.
11865 (popup_activated): New function.
11866 (menu-or-popup-active-p): New exported lisp definition.
11867 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11868 when popup done.
11869 (ns_popup_dialog): Set popup_activated_flag.
11870
11871 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11872 version for GNUstep (handled by conditional typedef in nsterm.m).
11873 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11874 in rgb.txt).
11875
11876 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11877
11878 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11879
11880 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11881
11882 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11883 shortcircuit if popup_activated like GTK and X toolkit.
11884
11885 * m/inter386.h: Change DARWIN to DARWIN_OS.
11886
11887 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11888 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11889 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11890 comment on NO_SOCK_SIGIO.
11891
118922008-08-03 Chong Yidong <cyd@stupidchicken.com>
11893
11894 * nsterm.m (windowDidResize): Remove stopModal call.
11895
118962008-08-03 Andreas Schwab <schwab@suse.de>
11897
11898 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11899 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11900
119012008-08-02 Chong Yidong <cyd@stupidchicken.com>
11902
11903 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11904 Don't use uninitialized pointer variable when using getrlimit.
11905
119062008-08-02 Jason Rumney <jasonr@gnu.org>
11907
11908 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11909
119102008-08-02 Eli Zaretskii <eliz@gnu.org>
11911
11912 * alloc.c (NSTATICS): Bump to 0x640.
11913
11914 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11915
11916 * lisp.h: Add prototype for directory_files_internal.
11917
11918 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11919 New functions.
11920 (syms_of_process): Defsubr them. Add initializations for various
11921 Q* symbols used in procfs_system_process_attributes.
11922 (procfs_list_system_processes, procfs_system_process_attributes)
11923 [HAVE_PROCFS]: New functions.
11924 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11925 (procfs_get_total_memory): New functions.
11926
119272008-08-01 Juanma Barranquero <lekktu@gmail.com>
11928
11929 * xfaces.c (Fx_load_color_file): Fix previous change;
11930 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11931
119322008-08-01 Michael Albinus <michael.albinus@gmx.de>
11933
11934 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11935
119362008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11937
11938 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11939
119402008-08-01 Chong Yidong <cyd@stupidchicken.com>
11941
11942 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11943
11944 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11945 define NSApplicationDelegateReplySuccess.
11946 (EmacsView -converstationIdentifier): Use long instead of
11947 NSInteger for GNUstep, since it doesn't have NSInteger.
11948
11949 * xmenu.c: Revert last change.
11950
11951 * keyboard.h: Fix last change.
11952
119532008-08-01 Juanma Barranquero <lekktu@gmail.com>
11954
11955 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11956 on Windows.
11957
119582008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11959
11960 Warning clearing and clean-up in NS port.
11961 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11962 Add prototypes.
11963 * nsgui.h (FACE_DEFAULT): Remove, unused.
11964 (XGCValues): Change colors to unsigned long.
11965 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11966 nsterm.m.
11967 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11968 (ns_list_fonts): Remove, unused.
11969 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11970 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11971 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11972 (nsfont_draw): Compare face colors to 0, not nil.
11973 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11974 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11975 (-addSubmenuWithTitle:): Use NSMenuItem class.
11976 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11977 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11978 (ns_clip_to_row): Make gc arg a BOOL.
11979 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11980 ns_clip_to_row() call.
11981 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11982 used). Cast FRAME_FONT assignments.
11983 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11984 (ns_string_to_lispmod): Change arg to const char.
11985 (ns_term_init): Use NSMenuItem class.
11986 (EmacsApp -openFile:): Move to different section of file.
11987 (EmacsApp -application:openFiles:): Don't return a value, call
11988 -replyToOpenOrPrint:.
11989 (EmacsView -keyDown:): Fix up cast.
11990 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11991 (EmacsView -menuDown:): Cast tag in call to
11992 find_and_call_menu_selection().
11993 (ns_list_fonts): Remove, unused.
11994 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11995 (ns_fontname_to_xlfd): Make static.
11996 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11997 Remove prototypes (now in keyboard.h).
11998 (next_menubar_widget_id): Remove, unused.
11999 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12000 Remove prototypes (now in keyboard.h).
12001 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12002
120032008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12004
12005 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12006 (floatfns.o): Depend on syssignal.h.
12007 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12008
12009 * systty.h: Fix previous change that removed BSD_TERMIOS.
12010 Add comments to #ifdefs.
12011
120122008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12013
12014 * w32fns.c (w32-load-color-file): Remove.
12015 (x-open-connection): Use renamed Fx_load_color_file.
12016 * xfaces.c (x-load-color-file): Add.
12017 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12018 Emacs.clr.
12019 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12020
120212008-07-31 Michael Albinus <michael.albinus@gmx.de>
12022
12023 * dbusbind.c (Fdbus_call_method_asynchronously)
12024 (Fdbus_method_error_internal): New defuns.
12025 (xd_read_message): Handle also reply messages.
12026 (Vdbus_registered_functions_table): Extend docstring.
12027
120282008-07-31 Juanma Barranquero <lekktu@gmail.com>
12029
12030 * keyboard.c (gobble_input): Fix previous change.
12031
120322008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12033
12034 * bitmaps/README:
12035 * xfns.c:
12036 * termcap.c:
12037 * term.c:
12038 * syswait.h:
12039 * systty.h:
12040 * systime.h:
12041 * syssignal.h:
12042 * sysdep.c:
12043 * process.h:
12044 * process.c:
12045 * print.c:
12046 * ndir.h:
12047 * lread.c:
12048 * keyboard.c:
12049 * getpagesize.h:
12050 * floatfns.c:
12051 * fileio.c:
12052 * emacs.c:
12053 * doc.c:
12054 * dispnew.c:
12055 * dired.c:
12056 * data.c:
12057 * callproc.c:
12058 * buffer.c:
12059 * README:
12060 * Makefile.in:
12061 * s/template.h:
12062 * s/msdos.h:
12063 * m/vax.h: Remove VMS support.
12064 * s/vms.h:
12065 * vlimit.h:
12066 * uaf.h:
12067 * temacs.opt:
12068 * param.h:
12069 * ioctl.h: Remove file.
12070
120712008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12072
12073 * s/ms-w32.h (MULTI_KBOARD): Remove.
12074 * xterm.c:
12075 * xselect.c:
12076 * xfns.c:
12077 * window.c:
12078 * w32term.c:
12079 * w32fns.c:
12080 * terminal.c:
12081 * termhooks.h:
12082 * term.c:
12083 * sysdep.c:
12084 * keyboard.h:
12085 * keyboard.c:
12086 * frame.h:
12087 * frame.c:
12088 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12089 * config.in: Regenerate.
12090
120912008-07-30 Jason Rumney <jasonr@gnu.org>
12092
12093 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12094
12095 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12096 (w32font_open_internal): Get unicode version of textmetrics.
12097 Don't enable or disable glyph indices here.
12098 (w32font_open): Disable use of glyph indices.
12099
12100 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12101
121022008-07-30 Chong Yidong <cyd@stupidchicken.com>
12103
12104 * minibuf.c (Vread_buffer_function): Doc fix.
12105
121062008-07-30 John Paul Wallington <jpw@pobox.com>
12107
12108 * minibuf.c (read_buffer_completion_ignore_case): New var.
12109 (Fread_buffer): Use it.
12110
121112008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12112
12113 * systty.h (sensemode): Remove empty #if. Remove reference to
12114 BSD_TERMIOS, unused.
12115
12116 * sysdep.c: Remove reference to DGUX.
12117 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12118
12119 * config.in: Regenerate.
12120
121212008-07-30 Jason Rumney <jasonr@gnu.org>
12122
12123 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12124
121252008-07-29 Jason Rumney <jasonr@gnu.org>
12126
12127 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12128 is populated.
12129 (uniscribe_encode_char): Always use uniscribe.
12130 Avoid using context if cache is populated.
12131
121322008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12133
12134 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12135 open menu.
12136
12137 * gtkutil.c (menu_nav_ended): Remove.
12138 (create_menus): Remove signal connect for menu_nav_ended.
12139
121402008-07-28 Chong Yidong <cyd@stupidchicken.com>
12141
12142 * xdisp.c (redisplay_window): Check return value of
12143 compute_window_start_on_continuation_line before forcing a window
12144 start.
12145
121462008-07-28 Jason Rumney <jasonr@gnu.org>
12147
12148 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12149
12150 * w32term.c (w32_enable_unicode_output, cleartype_active):
12151 Remove obsolete display options.
12152 (x_draw_glyph_string_background): Don't use old cleartype_active
12153 workaround.
12154 (w32_initialize): Remove cleartype_active initialization.
12155 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12156
121572008-07-28 Andreas Schwab <schwab@suse.de>
12158
12159 * lisp.h (init_weak_hash_tables, syms_of_font)
12160 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12161 (remove_hash_entry): Don't declare.
12162 * eval.c (maybe_call_debugger): Make static and move before use.
12163 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12164 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12165 * xterm.h (x_set_frame_alpha): Declare.
12166
121672008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12168
12169 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12170 (create_menus): Connect selection-done to menu_nav_ended.
12171
121722008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12173
12174 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12175 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12176 parameter with read of 'alpha' one.
12177 (Qns_frame_parameter): Remove.
5582fbc7 12178 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12179 (next-selection-coding-system, Vselection_coding_system)
12180 (Vnext_selection_coding_system): Drop.
12181
121822008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12183
12184 * nsfns.m (do-applescript, do_applescript): Rename to
12185 ns-do-applescript, ns_do_applescript, and move within file.
12186
121872008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12188
12189 Remove support for Mac Carbon.
12190 * mactoolbox.c:
12191 * macterm.h:
12192 * macterm.c:
12193 * macselect.c:
12194 * macmenu.c:
12195 * macgui.h:
12196 * macfns.c:
12197 * mac.c: Remove file.
12198 * s/darwin.h:
12199 * m/intel386.h:
12200 * xfaces.c:
12201 * xdisp.c:
12202 * window.c:
12203 * tparam.c:
12204 * termhooks.h:
12205 * termcap.c:
12206 * term.c:
12207 * syssignal.h:
12208 * sysselect.h:
12209 * sysdep.c:
12210 * process.c:
12211 * lread.c:
12212 * lisp.h:
12213 * keyboard.c:
12214 * image.c:
12215 * fringe.c:
12216 * frame.h:
12217 * frame.c:
12218 * fontset.c:
12219 * font.h:
12220 * font.c:
12221 * fns.c:
12222 * fileio.c:
12223 * emacs.c:
12224 * dispnew.c:
12225 * dispextern.h:
12226 * config.in:
12227 * atimer.c:
2ae37cf0 12228 * Makefile.in: Remove code for Carbon.
aac0c6e3 12229
f0131492 122302008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
12231
12232 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
12233
122342008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12235
12236 * macterm.h (kCGBitmapByteOrder32Host): New define for
12237 non-universal SDKs.
12238
12239 * image.c (mac_create_cg_image_from_image, image_load_image_io)
12240 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12241
12242 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
12243 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
12244
122452008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
12246
12247 * w32inevt.c: Include dispextern.h.
12248
122492008-07-26 Andreas Schwab <schwab@suse.de>
12250
12251 * print.c (print_object): Fix off-by-one in last change.
12252
122532008-07-25 Juanma Barranquero <lekktu@gmail.com>
12254
12255 * term.c (syms_of_term): Don't initialize default_orig_pair,
12256 default_set_foreground and default_set_background on Windows.
12257
122582008-07-25 Jason Rumney <jasonr@gnu.org>
12259
12260 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
12261 ScriptItemize. Clean up return value checking. Remove unused
12262 variables.
12263 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
12264 shaping engine.
12265
12266 * w32font.c (w32font_has_char): Handle the case where we can't
12267 determine the script for a character.
12268
122692008-07-25 Chong Yidong <cyd@stupidchicken.com>
12270
12271 * term.c (syms_of_term): Initialize default_orig_pair,
12272 default_set_foreground, and default_set_background.
12273
12274 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12275 clash (bug#86).
12276 (getloadavg): Callers changed.
12277
12278 * image.c (svg_load_image): Fix last change.
12279 (svg_load_image): Use rsvg_handle_get_dimensions to check that
12280 image size is valid. Use g_object_unref instead of deprecated
12281 rsvg_handle_free to free rsvg handle.
12282 (x_from_xcolors): Don't initialize pixmap (silence compiler).
12283
122842008-07-25 Jason Rumney <jasonr@gnu.org>
12285
12286 * w32font.c (w32font_encode_char): Encode characters outside BMP as
12287 surrogates before looking up glyph index.
12288 (w32font_text_extents): Encode as surrogates if falling back to
12289 functions that need UTF-16 wide chars.
12290
12291 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
12292 BMP as surrogates before looking up glyph index.
12293
122942008-07-25 Chong Yidong <cyd@stupidchicken.com>
12295
12296 * image.c (svg_load_image): Check for failure in return value of
12297 rsvg_handle_get_pixbuf. Free rsvg handle when done.
12298
122992008-07-25 Jason Rumney <jasonr@gnu.org>
12300
12301 * w32font.c (Fx_select_font): Reverse sense of second arg.
12302
123032008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
12304
12305 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
12306 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
12307
12308 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
12309 (PURESIZE): Use it.
12310
123112008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
12312
12313 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
12314 * m/alpha.h (TEXT_END):
12315 * m/ibmrs6000.h (TEXT_END):
12316 * m/macppc.h (TEXT_END):
12317 * s/darwin.h (TEXT_END):
12318 * s/msdos.h (TEXT_END): Remove, unused.
12319 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
12320 * s/cygwin.h: Remove comment.
12321
12322 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
12323 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
12324 * m/intel386.h (DOT_GLOBAL_START):
12325 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
12326 (USG): Remove, file not used on USG platforms.
12327
12328 * Makefile.in (HAVE_X11): Remove empty #else.
12329
123302008-07-24 Andreas Schwab <schwab@suse.de>
12331
12332 * fileio.c (Finsert_file_contents): Properly adjust undo list
12333 after format conversion.
12334
123352008-07-24 Jan Djärv <jan.h.d@swipnet.se>
12336
12337 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12338 (menu_nav_ended): Remove.
12339 (create_menus): Remove signal connect for menu_nav_ended.
12340 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12341 create_menus.
12342 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12343
123442008-07-23 Jason Rumney <jasonr@gnu.org>
12345
12346 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12347 with opened font.
12348 (w32font_open): Set font type to gdi.
12349
12350 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12351
123522008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12353
12354 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12355 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12356 defines it.
12357 * unexec.c (ADDR_CORRECT): Define unconditionally.
12358
12359 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12360
12361 * unexec.c: Remove code depending on !COFF and USG, the file is
12362 not used for such systems.
12363
12364 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12365 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12366 (LD_SWITCH_SYSTEM_1): Remove, update users.
12367
12368 * s/darwin.h (DATA_END):
12369 * m/intel386.h (DATA_END):
12370 * m/ibmrs6000.h (DATA_END):
12371 * m/alpha.h (DATA_END): Remove, unused.
12372
12373 * config.in: Regenerate.
12374 * s/ms-w32.h (subprocesses): Define unconditionally.
12375 * s/template.h (subprocesses): Update comment.
12376 * s/vms.h (subprocesses):
12377 * s/usg5-4.h (subprocesses):
12378 * s/hpux10-20.h (subprocesses):
12379 * s/gnu-linux.h (subprocesses):
12380 * s/cygwin.h (subprocesses):
12381 * s/bsd-common.h (subprocesses):
12382 * s/aix4-2.h (subprocesses):
12383 * s/darwin.h (subprocesses): Do not define, defined by default now.
12384
12385 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12386 Remove all references.
12387 (temacs): Add GNUstep specific ld flags.
12388
12389 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12390 similarly to what X does.
12391
123922008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12393
12394 * nsfns.m (x-list-fonts): Remove.
12395 (syms_of_nsfns): Drop the x-list-fonts declaration.
12396 * nsterm.m: Get rid of remaining "//" comments.
12397
123982008-07-22 Chong Yidong <cyd@stupidchicken.com>
12399
12400 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12401
12402 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12403 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12404 (Fns_own_selection_internal, Fx_disown_selection_internal)
12405 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12406
12407 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12408 ... */' style of docstrings. Doc fixes.
12409
124102008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12411
12412 * terminfo.c (UP, BC, PC): Undo previous change.
12413
12414 * nsfns.m: Rename ns prefixed functions/variables to the
12415 corresponding x versions. Update references.
12416
124172008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12418
12419 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12420
124212008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12422
12423 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12424 Remove forwarding functions.
12425 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12426 non-static.
12427 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12428 non-static.
12429 (ns_frame_parm_handlers): Use the new names.
12430 (syms_of_nsfns): Move to the end of file.
12431
12432 * nsterm.m (syms_of_nsterm): Move to the end of file.
12433
12434 * dispnew.c (init_display): Remove code for X10.
12435
124362008-07-22 Jason Rumney <jasonr@gnu.org>
12437
12438 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12439 bare drive.
12440
124412008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12442
12443 * nsterm.m (syms_of_nsterm): Remove debugging println.
12444
124452008-07-22 David Reitter <david.reitter@gmail.com>
12446
12447 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12448 Carbon implementation of the same functionality: execute arbitrary
12449 AppleScript code.
12450
124512008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12452
12453 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12454 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12455 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12456 (Fx_display_mm_height, Fx_display_mm_width)
12457 (Fx_display_backing_store, Fx_display_visual_class)
12458 (Fx_display_save_under, Fx_open_connection)
12459 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12460 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12461 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12462 (Fx_display_pixel_width, Fx_display_pixel_height)
12463 (Fx_display_usable_bounds, Fx_display_planes)
12464 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12465 ... */' style of docstrings.
12466
124672008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12468
12469 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12470 on this platform.
12471 (mips):
12472 * m/iris4d.h (mips): Do not define.
12473 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12474
12475 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12476
12477 * image.c:
12478 * nsfns.m:
12479 * nsselect.m:
12480 * nsterm.h:
12481 * nsterm.m: Rename ns prefixed functions/variables to the
12482 corresponding x versions. Update references.
12483
12484 * m/ibms390x.h (NO_REMAP): Do not undefine.
12485
12486 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12487
124882008-07-21 Chong Yidong <cyd@stupidchicken.com>
12489
12490 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12491 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12492 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12493 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12494 (Fns_display_mm_height, Fns_display_mm_width)
12495 (Fns_display_backing_store, Fns_display_visual_class)
12496 (Fns_display_save_under, Fns_open_connection)
12497 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12498 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12499 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12500 (Fns_display_pixel_width, Fns_display_pixel_height)
12501 (Fns_display_usable_bounds, Fx_display_planes)
12502 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12503
125042008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12505
12506 * print.c (print_object): Check print_depth before searching for
12507 circularities.
12508
125092008-07-21 Michael Albinus <michael.albinus@gmx.de>
12510
12511 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12512 only sprintf.
12513
125142008-07-21 Kenichi Handa <handa@m17n.org>
12515
12516 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12517
125182008-07-20 Andreas Schwab <schwab@suse.de>
12519
12520 * syntax.c (find_start_pos, find_start_value)
12521 (find_start_value_byte, find_start_begv, find_defun_start)
12522 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12523
125242008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12525
12526 * s/sol2-3.h: Insert contents of s/sol2.h.
12527 (LD_SWITCH_SYSTEM): Remove redundant definition.
12528 * s/sol2.h: Remove, unused.
12529
125302008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12531
12532 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12533
125342008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12535
12536 * Makefile.in (ns_appdir): Fix typo in find command.
12537
125382008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12539
12540 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12541
12542 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12543 added not supported anymore.
12544
12545 * s/usg5-4-2.h (LIBS_SYSTEM):
12546 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12547
12548 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12549 * s/lynxos.h (GETPGRP_NO_ARG):
12550 * s/hpux10-20.h (NO_SIOCTL_H):
12551 * s/gnu.h (GETPGRP_NO_ARG):
12552 * s/gnu-linux.h (NO_SIOCTL_H):
12553 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12554 * s/cygwin.h (GETPGRP_NO_ARG):
12555 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12556 (C_DEBUG_SWITCH): Remove duplicate definition.
12557
12558 * m/ibms390.h: Remove boilerplate comments.
12559
12560 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12561
12562 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12563 (wait_reading_process_output): Remove code for SunOS, platform not
12564 supported anymore. Use SOLARIS2 instead of sun.
12565
125662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12567
12568 * font.c (font_open_by_name): Under NS, default lface height to zero.
12569 (font_open_for_lface): Under NS, set size based on frame fontsize.
12570 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12571 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12572
125732008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12574
12575 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12576 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12577 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12578 YES/NO.
12579 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12580 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12581 * Makefile.in (clean): Clear out build destination dir.
12582
125832008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12584
12585 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12586 xterm, xselect.
12587 * lisp.h: Remove declaration of hash_remove.
12588 * nsgui.h: Remove redefinitions of hash_remove.
12589 * fns.c (hash_remove): Rename to hash_remove_from_table.
12590
125912008-07-19 Seiji Zenitani <zenitani@mac.com>
12592
12593 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12594 strdup() the family UTF8String before modifying it.
12595
125962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12597
12598 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12599 NS_FACE_BACKGROUND with 0 instead of nil.
12600 * nsfont.m (nsfont_draw): Same.
12601
126022008-07-19 Chong Yidong <cyd@stupidchicken.com>
12603
12604 * nsfns.m (ns_set_background_color): Fix crash.
12605
126062008-07-18 Chong Yidong <cyd@stupidchicken.com>
12607
12608 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12609
126102008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12611
12612 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12613
126142008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12615
12616 * gtkutil.c: Include <config.h> instead of "config.h".
12617
12618 * lisp.h (Foverlay_buffer): Add EXFUN.
12619
12620 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12621 child process to complete child_setup. Undo 2005-09-21 change.
12622
12623 * s/darwin.h: Mention setsid after vfork.
12624
126252008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12626
12627 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12628 Depend on macgui.h.
12629
12630 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12631 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12632
12633 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12634 and f19.
12635 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12636
12637 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12638 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12639 Remove enumerators.
12640
12641 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12642 Check if FACE_FROM_ID returns NULL.
12643
126442008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12645
12646 * w32inevt.c (change_frame_size): Remove extern declaration.
12647 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12648 change_frame_size.
12649
126502008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12651
12652 * getloadavg.c: Revert last change (2008-07-15).
12653
126542008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12655
12656 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12657 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12658 from configure.
12659
126602008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12661
12662 * s/sol2.h:
12663 * s/sol2-4.h: Reorganize conditionals.
12664
12665 * ecrt0.c: Remove code depending on m68000, not used anymore.
12666
12667 * fns.c (hash_remove): Make static.
12668 * lisp.h (hash_remove): Don't prototype.
12669
12670 * m/ibmrs6000.h:
12671 * m/ibms390x.h:
12672 * m/macppc.h: Remove boilerplate comments.
12673
12674 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12675 Solaris, which does not need them.
12676
12677 * m/vax.h: Remove comments about unsupported systems.
12678
12679 * s/darwin.h: Reorganize ifdefs.
12680
126812008-07-17 Andreas Schwab <schwab@suse.de>
12682
12683 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12684
126852008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12686
12687 Use SDATA. Follow coding convention of placing operators at
12688 beginning of next line rather than end of previous line, and placing
12689 spaces around infix operators.
12690
12691 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12692 in case it was defined already.
12693 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12694 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12695 ns_default.
12696 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12697 Lisp_Objects.
12698 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12699 (ns_defined_color, ns_color_to_lisp): Declare.
12700 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12701 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12702 it's accepted even with USE_LISP_UNION_TYPE.
12703 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12704 (update_frame_tool_bar): Remove apparently obsolete tests for
12705 non-integerness of f->tool_bar_lines.
12706 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12707 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12708 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12709 (nsfont_open): Don't confuse NULL for Qnil.
12710 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12711 * menu.h (find_and_call_menu_selection):
12712 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12713 (find_and_return_menu_selection): Always return something.
12714 * frame.h: Include dispextern.h for Display_Info.
12715 (display_x_get_resource): Declare.
12716
127172008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12718
12719 * syntax.c: Remove stdio.h include accidentally introduced in
12720 Emacs.app commit.
12721 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12722 NS_IMPL_COCOA.
12723 * keyboard.c (handle_async_input, input_available_signal): Remove
12724 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12725
127262008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12729 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12730 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12731 Use SDATA.
12732
12733 * keymap.c: Remove all NS-specific code.
12734 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12735 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12736 where_is_preferred_modifier, return a different value depending on how
12737 preferred is the binding.
12738 (where_is_internal): Adjust accordingly.
12739 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12740 Adjust to new preferred_sequence_p.
12741 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12742 * keyboard.c (parse_solitary_modifier): Not static any more.
12743 * keyboard.h (parse_solitary_modifier): Declare.
12744
127452008-07-16 Andreas Schwab <schwab@suse.de>
12746
12747 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12748 of easymenu.
12749
127502008-07-16 Chong Yidong <cyd@stupidchicken.com>
12751
12752 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12753 that we don't move off the line.
12754
127552008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12756
12757 * keyboard.c (Qsuper): Remove.
12758 (parse_menu_item): Don't call where_is_internal specially for NS.
12759
127602008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12761
12762 * s/gnu-linux.h: Remove boilerplate comments.
12763
12764 * m/alpha.h (__ELF__): Consolidate conditions.
12765
12766 * m/m68k.h (linux): Use GNU_LINUX instead.
12767 Remove boilerplate comments.
12768
12769 * m/intel386.h: Undo refactoring from previous change.
12770 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12771 too, remove dead code.
12772 (linux): Use GNU_LINUX instead.
12773
127742008-07-16 Jason Rumney <jasonr@gnu.org>
12775
12776 * w32gui.h: Repeat 26 June changes lost by last change.
12777
127782008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12779
12780 * systty.h: Remove code for Aix on 386, unsupported platform.
12781
12782 * s/ms-w32.h: Remove boilerplate comments.
12783 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12784
12785 * s/gnu-linux.h (TERM): Remove support.
12786 (HAVE_SYSVIPC): Remove, unused.
12787 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12788 for this system.
12789
12790 * process.c: Remove support for IRIS, unused.
12791 Remove support for TERM, not relevant anymore.
12792
12793 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12794 used with the definition.
12795
12796 * s/aix4-2.h (static): Do not undef.
12797
12798 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12799 only used on Aix.
12800 (HAVE_SYSVIPC): Remove, unused.
12801
12802 * m/hp800.h (CANNOT_DUMP): Do not undef.
12803
12804 * m/alpha.h: Fix comment.
12805
12806 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12807 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12808 used by this configuration.
12809 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12810 * unexec.c: Remove code depending on HPUX and
12811 USG_SHARED_LIBRARIES, not used with this file. Remove code
12812 depending on IRIS, unused. Remove if 0-ed code.
12813
12814 * s/template.h: Remove comments about static.
12815
12816 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12817 Remove if 0-ed code.
12818 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12819 were the same as the default.
12820 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12821 Remove boilerplate comments.
12822 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12823 (HAVE_SYSVIPC): Remove, unused.
12824 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12825
12826 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12827 Remove boilerplate comments.
12828 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12829 Remove boilerplate comments.
12830 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12831 Remove boilerplate comments.
12832 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12833
12834 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12835 USG systems which do not use DATA_SEG_BITS.
12836 Refactor code. Remove boilerplate comments.
12837
12838 * m/ibms390.h:
12839 * m/m68k.h:
12840 * s/bsd-common.h:
12841 * s/cygwin.h:
12842 * s/darwin.h:
12843 * s/freebsd.h:
12844 * s/gnu.h:
12845 * s/msdos.h: Remove boilerplate comments.
12846
12847 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12848 do not use this file.
aac0c6e3
MR
12849 (IRIS_4D): Remove, unused.
12850
12851 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12852 do not use this file.
aac0c6e3
MR
12853 (SIGN_EXTEND_CHAR):
12854 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12855 * unexmips.c: Remove file, unused.
12856
12857 * editfns.c (Fuser_full_name): Replace the only use of
12858 USER_FULL_NAME with its value.
12859 * config.in: Regenerate.
12860
128612008-07-16 David Reitter <david.reitter@gmail.com>
12862
12863 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12864 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12865
128662008-07-16 Glenn Morris <rgm@gnu.org>
12867
12868 * emacs.c (system-type): Doc fix.
12869
128702008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12871
12872 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12873 If the cache doesn't work, let's fix it, rather than work around it.
12874
128752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12876
12877 * Makefile.in: Correct additions for nsfont.o in last commit.
12878 * nsfont.m: New file (forgot last commit).
12879
128802008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12881
12882 * callproc.c (set_initial_environment): Initialize
12883 Vprocess_environment under CANNOT_DUMP (fixes crash when
12884 batch-compiling for bootstrap).
12885
128862008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12887 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12888
c4cc8b9a
JB
12889 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12890 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12891
128922008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12893
12894 Changes and additions for NeXTstep windowing system (Cocoa and
12895 GNUstep) support.
12896
12897 * Makefile.in:
12898 * config.in: Support defines and build commands for NS port.
12899 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12900 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12901 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12902 windowing.
12903 (struct face): Add synth_ital field.
12904 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12905 (init_display): Initialize Vinitial_window_system to "ns" when so
12906 compiled.
12907 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12908 (display_arg): Use under NS.
12909 (main): Under NS, allocate autorelease pool and handle command line
12910 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12911 (standard_args): Add NS-specific args.
12912 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12913 * font.c (DEFAULT_ENCODING): New variable.
12914 (font_find_for_lface): Use it.
12915 (syms_of_font): Load syms_of_nsfont under NS.
12916 * font.h: Declare nsfont_driver when compiled under NS.
12917 * fontset.c: When compiling under NS, include nsterm.h.
12918 (fontset_from_font): Autoconstruct fontset under NS.
12919 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12920 symbol, document and use it.
12921 (do_switch_frame): When for_deletion under Cocoa, add
12922 Fraise_frame(Qnil).
12923 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12924 (x_get_arg): Allow "yes" and "no" as boolean values.
12925 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12926 Qright under Cocoa.
12927 (focus-follows-mouse): Default to 0 under NS.
12928 * frame.h (enum output_method): Add output_ns.
12929 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12930 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12931 (FRAME_WINDOW_P): NS-specific definition.
12932 * fringe.c (max_used_fringe_bitmap): Make public.
12933 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12934 (getloadavg): Use NeXT code under descendant OS's.
12935 * image.c (includes and header section, x_create_bitmap_from_data)
12936 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12937 (image_background_transparent, x_clear_image_1)
12938 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12939 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12940 (x_to_xcolors, x_from_xcolors, x_disable_image)
12941 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12942 other GUIs, including XPM support using code originally written for
12943 Carbon GUI.
12944 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12945 using NS API.
12946 (image_ascent): Use font metrics macros instead of direct struct field
12947 access.
12948 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12949 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12950 Also, handle NS as GTK for menu bar purposes.
12951 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12952 toolkit where they differ.
12953 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12954 use cachelist, still needed under NS.
12955 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12956 (struct widget_value): Define it here for menu.c.
12957 * keymap.c (includes): Include modifier internals.
12958 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12959 NS.
12960 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12961 support for preferring sequences using certain modifiers, specified by
12962 the FIRSTONLY argument.
12963 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12964 under NS GNUstep implementation.
12965 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12966 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12967 * menu.c: Include nsterm.h under NS.
12968 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12969 (free_menubar_widget_tree_value, update_submenu_strings)
12970 (find_and_call_menu_selection): Treat NS as X and NT.
12971 (find_and_return_menu_selection): New function, used for popup menus.
12972 * nsgui.h:
12973 * nsterm.h:
12974 * nsfns.m:
12975 * nsimage.m:
12976 * nsmenu.m:
12977 * nsselect.m:
12978 * nsterm.m: New files.
12979 * process.c (wait_reading_process_output): Under NS, call ns_select()
12980 instead of plain select().
12981 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12982 beginning of buffer.
12983 * sysselect.h (init_process): Rename when compiling under Cocoa to
12984 avoid name conflict.
12985 * termhooks.h (display_info): Add ns_display_info to union.
12986 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12987 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12988 COCOA environment.
12989 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12990 unexec() signature. (Note, this will dump, but the resulting file
12991 crashes; unexosx is used instead; keeping around for reference and
12992 possible aid in getting dump working under GNUstep.)
12993 * w32gui.h (button_type, widget_value): Remove definitions (now in
12994 keyboard.h).
12995 * window.c: Include nsterm.h when compiling under NS.
12996 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12997 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12998 other GUI windowing systems.
12999 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13000 GTK.
13001 (x_consider_frame_title): Under NS, set icon type and frame
13002 modified-state indicator; use ns_set_name_as_filename() when using
13003 formatted title.
13004 (update_window_cursor): Make public when compiling under NS.
13005 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13006 (hourglass_atimer, Vhourglass_delay
13007 * xfaces.c (header section, init_frame_faces, clear_font_table)
13008 (defined_color, unload_color, x_face_list_fonts)
13009 (prepare_face_for_display): Add NS support parallel to other GUIs.
13010 Emulate GCs like other non-X GUIs.
13011 (split_font_name): Don't lowercase font name under NS.
13012 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13013 under NS.
13014 * s/darwin.h: Add support for compilation under NS.
13015
130162008-07-15 Jason Rumney <jasonr@gnu.org>
13017
13018 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13019 (w32_show_hourglass): Rename from show_hourglass.
13020 (w32_hide_hourglass): Rename from hide_hourglass.
13021 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13022 (Vhourglass_delay): Declare extern.
13023 (hourglass_started): Remove.
13024
13025 * xdisp.c (Vhourglass_delay): Remove static.
13026 (hourglass_started, start_hourglass, cancel_hourglass):
13027 Don't include these versions on WINDOWSNT.
13028
130292008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13030
13031 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13032 variables (formerly in xfns.c).
13033 (show_hourglass, hide_hourglass): New prototypes (same).
13034 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13035 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13036 in xfns.c).
13037 (syms_of_xdisp): Declare/initialize display-hourglass,
13038 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13039 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13040 formerly in xfns.c.
13041 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13042 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13043 (start_hourglass, cancel_hourglass): Remove.
13044 (show_hourglass, hide_hourglass): Remove prototypes and static
13045 modifiers.
13046 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13047 hourglass_atimer, hourglass_shown_p declaration/initialization.
13048 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13049 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13050 (start_hourglass, cancel_hourglass): Remove.
13051 (show_hourglass, hide_hourglass): Remove prototypes and static
13052 modifiers.
13053 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13054 hourglass_atimer, hourglass_shown_p declaration/initialization.
13055 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13056 (DEFAULT_HOURGLASS_DELAY): Remove.
13057 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13058 hourglass_shown_p declaration/initialization.
13059
130602008-07-14 Jason Rumney <jasonr@gnu.org>
13061
13062 * w32fns.c (w32_get_arg): Remove wrapper function.
13063 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13064 directly.
13065 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13066
130672008-07-14 Kenichi Handa <handa@m17n.org>
13068
13069 * xfont.c (xfont_open): Add workaround for X's bug.
13070
130712008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13072
13073 * fontset.c: Include <stdio.h> unconditionally.
13074
130752008-07-13 Michael Albinus <michael.albinus@gmx.de>
13076
13077 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13078 for filtering.
13079
130802008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13081
13082 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13083
13084 * m/macppc.h:
13085 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13086
c4cc8b9a 13087 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13088 (SPECIAL_EMACS_INT):
13089 * m/ia64.h (SPECIAL_EMACS_INT):
13090 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13091 * s/gnu.h (NLIST_STRUCT):
13092 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13093 * s/gnu-linux.h (LINUX):
13094 * s/msdos.h (HAVE_FACES):
13095 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13096
13097 * systty.h:
13098 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13099 anymore.
13100
131012008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13102
13103 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13104 always defined as int.
13105
13106 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13107 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13108 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13109 * s/freebsd.h (HAVE_WAIT_HEADER):
13110 * s/bsd-common.h (HAVE_UNION_WAIT):
13111 * s/aix4-2.h (HAVE_WAIT_HEADER):
13112 * m/mips.h (HAVE_UNION_WAIT):
13113 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13114 (COFF, static): Do not define, they are undefined later in the file.
13115
13116 * process.c (update_status): Don't use a union.
13117 (status_convert):
13118 (sigchld_handler): Use int instead of WAITTYPE.
13119
131202008-07-12 Chong Yidong <cyd@stupidchicken.com>
13121
13122 * indent.c (Fvertical_motion): Restore hscroll before moving to
13123 goal column.
13124
131252008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13126
13127 * lisp.h: Remove left over code.
13128
131292008-07-11 Andreas Schwab <schwab@suse.de>
13130
13131 * lisp.h: Fix logic in last change.
13132
13133 * menu.h: New file.
13134 * menu.c: Include it.
13135 * xmenu.c: Likewise.
13136 * Makefile.in: Update dependencies.
13137
131382008-07-11 Kenichi Handa <handa@m17n.org>
13139
13140 * fontset.c (fontset_from_font): Cancel the previous change.
13141
131422008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13143
13144 * lisp.h:
13145 * w32heap.c:
13146 * emacs.c:
13147 * alloc.c: Replace all references of NO_UNION_TYPE with
13148 USE_LISP_UNION_TYPE.
13149
13150 * m/xtensa.h (NO_UNION_TYPE):
13151 * m/vax.h (NO_UNION_TYPE):
13152 * m/template.h (NO_UNION_TYPE):
13153 * m/sparc.h (NO_UNION_TYPE):
13154 * m/mips.h (NO_UNION_TYPE):
13155 * m/macppc.h (NO_UNION_TYPE):
13156 * m/m68k.h (NO_UNION_TYPE):
13157 * m/iris4d.h (NO_UNION_TYPE):
13158 * m/intel386.h (NO_UNION_TYPE):
13159 * m/ibms390x.h (NO_UNION_TYPE):
13160 * m/ibms390.h (NO_UNION_TYPE):
13161 * m/ibmrs6000.h (NO_UNION_TYPE):
13162 * m/ia64.h (NO_UNION_TYPE):
13163 * m/hp800.h (NO_UNION_TYPE):
13164 * m/arm.h (NO_UNION_TYPE):
13165 * m/amdx86-64.h (NO_UNION_TYPE):
13166 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13167 defining it the same.
13168
131692008-07-10 Chong Yidong <cyd@stupidchicken.com>
13170
13171 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13172
131732008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13174
13175 * fileio.c:
50426a04 13176 * sysdep.c:
aac0c6e3
MR
13177 * systty.h:
13178 * m/ibmrs6000.h:
13179 * m/iris4d.h:
13180 * s/aix4-2.h:
13181 * s/freebsd.h:
13182 * s/gnu-linux.h:
13183 * s/hpux10-20.h:
13184 * s/hpux11.h:
13185 * s/netbsd.h:
13186 * s/sol2-3.h:
13187 * s/sol2-4.h:
13188 * s/sol2.h:
13189 * s/usg5-4.h:
13190 * s/vms.h: Remove references to unused variables.
13191
131922008-07-10 Andreas Schwab <schwab@suse.de>
13193
13194 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13195 pattern before matching the generic family.
13196
131972008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13198
13199 * unexec.c:
13200 * s/vms.h:
13201 * s/usg5-4-2.h:
13202 * s/sol2-5.h:
13203 * s/freebsd.h:
13204 * s/darwin.h: Remove dead code.
13205
13206 * m/template.h:
13207 * m/sparc.h:
13208 * m/mips.h:
13209 * m/m68k.h:
13210 * m/iris4d.h:
13211 * m/intel386.h:
13212 * m/ibms390x.h:
13213 * m/ibms390.h:
13214 * m/ia64.h:
13215 * m/hp800.h:
13216 * m/arm.h:
13217 * m/amdx86-64.h: Remove dead code and references to unused
13218 and compiler defined symbols.
13219
13220 * unexmips.c:
13221 * unexelf.c: Remove references to desupported systems.
13222
13223 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
13224
13225 * m/powermac.h: Remove boilerplate comments.
13226 (NO_REMAP): Remove unused definition.
13227
13228 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
13229 define them.
13230
132312008-07-10 Kenichi Handa <handa@m17n.org>
13232
13233 * xfont.c (xfont_open): Log the reason of failure.
13234
132352008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
13236
13237 * fontset.c (fontset_get_font_group):
13238 * font.c (font_check_otf): Specify argument types.
13239
132402008-07-09 Kenichi Handa <handa@m17n.org>
13241
13242 * coding.c (detect_coding_utf_8): Set detect_info->found only when
13243 non-ASCII char is found.
13244
13245 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
13246 (reorder_font_vector): Change the arg preferred_family to font.
13247 Prefer the spec matching with font.
13248 (fontset_get_font_group): New function.
13249 (fontset_find_font): Change the format of an element of a realized
13250 fontset. Use fontset_get_font_group.
13251 (fontset_font): Try the current fontset, the default fontset, the
13252 fallbacks of the current fontset, and the fallbacks of the default
13253 fontset in this order.
13254 (face_for_char): Delete the shortcut to use the current font.
13255 (fontset_from_font): Don't set fonts for Latin in the fontset.
13256
13257 * font.h (font_make_object, font_match_p): Adjust prototypes.
13258
13259 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
13260
13261 * font.c (font_make_object): New arg entity and pixelsize.
13262 (font_check_otf_features, font_check_otf): New functions.
13263 (font_match_p): Check :lang, :script, and :otf properties.
13264
13265 * xfont.c (xfont_open): Adjust it for the change of
13266 font_make_object.
13267 (xfont_text_extents): Fix initial setting of metrics.
13268
13269 * ftfont.c (struct ftfont_info): New member index, delete member
13270 fc_charset_idx. Make the member order compatible with struct
13271 xftfont_info.
13272 (fc_charset_table): Change charset names to registry names.
13273 (ftfont_pattern_entity): Delete the args registry and
13274 fc_charset_idx. Change the value of :font-entity property
13275 to (FONTNAME . INDEX). Always set :registry property to
13276 `iso10646-1'.
13277 (struct ftfont_cache_data): New struct.
13278 (ftfont_lookup_cache): New arg for_face.
13279 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
13280 (ftfont_driver): Set the member otf_capability.
13281 (ftfont_get_charset): Adjust it for the change of
13282 fc_charset_table.
13283 (OTF_TAG_SYM): New macro.
13284 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
13285 for the change of fc_charset_table.
13286 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
13287 ftfont_pattern_entity. Add FC_INDEX to objset.
13288 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
13289 and ftfont_pattern_entity.
13290 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
13291 font_make_object, struct ftfont_info.
13292 (ftfont_has_char): Use ftfont_get_fc_charset.
13293 (ftfont_otf_features, ftfont_otf_capability): New functions.
13294 (ftfont_shape): Use ftfont_get_otf.
13295 (ftfont_text_extents): Fix initial setting of metrics.
13296
13297 * xftfont.c (struct xftfont_info): New member ft_size. Make the
13298 member order compatible with struct ftfont_info.
13299 (xftfont_open): Add FC_CHARSET to the pattern. Set
13300 xftfont_info->ft_size. Don't unlock the face. Check BDF
13301 properties if appropriate.
13302 (xftfont_close): Unlock the face.
13303 (xftfont_anchor_point, xftfont_shape): Deleted.
13304 (syms_of_xftfont): Don't set members anchor_point and shape of
13305 xftfont_driver.
13306
13307 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
13308 font_make_object.
13309
13310 * w32font.c (w32font_open): Adjust it for the change of
13311 font_make_object.
13312 (w32font_open_internal): Don't set properties of font_object here.
13313
133142008-07-08 Chong Yidong <cyd@stupidchicken.com>
13315
13316 * macfns.c (x_create_tip_frame):
13317 * w32fns.c (x_create_tip_frame):
13318 * xfns.c (x_create_tip_frame): Pass parameter argument to
13319 face-set-after-frame-default.
13320
13321 * xfaces.c (Finternal_merge_in_global_face): Save merged
13322 attributes for the default face back into the face vector.
13323
133242008-07-08 Andreas Schwab <schwab@suse.de>
13325
13326 * fontset.h: Declare fontset_from_font. Don't declare
13327 new_fontset_from_font and fontset_from_font_name.
13328 * xterm.c: Include "fontset.h".
13329 * Makefile.in (xterm.o): Update dependencies.
13330
133312008-07-08 Glenn Morris <rgm@gnu.org>
13332
13333 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
13334 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
13335
133362008-07-07 Chong Yidong <cyd@stupidchicken.com>
13337
13338 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13339 (x_set_frame_parameters): Don't bind it.
13340
133412008-07-07 Juanma Barranquero <lekktu@gmail.com>
13342
13343 * w32fns.c (map_w32_filename): Declare extern.
13344
133452008-07-07 Jason Rumney <jasonr@gnu.org>
13346
13347 * w32term.c (WS_EX_LAYERED): Define if not already.
13348
133492008-07-06 Chong Yidong <cyd@stupidchicken.com>
13350
13351 * xfaces.c (set_font_frame_param): Don't try to set the font
13352 parameter if it is still unspecified in the lface.
13353
133542008-07-05 Chong Yidong <cyd@stupidchicken.com>
13355
13356 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13357 face if it didn't already exist.
13358
13359 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13360
133612008-07-05 Andreas Schwab <schwab@suse.de>
13362
13363 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13364
133652008-07-05 Chong Yidong <cyd@stupidchicken.com>
13366
13367 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13368 word-wrapping.
13369 (IT_DISPLAYING_WHITESPACE): New macro.
13370 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13371 when word-wrapping. Simplify word-wrapping logic. Use correct
13372 pixel positions when saving copies of the iterator.
13373 (display_line): Use proper wrap point if the last character on a
13374 line was preceded by whitespace.
13375
133762008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13377
13378 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13379
133802008-07-04 Kenichi Handa <handa@m17n.org>
13381
13382 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13383
13384 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13385
133862008-07-02 Jason Rumney <jasonr@gnu.org>
13387
13388 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13389 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13390
13391 * xdisp.c (next_element_from_display_vector): Move assignment out
13392 of if statement.
13393
133942008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13395
13396 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13397
13398 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13399 (syms_of_fileio): Initialize and export them.
13400 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13401
13402 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13403 (Fsystem_move_file_to_trash): New function.
13404 (syms_of_w32fns): Export it to lisp.
13405
134062008-07-01 Jason Rumney <jasonr@gnu.org>
13407
13408 * w32font.c (w32font_text_extents): Don't count overhang as part
13409 of width.
13410
134112008-06-30 Miles Bader <miles@gnu.org>
13412
13413 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13414 Add `avoid_cursor_p' field.
13415
13416 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13417 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13418 (append_glyph, append_composite_glyph, produce_image_glyph)
13419 (append_stretch_glyph): Initialize avoid_cursor_p.
13420 (get_it_property): Rename from `get_line_height_property'.
13421 (x_produce_glyphs): Use get_it_property.
13422 (handle_line_prefix, push_display_prop): New functions.
13423 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13424 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13425 New variables.
13426 (syms_of_xdisp): Initialize them.
13427
134282008-06-30 Kenichi Handa <handa@m17n.org>
13429
13430 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13431 XftDefaultSubstitute (they are called in XftFontMatch).
13432 (xftfont_open): Fix args to ftfont_font_format.
13433
13434 * ftfont.c (fc_charset_table): New member lang.
13435 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13436 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13437 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13438 (ftfont_open): Fix args to ftfont_font_format.
13439 (ftfont_font_format): New arg filename.
13440
134412008-06-30 Chong Yidong <cyd@stupidchicken.com>
13442
13443 * xfaces.c (Finternal_merge_in_global_face): If default face was
13444 modified, realize it again. Update the font face attribute.
13445
134462008-06-29 Jason Rumney <jasonr@gnu.org>
13447
13448 * w32term.c (x_set_frame_alpha): Fix logic.
13449
134502008-06-29 Kenichi Handa <handa@m17n.org>
13451
13452 * fontset.c (Finternal_char_font): Return font-object instead of
13453 font-name.
13454
13455 * composite.c (get_composition_id): Fix the width calculation for TAB.
13456
134572008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13458
13459 * indent.c (Fvertical_motion): Properly handle float column arg.
13460
134612008-06-28 Jason Rumney <jasonr@gnu.org>
13462
13463 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13464 (pfnSetLayeredWindowAttributes): New function pointer.
13465 (w32_initialize): Initialize it when supported.
13466 (x_set_frame_alpha): New function.
13467
13468 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13469 (w32_frame_parm_handlers): Set alpha handler.
13470
13471 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13472
134732008-06-27 Jason Rumney <jasonr@gnu.org>
13474
13475 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13476 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13477 (w32_to_x_charset, x_to_w32_charset)
13478 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13479 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13480 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13481 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13482 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13483 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13484 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13485 (Qw32_charset_unicode): Remove.
13486 (syms_of_w32fns): Update for above changes.
13487
13488 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13489 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13490 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13491 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13492 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13493 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13494 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13495 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13496 (syms_of_w32font): Update for above changes.
13497
134982008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13499
13500 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13501 removed #if.
13502 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13503
135042008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13505 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13506
13507 * makefile.w32-in (LOCAL_FLAGS):
13508 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13509
13510 * sysdep.c (_spawnlp, _getpid):
13511 Declare with explicit _cdecl instead of _CRTAPI1.
13512
13513 * editfns.c (Fget_internal_run_time):
13514 Check for WINDOWSNT with #ifdef, not #if.
13515
135162008-06-26 Jason Rumney <jasonr@gnu.org>
13517
13518 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13519
13520 * w32term.c (x_draw_glyph_string_foreground)
13521 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13522 Use FONT_HANDLE macro.
13523 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13524
13525 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13526 (uniscribe_encode_char): Use FONT_HANDLE macro.
13527
13528 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13529 (w32font_text_extents): Use precast w32_font.
13530 (w32font_close): Free cached metrics.
13531 (w32font_open_internal): Allocate space for name on stack.
13532
135332008-06-26 Chong Yidong <cyd@stupidchicken.com>
13534
13535 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13536
135372008-06-26 Jason Rumney <jasonr@gnu.org>
13538
13539 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13540 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13541
135422008-06-26 Juanma Barranquero <lekktu@gmail.com>
13543
13544 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13545
135462008-06-26 Jason Rumney <jasonr@gnu.org>
13547
13548 * w32bdf.c, w32bdf.h: Remove obsolete files.
13549
13550 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13551
13552 * w32gui.h: Don't include w32bdf.h.
13553 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13554 Remove obsolete font support.
13555
13556 * w32font.h (struct w32font_info): Remove compat_w32_font.
13557 Add hfont member.
13558 (FONT_COMPAT): Remove obsolete macro.
13559
13560 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13561 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13562 (w32font_open_internal): Remove compat code. Set new hfont member.
13563 (Fx_select_font): Use new hfont member.
13564
13565 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13566 (uniscribe_encode_char): Use new hfont member.
13567
13568 * w32term.c (x_draw_glyph_string_foreground)
13569 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13570 (x_draw_glyph_string): Use metrics in w32font_info.
13571
135722008-06-26 Kenichi Handa <handa@m17n.org>
13573
13574 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13575
135762008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13577
13578 * unexnext.c:
13579 * m/ews4800.h:
13580 * m/hp9000s300.h:
13581 * m/ibm370aix.h:
13582 * m/mips-siemens.h:
13583 * m/ncr386.h:
13584 * m/next.h:
13585 * m/pmax.h:
13586 * m/powerpcle.h:
13587 * m/tandem-s2.h:
13588 * s/386bsd.h:
13589 * s/bsd386.h:
13590 * s/bsd4-1.h:
13591 * s/bsd4-2.h:
13592 * s/bsdos2-1.h:
13593 * s/bsdos2.h:
13594 * s/bsdos3.h:
13595 * s/bsdos4.h:
13596 * s/nextstep.h:
13597 * s/ultrix4-3.h:
13598 * s/usg5-0.h:
13599 * s/usg5-2-2.h:
13600 * s/usg5-2.h:
13601 * s/usg5-4-3.h:
13602 * s/ux4800.h:
13603 * s/uxpds.h:
13604 * s/uxpv.h: Remove support for obsolete systems.
13605 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13606 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13607 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13608 Remove, insert contents in s/aix4-2.h.
13609 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13610 * s/bsd4-3.h: Rename to ...
13611 * s/bsd-common.h: ... this.
13612 * data.c:
13613 * doc.c:
13614 * ecrt0.c:
13615 * emacs.c:
13616 * fileio.c:
13617 * floatfns.c:
13618 * keyboard.c:
13619 * mem-limits.h:
13620 * print.c:
13621 * process.c:
13622 * sysdep.c:
13623 * syssignal.h:
13624 * systty.h:
13625 * syswait.h:
13626 * term.c:
13627 * unexec.c:
13628 * unexelf.c:
13629 * unexhp9k800.c:
13630 * m/hp800.h:
13631 * m/ibmrs6000.h:
13632 * m/mips.h:
13633 * m/vax.h:
13634 * s/darwin.h:
13635 * s/freebsd.h:
13636 * s/gnu.h:
13637 * s/ms-w32.h:
13638 * s/msdos.h:
13639 * s/netbsd.h:
13640 * s/template.h: Remove references to obsolete variables.
13641
13642 * Makefile.in: Add dependencies for all unexec files.
13643 (admindir): Remove unused variable.
13644 (UNEXEC_SRC): Remove references.
13645
136462008-06-25 Chong Yidong <cyd@stupidchicken.com>
13647
13648 * xfns.c (x_default_font_parameter): If Xft is available, first
13649 try Monospace-12 for the default font.
13650
136512008-06-25 Jason Rumney <jasonr@gnu.org>
13652
13653 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13654
136552008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13656
13657 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13658
13659 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13660
136612008-06-25 Juanma Barranquero <lekktu@gmail.com>
13662
13663 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13664 <scroll-conservatively>: Fix typo in docstring.
13665
13666 * xselect.c (Fx_send_client_event): Doc fix.
13667
136682008-06-25 Kenichi Handa <handa@m17n.org>
13669
13670 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13671
13672 * font.c (font_parse_fcname): Remove unused variables.
13673 (font_sort_entites): Delete the arg SPEC. Caller changed.
13674 Fix for the case of ! best_only.
13675 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13676
13677 * lisp.h (Fstring_to_unibyte): EXFUN it.
13678
13679 * character.h (str_to_unibyte): Extern it.
13680
13681 * character.c (str_to_unibyte): New function.
13682
13683 * fns.c (Fstring_to_unibyte): New function.
13684 (syms_of_fns): Defsubr it.
13685
136862008-06-24 Kenichi Handa <handa@m17n.org>
13687
13688 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13689 DPI too.
13690 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13691
136922008-06-24 Andreas Schwab <schwab@suse.de>
13693
13694 * Makefile.in (${lispsource}loaddefs.el): Rename from
13695 ../lisp/loaddefs.el.
13696 (bootstrap-clean): Do what distclean does but don't remove
13697 Makefile.
13698 (distclean): Depend on bootstrap-clean and remove Makefile.
13699
137002008-06-24 Chong Yidong <cyd@stupidchicken.com>
13701
13702 * buffer.h (struct buffer): New member word_wrap.
13703
13704 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13705 word-wrap.
13706 (init_buffer_once): Initialize them.
13707
13708 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13709 line_wrap enum possessing three possible values.
13710
13711 * termopts.h: Replace truncate_partial_width_windows with
13712 Vtruncate_partial_width_windows.
13713
13714 * dispnew.c (direct_output_for_insert): Avoid direct output when
13715 inserting a space with word wrap on.
13716
13717 * indent.c (compute_motion): Obey integer values of
13718 truncate-partial-width-windows.
13719
13720 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13721 replacing truncate_partial_width_windows.
13722 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13723 truncate only if the window width is below that integer.
13724 (start_display, resize_mini_window, produce_stretch_glyph)
13725 (display_string, move_it_in_display_line_to): Use line_wrap.
13726 (back_to_previous_visible_line_start, reseat_1): Reset
13727 string_from_display_prop_p.
13728 (display_line): Extend default face to end of line when wrapping.
13729
137302008-06-24 Kim F. Storm <storm@cua.dk>
13731
13732 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13733 to wrap continued lines at word boundaries.
13734
137352008-06-24 Jason Rumney <jasonr@gnu.org>
13736
13737 * font.c (Ffont_face_attributes): Multiply pixel size before point
13738 conversion to avoid multiplying rounding error.
13739
137402008-06-23 Jason Rumney <jasonr@gnu.org>
13741
13742 * w32term.c (x_draw_glyph_string_background)
13743 (x_draw_glyph_string): Remove old bdf font code.
13744
13745 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13746
137472008-06-22 Kenichi Handa <handa@m17n.org>
13748
13749 * font.c (font_find_for_lface): Try the adstyle specified in
13750 the property of LFACE_FONT of LFACE (if any).
13751
137522008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13753 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13754
13755 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13756
137572008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13758
13759 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13760 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13761 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13762 (witness-emacs): Remove.
13763 (lisp, shortlisp): Move loaddefs.el earlier.
13764 (mostlyclean): Forget about witness-emacs.
13765
137662008-06-22 Glenn Morris <rgm@gnu.org>
13767
13768 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13769 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13770
137712008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13772
13773 * Makefile.in (PRECOMP): Remove.
13774 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13775 (witness-emacs): Run `compile-first'.
13776 (.el.elc): Use the new compile-onefile target.
13777
137782008-06-21 Kenichi Handa <handa@m17n.org>
13779
13780 * xftfont.c (xftfont_open): Handle QCembolden only when
13781 FC_EMBOLDEN is defined.
13782
137832008-06-21 Andreas Schwab <schwab@suse.de>
13784
13785 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13786 (.el.elc): Likewise.
13787
137882008-06-21 Miles Bader <miles@gnu.org>
13789
13790 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13791 build dir, not the lisp source dir.
13792
137932008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13794
13795 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13796 (bootstrapclean): Remove.
13797 (.el.elc): New rule.
13798 (PRECOMP): New var.
13799 (../lisp/subdirs.el): Remove.
13800 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13801 (witness-emacs): New target.
13802 (mostlyclean): Remove witness-emacs as well.
13803 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13804 Add witness-emacs dependency.
13805
138062008-06-20 Chong Yidong <cyd@stupidchicken.com>
13807
13808 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13809 defined by the font.
13810
138112008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13812
13813 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13814 (bootstrap-clean): New target that keeps TAGS around.
13815 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13816 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13817
138182008-06-20 Jason Rumney <jasonr@gnu.org>
13819
13820 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13821 Remove obsolete font code.
13822
13823 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13824 to determine language support.
13825
138262008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13827
13828 * sysdep.c (cfsetspeed): New fun extracted from the code.
13829 (cfmakeraw): Move before first use.
13830
138312008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13832
13833 * sysdep.c (cfmakeraw): Provide fallback implementation.
13834 (serial_configure): Provide fallback implementation of cfsetspeed.
13835
138362008-06-20 Kenichi Handa <handa@m17n.org>
13837
13838 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13839 the pattern.
13840
13841 * fontset.c (fontset_from_font): Copy font_spec before changing
13842 the elements.
13843
13844 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13845
138462008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13847
13848 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13849 for explicit `font' parameters.
13850
13851 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13852
138532008-06-19 Kenichi Handa <handa@m17n.org>
13854
13855 * frame.c: Include <ctype.h>.
13856 (x_set_font_backend): Allow spacing characters in the X resource
13857 for FontBackend.
13858
138592008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13860
13861 * w32fns.c, xfns.c (Qfont_param): New var.
13862 (syms_of_w32fns): Initialize it.
13863 (x_default_font_parameter): Record explicit `font' into
13864 `font-parameter'.
13865
138662008-06-18 Kenichi Handa <handa@m17n.org>
13867
13868 * font.c (font_parse_xlfd): Fix previous change.
13869 (font_parse_fcname): Don't use :fc-unknown-spec.
13870 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13871 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13872 (font_add_log): Prepend the driver name to the resulting fonts.
13873
13874 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13875 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13876 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13877
13878 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13879 (QCembolden): New variables.
13880 (syms_of_xftfont): DEFSYM them.
13881 (xftfont_open): Call XftFontMatch. Don't trust the result of
13882 XftTextExtents8 if the pixel_size is less than 5.
13883
138842008-06-18 Andreas Schwab <schwab@suse.de>
13885
13886 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13887 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13888
138892008-06-18 Jason Rumney <jasonr@gnu.org>
13890
13891 * w32font.c (w32font_list, w32font_match): Add logging.
13892
13893 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13894
138952008-06-17 Chong Yidong <cyd@stupidchicken.com>
13896
13897 * font.c (font_parse_fcname): Store divider characters for
13898 unknown-spec list. For known key symbols, intern using correct
13899 symbol name.
13900
139012008-06-17 Kenichi Handa <handa@m17n.org>
13902
13903 * xfaces.c (realize_default_face): If the frame is not on window
13904 system, set the fontset of face to nil.
13905
139062008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13907
13908 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13909
139102008-06-16 Juanma Barranquero <lekktu@gmail.com>
13911
13912 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13913 (build_font_name_from_vector): Delete externs.
13914
13915 * xfaces.c (struct font_name): Don't declare.
13916
139172008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13918
13919 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13920
139212008-06-16 Chong Yidong <cyd@stupidchicken.com>
13922
13923 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13924
139252008-06-16 Juanma Barranquero <lekktu@gmail.com>
13926
13927 * font.c (Ffont_spec): Fix usage in docstring.
13928 (Ffont_face_attributes): Doc fix.
13929
139302008-06-16 Andreas Schwab <schwab@suse.de>
13931
13932 * font.c (Ffont_face_attributes): Fix definition.
13933
139342008-06-16 Jason Rumney <jasonr@gnu.org>
13935
13936 * font.h (font_style_symbolic_from_value): Remove.
13937
13938 * font.c (font_style_symbolic_from_value): Remove.
13939 (font_style_symbolic): Revert to pre 2008-06-13 version.
13940
13941 * w32font.c (w32_to_fc_weight): New function.
13942 (w32font_full_name, logfont_to_fcname): Use it.
13943
139442008-06-16 Kenichi Handa <handa@m17n.org>
13945
13946 * font.c (font_check_object): Delete it.
13947 (font_clear_cache): Check if a font-object is alive.
13948 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13949 font-object to nil.
13950 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13951 (font_at): Don't call font_check_object.
13952 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13953
139542008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13955
13956 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13957
139582008-06-16 Chong Yidong <cyd@stupidchicken.com>
13959
13960 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13961
139622008-06-15 Chong Yidong <cyd@stupidchicken.com>
13963
13964 * font.c (font_parse_fcname): Only one decimal point.
13965 (font_unparse_fcname): Handle data in family and foundry indices
13966 as symbols, not strings.
13967 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13968
13969 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13970
13971 * font.h (font_unparse_gtkname): Add prototype.
13972
139732008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13974
13975 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13976
139772008-06-15 Andreas Schwab <schwab@suse.de>
13978
13979 * font.c (font_update_drivers): Fix crash when no drivers match.
13980
139812008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13982
13983 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13984 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13985
139862008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13987
13988 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13989
139902008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13991
13992 * process.c (Fserial_process_configure, Fprocess_send_eof):
13993 Use EQ to compare Lisp_Objects.
13994
139952008-06-13 Jason Rumney <jasonr@gnu.org>
13996
13997 * w32fns.c (Fw32_select_font): Remove old font API function.
13998
13999 * w32font.c (logfont_to_fcname): New function.
14000 (Fx_select_font): New font dialog function compatible with
14001 GTK/fontconfig version.
14002
14003 * font.c (font_style_symbolic_from_value): New function.
14004 (font_style_symbolic): Use it.
14005
14006 * font.h (font_style_symbolic_from_value): Declare new function.
14007
140082008-06-13 Juanma Barranquero <lekktu@gmail.com>
14009
14010 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14011 <font-width-table>: Fix typos in docstrings.
14012
140132008-06-13 Daniel Engeler <engeler@gmail.com>
14014
14015 These changes add serial port access.
14016 * process.c: Add HAVE_SERIAL.
14017 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14018 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14019 (list_processes_1, select_wrapper, Fstop_process)
14020 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14021 (status_notify): Modify to handle serial processes.
14022 [HAVE_SERIAL] (Fserial_process_configure)
14023 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14024 New functions.
14025 * process.h (struct Lisp_Process): Add `type'.
14026 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14027 New functions.
14028 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14029 serial ports.
b71ac3dd 14030 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14031 * w32.h: Add FILE_SERIAL.
14032 (struct _child_process): Add ovl_read, ovl_write.
14033
140342008-06-13 Kenichi Handa <handa@m17n.org>
14035
14036 * dispextern.h (enum lface_attribute_index): New member
14037 LFACE_FOUNDRY_INDEX.
14038
14039 * font.c (font_score): Delete arg alternate_families. Check only
14040 weight, slant, width, and size. Ignore the difference of alias
14041 style symbols.
14042 (font_sort_entites): Adjust for the above change. Reflect the
14043 order of font-driver to scores.
14044 (font_list_entities): Don't check alternate_familes here.
14045 (font_clear_prop): Handle foundry.
14046 (font_update_lface): Don't parse "foundry-family" form here.
14047 Handle FONT_FOUNDRY_INDEX.
14048 (font_find_for_lface): Likewise. Handle alternate families here.
14049 If registry is nil, try iso8859-1 and ascii-0.
14050 (font_open_for_lface): Pay attention to size in ENTITY.
14051 (font_open_by_name): Simplify by calling font_load_for_lface.
14052 (free_font_driver_list): Delete it.
14053 (font_update_drivers): Preserve the order of backends.
14054 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14055 of font_score and font_sort_entites.
14056 (font_update_sort_order): Likewise.
14057
14058 * xfaces.c (LFACE_FOUNDRY): New macro.
14059 (check_lface_attrs): Check foundry.
14060 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14061 (merge_face_vectors): Check foundry.
14062 (merge_face_ref): Likewise.
14063 (Finternal_set_lisp_face_attribute): Likewise.
14064 (x_update_menu_appearance): Likewise.
14065 (Finternal_get_lisp_face_attribute): Likewise.
14066 (lface_hash): Likewise.
14067 (lface_same_font_attributes_p): Likewise.
14068 (x_supports_face_attributes_p): Likewise.
14069 (tty_supports_face_attributes_p): Likewise.
14070 (Finternal_set_alternative_font_family_alist): Intern strings.
14071 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14072 (realize_default_face): Set LFACE_FOUNDRY (lface).
14073
14074 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14075 font-driver at first.
14076
14077 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14078
140792008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14080
14081 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14082
140832008-06-12 Jim Meyering <meyering@redhat.com>
14084
14085 Make unexec_free handle NULL the same way free does.
14086 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14087
140882008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14089
14090 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14091 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14092 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14093 (WEAK_ALIAS): Simplify.
14094 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14095 when searching a unibyte buffer.
14096
140972008-06-12 Chong Yidong <cyd@stupidchicken.com>
14098
14099 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14100
141012008-06-12 Juanma Barranquero <lekktu@gmail.com>
14102
14103 * w32font.c: Include ctype.h.
14104
141052008-06-11 Jason Rumney <jasonr@gnu.org>
14106
14107 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14108 misreported as space.
14109 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14110 as aliases for registry iso10646-1.
14111
141122008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14113
14114 * buffer.c (clone_per_buffer_values): Skip `name'.
14115
141162008-06-11 Chong Yidong <cyd@stupidchicken.com>
14117
14118 * font.c (font_parse_fcname): Fix last change; accept decimal
14119 points in font size.
14120
141212008-06-10 Jason Rumney <jasonr@gnu.org>
14122
14123 * w32uniscribe.c (add_opentype_font_name_to_list):
14124 Skip non unicode fonts.
14125
141262008-06-10 Chong Yidong <cyd@stupidchicken.com>
14127
14128 * xfns.c (Fx_font_dialog): New function.
14129
14130 * gtkutil.c (xg_dialog_response_cb): Rename from
14131 xg_file_response_callback.
14132 (pop_down_dialog): Rename from pop_down_file_dialog.
14133 (xg_get_file_name): Callers changed.
14134 (xg_get_font_name): New function.
14135
14136 * gtkutil.h (xg_get_font_name): Insert prototype.
14137
141382008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14139
14140 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14141 x_underline_minimum_display_offset.
14142 (syms_of_xdisp): Declare it here rather than in xterm.c.
14143 * dispextern.h (underline_minimum_offset): Declare it.
14144 * w32term.c (x_draw_glyph_string): Use it.
14145 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14146 (syms_of_xterm): Don't declare it any more.
14147 (x_draw_glyph_string): Adjust to the new name.
14148
8719abec 141492008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14150
14151 * xterm.c (x_underline_minimum_display_offset): New var.
14152 (x_draw_glyph_string): Use it.
14153 (syms_of_xterm): Declare it.
14154
141552008-06-10 Chong Yidong <cyd@stupidchicken.com>
14156
14157 * font.c (font_parse_fcname): Accept GTK-style font names too.
14158
141592008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14160
14161 * dired.c (file_name_completion): Don't return t if the match is exact
14162 but with different capitalization.
14163 * minibuf.c (Ftry_completion): Simplify.
14164
14165 * window.c (Vwindow_point_insertion_type): New var.
14166 (set_window_buffer): Use it.
14167 (syms_of_window): Init and export it to Lisp.
14168
141692008-06-10 Kenichi Handa <handa@m17n.org>
14170
14171 * font.h (font_intern_prop): Prototype adjusted.
14172
14173 * font.c (font_intern_prop): New arg force_symbol.
14174 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14175 Adjust for the change of font_intern_prop.
14176
14177 * ftfont.c (ftfont_pattern_entity):
14178 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14179 (w32_registry):
14180 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14181 the change of font_intern_prop.
14182
141832008-06-09 Juanma Barranquero <lekktu@gmail.com>
14184
14185 * w32menu.c (digest_single_submenu): Declare extern.
14186
141872008-06-09 Jason Rumney <jasonr@gnu.org>
14188
14189 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14190
14191 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14192 (parse_single_submenu): Remove.
14193 (digest_single_submenu): Remove.
14194 (syms_of_w32menu): Don't initialise variables that have moved
14195 to menu.c.
14196 (set_frame_menubar): Sync with version in xmenu.c.
14197 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14198
14199 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14200 Make static again.
14201
142022008-06-09 Jason Rumney <jasonr@gnu.org>
14203
14204 Changes to w32 files related to the move of common menu code
14205 to menu.c on 2008-06-08 by Chong Yidong.
14206
14207 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
14208 defs to w32gui.h.
14209 (single_keymap_panes, push_menu_item, push_menu_pane):
14210 Make globally visible.
14211
14212 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
14213 (local_free, malloc_widget_value, free_widget_value)
14214 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
14215 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
14216 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
14217 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
14218 (menu_items, menu_items_allocated, menu_items_used)
14219 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
14220 (init_menu_items, finish_menu_items, discard_menu_items)
14221 (grow_menu_items, push_submenu_start, push_submenu_end)
14222 (push_left_right_boundary, push_menu_pane, push_menu_item)
14223 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
14224 (free_menubar_widget_tree_value, parse_single_submenu)
14225 (update_submenu_strings): Remove functions.
14226 (xmalloc_widget_value): Remove and declare extern.
14227
14228 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
14229 (OBJ1): Build it.
14230
14231 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
14232 (local_heap, local_alloc, local_free, malloc_widget_value)
14233 (free_widget_value): Define here.
14234
142352008-06-09 Kenichi Handa <handa@m17n.org>
14236
14237 * font.h (Qascii_0): Extern it.
14238
14239 * font.c (Qascii_0): New variable.
14240 (syms_of_font): DEFSYM it.
14241 (font_open_by_name): If the registry "iso8859-1" fails, try also
14242 "ascii-0".
14243
14244 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
14245
142462008-06-08 Kenichi Handa <handa@m17n.org>
14247
14248 * .gdbinit (xfont): New command.
14249
142502008-06-08 Andreas Schwab <schwab@suse.de>
14251
14252 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
14253 * Makefile.in (menu.o): Update dependencies.
14254
14255 * Makefile.in (obj): Always add menu.o.
14256 * emacs.c (main): Always call syms_of_menu.
14257 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
14258
142592008-06-08 Chong Yidong <cyd@stupidchicken.com>
14260
14261 * Makefile.in: Compile menu.c.
14262
14263 * lisp.h: Declare syms_of_menu.
14264
14265 * emacs.c (main): Call syms_of_menu.
14266
14267 * keyboard.h: Relocate platform-independent menu definitions from
14268 xmenu.c.
14269
14270 * menu.c: New file. Relocate platform-independent menu
14271 definitions from xmenu.c. Suggested by Adrian Robert.
14272
14273 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 14274 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
14275 (menu_items_used, menu_items_n_panes)
14276 (menu_items_submenu_depth): Move to keyboard.h.
14277 (init_menu_items, finish_menu_items, unuse_menu_items)
14278 (discard_menu_items, restore_menu_items, save_menu_items)
14279 (grow_menu_items, push_submenu_start, push_submenu_end)
14280 (push_left_right_boundary, push_menu_pane, push_menu_item)
14281 (keymap_panes, single_keymap_panes, single_menu_item)
14282 (list_of_panes, list_of_items, find_and_call_menu_selection)
14283 (xmalloc_widget_value, free_menubar_widget_value_tree)
14284 (parse_single_submenu, digest_single_submenu)
14285 (update_submenu_strings): Move to menu.c.
14286
142872008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
14288
14289 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
14290
142912008-06-06 Miles Bader <miles@gnu.org>
14292
14293 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
14294 face, not frame default.
14295
142962008-06-05 Martin Rudalics <rudalics@gmx.at>
14297
14298 * window.c (pop_up_windows, pop_up_frames)
14299 (display_buffer_reuse_frames, Vpop_up_frame_function)
14300 (Vdisplay_buffer_function, Veven_window_heights)
14301 (Vspecial_display_buffer_names, Vspecial_display_regexps)
14302 (Vspecial_display_function, Vsame_window_buffer_names)
14303 (Vsame_window_regexps, split_height_threshold)
14304 (Vsplit_window_preferred_function): Move those vars to window.el.
14305 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
14306 (Fdisplay_buffer): Move those functions to window.el.
14307 (syms_of_window): Remove corresponding declarations.
14308 (display_buffer): New function.
14309 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
14310 * dispnew.c (Flast_nonminibuf_frame): New function.
14311 * buffer.c (Fpop_to_buffer): Move to window.el.
14312
143132008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14314
14315 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
14316
143172008-06-05 Kenichi Handa <handa@m17n.org>
14318
14319 * coding.c (detect_coding): Fix previous change.
14320 (detect_coding_system): Likewise.
14321
143222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14323
14324 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
14325
14326 * keymap.c (Vminibuffer_local_filename_must_match_map):
14327 Rename from Vminibuffer_local_must_match_filename_map.
14328 (syms_of_keymap):
14329 * minibuf.c (Fcompleting_read): Adjust accordingly.
14330 * commands.h: Rename declaration as well.
14331
143322008-06-05 Kenichi Handa <handa@m17n.org>
14333
14334 * font.c (Ffont_spec): Don't use font_parse_family_registry for
14335 family name.
14336 (Ffont_put): Likewise.
14337
14338 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14339 current font-spec.
14340
14341 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14342 is unspecified.
14343
14344 * xfaces.c (realize_x_face): If the font-related face attributes
14345 are the same as those of default face, realize a new fontset from
14346 default->fontset.
14347 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14348
143492008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14350
14351 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14352 (move_it_in_display_line): New wrapper.
14353
14354 * window.c (window_scroll_pixel_based_preserve_x)
14355 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14356 (window_scroll_pixel_based, window_scroll_line_based):
14357 Use them to preserve column positions.
14358 (syms_of_window): Initialize them.
14359
14360 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14361 (HPOS . VPOS) pair.
14362
14363 * dispextern.h (move_it_in_display_line): Declare.
14364
143652008-06-05 Juanma Barranquero <lekktu@gmail.com>
14366
14367 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14368 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14369 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14370
143712008-06-04 Juanma Barranquero <lekktu@gmail.com>
14372
14373 * window.c (Fset_window_parameter): Doc fix.
14374 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14375
143762008-06-04 Joakim Verona <joakim@verona.se>
14377
14378 * window.h (struct window): Add new member window_parameters.
14379
14380 * window.c (Fwindow_parameters, Fwindow_parameter)
14381 (Fset_window_parameter): New defuns.
14382 (syms_of_window): Defsubr the new defuns.
14383 (make_window): Initialize window_parameters to nil.
14384
143852008-06-04 John Paul Wallington <jpw@pobox.com>
14386
14387 * eval.c (Fdefmacro): Doc fix.
14388
143892008-06-04 Kenichi Handa <handa@m17n.org>
14390
14391 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14392 Be sure to call setup_coding_system when we find a proper coding system.
14393 (detect_coding_system): Fix handling of coding->head_ascii.
14394
143952008-06-03 Andreas Schwab <schwab@suse.de>
14396
14397 * font.c (font_prop_validate_spacing): Fix last change.
14398
143992008-06-03 Kenichi Handa <handa@m17n.org>
14400
14401 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14402 (font_parse_fcname): Fix handling of unknown key.
14403
14404 * xfont.c (xfont_list): Try an alias.
14405
14406 * charset.c (char_charset): Return NULL if the arg charset_list is
14407 specified and C doesn't belong to any of them.
14408
144092008-06-02 Chip Coldwell <coldwell@redhat.com>
14410
14411 * font.c (font_pixel_size): Don't take cdr of an integer.
14412
144132008-06-02 Jim Meyering <meyering@redhat.com>
14414
14415 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14416 * alloc.c (xfree): Return right away for a NULL arg.
14417 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14418 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14419 * mac.c (create_apple_event_from_event_ref): Likewise.
14420 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14421 Likewise.
14422 * doprnt.c (doprnt1): Likewise.
14423 * frame.c (frame): Likewise.
14424 * keyboard.c (wipe_kboard): Likewise.
14425 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14426 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14427 * term.c (tty_default_color_capabilities, maybe_fatal)
14428 (delete_tty): Likewise.
14429 * w16select.c (string): Likewise.
14430 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14431 * w32bdf.c (w32_free_bdf_font): Likewise.
14432 * w32fns.c (w32_unload_font): Likewise.
14433 * w32font.c (w32font_close): Likewise.
14434 * window.c (size_window): Likewise.
14435 * xselect.c (receive_incremental_selection): Likewise.
14436 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14437 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14438 * w32.c (stat): Likewise.
14439
14440 Remove useless if-before-free tests.
14441 * editfns.c (Fset_time_zone_rule): Likewise.
14442 * lread.c (nosuffix): Likewise.
14443 * ralloc.c (get_bloc): Likewise.
14444 * regex.c (reg_free): Likewise.
14445 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14446 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14447 * xsmfns.c (smc_save_yourself_CB): Likewise.
14448
144492008-06-02 Kenichi Handa <handa@m17n.org>
14450
14451 * font.c (font_find_for_lface): Handle float font size.
14452 (font_open_for_lface): Likewise.
14453
14454 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14455 comparing the properties.
14456
144572008-06-01 Jason Rumney <jasonr@gnu.org>
14458
14459 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14460 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14461 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14462 Don't add empty script list.
14463 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14464
144652008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14466
14467 * Makefile.in (dot, dotdot): Remove, update users.
14468 ".." has been used elsewhere in the file for a long time.
14469 (LIBXT_STATIC): Remove conditional based on unused variable.
14470
144712008-06-01 Miles Bader <miles@gnu.org>
14472
14473 * xfaces.c (Vface_remapping_alist): New variable.
14474 (syms_of_xfaces): Initialize it.
14475 (enum named_merge_point_kind): New type.
14476 (struct named_merge_point): Add `named_merge_point_kind' field.
14477 (push_named_merge_point): Make cycle detection respect different
14478 named-merge-point kinds.
14479 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14480 Remove face-name alias resolution.
14481 (lface_from_face_name): New definition using
14482 `lface_from_face_name_no_resolve'.
14483 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14484 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14485 (get_lface_attributes): New definition that layers face-remapping on
14486 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14487 (lookup_basic_face): New function.
14488 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14489 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14490 `get_lface_attributes'.
14491 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14492 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14493 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14494
14495 * xdisp.c (init_iterator): Pass base_face_id through
14496 `lookup_basic_face' when we actually use it as a face-id.
14497 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14498 DEFAULT_FACE_ID.
14499
14500 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14501 lookup the initial face-id.
14502
14503 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14504
145052008-06-01 Juanma Barranquero <lekktu@gmail.com>
14506
14507 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14508 (Fremove_text_properties): Fix typos in docstrings.
14509
145102008-05-31 Kenichi Handa <handa@m17n.org>
14511
14512 * font.c (font_list_entities): Fix the car part of data to be
14513 stored in the cache.
14514
14515 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14516
145172008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14518
14519 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14520 Add a `test' argument so another predicate than `equal' can be used.
14521 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14522 (map_char_table): Remove unused vars `c' and `i'.
14523 * lisp.h (Foptimize_char_table): Adjust declaration.
14524 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14525
145262008-05-30 Kenichi Handa <handa@m17n.org>
14527
14528 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14529 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14530 defined.
14531
145322008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14533
14534 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14535 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14536 frame-local settings for the same variable.
14537
145382008-05-30 Kenichi Handa <handa@m17n.org>
14539
14540 * fontset.c (Ffont_info): Move to font.c.
14541 (syms_of_fontset): Delete defsubr of Sfont_info.
14542
14543 * font.c (font_style_to_value, font_score): Delete casting of the
14544 args to xstcasecmp.
14545 (register_font_driver): Increment num_font_drivers only when
14546 registering the driver globally.
14547 (Ffont_info): Move from fontset.c. Handle a font object too.
14548 (syms_of_font): Defsubr Sfont_info.
14549
145502008-05-29 Kenichi Handa <handa@m17n.org>
14551
14552 * coding.h (enum define_coding_utf8_arg_index): New enum.
14553 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14554 coding_attr_utf_bom.
14555 (enum utf_bom_type): Rename from utf_16_bom_type.
14556 (struct utf_16_spec): Adjust for the above change.
14557 (struct coding_system): Add utf_8_bom in `spec' union.
14558
14559 * coding.c (CODING_UTF_8_BOM): New macro.
14560 (enum coding_category): Delete coding_category_utf_8, add
14561 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14562 coding_category_utf_8_sig.
14563 (CATEGORY_MASK_UTF_8): Delete it.
14564 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14565 (CATEGORY_MASK_UTF_8_SIG): New macros.
14566 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14567 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14568 CATEGORY_MASK_UTF_8_SIG.
14569 (CATEGORY_MASK_UTF_8): New macro.
14570 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14571 (detect_coding_utf_8): Check BOM.
14572 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14573 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14574 (encode_coding_utf_16): Likewise.
14575 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14576 (detect_coding, detect_coding_system): Handle utf-8-auto.
14577 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14578 (syms_of_coding): Fix setting up of Vcoding_category_table.
14579
145802008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14581
14582 * process.c (Faccept_process_output): If `millisec' is non-nil,
14583 `seconds' default to 0.
14584 (wait_reading_process_output): Also return non-nil if we read output
14585 from a non-running process.
14586
145872008-05-29 Jason Rumney <jasonr@gnu.org>
14588
14589 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14590 `raster' specified.
14591 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14592 in the uniscribe backend, but disallow any font that has no
14593 unicode subrange support.
14594
145952008-05-29 Juanma Barranquero <lekktu@gmail.com>
14596
14597 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14598 Fix typos in docstrings.
14599
146002008-05-29 Kenichi Handa <handa@m17n.org>
14601
14602 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14603 (Fx_family_fonts): Set frame correctly.
14604
146052008-05-28 Jason Rumney <jasonr@gnu.org>
14606
14607 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14608
146092008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14610
14611 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14612 calling build_annotations.
14613
146142008-05-28 Juanma Barranquero <lekktu@gmail.com>
14615
14616 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14617 (Fencode_coding_string):
14618 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14619 <latin-extra-code-table>: Fix typos in docstrings.
14620 (syms_of_coding) <coding-system-alist>: Doc fix.
14621 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14622
146232008-05-28 Kenichi Handa <handa@m17n.org>
14624
14625 * fontset.c (Ffont_info): Don't call font_close_object.
14626
14627 * font.c (font_parse_family_registry): Use Ffont_put to validate
14628 foundry and family.
14629 (font_delete_unmatched): Don't check spacing.
14630 (font_list_entities): Add spacing to the spec to list fonts.
14631
14632 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14633 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14634
14635 * coding.c (encode_coding_raw_text): Fix previous change.
14636 (encode_coding_object): When the dst_object is a buffer and is
14637 different from src_object, move gap to PT.
14638
146392008-05-27 Chong Yidong <cyd@stupidchicken.com>
14640
14641 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14642
146432008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14644
14645 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14646 all branches. Compute it differently.
14647
14648 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14649
146502008-05-27 Juanma Barranquero <lekktu@gmail.com>
14651
14652 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14653 into "else if () ... else ...".
14654
146552008-05-27 Jason Rumney <jasonr@gnu.org>
14656
14657 * w32font.c (w32font_open_internal): Determine if glyph indices
14658 are likely to work here.
14659
146602008-05-27 Chong Yidong <cyd@stupidchicken.com>
14661
14662 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14663 draw overlap glyphs with appropriate highlighting.
14664
146652008-05-27 Kenichi Handa <handa@m17n.org>
14666
14667 * xfont.c (xfont_open): Fix calculation of font->average_width.
14668
146692008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14670
14671 * casefiddle.c (casify_object): Try to guess better whether the
14672 argument is a byte or a char.
14673
146742008-05-26 Andreas Schwab <schwab@suse.de>
14675
14676 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14677 Always send multiples of format size.
14678
14679 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14680
146812008-05-26 Jason Rumney <jasonr@gnu.org>
14682
14683 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14684 (compute_metrics): Don't set failure if we just cleared the cache.
14685 (w32_weight_table): Remove unused variable.
14686 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14687 backwards compatibility.
14688
146892008-05-25 Kenichi Handa <handa@m17n.org>
14690
14691 * w32term.c (x_draw_glyph_string):
14692 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14693
14694 * xfaces.c: Delete unused function prototypes.
14695 (xstrlwr, font_frame): Delete them.
14696 (clear_face_cache): Delete unused variable.
14697
14698 * xftfont.c (xftfont_open): Delete unused variable.
14699 If underline_thickness is not 1, adjust underline_position.
14700
14701 * ftxfont.c (ftxfont_open): Delete unused variable.
14702
14703 * fontset.c (face_for_char): Optimize for the case of no charset
14704 property.
14705
14706 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14707 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14708 (otf_open, font_otf_capability, generate_otf_features)
14709 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14710 Comment out by surrounding "#if 0" and "#endif" for the moment.
14711 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14712 (syms_of_font): Codes for accessing above commented out.
14713
147142008-05-24 Eli Zaretskii <eliz@gnu.org>
14715
14716 * w32proc.c: Include dispextern.h.
14717
14718 * w32.c: Include dispextern.h.
14719
147202008-05-23 Juanma Barranquero <lekktu@gmail.com>
14721
14722 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14723 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14724 Fix typos in docstrings.
14725
147262008-05-23 Jason Rumney <jasonr@gnu.org>
14727
14728 * xsmfns.c: Remove includes that are already included by config.h.
14729
147302008-05-23 Kenichi Handa <handa@m17n.org>
14731
14732 * charset.c (Qemacs, charset_emacs): New variables.
14733 (char_charset): Fix for non-Unicode characters.
14734 (syms_of_charset): Define charset_emacs.
14735
14736 * w32term.c (x_draw_glyph_string): Be sure to update
14737 s->underline_thickness and s->underline_position. Be sure to draw
14738 underline within the current line area.
14739
14740 * xterm.c (x_draw_glyph_string): Be sure to update
14741 s->underline_thickness and s->underline_position. Be sure to draw
14742 underline within the current line area.
14743
14744 * fontset.c: Delete unused variables and add casting for char *
14745 throughout the file.
14746 (fontset_font): Try the fallback fonts of the current fontset
14747 before consulting the default fontset.
14748
14749 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14750
14751 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14752
147532008-05-22 Jason Rumney <jasonr@gnu.org>
14754
14755 * font.c: Don't include strings.h.
14756
14757 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14758
14759 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14760 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14761 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14762 to call xstrcasecmp.
14763
14764 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14765
14766 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14767
14768 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14769
14770 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14771
147722008-05-22 Kenichi Handa <handa@m17n.org>
14773
14774 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14775
14776 * font.c (font_prop_validate_style): Adjust for the format
14777 change of font_style_table.
14778
14779 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14780 two args.
14781
14782 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14783 two args.
14784
147852008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14786
14787 * minibuf.c (keys_of_minibuf): Delete.
14788 * lisp.h (keys_of_minibuf): Delete.
14789 * emacs.c (main): Don't call keys_of_minibuf.
14790
147912008-05-22 Kenichi Handa <handa@m17n.org>
14792
14793 * ftfont.c (ftfont_resolve_generic_family): Rename from
14794 ftfont_list_generic_family. Return a single family for each
14795 generic family.
14796 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14797 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14798 Call font_add_log.
14799 (ftfont_match): Call font_add_log.
14800
14801 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14802 (FONT_DEBUG): Define it.
14803 (font_add_log): Extern it.
14804 (font_assert): Rename from xassert.
14805
14806 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14807 (xfont_list_family): Call font_add_log.
14808 (xfont_match): Likewise.
14809 (memq_no_quit): Delete.
14810
14811 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14812 call of Ffont_xlfd_name.
14813
14814 * xfaces.c (struct table_entry, slant_table, weight_table)
14815 (swidth_table): Move to font.c.
14816
14817 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14818 xassert are changed to font_assert. Delete many unused variables.
14819 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14820 New variables.
14821 (struct table_entry): Move from xfaces.c and modified.
14822 (weight_table, slant_table, width_table): Move from xfaces.c and
14823 contents adjusted for the change of struct table_entry.
14824 (font_style_to_value, font_style_symbolic): Adjust for the
14825 format change of font_style_table.
14826 (font_parse_family_registry): Don't overwrite existing foundry and
14827 family of font_spec.
14828 (font_score): Fix calculation of diff for sizes.
14829 (font_sort_entites): Call font_add_log.
14830 (font_delete_unmatched): Return a newly created list.
14831 (font_list_entities): Fix previous change. Call font_add_log.
14832 (font_matching_entity, font_open_entity, font_close_entity):
14833 Call font_add_log.
14834 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14835 (Finternal_set_font_style_table): Delete.
14836 (BUILD_STYLE_TABLE): New macro.
14837 (build_style_table): New function.
14838 (Vfont_log, font_log_env_checked): New variables.
14839 (font_add_log): New function.
14840 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14841 Declare Lisp variables "font-weight-table", "font-slant-table",
14842 "font-width-table", and "font-log". Initialize font_style_table.
14843
148442008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14845
14846 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14847
148482008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14849 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14850
14851 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14852 (Vframe_alpha_lower_limit): New variable.
14853 (x_set_alpha): New function.
14854
14855 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14856
14857 * xfns.c (x-create-frame, Qalpha):
14858 Initialize the frame parameter `alpha'.
14859 * xterm.c (OPAQUE, OPACITY): New.
14860 (x_set_frame_alpha): New function.
14861 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14862
14863 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14864 * w32fns.c (w32_frame_parm_handlers): Likewise.
14865
148662008-05-20 Jason Rumney <jasonr@gnu.org>
14867
14868 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14869 truetype fonts to opentype list.
14870
148712008-05-20 Juanma Barranquero <lekktu@gmail.com>
14872
14873 * fontset.c (Ffontset_info): Doc fix.
14874 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14875 <ignore-relative-composition>: Fix typos in docstrings.
14876
14877 * font.c (syms-of-font) <font-encoding-alist>:
14878 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14879 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14880 (Ffont_otf_alternates): Doc fixes.
14881
148822008-05-20 Kenichi Handa <handa@m17n.org>
14883
14884 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14885 font.h through out the file.
14886 (FONT_DRIVERS): Rename from FONTOBJ.
14887 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14888 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14889
14890 * emacs.c (main): Call syms_of_font unconditionally.
14891
14892 * font.h (find_font_encoding): Extern it.
14893
14894 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14895 fontset.c.
194d44e7 14896 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14897 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14898 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14899 only when HAVE_WINDOW_SYSTEM is defined.
14900 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14901 when HAVE_WINDOW_SYSTEM is defined.
14902
14903 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14904 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14905
14906 * xfaces.c: Include font.h unconditionally.
14907 (merge_face_ref, merge_face_vectors)
14908 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14909
149102008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14911
14912 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14913 indirect_variable.
14914 * eval.c (lisp_indirect_variable): New fun.
14915 (Fuser_variable_p): Use it.
14916
149172008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14918
14919 * lisp.h (indirect_variable):
14920 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14921 Use Lisp_Symbol pointers rather than Lisp_Object.
14922 Adjust callers.
14923 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14924 To this end, change calling-convention.
14925
14926 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14927 if some non-hidden buffers are selected by string&pred.
14928
149292008-05-19 Chong Yidong <cyd@stupidchicken.com>
14930
14931 * process.c (wait_reading_process_output): Always check status
14932 when in batch mode.
14933
149342008-05-19 Kenichi Handa <handa@m17n.org>
14935
14936 * font.c (font_list_entities): Fix handling of cache.
14937 (font_matching_entity): Likewise.
14938
14939 * ftfont.c (cs_iso8859_1): Delete.
14940 (ft_face_cache): New variable.
14941 (struct ftfont_info): New member fc_charset_idx.
14942 (ftfont_build_basic_charsets): Delete.
14943 (fc_charset_table): New variable.
14944 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14945 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14946 Callers changed.
14947 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14948 (ftfont_spec_pattern): New argument fc_charset_idx.
14949 Check registry more rigidly. Change callers.
14950 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14951 change of :font-entity property of the font.
14952
14953 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14954 property of the font.
14955
149562008-05-18 Juanma Barranquero <lekktu@gmail.com>
14957
14958 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14959 (Funencodable_char_position, Fcheck_coding_systems_region)
14960 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14961 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14962 (Ffind_operation_coding_system, Fset_coding_system_priority)
14963 (Fcoding_system_eol_type): Doc fixes.
14964
149652008-05-17 Glenn Morris <rgm@gnu.org>
14966
14967 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14968
149692008-05-16 Eli Zaretskii <eliz@gnu.org>
14970
14971 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14972 and st_gid.
14973
14974 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14975 HAVE_WINDOW_SYSTEM is not defined.
14976
14977 * xfaces.c (merge_face_ref, merge_face_vectors)
14978 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14979 HAVE_WINDOW_SYSTEM is defined.
14980 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14981
149822008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14983
14984 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14985
149862008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14987
14988 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14989
149902008-05-15 Kenichi Handa <handa@m17n.org>
14991
14992 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14993 preference.
14994
149952008-05-15 Glenn Morris <rgm@gnu.org>
14996
14997 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14998
149992008-05-15 Chong Yidong <cyd@stupidchicken.com>
15000
15001 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15002 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15003
15004 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15005
150062008-05-15 Kenichi Handa <handa@m17n.org>
15007
15008 * ftfont.c (ftfont_list): Downcase family name to check generic
15009 families.
15010
15011 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15012 font-spec for QCfont value.
15013
15014 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15015 buffer. Check the return value of it.
15016
150172008-05-14 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32term.c (w32_get_glyph_overhangs): Remove.
15020 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15021
150222008-05-14 Kenichi Handa <handa@m17n.org>
15023
15024 * font.c (font_prop_validate): Make nil a valid value.
15025 (font_clear_cache): Check if the cached vector of entities is nil
15026 or not.
15027
150282008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15029
15030 * emacs.c (main_thread): Conditionalize on
15031 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15032 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15033
15034 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15035 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15036 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15037
150382008-05-14 Kenichi Handa <handa@m17n.org>
15039
15040 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15041 has no corresponding coding system.
15042
150432008-05-14 Jason Rumney <jasonr@gnu.org>
15044
15045 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15046
15047 * w32font.h (w32font_open_internal): Update declaration.
15048
15049 * w32font.c (w32font_open_internal): Change last argument from
15050 w32font_info struct to font object. Fill in font object from
15051 font_entity. Get Outline metrics if possible. Use them to
15052 calculate underline position and thickness. Use xlfd name as name
15053 property. Don't set codepage.
15054 (w32font_open): Pass font_object to w32font_open_internal. Don't
15055 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15056 (w32font_draw): Use s->font.
15057 (clear_cached_metrics): Don't clear non-existent blocks.
15058
15059 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15060 font was not found.
15061 (x_draw_glyph_string): Use underline position and thickness from font.
15062
15063 * w32uniscribe.c (uniscribe_open): Pass font_object to
15064 w32font_open_internal.
15065
150662008-05-14 Kenichi Handa <handa@m17n.org>
15067
15068 These changes are to delete all legacy font-handling codes, and
15069 make Emacs use only font-backends.
15070
15071 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15072 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15073
15074 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15075
15076 * charset.h (Vcharset_non_preferred_head)
15077 (Vcurrent_iso639_language): Extern them.
15078
15079 * charset.c (Vcharset_non_preferred_head): New variable.
15080 (Vcurrent_iso639_language): New variable.
15081 (syms_of_charset): Declare it as a Lisp variable.
15082 (char_charset): Don't check non preferred charsets. As a last
15083 resort, return charset_unicode.
15084 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15085
15086 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15087 conditionals. Don't check enable_font_backend. Delete all codes
15088 used only when USE_FONT_BACKEND is not defined.
15089
15090 * dispextern.h (struct glyph_string): Change type of `font' to
15091 `struct font *'.
15092 (struct glyph_string): New member underline_position and
15093 underline_thickness.
15094 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15095 (struct face): Change type of `font' to `struct font *'. Remove
15096 members `font_name', `font_info_id'.
15097 (per_char_metric, encode_char): Delete externs.
15098 (calc_pixel_width_or_height): Adjust the prototype.
15099
15100 * emacs.c (enable_font_backend): Delete extern.
15101 (main): Don't set enable_font_backend. Don't check the command
15102 line argument "-disable-font-backend".
15103
15104 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15105 (enum font_property_index): New members FONT_DPI_INDEX,
15106 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15107 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15108 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15109 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15110 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15111 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15112 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15113 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15114 (struct font_spec, struct font_entity): New structs.
15115 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15116 (struct font): Many members from old "struct font_info" moved to
15117 here. Members font and entity deleted.
15118 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15119 the new font-related objects.
15120 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15121 (CHECK_FONT_GET_OBJECT): Likewise.
15122 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15123 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15124 (struct font_driver): New members case_sensitive anc check. Type
15125 of the member list and open changed.
15126 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15127 (font_symbolic_width, font_find_object, font_get_spec)
15128 (font_set_lface_from_name): Delete extern.
15129 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15130
15131 * font.c: Include <strings.h>.
15132 (enable_font_backend): Delete it.
15133 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15134 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15135 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15136 (null_string): Delete it.
15137 (null_vector): Make it static.
15138 (font_family_alist): Delete it.
15139 (Qnormal): Extern it.
15140 (QCextra, QClanguage): Delete it.
15141 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15142 (font_make_spec, font_make_entity, font_make_object)
15143 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15144 the string. Callers changed.
15145 (font_pixel_size): Adjusted for the format change of font-related
15146 objects.
15147 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15148 (font_style_to_value, font_style_symbolic): New function.
15149 (build_font_family_alist): Delete it.
15150 (font_registry_charsets): Use Fassoc_string instead of
15151 assq_no_quit.
15152 (font_prop_validate_symbol): Don't return null_string.
15153 (font_prop_validate_style): Adjusted for the change of
15154 style-related values in a font vector.
15155 (font_property_table): Delete entries for QClanguage and
15156 QCantialias, add entries for QCavgwidth.
15157 (get_font_prop_index): Delete the 2nd argument FROM.
15158 (font_prop_validate): Arguments changed.
15159 (font_put_extra): Adjusted for the change of font-related objects.
15160 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15161 (font_parse_fcname, font_unparse_fcname)
15162 (font_prepare_composition): Likewise.
15163 (font_parse_family_registry): Renamed from font_merge_old_spec.
15164 (otf_open): Delete the 1st arg entity.
15165 (font_otf_capability): Adjusted for the above change.
15166 (font_score): New arg alternate_families. Adjusted for the change
15167 of font-related objects.
15168 (font_sort_entites): New arg best_only.
15169 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15170 Delete them.
15171 (font_match_p): Check alternate families.
15172 (font_find_object): Delete it.
15173 (font_check_object): New function.
15174 (font_clear_cache): Adjusted for the change of font-related objects.
15175 (font_delete_unmatched): New arg.
15176 (font_list_entities): Call font_driver->list with a spec that
15177 doesn't specify style-related properties.
15178 (font_matching_entity): Arguments changed. Caller changed.
15179 (font_open_entity): Adjusted for the change of font-related objects.
15180 (font_close_object, font_has_char, font_encode_char)
15181 (font_get_name, font_get_spec): Likewise.
15182 (font_spec_from_name, font_clear_prop, font_update_lface):
15183 New functions.
15184 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15185 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15186 (font_at): Adjusted for the change of font-related objects.
15187 (font_range): New function.
15188 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15189 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15190 (Fcopy_font_spec, Fmerge_font_spec): New function.
15191 (Ffont_family_list): Renamed from list-families.
15192 (Finternal_set_font_style_table): Arguments changed.
15193 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15194 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15195 change of font-related objects.
15196 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15197
15198 * fontset.h (struct font_info): Delete it. Most members go to
15199 struct font.
15200 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15201 (enum FONT_SPEC_INDEX): Delete it.
15202 (font_info, list_fonts_func, load_font_func, query_font_func)
15203 (set_frame_fontset_func, find_ccl_program_func)
15204 (get_font_repertory_func, new_fontset_from_font_name): Delete
15205 externs.
15206 (fontset_from_font_name): Extern it.
15207 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
15208 (FONT_INFO_FROM_FACE): Deleted.
15209 (face_for_font): Adjust prototype.
15210
15211 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
15212 conditionals. Don't check enable_font_backend. Delete all codes
15213 used only when USE_FONT_BACKEND is not defined.
15214 (get_font_info_func, list_font_func, load_font_func)
15215 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
15216 (get_font_repertory_func): Delete them.
15217 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
15218 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
15219 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
15220 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
15221 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
15222 (fontset_compare_rfontdef): New function.
15223 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
15224 rfont-defs by qsort. Adjusted for the change of font-group vector.
15225 (load_font_get_repertory): Deleted.
15226 (fontset_find_font): Use new macros to ref/set elements of
15227 font-def and rfont-def.
15228 (fontset_font): Fix the timing of remembering that no font for C.
15229 (free_face_fontset): Do nothing if the face has no fontset.
15230 (face_suitable_for_char_p): Use new macros to ref/set elements of
15231 rfont-def.
15232 (face_for_char): Likewise. Call face_for_char with font_object.
15233 (fs_load_font): Delete. Delete #pragma surrounding it.
15234 (fs_query_fontset): Use strcasecmp instead of strcmp.
15235 (generate_ascii_font_name): Adjusted for the format change of
15236 font-spec.
15237 (Fset_fontset_font): Likewise. Use new macros to set elements of
15238 font-def.
15239 (Fnew_fontset): Use font_unparse_xlfd to generate
15240 FONTSET_ASCII (fontset).
15241 (new_fontset_from_font_name): Deleted.
15242 (fontset_from_font): Renamed from new_fontset_from_font. Check if
15243 a fontset is already created for the font. FIx updating of
15244 Vfontset_alias_alist.
15245 (fontset_ascii_font): Deleted.
15246 (Ffont_info): Adjusted for the format change of font-spec.
15247 (Finternal_char_font): Likewise.
15248 (Ffontset_info): Likewise.
15249 (syms_of_fontset): Don't check load_font_func.
15250
15251 * fns.c (internal_equal): Handle PREV_FONT.
15252
15253 * frame.h: Delete USE_FONT_BACKEND conditional.
15254
15255 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
15256 conditionals. Don't check enable_font_backend. Delete all codes
15257 used only when USE_FONT_BACKEND is not defined.
15258 (x_set_font): Call x_new_font, not x_new_fontset2.
15259 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
15260 already set for the frame.
15261
15262 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
15263 a font-entity by font_make_entity. Use font_intern_prop instead
15264 of intern_downcase. Use FONT_SET_STYLE to set a style-related
15265 font property. If a font is scalable, set avgwidth property to 0.
15266 Set font-entity property by font_put_extra.
15267 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
15268 (ffont_driver): Adjusted for the change of struct font_driver.
15269 (ftfont_spec_pattern): New function.
15270 (ftfont_list): Return a list, not vector.
15271 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
15272 (ftfont_list_family): Don't downcase names.
15273 (ftfont_free_entity): Deleted.
15274 (ftfont_open): Return a font-object. Adjusted for the change of
15275 struct font. Get underline_thickness and underline_position from
15276 font property. Don't update dpyinfo->smallest_font_height and
15277 dpyinfo->smallest_char_width.
15278 (ftfont_close): Don't free `struct font'.
15279 (ftfont_has_char): Adjusted for the format change of font-entity.
15280 (ftfont_encode_char, ftfont_text_extents): Likewise.
15281
15282 * ftxfont.c (ftxfont_list): Return a list, not vector.
15283 (ftxfont_open): Return a font-object. Adjusted for the change of
15284 struct font. Get underline_thickness and underline_position from
15285 font property. Don't update dpyinfo->smallest_font_height and
15286 dpyinfo->smallest_char_width.
15287 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
15288 (ftxfont_draw): Adjusted for the change of struct font.
15289
15290 * image.c (image_ascent): Don't include "charset.h". Include
15291 "character.h" and "font.h".
15292
15293 * lisp.h (enum pvec_type): New member PREV_FONT.
15294 (Fassoc_string): EXFUN it.
15295
15296 * print.c: Include font.h.
15297 (print_object): Handle font-related objects.
15298
15299 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
15300 conditionals. Don't check enable_font_backend. Delete all codes
15301 used only when USE_FONT_BACKEND is not defined.
15302 (handle_auto_composed_prop): Do nothing if it->f is not on a
15303 window system. Check how many following characters can be
15304 displayed by the same font.
15305 (calc_pixel_width_or_height): Type of the 4th arg is changed to
15306 'struct font *'.
15307 (get_char_face_and_encoding): Assign the whole encoding task to
15308 the `encode-char' method of a font driver.
15309 (fill_composite_glyph_string): Adjusted for the change of `struct
15310 face' and `struct glyph_string'.
15311 (fill_glyph_string): Likewise.
15312 (get_per_char_metric): Arguments changed.
15313 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
15314 and `struct glyph_string'.
15315 (produce_stretch_glyph, calc_line_height_property)
15316 (x_produce_glyphs): Likewise.
15317
15318 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
15319 conditionals. Don't check enable_font_backend. Delete all codes
15320 used only when USE_FONT_BACKEND is not defined. Use
15321 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
15322 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
15323 (Qp): Extern them.
15324 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
15325 Deleted.
15326 (struct font_name): Deleted.
15327 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
15328 (compare_fonts_by_sort_order): New function.
15329 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
15330 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
15331 Deleted.
15332 (Fx_family_fonts): Use font_list_entities, and sort fonts by
15333 compare_fonts_by_sort_order.
15334 (Fx_font_family_list): Call Ffont_family_list.
15335 (face_numeric_value, face_numeric_weight, face_numeric_slant)
15336 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15337 (face_symbolic_slant, face_symbolic_swidth)
15338 (split_font_name_into_vector, build_font_name_from_vector)
15339 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15340 (font_rescale_ratio, split_font_name, build_font_name)
15341 (free_font_names, sort_fonts, x_face_list_fonts)
15342 (face_font_available_p, sorted_font_list, cmp_font_names)
15343 (font_list_1, concat_font_list, font_list, remove_duplicates):
15344 Deleted.
15345 (Fx_list_fonts): Use Ffont_list.
15346 (LFACE_AVGWIDTH): Deleted.
15347 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15348 by FONTP.
15349 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15350 (set_lface_from_font_name): Delete it.
15351 (set_lface_from_font): Renamed from
15352 set_lface_from_font_and_fontset. Caller changed. Don't set
15353 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15354 for face.
15355 (merge_face_vectors): Copy font-spec if necessary.
15356 Clear properties of the font-spec if necessary.
15357 (merge_face_ref): Clear properties of the font-spec if necessary.
15358 (Finternal_set_lisp_face_attribute): Likewise.
15359 (set_font_frame_param): Use font_load_for_lface to load a
15360 font-object, and call Fmodify_frame_parameters with it.
15361 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15362 font name by Ffont_xlfd_name.
15363 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15364 QCslant, and QCwidth.
15365 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15366 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15367 Compare fonts by EQ.
15368 (lookup_non_ascii_face): Deleted.
15369 (face_for_font): The 2nd argument changed.
15370 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15371 Check atomic font properties by case insensitive.
15372 (realize_non_ascii_face): Set face->overstrike correctly.
15373 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15374 (dump_realized_face): Get font name from
15375 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15376
15377 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15378 conditionals. Don't check enable_font_backend. Delete all codes
15379 used only when USE_FONT_BACKEND is not defined.
15380 (xic_create_xfontset): Original code deleted and renamed from
15381 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15382 (x_make_gc): Don't set GCFont in GCs.
15383 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15384 opened by "fixed".
15385 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15386 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15387 get_font_repertory_func.
15388
15389 * xfont.c: Include <stdlib.h> and "ccl.h".
15390 (struct xfont_info): New structure.
15391 (xfont_query_font): Deleted.
15392 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15393 moved from xterm.c.
15394 (xfont_driver): Adjusted for the change of struct font_driver.
15395 (compare_font_names): New function.
15396 (xfont_list_pattern): Sort font names case insensitively. Make
15397 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15398 (xfont_list): Return a list, not vector.
15399 (xfont_match): If the font doesn't have QCname property, generate
15400 a name from the other font properties.
15401 (xfont_open): Return a font-object. Adjusted for the change of
15402 struct font. Get underline_thickness and underline_position from
15403 font property. Don't update dpyinfo->smallest_font_height and
15404 dpyinfo->smallest_char_width.
15405 (xfont_close): Don't free struct font.
15406 (xfont_prepare_face): Adjusted for the change of struct font.
15407 (xfont_done_face): Deleted.
15408 (xfont_has_char): Adjusted for the change of struct font.
15409 (xfont_encode_char, xfont_draw): Likewise.
15410 (xfont_check): New function.
15411
15412 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15413 callback function.
15414 (xftfont_match): Adjusted for the format change of font-entity.
15415 (xftfont_open): Adjusted for the format change of font-entity and
15416 font-object. Adjusted for the change of struct font. Return a
15417 font-object. Don't update dpyinfo->smallest_font_height and
15418 dpyinfo->smallest_char_width.
15419 (xftfont_close): Block input while calling XftFontClose.
15420 (xftfont_prepare_face): Don't block input while calling
15421 xftfont_get_colors. Adjusted for the change of struct font.
15422 (xftfont_shape): Return value of error case fixed.
15423
15424 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15425
15426 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15427 conditionals.
15428 (FONT_WIDTH): Return (f)->max_width.
15429 (struct x_display_info): Delete member `font'.
15430 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15431 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15432 (struct x_output): Change type of `font' to `struct font *'.
15433
15434 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15435 conditionals. Don't check enable_font_backend. Delete all codes
15436 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15437 (x_per_char_metric, x_encode_char): Deleted.
15438 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15439 (x_compute_glyph_string_overhangs): Adjusted for the change of
15440 `struct face'.
15441 (x_draw_glyph_string_foreground)
15442 (x_draw_composite_glyph_string_foreground): Likewise.
15443 (x_draw_glyph_string): Likewise. Use font->underline_position and
15444 font->underline_thickness.
15445 (x_new_font): Renamed from x_new_fontset2.
15446 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15447 (x_check_font): Call `check' method of a font driver.
15448 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15449 (x_query_font, x_get_font_repertory): Deleted.
15450 (x_find_ccl_program): Renamed and moved to xfont.c.
15451 (x_redisplay_interface): Adjusted for the change of `struct
15452 redisplay_interface'.
15453
15454 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15455 conditionals. Don't check enable_font_backend. Delete all codes
15456 used only when USE_FONT_BACKEND is not defined. Surround non-used
15457 code by "#ifdef OLD_FONT" and "endif".
15458 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15459
15460 * w32font.h (struct w32font_info): New member.
15461 (FONT_COMPAT): New macro.
15462 (w32font_open_internal): Prototype adjusted.
15463
15464 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15465 OLD_FONT" and "endif".
15466
15467 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15468 conditionals. Don't check enable_font_backend. Delete all codes
15469 used only when USE_FONT_BACKEND is not defined.
15470 (w32font_open): Return a font-object. Make a font-object by
15471 font_make_object. Adjusted for the change of struct w32font_info.
15472 (w32font_close): Don't free struct font. Adjusted for the change
15473 of struct w32font_info.
15474 (w32font_encode_char, w32font_text_extents, w32font_draw):
15475 Adjusted for the change of struct w32font_info.
15476 (w32font_draw): Likewise.
15477 (w32font_list_internal): Return a list, not vector.
15478 (w32font_open_internal): Change the 4th arg to font-object.
15479 Adjusted for the change of struct w32font_info and font-object format.
15480 (add_font_name_to_list): Don't downcase names.
15481 (w32_enumfont_pattern_entity): Make a font-entity by
15482 font_make_entity. Adjusted for the format change of font-entity.
15483 Use FONT_SET_STYLE to set a style-related font property. If a
15484 font is scalable, set avgwidth property to 0. Set font-entity
15485 property by font_put_extra.
15486 (font_matches_spec): Adjusted for the format change of font-entity.
15487 (w32_weight_table, w32_decode_weight): New variables.
15488 (w32_encode_weight): New function.
15489 (fill_in_logfont): Adjusted for the format change of font-spec.
15490 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15491 weight value.
15492 (w32font_driver): Adjusted for the change of struct font_driver.
15493
15494 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15495 conditionals. Don't check enable_font_backend. Surround non-used
15496 code by "#ifdef OLD_FONT" and "endif".
15497 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15498 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15499
15500 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15501 conditionals. Don't check enable_font_backend. Delete all codes
15502 used only when USE_FONT_BACKEND is not defined. Surround non-used
15503 code by "#ifdef OLD_FONT" and "endif".
15504
15505 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15506 (uniscribe_open): Return value changed to font-object.
15507 Adjusted for the format change of font-object.
15508 (uniscribe_otf_capability): Adjusted for the change of struct font.
15509 (add_opentype_font_name_to_list): Don't downcase names.
15510 (uniscribe_font_driver): Adjusted for the change of struct
15511 font_driver.
15512
155132008-05-13 Chong Yidong <cyd@stupidchicken.com>
15514
15515 * dispnew.c (update_frame_1): Check if tty output is still valid
15516 before flushing it.
15517
155182008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15519
15520 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15521 to Gtk+ menus.
15522
155232008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15524
15525 * dired.c (file_name_completion): Tweak the code so as to always do it
15526 in a single pass. Tighten the scope of some variables.
15527
15528 * dired.c (Qdefault_directory): New var.
15529 (file_name_completion): Use it instead of Fexpand_file_name.
15530 (syms_of_dired): Initialize it.
15531
155322008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15533
15534 * fileio.c (double_dollars): Remove dead code.
15535
155362008-05-10 Eli Zaretskii <eliz@gnu.org>
15537
15538 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15539 Mention w32-get-true-file-attributes in doc string.
15540
15541 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15542
155432008-05-09 Glenn Morris <rgm@gnu.org>
15544
15545 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15546 2008-04-23.
15547
155482008-05-09 Eli Zaretskii <eliz@gnu.org>
15549
15550 Support for reporting owner and group of each file on MS-Windows:
15551 * dired.c (stat_uname, stat_gname): New functions, with special
15552 implementation for w32.
15553 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15554
15555 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15556 (dflt_group_name): New static variable.
15557 (dflt_group): Rename from the_group.
15558 (init_user_info): Init dflt_group fields. Get user's group name
15559 from LookupAccountSid.
15560 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15561 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15562 New initialization states.
15563 (globals_of_w32): Initialize them to zero. Initialize the default
15564 group name to "None".
15565 (GetFileSecurity_Name): New global var, the name of the function
15566 to call for GetFileSecurity.
15567 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15568 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15569 (get_file_security, get_security_descriptor_owner)
15570 (get_security_descriptor_group, is_valid_sid)
15571 (get_file_security_desc, get_rid, get_name_and_id)
15572 (get_file_owner_and_group): New functions.
15573 (stat): Use get_file_security_desc and get_file_owner_and_group to
15574 report the owner and primary group of each file. Don't ignore the
15575 high 32 bits of file's size, now that st_size is 64-bit wide.
15576 Fix test when to get true file attributes.
15577 (init_user_info): Use get_rid instead of equivalent inline code.
15578 (fstat): Don't ignore the high 32 bits of file's size.
15579
155802008-05-09 Chong Yidong <cyd@stupidchicken.com>
15581
15582 * image.c (png_load): Use correct bit-depth for setting background
15583 color.
15584
155852008-05-08 Eli Zaretskii <eliz@gnu.org>
15586
15587 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15588 epa-hook.elc.
15589
155902008-05-08 Juanma Barranquero <lekktu@gmail.com>
15591
15592 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15593
155942008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15595
15596 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15597 because the original parameters are in pure storage now.
15598 (mac_window): Remove unused params. Update callers.
15599
156002008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15601
15602 * lread.c (substitute_object_recurse): Use lower-level primitives.
15603 Don't signal errors when traversing sub-char-tables.
15604 Don't loop over all the possible characters when traversing char-tables.
15605
15606 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15607 just like we do in print.c.
15608
156092008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15610
15611 * minibuf.c (Ftry_completion): Remove code left over from when we used
15612 scmp instead of Fcompare_strings.
15613
156142008-05-04 Juanma Barranquero <lekktu@gmail.com>
15615
15616 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15617
156182008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15619
15620 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15621 Create bitmap context in native byte order.
15622
15623 * macterm.c (XDrawLine)
15624 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15625 context in native byte order.
15626
156272008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15628
15629 * config.in: Regenerate.
15630
15631 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15632 New definitions for Image I/O support.
15633 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15634 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15635 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15636 (mac_data_provider_release_data, image_load_image_io)
15637 [USE_MAC_IMAGE_IO]: New functions.
15638 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15639 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15640 (init_image_func_pointer) [MAC_OSX]: Remove function.
15641 (image_load_quartz2d) [MAC_OSX]: Check availability of
15642 CGImageCreateWithPNGDataProvider at compile time.
15643 Use lowercase `false' for boolean constant.
15644 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15645 Use image_load_image_io.
15646 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15647 Don't check MyCGImageCreateWithPNGDataProvider.
15648 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15649 Don't call init_image_func_pointer.
15650
15651 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15652
15653 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15654 Make variable non-static.
15655 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15656 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15657
15658 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15659 (RED_FROM_ULONG): Mask off higher bits.
15660 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15661
15662 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15663 Include AvailabilityMacros.h.
15664 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15665 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15666
156672008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15668
15669 * chartab.c (Fset_char_table_range): If range is t, really set all
15670 chars to that value.
15671
156722008-05-03 Eli Zaretskii <eliz@gnu.org>
15673
15674 * dired.c (Ffile_attributes): Don't allow the device number become
15675 negative.
15676
156772008-05-02 Daiki Ueno <ueno@unixuser.org>
15678
15679 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15680
156812008-05-02 Juri Linkov <juri@jurta.org>
15682
15683 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15684 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15685 DEFAULT argument as a list of default values in docstrings.
15686
156872008-05-01 Chong Yidong <cyd@stupidchicken.com>
15688
15689 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15690
156912008-05-01 Martin Rudalics <rudalics@gmx.at>
15692
15693 * dispnew.c (change_frame_size_1): Preserve small windows when
15694 shrinking frames by calling set_window_height|width with third
15695 arg 2.
15696
15697 * window.h (struct window): Replace field too_small_ok by field
15698 resize_proportionally.
15699
15700 * window.c (make_window): Initialize resize_proportionally.
15701 (enlarge_window): Temporarily set resize_proportionally to make
15702 sure that shrink_windows does scale the window proportionally.
15703 (shrink_windows): When window has resize_proportionally set try
15704 to shrink it proportionally by stealing from other windows.
15705 (struct saved_window, Fset_window_configuration)
15706 (compare_window_configurations): Handle resize_proportionally.
15707 (WINDOW_TOTAL_SIZE): New macro.
15708 (window_min_size, shrink_windows, size_window): Use it.
15709 (check_min_window_sizes): Remove. Invalid values of
15710 window-min-height|width are handled by window_min_size_2 now.
15711 (size_window, Fsplit_window, enlarge_window)
15712 (adjust_window_trailing_edge, grow_mini_window): Don't call
15713 check_min_window_sizes.
15714 (window_min_size_2, window_min_size_1, window_min_size):
15715 New argument safe_p for retrieving "safe" minimum sizes.
15716 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15717 (adjust_window_trailing_edge, grow_mini_window):
15718 Adjust arguments of window_min_size... functions.
15719 (shrink_windows): Argument min_size removed. New argument
15720 safe_p allows shrinking windows to their safe minimum sizes.
15721 Calculate minimum size and decide whether a window shall be
15722 deleted for each window individually.
15723 (size_window): When nodelete_p equals 2, tell shrink_windows to
15724 delete windows only if their new minimum size is no more safe.
15725 (shrink_window_lowest_first): Call window_min_size_1 to make
15726 sure to preserve modeline of bottom-most window when resizing
15727 the minibuffer.
15728 (Fset_window_configuration, Fcurrent_window_configuration)
15729 (compare_window_configurations): Do not handle
15730 window-min-height|width any more.
15731 (syms_of_window): Clarify window-min-height|width doc-strings.
15732
157332008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15734
15735 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15736 some more. Copy some of the code from Ftry_completions.
15737 Remove special case code that dates back to initial revision when the
15738 slash was only added when necessary and that can't trigger nowadays.
15739
157402008-04-27 Kenichi Handa <handa@m17n.org>
15741
15742 * font.c (font_prop_validate): Signal `error' instead of `font'.
15743
157442008-04-29 Jason Rumney <jasonr@gnu.org>
15745
15746 * w32fns.c (Fw32_battery_status): New defun.
15747 (syms_of_w32fns): Defsubr it.
15748
157492008-04-28 Andreas Schwab <schwab@suse.de>
15750
15751 * dired.c (file_name_completion): Fix another mixing of encoded
15752 and decoded names.
15753
157542008-04-28 Juanma Barranquero <lekktu@gmail.com>
15755
15756 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15757
157582008-04-27 Juanma Barranquero <lekktu@gmail.com>
15759
15760 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15761
157622008-04-27 Andreas Schwab <schwab@suse.de>
15763
15764 * dired.c (file_name_completion): Fix inappropriate mixing of
15765 encoded and decoded names.
15766
15767 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15768
15769 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15770
157712008-04-26 Eli Zaretskii <eliz@gnu.org>
15772
15773 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15774 2008-03-31, it's not needed anymore with `struct stat' definition
15775 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15776 for the same reasons.
15777
157782008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15779
15780 * m/sparc.h: Additional redefinitions for GNU/Linux.
15781
157822008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15783
15784 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15785 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15786 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15787 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15788 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15789 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15790 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15791 Likewise.
15792
15793 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15794 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15795 (mac_ax_number_of_characters): Add externs.
15796 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15797 [USE_MAC_TSM]: Likewise.
15798 (mac_handle_text_input_event) [MAC_OSX]:
15799 Handle kEventTextInputOffsetToPos for no active input area case.
15800 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15801 (mac_handle_document_access_event)
15802 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15803 (install_application_handler) [MAC_OSX]: Register handlers for
15804 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15805 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15806 Register mac_handle_document_access_event.
15807
15808 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15809 Make functions non-static.
15810
158112008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15812
15813 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15814 (read_file_name_completion_ignore_case, insert_default_directory)
15815 (Qdefault_directory): Move to minibuffer.el.
15816 (Fread_file_name): Call the new `read-file-name' instead.
15817
158182008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15819
15820 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15821 Make function non-static.
15822 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15823 Remove function.
15824 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15825 Move to mactoolbox.c.
15826 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15827
15828 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15829 (mac_rect_make): New macro.
15830
15831 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15832 instead of float.
15833 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15834 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15835 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15836 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15837 CGRectMake.
15838 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15839 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15840 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15841 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15842 instead of WindowRef in argument type.
15843 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15844 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15845 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15846 instead of DISPLAY. All uses changed.
15847 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15848 (x_calc_absolute_position): Simplify so as not to use
15849 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15850
15851 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15852 instead of WindowRef in argument type.
15853 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15854 [TARGET_API_MAC_CARBON]: Remove externs.
15855 (create_apple_event, mac_event_parameters_to_lisp)
15856 [TARGET_API_MAC_CARBON]: Add externs.
15857
15858 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15859 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15860 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15861 is clicked.
15862 (x_activate_menubar): Remove extern for saved_menu_event_location.
15863 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15864 Move from mac.c.
15865
158662008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15867
15868 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15869 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15870
158712008-04-23 Jason Rumney <jasonr@gnu.org>
15872
15873 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15874 attributes only for local files.
15875
15876 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15877 default to Qlocal.
15878
158792008-04-22 Juri Linkov <juri@jurta.org>
15880
15881 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15882 read-buffer-to-switch instead of using the letter "B".
15883
158842008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15885
15886 * fileio.c (Qdefault_directory): New variable.
15887 (Fread_file_name): Use it to pass `dir' to the completion functions.
15888
158892008-04-20 Chong Yidong <cyd@stupidchicken.com>
15890
15891 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15892
158932008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15894
15895 * keyboard.c (Vpre_help_message): Remove.
15896 (show_help_echo): Remove default C code.
15897
15898 * dired.c (directory_files_internal, file_name_completion):
15899 Only call ENCODE_FILE if the string is indeed decoded.
15900
159012008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15902
15903 * Makefile.in (TOOLKIT_DEFINES): Remove.
15904 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15905
159062008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15907
15908 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15909 (mactoolbox.o): New target.
15910
15911 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15912 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15913
15914 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15915 Use mac_set_frame_window_background instead of XSetWindowBackground.
15916 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15917 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15918 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15919 instead of SetWindowTitleWithCFString.
15920 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15921 Move function to mactoolbox.c.
15922 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15923 Use mac_set_window_modified instead of SetWindowModified.
15924 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15925 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15926 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15927 FrontNonFloatingWindow. Use mac_activate_window instead of
15928 ActivateWindow. Use mac_active_non_floating_window instead of
15929 ActiveNonFloatingWindow.
15930 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15931 Use mac_show_hourglass and mac_hide_hourglass.
15932 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15933 instead of GetGlobalMouse.
15934 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15935 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15936 Use mac_bring_window_to_front instead of BringToFront.
15937 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15938 mactoolbox.c.
15939 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15940 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15941 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15942 mactoolbox.c.
15943
15944 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15945 (XtPointer): Move typedef from macmenu.c.
15946 (enum button_type): Move enum from macmenu.c.
15947 (widget_value): Move typedef from macmenu.c.
15948 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15949 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15950 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15951 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15952 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15953 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15954 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15955 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15956 (Selection): Move typedef from macselect.c.
15957 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15958 macterm.c.
15959 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15960 (mac_is_window_collapsed, mac_bring_window_to_front)
15961 (mac_send_window_behind, mac_hide_window, mac_show_window)
15962 (mac_collapse_window, mac_front_non_floating_window)
15963 (mac_active_non_floating_window, mac_activate_window)
15964 (mac_move_window_structure, mac_move_window, mac_size_window)
15965 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15966
15967 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15968 (enum mac_menu_kind): Move enum to mactoolbox.c.
15969 (min_menu_id): Move variable to mactoolbox.c.
15970 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15971 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15972 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15973 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15974 [TARGET_API_MAC_CARBON]: Likewise.
15975 (XtPointer): Move typedef to macgui.h.
15976 (enum button_type): Move enum to macgui.h.
15977 (widget_value): Move typedef to macgui.h.
15978 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15979 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15980 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15981 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15982 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15983 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15984 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15985 (popup_activated_flag): Make variable non-static.
15986 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15987 (add_menu_item, fill_menu, dispose_menus):
15988 Move functions to mactoolbox.c.
15989 (restore_show_help_function, menu_target_item_handler)
15990 (install_menu_target_item_handler, mac_handle_dialog_event)
15991 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15992 [TARGET_API_MAC_CARBON]: Likewise.
15993 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15994 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15995 (find_and_call_menu_selection, name_is_separator): Make function
15996 non-static.
15997 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15998 to mactoolbox.c.
15999 (set_frame_menubar): Don't call install_menu_quit_handler.
16000 (menu_item_selection): New variable.
16001 (mac_menu_show): Use create_and_show_popup_menu.
16002 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16003 selection but set variable menu_item_selection. All uses changed.
16004 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16005 Call install_menu_quit_handler. Move to mactoolbox.c.
16006
16007 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16008 (Selection): Move typedef to macgui.h.
16009 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16010 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16011 Make variables non-static.
16012 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16013 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16014 Make functions non-static.
16015 (Vmac_service_selection) [MAC_OSX]: Likewise.
16016 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16017 (mac_valid_selection_target_p, mac_clear_selection)
16018 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16019 (mac_put_selection_value, mac_selection_has_target_p)
16020 (mac_get_selection_value, mac_get_selection_target_list)
16021 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16022 Move functions to mactoolbox.c.
16023 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16024 Likewise.
16025 (copy_scrap_flavor_data, mac_handle_service_event)
16026 (install_service_handler) [MAC_OSX]: Likewise.
16027 (syms_of_macselect) <Vmac_dnd_known_types>:
16028 Use mac_dnd_default_known_types.
16029
16030 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16031 Move to mactoolbox.c.
16032 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16033 (Fx_selection_owner_p): Add EXFUN.
16034 (install_window_handler, remove_window_handler, XSetWindowBackground):
16035 Remove externs.
16036 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16037 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16038 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16039 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16040 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16041 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16042 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16043 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16044 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16045 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16046 (mac_valid_selection_target_p, mac_clear_selection)
16047 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16048 (mac_put_selection_value, mac_selection_has_target_p)
16049 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16050 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16051 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16052 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16053 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16054 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16055 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16056 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16057 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16058
16059 * mactoolbox.c: New file.
16060
160612008-04-18 Jason Rumney <jasonr@gnu.org>
16062
16063 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16064
160652008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16066
16067 * character.c (Fmultibyte_char_to_unibyte):
16068 Return latin1 chars unchanged.
16069
16070 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16071 relocated if it points to `name'.
16072
160732008-04-17 Kenichi Handa <handa@m17n.org>
16074
16075 * data.c (Faset): Allow setting a multibyte character in an
16076 ASCII-only unibyte string.
16077
16078 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16079
160802008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16081
16082 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16083 done in config.h.
16084
160852008-04-16 Juanma Barranquero <lekktu@gmail.com>
16086
16087 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16088 (Fchar_direction): Add usage in the docstring.
16089
160902008-04-15 Chong Yidong <cyd@stupidchicken.com>
16091
16092 * keyboard.c (read_key_sequence): Remove always-true checks.
16093
160942008-04-14 Jason Rumney <jasonr@gnu.org>
16095
16096 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16097 compatibility struct, for better underline positioning.
16098
160992008-04-13 David Hansen <david.hansen@gmx.net>
16100
16101 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16102 string.
16103
161042008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16105
16106 * m/hp800.h (XUINT, XSET): Remove.
16107
161082008-04-12 Juanma Barranquero <lekktu@gmail.com>
16109
16110 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16111 previous change.
16112
161132008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16114
16115 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16116 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16117
161182008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16119
16120 * keymap.h (map_keymap_canonical): Declare.
16121 * xmenu.c (single_keymap_panes): Use it.
16122
161232008-04-11 Glenn Morris <rgm@gnu.org>
16124
16125 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16126 set the target's value to that of the alias.
16127
161282008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16129
16130 * term.c (set_tty_color_mode): Left over typo.
16131
161322008-04-10 Michael Albinus <michael.albinus@gmx.de>
16133
16134 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16135 only after check for file name handler functions. Signal, when
16136 native functionality is not supported.
16137 (syms_of_fileio): Declare it unconditionally.
16138
161392008-04-10 Jason Rumney <jasonr@gnu.org>
16140
16141 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16142 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16143
16144 * w32.c (logon_network_drive): Also logon to remote drives that
16145 are mapped to drive letters.
16146
161472008-04-10 Glenn Morris <rgm@gnu.org>
16148
16149 * xdisp.c (truncate-partial-width-windows): Doc fix.
16150
161512008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16152
16153 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16154 Move functions to minibuffer.el.
16155 (syms_of_fileio): Don't declare them.
16156
161572008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16158
16159 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16160 (syms_of_minibuf): Remove its initialization.
16161
16162 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16163
161642008-04-09 Juanma Barranquero <lekktu@gmail.com>
16165
16166 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16167
161682008-04-09 Jason Rumney <jasonr@gnu.org>
16169
16170 * makefile.w32-in (distclean): Delete makefile too.
16171 (maintainer-clean): New target.
16172
16173 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16174
16175 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16176 for new font backend and composite cases.
16177
161782008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16179
16180 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16181 Most of the code moved to run_timers.
16182 (do_pending_atimers): Call run_timers.
16183 (run_timers): New function.
16184
16185 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16186 run atimers.
16187
16188 * process.c (wait_reading_process_output): The same as above.
16189
161902008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16191
16192 * minibuf.c (last_exact_completion): Remove variable.
16193 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16194 (complete_and_exit_1, complete_and_exit_2)
16195 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16196 (Fdisplay_completion_list, display_completion_list_1)
16197 (Fminibuffer_completion_help, Fself_insert_and_exit)
16198 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16199 minibuffer.el.
16200 (syms_of_minibuf): Remove corresponding initializations.
16201
16202 * keyboard.c (Qdeactivate_mark): New var.
16203 (command_loop_1): Use it to call `deactivate-mark'.
16204 (syms_of_keyboard): Initialize it.
16205
16206 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
16207 to another frame.
16208 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
16209 Don't call set_tty_color_mode.
16210 (store_frame_param): Reset previous_frame rather than call
16211 set_tty_color_mode.
16212 * term.c (set_tty_color_mode): Rewrite.
16213 * dispextern.h (set_tty_color_mode): New type.
16214 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
16215
162162008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
16217
16218 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
16219 for generic chars, which do not exist any more in emacs-unicode.
16220
162212008-04-08 Michael Albinus <michael.albinus@gmx.de>
16222
16223 * coding.c (detect_coding_emacs_mule)
16224 (Ffind_operation_coding_system): Fix typo.
16225
162262008-04-08 Jason Rumney <jasonr@gnu.org>
16227
16228 * w32uniscribe.c (SNAME): Extract only symbol name.
16229
16230 * w32font.h (struct w32_metric_cache): New struct.
16231 (w32font_info): Use it.
16232 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
16233 (CACHE_BLOCKSIZE): New constants.
16234
16235 * w32font.c (Qja, Qko, Qzh): New symbols.
16236 (syms_of_w32font): Initialise them.
16237 (font_matches_spec): Use them to filter by language.
16238 (recompute_cached_metrics): Remove function.
16239 (compute_metrics, clear_cached_metrics): New functions.
16240 (w32font_encode_char): Use them to manage metric cache.
16241 (w32font_text_extents): Cache metrics for all glyphs on demand.
16242 Delay converting glyph indices to WORD until needed.
16243 (w32font_open_internal): Initialize metric cache to empty.
16244 (registry_to_w32_charset): Charset should always be a symbol.
16245 (fill_in_logfont, list_all_matching_fonts): Family should
16246 always be a symbol.
16247
162482008-04-06 Jason Rumney <jasonr@gnu.org>
16249
16250 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
16251 Give up if glyph indices not supported. Use uniscribe obtained
16252 ABC widths for individual metrics. Map glyph clusters back to
16253 characters using fClusterStart flag. Return number of glyphs
16254 produced, not chars processed.
16255 (uniscribe_shape): Map char at FROM to current glyph.
16256
162572008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16258
16259 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
16260 Use SetMenuItemHierarchicalMenu.
16261
162622008-04-05 Jason Rumney <jasonr@gnu.org>
16263
16264 * image.c (pbm_load): Allow color values up to 65535.
16265 Throw an error if max_color_idx is outside the supported range.
16266 Report an error when image size is invalid.
16267 Read two bytes at a time when raw images have max_color_idx above 255.
16268
aac0c6e3
MR
162692008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
16270
16271 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
16272 append "CCL: Quitted" when the CCL program is quitted.
16273 (setup_ccl_program): Initialize ccl->quit_silently to zero.
16274
16275 * ccl.h (struct ccl_program): New member quit_silently.
16276
162772008-04-05 Chong Yidong <cyd@stupidchicken.com>
16278
16279 * search.c (compile_pattern_1): Treat non-nil and non-string of
16280 search-spaces-regexp as nil.
16281
16282 * minibuf.c (Fassoc_string): Tweak docstring.
16283
162842008-04-05 Eli Zaretskii <eliz@gnu.org>
16285
16286 * dired.c (Ffile_attributes): Support inode numbers wider than 32
16287 bits. Remove ugly WINDOWSNT-specific kludge introduced on
16288 2008-03-14 to force inode be positive.
16289
16290 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
16291 _S_* ones, since we now use our own sys/stat.h.
16292 (stat, fstat): Don't mangle the inode number.
16293 (init_user_info): Don't restrict UID and GID to 0-60000 range.
16294
162952008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
16296
16297 * frame.h (struct frame): Give one more bit to `visible' since we use
16298 values larger than 1 to indicate obscured frames on ttys.
16299
16300 * keymap.c (Qkeymap_canonicalize): New var.
16301 (Fmap_keymap_internal): New fun.
16302 (describe_map): Use keymap-canonicalize.
16303
16304 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
16305 (Fundo_boundary): Set them.
16306 (syms_of_undo): Initialize them.
16307 (record_point): Use them instead of last_point_position*.
16308 (last_undo_buffer): Change type.
16309
163102008-04-04 Jason Rumney <jasonr@gnu.org>
16311
16312 * w32font.c (w32font_text_extents): Use font's ascent and descent.
16313 (recompute_cached_metrics): Don't set ascent and descent per char.
16314
16315 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
16316 (uniscribe_check_otf): Add GC protection before consing.
16317 Rearrange loop for counting features.
16318
163192008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
16320
16321 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
16322 buffer with byte-size of source buffer.
16323
163242008-04-03 Chong Yidong <cyd@stupidchicken.com>
16325
16326 * callint.c (Fcall_interactively): Handle temporary region even
16327 when shift-select-mode is off.
16328
163292008-04-03 Jason Rumney <jasonr@gnu.org>
16330
16331 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
16332
163332008-04-03 Kenichi Handa <handa@m17n.org>
16334
16335 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
16336 (CATEGORY_MASK_UTF_16): Likewise.
16337 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16338 binary file.
16339 (detect_coding): Add null-byte detection for a binary file.
16340 (detect_coding_system): Likewise.
16341
163422008-04-03 Jason Rumney <jasonr@gnu.org>
16343
16344 * w32uniscribe.c: New file.
16345
16346 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16347
16348 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16349
16350 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16351 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16352 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16353 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16354 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16355 (Qphonetic): New symbols.
16356 (syms_of_w32font): Initialize them.
16357 (font_supported_scripts): Use them.
16358 (w32font_list_family): List all charsets.
16359 (w32font_text_extents, recompute_cached_metrics): Fix metric
16360 calculations.
16361 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16362 Give opentype fonts their own format.
16363 (font_matches_spec): New arguments backend and logfont.
16364 Handle :otf spec for uniscribe backend.
16365 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16366 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16367
16368 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16369 font backend.
16370 (globals_of_w32fns): Initialize uniscribe font backend.
16371
16372 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16373 dependencies.
16374 (w32uniscribe.$(O)): New file to build.
16375 (FONT_OBJ): Include w32uniscribe.$(O).
16376 (LIBS): Add uniscribe libraries.
16377
16378 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16379
163802008-04-02 Chong Yidong <cyd@stupidchicken.com>
16381
16382 * callint.c (Vshift_select_mode): New var.
16383 (Finteractive): Document new ^ spec.
16384 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16385 is present.
16386
16387 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16388 (command_loop_1): Avoid running the direct display versions of
16389 forward-char and backward-char if shift-selection may occur.
16390 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16391 shift-translation takes place.
16392
16393 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16394 avoid clobbering by define-minor-mode.
16395
16396 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16397 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16398
16399 * syntax.c (Fforward_word): Add ^ interactive spec.
16400
16401 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16402 (Fscroll_right): Add ^ interactive spec.
16403
164042008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16405
16406 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16407
16408 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16409
16410 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16411
164122008-03-31 Juri Linkov <juri@jurta.org>
16413
16414 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16415
164162008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16417
16418 * gtkutil.c (xg_set_geometry): Fix indentation.
16419 (xg_resize_outer_widget): Remove.
16420 (x_wm_size_hint_off): Fix indentation.
16421 (xg_frame_set_char_size): Call flush_and_sync after
16422 gtk_window_resize.
16423 (x_wm_set_size_hint): Pass NULL as geometry window to
16424 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16425 Add menu bar and tool bar height to base height.
16426 (xg_update_frame_menubar, free_frame_menubar)
16427 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16428 (update_frame_tool_bar, free_frame_tool_bar):
16429 Change xg_resize_outer_widget to xg_frame_set_char_size.
16430
164312008-03-30 Michael Albinus <michael.albinus@gmx.de>
16432
16433 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16434 (Fdbus_call_method): New parameter TIMEOUT.
16435 (dbus-send-signal): Optimize UNGCPRO call.
16436
164372008-03-29 Juri Linkov <juri@jurta.org>
16438
16439 * window.c (Fdisplay_buffer): Move call to
16440 Vsplit_window_preferred_function out of conditions that check
16441 if window is eligible for vertical splitting.
16442 When Vsplit_window_preferred_function is non-nil, call it and use
16443 its non-nil return value as window. Otherwise, continue doing
16444 vertical splitting using Fsplit_window with arg horflag=nil.
16445 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16446 default value from `split-window' to nil.
16447
164482008-03-29 Juri Linkov <juri@jurta.org>
16449
16450 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16451 for interactive code letters 'b' and 'B'.
16452
164532008-03-29 Eli Zaretskii <eliz@gnu.org>
16454
16455 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16456 multibyte string.
16457
164582008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16459
16460 * keyboard.c (pending_funcalls): New var.
16461 (timer_check): Run it.
16462 (syms_of_keyboard): Initialize it.
16463 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16464 (Vdelete_terminal_functions): New vars.
16465 (syms_of_terminal): Initialize them.
16466 (Fdelete_terminal): Run delete-terminal-functions.
16467 * xdisp.c (safe_eval): Rewrite.
16468 (safe_call2): New fun.
16469 * frame.c (Qdelete_frame_functions): New var.
16470 (syms_of_frame): Initialize it.
16471 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16472 * lisp.h (safe_call2, pending_funcalls): Declare.
16473
164742008-03-28 Andreas Schwab <schwab@suse.de>
16475
16476 * indent.c (Fmove_to_column): Move declaration before statements.
16477
164782008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16479
16480 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16481 (struct frame): Use bit fields for boolean vars.
16482
16483 * process.c (server_accept_connection): Simplify naming.
16484 (emacs_get_tty_pgrp): Use SDATA.
16485
16486 * coding.c (decode_coding_object): Fix last change.
16487
164882008-03-27 Jason Rumney <jasonr@gnu.org>
16489
16490 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16491
164922008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16493
16494 * charset.c (Fdefine_charset_internal): Change the way of
16495 registering charsets in Vcharset_order_list.
16496 (syms_of_charset): Make the charset `eight-bit' supplementary.
16497
164982008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16499
16500 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16501 operations, to avoid having the difference between pointers
16502 overflow.
16503
165042008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16505
16506 * indent.c (check_display_width): New fun.
16507 (scan_for_column): Use it.
16508
16509 * data.c (syms_of_data): Mark most-positive-fixnum and
16510 most-negative-fixnum as constants.
16511
16512 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16513
16514 * indent.c (scan_for_column): Extract from current_column_1.
16515 Merge with the same code from Fmove_to_column.
16516 (current_column_1, Fmove_to_column): Use it.
16517
165182008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16519
16520 * keymap.c (map_keymap_internal): New fun.
16521 (map_keymap): Use it.
16522 (Fmap_keymap_internal): New fun.
16523 (Fmap_keymap): Remove left-out test from before make_save_value.
16524
16525 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16526
16527 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16528 Use XCAR/XCDR.
16529
16530 * process.h (struct Lisp_Process): Remove filter_multibyte.
16531 * process.c (QCfilter_multibyte): Remove.
16532 (setup_process_coding_systems): Don't use filter_multibyte.
16533 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16534 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16535 (Fset_process_filter_multibyte): Change the coding-system to
16536 approximate the previous behavior.
16537 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16538 coding-system.
16539
16540 * coding.c (decode_coding_object): When not decoding into a buffer,
16541 obey the coding system's preference of (uni|multi)byte.
16542
165432008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16544
16545 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16546 every char is changed and has a different byte-length.
16547 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16548 Fix int -> EMACS_INT.
16549
165502008-03-23 David Hansen <david.hansen@gmx.net>
16551
16552 * dbusbind.c (xd_read_message): Remove extra copying of message
16553 strings. Check for NULL `interface' or `member'.
16554
165552008-03-22 Eli Zaretskii <eliz@gnu.org>
16556
16557 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16558 cFileName a file name that includes `?' characters, use the 8+3
16559 alias in cAlternateFileName instead.
16560
165612008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16562
16563 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16564
165652008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16566
16567 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16568 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16569 work on current_buffer only instead (that was already the case
16570 for some of the code anyway).
16571 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16572 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16573 (SET_PT, SET_PT_BOTH): Adjust.
16574 * intervals.h (set_point, temp_set_point, set_point_both)
16575 (temp_set_point_both): Remove redundant declarations.
16576
165772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16578
16579 * fileio.c (Finsert_file_contents):
16580 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16581 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16582 when buffer != current_buffer anyway.
16583
165842008-03-20 Andreas Schwab <schwab@suse.de>
16585
16586 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16587 as default.
16588
165892008-03-19 Jason Rumney <jasonr@gnu.org>
16590
16591 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16592 (syms_of_w32fns): Initialize them.
16593 (HOURGLASS_ID): New constant.
16594 (x_window_to_frame): Don't check hourglass_window.
16595 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16596 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16597 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16598 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16599 Only change the cursor if hourglass is not active.
16600 (Fx_create_frame): Initialize frame's current_cursor.
16601 (hourglass_atimer): Remove.
16602 (hourglass_started): New function.
16603 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16604 (show_hourglass): Adapt to w32, changing argument to frame.
16605
16606 * w32term.h (struct w32_output): Remove hourglass_window.
16607 Add current_cursor.
16608
16609 * eval.c (call_debugger, Fsignal):
16610 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16611 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16612 (Fexecute_extended_command, cancel_hourglass_unwind):
16613 * minibuf.c (read_minibuf):
16614 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16615
166162008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16617
16618 * window.c (run_funs): New fun.
16619 (run_window_configuration_change_hook): Use it to run the buffer-local
16620 and the global part of the hook.
16621
16622 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16623 (unwind_format_mode_line): Restore selected window.
16624 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16625
166262008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16627
16628 * editfns.c (Fchar_equal): Check they are valid characters.
16629
16630 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16631
166322008-03-17 Andreas Schwab <schwab@suse.de>
16633
16634 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16635 against a charset.
16636
16637 * lisp.h (Fbuffer_list): Declare.
16638
166392008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16640
aac0c6e3
MR
16641 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16642 handlebox_widget is != 0.
16643
166442008-03-16 Juri Linkov <juri@jurta.org>
16645
16646 * callint.c (Fcall_interactively): For interactive code letters
16647 'b' and 'B' put the buffer list into the list of default "future"
16648 values of the minibuffer.
16649
166502008-03-16 Andreas Schwab <schwab@suse.de>
16651
16652 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16653 modifiers.
16654
16655 * regex.c (re_match_2_internal): Correct matching of a charset
16656 against latin-1 characters.
16657
166582008-03-16 Kenichi Handa <handa@m17n.org>
16659
16660 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16661 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16662 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16663 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16664 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16665 CHAR_STRING_ADVANCE.
16666 (produce_chars): Fix for the case that the source and the
16667 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16668 instead of CHAR_STRING_ADVANCE.
16669 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16670 STRING_CHAR_ADVANCE.
16671
166722008-03-15 Andreas Schwab <schwab@suse.de>
16673
16674 * regex.c (re_match_2_internal): Correct matching of eight bit
16675 characters in unibyte strings.
16676
166772008-03-15 Martin Rudalics <rudalics@gmx.at>
16678
16679 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16680 at end of range when it coincides with the end of the buffer.
16681
166822008-03-14 Eli Zaretskii <eliz@gnu.org>
16683
16684 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16685
16686 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16687
166882008-03-14 Jason Rumney <jasonr@gnu.org>
16689
16690 * editfns.c (initial_tz): New variable.
16691 (syms_of_editfns): Initialize it.
16692 (Fset_time_zone_rule): Set it when first called.
16693 Use it when TZSTRING is nil.
16694
16695 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16696 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16697 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16698 (globals_of_w32fns): Initialize them.
16699 (compute_tip_xy): Use them to position tooltips.
16700
167012008-03-14 Glenn Morris <rgm@gnu.org>
16702
16703 * emacs.c (main): Revert previous change.
16704 (standard_args): Revert -internal-script back to -scriptload,
16705 and remove the long-option form.
16706
167072008-03-13 Glenn Morris <rgm@gnu.org>
16708
16709 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16710 Remove option -enable-font-backend.
16711
167122008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16713
16714 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16715
167162008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16717
16718 * xterm.c (x_connection_closed): For GTK: If this is the last
16719 terminal just exit without closing the display.
16720
167212008-03-11 Jason Rumney <jasonr@gnu.org>
16722
16723 * w32font.c (w32font_full_name): Use floor to round.
16724
f0131492 167252008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16726
16727 * sound.c (alsa_configure): Declare vol at beginning of block.
16728
16729 * fontset.c (Ffontset_info): Remove extra semicolon.
16730
167312008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16732
16733 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16734 size of resulting string.
16735
167362008-03-10 Jason Rumney <jasonr@gnu.org>
16737
16738 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16739
167402008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16741
16742 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16743 Don't pretend as if characters with display property haven't been
16744 consumed for string-replacing-string case.
16745
167462008-03-08 Kim F. Storm <storm@cua.dk>
16747
16748 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16749 (get_next_display_element, next_element_from_string)
16750 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16751
167522008-03-08 Andreas Schwab <schwab@suse.de>
16753
16754 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16755
167562008-03-06 Jason Rumney <jasonr@gnu.org>
16757
16758 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16759 when charset not specified. Only translate ANSI to unicode when
16760 font_type is truetype.
16761 (w32font_coverage_ok): New function.
16762 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16763
167642008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16765
16766 * lread.c (Fread_char): Resolve modifiers.
16767 (Fread_char_exclusive): Likewise.
16768
16769 * character.c (char_resolve_modifier_mask): New function.
16770 (char_string): Use char_resolve_modifier_mask.
16771 (Fchar_resolve_modifiers): New function.
16772 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16773 function.
16774
167752008-03-04 Jason Rumney <jasonr@gnu.org>
16776
16777 * makefile.w32-in: Always include w32font.c in the build.
16778 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16779
167802008-03-04 Andreas Schwab <schwab@suse.de>
16781
16782 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16783 (versionclean): Likewise.
16784
167852008-03-04 Juanma Barranquero <lekktu@gmail.com>
16786
16787 * .cvsignore: Add oo.
16788
167892008-03-03 Andreas Schwab <schwab@suse.de>
16790
16791 * coding.c (decode_coding_object): Inhibit gap shrinking while
16792 decoding in place.
16793
167942008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16795
16796 * w32term.c: Remove unused include "gnu.h".
16797 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16798
16799 * gnu.h: Rename to ...
16800 * emacs-icon.h: ... this.
16801 * xterm.c: Use emacs-icon.h instead of gnu.h.
16802 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16803
168042008-03-03 Juanma Barranquero <lekktu@gmail.com>
16805
16806 * w32font.c: Include math.h.
16807
168082008-03-03 Jason Rumney <jasonr@gnu.org>
16809
16810 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16811 Compute options separately.
16812 (w32font_open_internal): Set glyph_idx before caching metrics.
16813
16814 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16815 Define if system headers don't.
16816 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16817 (w32font_encode_char): Don't declare here.
16818
16819 * w32font.c (Quniscribe, QCformat): New symbols.
16820 (syms_of_w32font): Define them.
16821 (w32font_has_char): Indicate uncertainty.
16822 (w32font_encode_char): Encode as glyph point. Make static.
16823 (recompute_cached_metrics): New function.
16824 (w32font_open_internal): Use it. Set font to use glyph points
16825 initially. Set format based on type of font.
16826 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16827 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16828 on it. Set format based on information available here.
16829 (add_font_entity_to_list): Identify backend based on opentype_only.
16830
168312008-03-02 Andreas Schwab <schwab@suse.de>
16832
16833 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16834
16835 * coding.c (decode_coding_big5, produce_chars):
16836 Fix typos in last change.
16837
168382008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16839
16840 * gnu.h: New icon.
16841
168422008-03-02 Kenichi Handa <handa@m17n.org>
16843
16844 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16845 `dos', don't decode '\r' if that is the last in the source.
16846 (decode_coding_utf_16, decode_coding_emacs_mule)
16847 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16848 (decode_coding_raw_text, decode_coding_charset): Likewise.
16849 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16850
168512008-03-01 Jason Rumney <jasonr@gnu.org>
16852
16853 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16854
168552008-03-01 Kim F. Storm <storm@cua.dk>
16856
16857 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16858
168592008-03-01 Jason Rumney <jasonr@gnu.org>
16860
16861 * w32font.c (w32font_full_name): New function.
16862 (w32font_open_internal): Use it.
16863
168642008-03-01 Kim F. Storm <storm@cua.dk>
16865
16866 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16867
168682008-03-01 Jason Rumney <jasonr@gnu.org>
16869
16870 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16871
168722008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16873
16874 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16875 xg_frame_resized when the event is for the edit widget.
16876
16877 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16878
16879 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16880 set_char_size.
16881 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16882 operations on widgets here. Just set frame size if needed.
16883 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16884 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16885 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16886 the whole frame.
16887 (xg_create_tool_bar): Move attachment of the tool bar to
16888 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16889 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16890
168912008-03-01 Jason Rumney <jasonr@gnu.org>
16892
16893 * w32fns.c (w32_msg_pump): Disable debug code.
16894
168952008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16896
16897 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16898
168992008-02-29 Chong Yidong <cyd@stupidchicken.com>
16900
16901 * xdisp.c (next_overlay_string): Don't set
16902 overlay_strings_at_end_processed_p if we're currently reading from
16903 a display string.
16904
169052008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16906
16907 * xdisp.c (get_overlay_strings_1): Fix typo.
16908
169092008-02-29 Chong Yidong <cyd@stupidchicken.com>
16910
16911 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16912
169132008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16914
16915 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16916
16917 * xdisp.c (display_mode_element): Cancel the previous change.
16918 (decode_mode_spec): Likewise.
16919 (handle_auto_composed_prop): Don't make composition if it->string
16920 is a string.
16921
169222008-02-27 Kim F. Storm <storm@cua.dk>
16923
16924 * lisp.h (GLYPH): Change type from int to struct with separate char
16925 and face_id members.
16926 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16927 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16928 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16929 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16930 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16931 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16932 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16933 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16934 handle new Lisp glyph code encoding, either an integer or a cons.
16935
16936 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16937 (GLYPH_ALIAS): Delete.
16938 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16939 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16940 (GLYPH_FROM_CHAR): Replace macro by ...
16941 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16942
16943 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16944 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16945 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16946 (GLYPH_INVALID_P): New macro.
16947 (spec_glyph_lookup_face): Update prototype.
16948
16949 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16950 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16951 new glyph code encoding.
16952 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16953 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16954
16955 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16956 Adapt to new glyph type and new glyph code encoding.
16957
16958 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16959
16960 * indent.c (current_column, current_column_1, Fmove_to_column)
16961 (compute_motion): Adapt to new glyph code encoding.
16962
16963 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16964
169652008-02-27 Chong Yidong <cyd@stupidchicken.com>
16966
16967 * process.c (wait_reading_process_output): Check for window
16968 changes caused by timers.
16969 Suggested by Johan Bockgård.
16970
169712008-02-27 Glenn Morris <rgm@gnu.org>
16972
16973 * emacs.c (USAGE1): Add `--disable-font-backend'.
16974
169752008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16976
16977 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16978 is made to the buffer.
16979
169802008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16981
16982 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16983 (face_at_string_position):
16984 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16985 (face_at_string_position):
16986 * xdisp.c (display_string, next_overlay_change):
16987 * buffer.h (overlays_at):
16988 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16989 Update callers.
16990
169912008-02-26 Chong Yidong <cyd@stupidchicken.com>
16992
16993 * editfns.c (Fformat): Doc fix.
16994
169952008-02-26 Juanma Barranquero <lekktu@gmail.com>
16996
16997 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16998 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16999 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17000
170012008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17002
17003 * buffer.c (Fbuffer_swap_text): New function.
17004 (syms_of_buffer): Defsubr it.
17005
170062008-02-25 Chong Yidong <cyd@stupidchicken.com>
17007
17008 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17009
170102008-02-25 Jason Rumney <jasonr@gnu.org>
17011
17012 * w32font.c (w32font_draw): Draw one character at a time when padding.
17013
170142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17015
17016 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17017 Handle a nil arg. Use run_window_configuration_change_hook.
17018 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17019 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17020 Use run_window_configuration_change_hook.
17021
170222008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17023
17024 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17025 1-pixel width.
17026
170272008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17028
17029 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17030 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17031 if the glyph in the font is zero pixel with.
17032
17033 * dispextern.h (struct glyph_string): New member padding_p.
17034
17035 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17036
17037 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17038
17039 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17040
17041 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17042
17043 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17044
170452008-02-25 Jason Rumney <jasonr@gnu.org>
17046
17047 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17048
170492008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17050
17051 Allow fine-grained image-cache flushing.
17052 * dispextern.h (struct image): Add `dependencies' field.
17053 (clear_image_caches): Change arg to Lisp_Object.
17054 * image.c (make_image): Initialize `dependencies' field.
17055 (clear_image_cache): Change arg to allow fine-grained flushing.
17056 Perform the flush even if image-cache-eviction-delay is nil.
17057 (clear_image_caches): Change arg to Lisp_Object.
17058 (Fclear_image_cache): Expand meaning of the argument.
17059 (mark_image): Mark `dependencies' field.
17060 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17061 (lface_hash): Use XHASH rather than XFASTINT.
17062 (face_at_buffer_position): Fix int -> EMACS_INT position.
17063 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17064 (select_frame_for_redisplay): Remove code duplication.
17065 (redisplay_internal): Adapt arg to call to clear_image_caches.
17066
170672008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17068
17069 * s/vms4-0.h:
17070 * s/vms4-2.h:
17071 * s/vms4-4.h:
17072 * s/vms5-5.h: Remove, unused.
17073
17074 * s/irix5-2.h:
17075 * s/irix6-0.h:
17076 * s/riscos5.h:
17077 * s/mach-bsd4-3.h:
17078 * m/mips4.h: Remove files for obsolete systems.
17079
17080 * Makefile.in:
17081 * filelock.c:
17082 * unexmips.c:
17083 * m/hp9000s300.h:
17084 * m/iris4d.h:
17085 * s/aix3-1.h:
17086 * s/hpux.h:
17087 * s/msdos.h:
17088 * s/usg5-0.h:
17089 * s/usg5-2-2.h:
17090 * s/usg5-2.h:
17091 * s/usg5-3.h: Remove references to obsolete variables.
17092
17093 * s/irix5-0.h: Remove, move all the contents ...
17094 * s/irix6-5.h: ... here. Simplify.
17095 * config.in: Regenerate.
17096
170972008-02-24 Jason Rumney <jasonr@gnu.org>
17098
17099 * w32term.c (x_draw_glyph_string_background): Clear the background
17100 manually when cleartype is in use.
17101 (x_draw_glyph_string_foreground): Draw text transparently when
17102 cleartype is in use.
17103
17104 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17105 a font into it unless we have to.
17106
171072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17108
17109 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17110 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17111
aac0c6e3
MR
171122008-02-18 Jason Rumney <jasonr@gnu.org>
17113
17114 * w32fns.c (Fw32_shell_execute): Encode parameters.
17115
171162008-02-09 Eli Zaretskii <eliz@gnu.org>
17117
17118 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17119
171202008-02-05 Juanma Barranquero <lekktu@gmail.com>
17121
17122 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17123
171242008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17125
17126 * xterm.c (x_set_offset): Don't change the gravity if
17127 CHANGE_GRAVITY is -1.
17128
171292008-02-23 Chong Yidong <cyd@stupidchicken.com>
17130
17131 * fileio.c (auto_save_error_occurred): New var.
17132 (auto_save_error): Set it.
17133 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17134 error occurred.
17135
171362008-02-23 Eli Zaretskii <eliz@gnu.org>
17137
17138 * w32.c (globals_of_w32): Add initializations for
17139 g_b_init_get_sid_sub_authority and
17140 g_b_init_get_sid_sub_authority_count.
17141
171422008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17143
17144 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17145 (font_parse_xlfd): Use them for sanity check.
17146 (Finternal_set_font_style_table): Make sure the table is bijective.
17147
17148 Consolidate the image_cache to the terminal struct.
17149 * termhooks.h (P_): Remove redundant def.
17150 (struct terminal): New field `image_cache'.
17151 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17152 of FRAME_X_IMAGE_CACHE.
17153 * xterm.h (struct x_display_info): Remove image_cache field.
17154 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17155 * w32term.h (struct w32_display_info): Remove image_cache field.
17156 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17157 * macterm.h (struct mac_display_info): Remove image_cache field.
17158 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17159 * xterm.c (x_term_init):
17160 * w32term.c (w32_term_init):
17161 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17162 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17163 Remove declarations.
17164 (clear_image_caches, mark_image_cache): New declarations.
17165 * xfaces.c (clear_face_cache):
17166 * xdisp.c (redisplay_internal): Use clear_image_caches.
17167 * image.c (clear_image_cache): Don't check that a frame is on
17168 a window-system before checking if it shares the same cache.
17169 (clear_image_caches): New function.
17170 (Fclear_image_cache): Use it.
17171 (mark_image): Move from allo.c.
17172 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17173 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17174 (mark_object): Don't call mark_image_cache for frames.
17175 (mark_terminals): Call mark_image_cache.
17176
17177 * lisp.h (Fdelete_terminal): Declare.
17178
17179 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17180 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17181 wrong_type_argument.
17182
171832008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17184
17185 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17186 malayalam.el, and tamil.el. Add sinhala.el.
17187
171882008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17189
17190 * xterm.c (x_connection_closed): Consolidate identical tests.
17191 (x_delete_terminal): Don't crash if called via x_connection_closed.
17192
171932008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17194
17195 * xdisp.c (decode_mode_spec): New arg string.
17196 (display_mode_element): Adjust for the above change.
17197
171982008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17199
17200 * callint.c (Fcall_interactively): Use AREF.
17201
172022008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
17203
17204 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
17205
172062008-02-18 Jan Djärv <jan.h.d@swipnet.se>
17207
17208 * xfns.c (Fx_show_tip): Set string to " " if empty.
17209
172102008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
17211
17212 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
17213 with Qt.
17214
172152008-02-17 Kenichi Handa <handa@m17n.org>
17216
17217 * ftfont.c (ftfont_shape): Return Lispy number.
17218
17219 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
17220 for GCs.
17221 (Finternal_set_font_selection_order): Call font_update_sort_order
17222 only when enable_font_backend is set.
17223 (realize_x_face): Set face->font_info to that of default face only
17224 when enable_font_backend is set.
17225
17226 * xdisp.c (handle_composition_prop): Set it->c to the fist
17227 character of the composed region.
17228 (fill_composite_glyph_string): Set base_face->font_info to
17229 s->font_info. Get a face for ascii from base_face->ascii_face.
17230 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
17231 with a face already decided.
17232 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
17233 non-negative.
17234 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
17235 call font_prepare_composition unconditionally.
17236
17237 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
17238
17239 * xterm.h (struct x_display_info): New member font.
17240
17241 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
17242 (x_set_mouse_face_gc, x_new_font): Likewise.
17243 (x_term_init): Setup display_info->font.
17244 (x_delete_terminal): Free display_info->font.
17245
17246 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
17247
17248 * ftxfont.c (ftxfont_default_fid): Delete it.
17249 (ftxfont_open): Set xfont->fid to 0.
17250 (ftxfont_end_for_frame): Clear data specific to the frame and the
17251 font-driver.
17252
17253 * xftfont.c (xftfont_default_fid): Delete it.
17254 (xftfont_open): Set xfont->fid to 0.
17255
17256 * fontset.c (FONTSET_OBJLIST): New macro.
17257 (fontset_find_font): Update font-object list of the fontset.
17258 (free_realized_fontset): New function.
17259 (free_face_fontset): Call free_realized_fontset.
17260 (Ffont_info): Call font_close_object only when enable_font_backend
17261 is set.
17262
17263 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
17264 [HAVE_NTGUI]: Include w32term.h.
17265 [MAC_OS]: Include macterm.ch.
17266 (font_otf_ValueRecord): Use make_number.
17267 (font_finish_cache): Fix handling of reference count.
17268 (font_clear_cache): Update num_fonts.
17269 (font_open_entity): Update smallest_char_width and
17270 smallest_font_height of the frame.
17271 (font_close_object): Update num_fonts.
17272 (Fclear_font_cache): Fix finding the target cache data.
17273
172742008-02-16 Glenn Morris <rgm@gnu.org>
17275
17276 * fontset.c (Finternal_char_font): Fix compilation warning.
17277
172782008-02-16 Eli Zaretskii <eliz@gnu.org>
17279
17280 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
17281 instead of char arrays. Enlarge the size of array passed to
17282 get_token_information.
17283
17284 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
17285 warnings.
17286
172872008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
17288
17289 * .gdbinit: Don't set `args', it breaks gdb --args.
17290
172912008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
17292
17293 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
17294 within a narrowed buffer.
17295
172962008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
17297
17298 * coding.c (decode_coding_object, encode_coding_object):
17299 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
17300
173012008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
17302
17303 * coding.c (coding_set_destination): Use BEG_BYTE rather than
17304 hardcoding 1.
17305 (detect_coding_system):
17306 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
17307 (string_char_to_byte, string_byte_to_char, insert_from_gap):
17308 * insdel.c (insert_from_gap):
17309 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
17310 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
17311 (string_to_multibyte):
17312 * character.c (chars_in_text, multibyte_chars_in_text):
17313 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
17314
17315 * character.h (FETCH_STRING_CHAR_ADVANCE)
17316 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
17317 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
17318 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
17319
17320 * casefiddle.c (casify_region): Only call after-change and composition
17321 functions on the part of the region that was changed.
17322
17323 * keyboard.c (read_avail_input):
17324 * frame.c (Fdelete_frame): Call Fdelete_terminal.
17325
173262008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17327
17328 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
17329 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
17330
173312008-02-11 Juanma Barranquero <lekktu@gmail.com>
17332
17333 * w32menu.c (push_submenu_start, push_submenu_end)
17334 (push_left_right_boundary, push_menu_pane, push_menu_item):
17335 * keyboard.c (read_key_sequence): Don't pass args with side effects
17336 to AREF, it fails when compiling with -DENABLE_CHECKING.
17337
173382008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17339
17340 * Makefile.in (${lispsource}international/charprop.el):
17341 Delete this target.
17342
17343 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17344 emacs-unicode-2.
17345
173462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17347
17348 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17349
173502008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17351
17352 * frame.c (Qnoelisp): New symbol.
17353 (syms_of_frame): Initialize it.
17354 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17355 harmless Elisp code, from a strong `force' from x_connection_closed.
17356 * frame.h (Qnoelisp): Declare.
17357 * xterm.c (x_connection_closed): Pass `noelisp'.
17358
17359 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17360 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17361 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17362 rather than `int' for the type of `type'.
17363
173642008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17365
17366 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17367
17368 * Makefile.in (GNUC): Remove support for gcc-1.x.
17369
173702008-02-10 Richard Stallman <rms@gnu.org>
17371
17372 * lisp.h (ASET): Use AREF, not ASLOT.
17373
173742008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17375
17376 * lisp.h (ASET): Check bounds.
17377
173782008-02-10 Glenn Morris <rgm@gnu.org>
17379
17380 * buffer.c (mode-name): Doc fix.
17381
173822008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17383
17384 * Makefile.in:
17385 * emacs.c:
17386 * gmalloc.c:
17387 * keyboard.c:
17388 * lisp.h:
17389 * m/ibm370aix.h:
17390 * process.c:
17391 * regex.c:
17392 * s/hpux.h:
17393 * sysdep.c:
17394 * sysselect.h:
17395 * systty.h:
17396 * unexec.c:
17397 * w32term.c:
17398 * xsmfns.c:
17399 * xterm.c: Remove code that deals with obsolete variables.
17400
17401 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17402
17403 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17404 nothing else needs it anymore.
17405
174062008-02-09 Eli Zaretskii <eliz@gnu.org>
17407
17408 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17409 instead of unibyte_char_to_multibyte.
17410
174112008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17412
17413 * s/gnu-linux.h: Remove commented out code.
17414
17415 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17416
17417 * Makefile.in: Update what RMS says about using autoconf.
17418 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17419 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17420 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17421 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17422
174232008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17424
17425 * keymap.c (Fkey_description): Move side effect outside of macro call.
17426
17427 * xfaces.c (Finternal_make_lisp_face):
17428 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17429
17430 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17431 (syms_of_fontset): Use ASET.
17432
17433 * fns.c (concat): Move side effect outside of macro call.
17434 (hash_clear): Use ASET.
17435
174362008-02-08 Richard Stallman <rms@gnu.org>
17437
17438 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17439 If FORCE, and frame has a surrogate minibuffer for another frame,
17440 delete the other frame first.
17441
174422008-02-07 Timo Savola <timo.savola@iki.fi>
17443
17444 * xterm.c (x_detect_focus_change): Handle embed client message.
17445 (handle_one_xevent): Ditto.
17446 (handle_one_xevent): If embedded and we get a button press/release,
17447 request focus.
17448 (xembed_set_info, xembed_send_message): New functions.
17449 (x_make_frame_visible): Call xembed_set_info if embedded.
17450 (x_make_frame_invisible): Call xembed_set_info if embedded.
17451 (x_term_init): Initialize Xatom_XEMBED.
17452 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17453 (x_iconify_frame): Ditto.
17454
17455 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17456 (enum xembed_info, enum xembed_message, enum xembed_focus)
17457 (enum xembed_modifier, enum xembed_accelerator): New.
17458 (xembed_set_info, xembed_send_message): Declare.
17459 (FRAME_X_EMBEDDED_P): New.
17460
17461 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17462 gtk_plug_new.
17463
17464 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17465 window ID of a frame.
17466 (x_window): Reparent frame if embedded.
17467 (Fx_create_frame): Don't set border width if embedded.
17468
17469 * emacs.c (USAGE3): Add --parent-id.
17470 (standard_args): Ditto.
17471
174722008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17473
17474 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17475
174762008-02-07 Jim Meyering <meyering@redhat.com>
17477
17478 Use "do...while (0)", not "if (1)...else" in macro definitions.
17479 The latter provokes a warning from gcc about the empty else, when
17480 followed by ";". Also, without that trailing semicolon, it would
17481 silently swallow up any following statement.
17482 * syntax.h (SETUP_SYNTAX_TABLE)
17483 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17484 * buffer.h (DECODE_POSITION): Likewise.
17485 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17486 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17487 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17488 (FETCH_CHAR_ADVANCE): Likewise.
17489 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17490
174912008-02-07 Jim Meyering <meyering@redhat.com>
17492
17493 * lread.c [lint]: Don't include <sys/inode.h>.
17494
174952008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17496
17497 * xselect.c (x_handle_dnd_message):
17498 * xmenu.c (digest_single_submenu, xmenu_show):
17499 * xdisp.c (with_echo_area_buffer_unwind_data)
17500 (format_mode_line_unwind_data, unwind_format_mode_line)
17501 (display_menu_bar):
17502 * eval.c (Ffetch_bytecode):
17503 * doc.c (store_function_docstring):
17504 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17505 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17506 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17507
175082008-02-07 Kenichi Handa <handa@m17n.org>
17509
17510 * ftxfont.c (ftxfont_open): Don't set
17511 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17512
17513 * ftfont.c (ftfont_open): Fix previous change.
17514
175152008-02-06 Jason Rumney <jasonr@gnu.org>
17516
17517 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17518 Use cached metrics for ASCII characters.
17519 (w32font_open_internal): Don't set font's owning_frame.
17520 Cache metrics for ASCII characters.
17521
17522 * w32font.h (struct w32font_info): Add ascii_metrics.
17523 Remove owning_frame.
17524
175252008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17526
17527 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17528 to negative value.
17529
17530 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17531
17532 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17533
17534 * charset.c (syms_of_charset): Set QCtest and Qeq.
17535
175362008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17537
17538 * process.c (Fstart_process):
17539 * callproc.c (Fcall_process): Handle the case where
17540 Funhandled_file_name_directory returns nil.
17541
17542 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17543 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17544 * font.c (check_gstring): Use them and AREF to access the vector before
17545 we know it's really a gstring.
17546 (Ffont_shape_text): Fix typo.
46e722a9 17547 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17548
17549 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17550 Declare.
17551
17552 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17553
175542008-02-05 Jason Rumney <jasonr@gnu.org>
17555
17556 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17557 Set smallest_font_height and smallest_char_width in display info.
17558
175592008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17560
17561 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17562
175632008-02-05 Miles Bader <miles@gnu.org>
17564
17565 * xfaces.c (get_lface_attributes, merge_named_face)
17566 (lookup_named_face, lookup_derived_face, realize_named_face):
17567 Revert 2008-02-01 change by cyd@stupidchicken.com.
17568
175692008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17570
17571 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17572 fallback fonts.
17573 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17574
175752008-02-04 Jason Rumney <jasonr@gnu.org>
17576
17577 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17578 set full_name.
17579 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17580
175812008-02-03 Jason Rumney <jasonr@gnu.org>
17582
17583 * makefile.w32-in (OBJ1): Include font.o here.
17584 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17585
175862008-02-02 Jason Rumney <jasonr@gnu.org>
17587
17588 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17589
175902008-02-01 Jason Rumney <jasonr@gnu.org>
17591
17592 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17593
17594 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17595
175962008-02-01 Andreas Schwab <schwab@suse.de>
17597
17598 * Makefile.in (shortlisp, lisp): Update for rename of
17599 ../lisp/language/myanmar.el.
17600
176012008-02-01 Chong Yidong <cyd@stupidchicken.com>
17602
17603 * xfaces.c (get_lface_attributes): Delete function.
17604 (merge_named_face, lookup_named_face, lookup_derived_face)
17605 (realize_named_face): Call lface_from_face_name directly, and use
17606 the fact that merge_face_vectors does not alter its FROM argument.
17607
176082008-02-01 Jason Rumney <jasonr@gnu.org>
17609
17610 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17611 input in the default locale. Handle non-Unicode multibyte input.
17612
176132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17614
17615 * fontset.c (reorder_font_vector): Exclude nil elements from the
17616 font group. Don't try multiple fonts.
17617 (fontset_font): Adjust for the above change.
17618 (Finternal_char_font): Return nil if the found font doesn't
17619 contain the character ch.
17620
17621 * Makefile.in (lisp, shortlisp): Add cham.el.
17622
176232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17624
17625 * font.h (FONTP): Make it return 1 also for a font-object.
17626
17627 * .gdbinit (xfontset): New function.
17628
17629 * font.c (font_find_for_lface): Check if the character C is
17630 supported or not only for the first font.
17631
17632 * fontset.c (reorder_font_vector): Fix typo.
17633 (fontset_find_font): Don't add a font-spec specifying a script.
17634 Use 0 (not Qt) for the indication of empty font-group. Change the
17635 format of RFONT-DEF. Return Qt if no font in the font-group
17636 support the character.
17637 (fontset_font): Adjust for the above change. If no font was
17638 found the character, remember that.
17639 (face_for_char): Adjust for the change of RFONT-DEF.
17640 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17641 no font for the target.
17642 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17643
176442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17645
17646 * font.c (font_load_for_face): Handle the case that the font in
17647 face->lface is a string.
17648
176492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17650
17651 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17652
176532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17654
17655 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17656 Fix previous change. If the frame is not on a window system,
17657 signal an error.
17658
176592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17660
17661 * coding.c (decode_coding_object, encode_coding_object): Adjust
17662 marker positions after conversion.
17663
17664 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17665
176662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17667
17668 * font.c (font_find_for_lface): Fix the handling of the return
17669 value of font_has_char.
17670 (Ffont_shape_text): Fix previous change.
17671
17672 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17673 (fontset_ref_and_range): Delete it.
17674 (fontset_find_font): Call char_table_ref_and_range instead of
17675 FONTSET_REF_AND_RANGE.
17676 (make_fontset): Don't setup font groups of Latin here.
17677 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17678 (new_fontset_from_font): Make the specified font the default for
17679 all Latin characters.
17680
176812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17682
17683 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17684 is on a window system before accessing the fontset of the frame.
17685
176862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17687
17688 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17689
17690 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17691 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17692
17693 * font.c (Ffont_shape_text): If the font driver doesn't have a
17694 shaper function, make zero-width glyphs to have at least one-pixel
17695 width. Fix setting of `to' field of glyphs.
17696
176972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17698
17699 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17700 glyphs.
17701
17702 * font.h (struct font_driver): Improve docstring of member `shape'.
17703
177042008-02-01 Kenichi Handa <handa@m17n.org>
17705
17706 * composite.c (syms_of_composite): Fix docstring of
17707 auto-composition-function.
17708
17709 * font.h (LGLYPH_SIZE): New macro.
17710
17711 * font.c (Ffont_fill_gstring): Stop filling when a character not
17712 supported by the font is found.
17713 (Ffont_shape_text): When a shape callback function returns nil,
17714 try at most two more times with larger gstring.
17715 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17716
17717 * xdisp.c (handle_auto_composed_prop): Change the argument to
17718 auto-composition-function.
17719
17720 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17721 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17722 Lispy glyph and store it in the lgstring.
17723
17724 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17725
17726 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17727
177282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17729
17730 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17731
17732 * fontset.c (Vfont_encoding_charset_alist): New variable.
17733 (syms_of_fontset): DEFVAR it.
17734 (reorder_font_vector, fontset_find_font): Optimize for the case of
17735 no need of reordering.
17736 (face_for_char): Map the charset property by
17737 Vfont_encoding_charset_alist.
17738
177392008-02-01 Jason Rumney <jasonr@gnu.org>
17740
17741 * w32font.c (logfonts_match): Don't check adstyle here.
17742 (font_matches_spec): Check here against physical font instead.
17743 (add_font_entity_to_list): Avoid some substitutions.
17744
17745 * font.c (font_parse_fcname): Default weight and slant to normal.
17746 (font_score): Prefer normal fonts if weight or slant unspecified.
17747 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17748 match freetype scores.
17749
177502008-02-01 Jason Rumney <jasonr@gnu.org>
17751
17752 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17753 font, as it may have been deleted.
17754 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17755 most common hyphenless variation.
17756 (logfonts_match): Check generic family.
17757 (font_matches_spec): Don't check generic family here.
17758 (fill_in_logfont): Set generic family based on adstyle.
17759
17760 * w32font.h (w32font_get_cache): Update declaration.
17761
177622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17763
17764 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17765
17766 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17767 If none of the new drivers are available, call font_update_drivers
17768 with the old drivers.
17769
17770 * w32font.c (w32font_get_cache): Adjust the argument type.
17771
17772 * xfont.c (xfont_get_cache): Adjust the argument type.
17773
17774 * font.h (struct font_driver): Change argument type of get_cache.
17775
17776 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17777
17778 * font.c (Ffont_get): Fix arguments to Fassoc.
17779 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17780 (font_clear_cache): New function.
17781 (font_list_entities, font_matching_entity): Use font_get_cache.
17782 (font_update_drivers): Call font_clear_cache when finishing a driver.
17783
17784 * fontset.c (fontset_find_font): Fix previous change.
17785
177862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17787
17788 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17789 dpyinfo->font_table.
17790 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17791 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17792
17793 * font.c (font_at): Handle the case that the arg C is negative.
17794 Handle the unibyte case.
17795 (Ffont_at): Call font_at with the arg C -1.
17796
17797 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17798 the position here, and call font_at with the arg C -1.
17799 Don't check the range of the existing composition at the point.
17800
178012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17802
17803 * fontset.c (fontset_add): New args charset_id and family.
17804 Change caller.
17805 (load_font_get_repertory, fontset_find_font): Assume that
17806 font_spec is always a font-spec object.
17807 (Fset_fontset_font): Always store a font-spec object in a fontset.
17808
17809 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17810 instead of get_property_and_range.
17811
178122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17813
17814 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17815 (xftfont_open): Don't keep locking face.
17816 (xftfont_close): Don't unlock face.
17817 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17818
17819 * fontset.c (fontset_find_font): Don't prefer a font of
17820 supplementary charset.
17821
178222008-02-01 Kenichi Handa <handa@m17n.org>
17823
17824 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17825 script, langsys_tag to langsys, new member script.
17826 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17827 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17828 listing to the script specified in that property. Fix arg to
17829 OTF_check_features.
17830
178312008-02-01 Jason Rumney <jasonr@gnu.org>
17832
17833 * w32font.h: New file.
17834
17835 * w32font.c: Include it.
17836 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17837 (w32font_open): Set owning_frame.
17838 (w32font_text_extents): Use owning_frame.
17839 (struct font_callback_data): Add opentype_only field.
17840 (add_font_entity_to_list): Use it to filter fonts.
17841 Don't check against full name.
17842 (w32font_list_internal): New function.
17843 (w32font_list): Use it.
17844 (w32font_match_internal): New function.
17845 (w32font_match): Use it.
17846 (w32font_open_internal): New function.
17847 (w32font_open): Use it.
17848 (w32font_get_cache, w32font_close, w32font_has_char)
17849 (w32font_encode_char, w32font_text_extents, w32font_draw):
17850 Make non-static.
17851
17852 * makefile.w32-in (w32font.o): Depend on w32font.h.
17853
178542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17855
17856 * charset.c (Fdefine_charset_internal): Record a supplementary
17857 charset at the tail of Vcharset_order_list.
17858
17859 * font.c (Ffont_shape_text): Fix the return value.
17860
17861 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17862
17863 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17864
178652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17866
17867 * ftfont.c (struct OpenTypeSpec): New struct.
17868 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17869 (ftfont_get_open_type_spec): New function.
17870 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17871
17872 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17873
178742008-02-01 Jason Rumney <jasonr@gnu.org>
17875
17876 * w32font.c (add_font_entity_to_list): Compare only the beginning
17877 of full name.
17878
178792008-02-01 Kenichi Handa <handa@m17n.org>
17880
17881 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17882 Never return HANDLED_RECOMPUTE_PROPS.
17883
178842008-02-01 Kenichi Handa <handa@m17n.org>
17885
17886 * font.c (font_gstring_produce): Delete it.
17887
17888 * composite.h (COMPOSITION_METHOD):
17889 Handle COMPOSITION_WITH_GLYPH_STRING.
17890
178912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17892
17893 * xfont.c (Qx): Delete.
17894 (syms_of_xfont): Don't initialize Qx.
17895
17896 * composite.h (enum composition_method):
17897 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17898
178992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17900
17901 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17902 (choose_face_font): Accept new form of font-spec.
17903
17904 * frame.h (font_driver_list): Declare it unconditionally.
17905 (struct frame): Define members font_driver_list and font_data_list
17906 unconditionally.
17907
17908 * fontset.c: Include "font.h" unconditionally.
17909 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17910 (Fset_fontset_font): Accept a font-spec object.
17911
17912 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17913 PIXEL_SIZE part a wild card.
17914
17915 * dispextern.h (struct glyph_string): Define members clip and
17916 num_clips unconditionally.
17917 (struct face): Define members font_info and extra unconditionally.
17918
17919 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17920 ftfont_info only when HAVE_LIBOTF is defined.
17921
179222008-02-01 Andreas Schwab <schwab@suse.de>
17923
17924 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17925 and end.
17926
179272008-02-01 Jason Rumney <jasonr@gnu.org>
17928
17929 * w32font.c (w32font_driver): Add new fields.
17930
179312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17932
17933 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17934 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17935 (LIBES): Add @M17N_FLT_CFLAGS@.
17936
17937 * composite.c (compose_text): Don't treat the new style
17938 composition specially.
17939
17940 * emacs.c (main): Call syms_of_font unconditionally.
17941
17942 * font.h (FONT_ENTITY_NOT_LOADABLE)
17943 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17944 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17945 (struct font_driver): New member shape.
17946 (font_registry_charsets): Extern it.
17947 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17948 (font_otf_capability, font_drive_otf): Delete their externs.
17949
17950 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17951 (font_charset_alist, font_registry_charsets): Move from xfont.c
17952 and rename.
17953 (font_prop_validate_otf): New function.
17954 (font_property_table): Register it for QCotf.
17955 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17956 (font_drive_otf): Delete.
17957 (font_prepare_composition): New arg F. Adjust for the change of
17958 lispy gstring.
17959 (font_find_for_lface): New arg C.
17960 (font_load_for_face): Adjust for the change of font_find_for_lface.
17961 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17962 lispy gstring.
17963 (Ffont_shape_text): New function.
17964 (Fopen_font): If the font size is not given, use 12-pixel.
17965 (Ffont_at): New arg STRING.
17966 (syms_of_font): Initalize font_charset_alist.
17967 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17968 conditionally.
17969
17970 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17971 fonts of the same font-spec. Change the format of RFONT-DEF.
17972 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17973 Adjust for the change of RFONT-DEF.
17974 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17975
17976 * ftfont.h: New file.
17977
17978 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17979 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17980 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17981 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17982 font_otf_capability and font_drive_otf, set ftfont_shape.
17983 (ftfont_list): Adjust for the change of :otf property value.
17984 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17985 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17986 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17987 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17988 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17989 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17990
17991 * w32term.c (x_draw_composite_glyph_string_foreground):
17992 Adjust for the change of lispy gstring.
17993
17994 * xdisp.c (handle_composition_prop): Adjust for the change of
17995 lispy gstring. Call a function for auto-composition with the
17996 third arg it->window.
17997 (fill_composite_glyph_string): Adjust for the change of lispy string.
17998 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17999
18000 * xfaces.c (set_font_frame_param): Adjust for the change of
18001 font_find_for_lface.
18002
18003 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18004 (xfont_registry_charsets): Likewise. Change caller.
18005 (syms_of_xfont): Don't handle x_font_charset_alist.
18006
18007 * xftfont.c: Include "ftfont.h".
18008 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18009 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18010 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18011 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18012 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18013 Set xftfont_driver.shape to xftfont_shape.
18014
18015 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18016 the change of lispy gstring.
18017
180182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18019
18020 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18021
180222008-02-01 Jason Rumney <jasonr@gnu.org>
18023
18024 * w32font.c (w32font_draw): Fill background manually.
18025
180262008-02-01 Jason Rumney <jasonr@gnu.org>
18027
18028 * font.c (Qfontp): Remove unused symbol.
18029 (QCantialias): New symbol.
18030 (syms_of_font): Define it.
18031 (font_property_table): Set a validator for QCantialias.
18032
18033 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18034 Define if not already.
18035 (QCfamily): Share with xfaces.c.
18036 (Qstandard, Qsubpixel, Qnatural): New symbols.
18037 (syms_of_w32font): Define them. Don't define QCfamily here.
18038 (w32_antialias_type, lispy_antialias_type): New functions.
18039 (w32_enumfont_pattern_entity): New arg requested_font.
18040 Set antialias parameter if non-default was requested.
18041 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18042
180432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18044
18045 * lread.c (read1): Undo the previous change.
18046
180472008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18048
18049 * frame.c (Fdelete_frame): Call font_update_drivers only when
18050 USE_FONT_BACKEND is defined.
18051
180522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18053
18054 * font.h (struct font_bitmap): New member bits_per_pixel.
18055 (struct font_driver): New members start_for_frame and end_for_frame.
18056 (struct font_data_list): New struct.
18057 (font_put_frame_data, font_get_frame_data): Extern them.
18058
18059 * frame.h (struct frame): New member font_data_list.
18060
18061 * font.c (font_update_drivers): Call driver->start_for_frame and
18062 driver->end_for_frame at proper timings.
18063 (font_put_frame_data, font_get_frame_data): New functions.
18064 (Ffont_spec): Add usage in the docstring.
18065
18066 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18067 (Fdelete_frame): Call font_update_drivers.
18068
18069 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18070 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18071 (xftfont_get_xft_draw): New function.
18072 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18073 (xftfont_end_for_frame): New function.
18074 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18075
18076 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18077 Change argument. Cache GCs in the per-frame data.
18078 (struct ftxfont_frame_data): New struct.
18079 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18080 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18081 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18082 (ftxfont_end_for_frame): New function.
18083 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18084
18085 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18086
180872008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * xselect.c (Vselection_coding_system)
18090 (Vnext_selection_coding_system): Delete them.
18091 (syms_of_xselect): Don't declare selection-coding-system and
18092 next-selection-coding-system. They are declared in select.el.
18093
180942008-02-01 Jason Rumney <jasonr@gnu.org>
18095
18096 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18097
18098 * w32fns.c: Include imm.h.
18099 (get_composition_string_fn, get_ime_context_fn): New optional
18100 system functions.
18101 (globals_of_w32fns): Load them from imm32.dll.
18102 (ignore_ime_char): New flag.
18103 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18104 WM_IME_ENDCOMPOSITION messages.
18105
18106 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18107 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18108
181092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18110
18111 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18112 (READCHAR_REPORT_MULTIBYTE): New macro.
18113 (readchar): New 2nd arg MULTIBYTE.
18114 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18115 Make symbol's name multibyte according to the multibyteness of the
18116 source.
18117
181182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18119
18120 * xfaces.c (face_for_overlay_string): Call lookup_face with
18121 correct arguments (fix of synching with the trunk).
18122
181232008-02-01 Kenichi Handa <handa@m17n.org>
18124
18125 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18126 (font_prop_validate_non_neg, font_prop_validate_spacing):
18127 Delete argument prop_index.
18128 (font_property_table): Change arguments to validater. Change Callers.
18129 (font_lispy_object): Delete.
18130 (font_at): Use font_find_object instead fo font_lispy_object.
18131
181322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18133
18134 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18135 and file names.
18136
181372008-02-01 Jason Rumney <jasonr@gnu.org>
18138
18139 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18140 (font_matches_spec): Remove debug output.
18141 (add_font_entity_to_list): Avoid using substituted fonts.
18142
181432008-02-01 Jason Rumney <jasonr@gnu.org>
18144
18145 * doc.c (Fsnarf_documentation):
18146 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18147
181482008-02-01 Miles Bader <miles@gnu.org>
18149
18150 * dispextern.h (struct glyph_row): Only define "clip" field if
18151 HAVE_WINDOW_SYSTEM is defined.
18152
181532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18154
18155 Fix up multi-tty merge.
18156
18157 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18158 and indentation.
18159
18160 * xfaces.c (free_realized_face, clear_face_gcs):
18161 Include font_done_for_face in the input_blocked section, just in case.
18162
18163 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18164 (get_char_face_and_encoding): Undo last change and remove the *other*
18165 duplicate definition (i.e. keep the one that's better scoped and that
18166 includes code for the font-backend).
18167
18168 * terminal.c (create_terminal): Default keyboard_coding to
18169 `no-conversion' and terminal_coding to `undecided'.
18170
18171 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18172
18173 * fontset.c (free_realized_fontsets): Check that the table entry does
18174 contain a fontset before trying to compare it to `base'.
18175
18176 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18177 syms_of_charset, and syms_of_coding earlier because init_window_once
18178 now needs Vcoding_system_hash_table to be setup.
18179
18180 * coding.h (default_buffer_file_coding): Remove.
18181
18182 * coding.c (default_buffer_file_coding): Remove.
18183 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18184 than ->symbol, and use the terminal-local coding system.
18185 (syms_of_coding): Don't setup the coding-systems that are not
18186 terminal-local.
18187 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18188
18189 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18190 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18191
18192 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18193 in chartab.c and were re-added here by mistake.
18194 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18195
18196 * doc.c (Fsnarf_documentation):
18197 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18198 src to etc.
18199
18200 * ChangeLog.10: Add mistakenly removed entry.
18201
182022008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
18203
18204 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
18205
182062008-02-01 Miles Bader <miles@gnu.org>
18207
18208 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
18209 Add extra args to FACE_FOR_CHAR.
18210
182112008-02-01 Kenichi Handa <handa@m17n.org>
18212
18213 * keymap.c (where_is_internal_1): If key is a cons, store the copy
18214 in sequence.
18215
18216 * chartab.c (map_sub_char_table, map_char_table): If the range
18217 contains just one character, call the function with that character
18218 even if the depth is not 3.
18219
182202008-02-01 Jason Rumney <jasonr@gnu.org>
18221
18222 * w32font.c (w32font_text_extents): Calculate metrics for the
18223 whole string.
18224
182252008-02-01 Jason Rumney <jasonr@gnu.org>
18226
18227 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
18228
182292008-02-01 Jason Rumney <jasonr@gnu.org>
18230
18231 * w32term.c (x_set_glyph_string_clipping): Use
18232 get_glyph_string_clip_rects.
18233 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18234 Adjust for the change of struct glyph_string.
18235
18236 * w32font.c (w32font_draw): Do clipping here.
18237
182382008-02-01 Kenichi Handa <handa@m17n.org>
18239
18240 * xftfont.c (xftfont_draw): Adjust for the change of struct
18241 glyph_string.
18242
18243 * xterm.c (x_set_glyph_string_clipping): Use
18244 get_glyph_string_clip_rects.
18245 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
18246 Adjust for the change of struct glyph_string.
18247
18248 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
18249 the resulting clip(s}.
18250 (expose_overlaps): Add arg r. Change callers. Set it to
18251 row->clip temporarily.
18252 (expose_window): Redraw rows overlapping the exposed area.
18253
18254 * dispextern.h (struct glyph_row): New member clip.
18255 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
18256 clip_height, new member clip, and num_clips.
18257
182582008-02-01 Kenichi Handa <handa@m17n.org>
18259
18260 * data.c (Fchar_or_string_p): Fix docstring.
18261
182622008-02-01 Kenichi Handa <handa@m17n.org>
18263
18264 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
18265 create a temporary XftDraw object.
18266
182672008-02-01 Kenichi Handa <handa@m17n.org>
18268
18269 * font.c (Ffontp): Fix docstring.
18270
18271 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
18272 strong evidence of ISO-2022.
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
18277 SYNTAX_ENTRY_FOLLOW_PARENT.
18278
182792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18280
18281 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
18282 its type.
18283 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18284 Update to the new type of weak_hash_tables and next_weak.
18285
18286 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
18287 a plain C pointer to Lisp_Hash_Table.
18288
18289 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
18290 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
18291 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
18292 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
18293 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
18294 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
18295 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
18296 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
18297 (GC_EQ): Remove since they've been identical to their non-GC_
18298 alter-egos ever since the markbit was eradicated.
18299
18300 * alloc.c:
18301 * buffer.c:
18302 * buffer.h:
18303 * data.c:
18304 * fileio.c:
18305 * filelock.c:
18306 * fns.c:
18307 * frame.h:
18308 * lisp.h:
18309 * macterm.c:
18310 * print.c:
18311 * process.c:
18312 * w32fns.c:
18313 * w32menu.c:
18314 * w32term.c:
18315 * xfns.c:
18316 * xmenu.c:
18317 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
18318
183192008-02-01 Kenichi Handa <handa@m17n.org>
18320
18321 * chartab.c (map_sub_char_table): Make it work for the top-level
18322 char-table. Fix handling of parent char-table.
18323 (map_char_table): Adjust for the above change.
18324
183252008-02-01 Jason Rumney <jasonr@gnu.org>
18326
18327 * w32font.c (Qgdi): Rename from Qw32.
18328
183292008-02-01 Jason Rumney <jasonr@gnu.org>
18330
18331 * w32bdf.c (get_quoted_string): Make function static.
18332
183332008-02-01 Kenichi Handa <handa@m17n.org>
18334
18335 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
18336 bigger ascent and descent than those of the font, use them as
18337 font's ascent and descent.
18338
183392008-02-01 Kenichi Handa <handa@m17n.org>
18340
18341 * Makefile.in (${lispsource}international/charprop.el): Move this
18342 target within "#ifdef HAVE_UNIDATA" and "#endif".
18343
183442008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18347 (shortlisp): Add ../lisp/language/tai-viet.el.
18348
183492008-02-01 Ulrich Mueller <ulm@gentoo.org>
18350
18351 * Makefile.in (${lispsource}international/charprop.el): Depend on
18352 temacs${EXEEXT}.
18353
183542008-02-01 Jason Rumney <jasonr@gnu.org>
18355
18356 * w32font.c (w32font_close): Delete the GDI font object.
18357
18358 * w32menu.c: Include character.h.
18359
18360 * w32proc.c: Likewise.
18361
18362 * w32select.c: Likewise.
18363
18364 * makefile.w32-in (w32proc.o): Depend on character.h.
18365
183662008-02-01 Jason Rumney <jasonr@gnu.org>
18367
18368 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18369
18370 * w32menu.c (syms_of_w32menu): Likewise.
18371
18372 * w32proc.c (syms_of_ntproc): Likewise.
18373
18374 * w32select.c (syms_of_w32select): Likewise.
18375
18376 * w32term.c (syms_of_w32term): Likewise.
18377
183782008-02-01 Jason Rumney <jasonr@gnu.org>
18379
18380 * w32font.c (w32font_draw): Delete brush after using it.
18381
183822008-02-01 Jason Rumney <jasonr@gnu.org>
18383
18384 * w32font.c (w32font_open): Don't set font_idx.
18385 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18386 to font settings.
18387 (w32font_draw): Fill background explicitly.
18388
183892008-02-01 Jason Rumney <jasonr@gnu.org>
18390
18391 * w32term.c (w32_initialize): Don't call w32font_initialize.
18392
18393 * w32font.c (w32font_info): Remove subranges.
18394 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18395 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18396 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18397 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18398 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18399 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18400 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18401 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18402 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18403 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18404 New symbols.
18405 (font_callback_data): New struct.
18406 (w32font_list, w32font_match): Use it.
18407 (w32font_open): Don't populate subranges.
18408 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18409 (w32font_encode_char): Always return unicode code-point as-is.
18410 (w32font_text_extents): Supply a transformation matrix to
18411 GetGlyphOutline. Never look up by glyph index. Avoid looping
18412 twice. Use unicode version of GetTexExtentPoint32 instead of
18413 glyph index version.
18414 (set_fonts_frame): Remove.
18415 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18416 set frame parameter. Use backward compatible fake foundries.
18417 Save generic family in extra slot under QCfamily. Make width slot
18418 constant. Save QCspacing value. Save list of scripts instead of
18419 binary subranges.
18420 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18421 (add_font_entity_to_list): Use font_callback_data struct. Filter
18422 unwanted fonts.
18423 (add_one_font_entity_to_list): Use font_callback_data struct.
18424 (w32_registry): Default to iso10646_1.
18425 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18426 string font registries. Don't fill in font name if it is a generic
18427 family name, fill family instead. Use spacing, family and script
18428 extra info to fill pitch, family and charset fields.
18429 (list_all_matching_fonts): Use font_callback_data struct.
18430 (unicode_range_for_char): Remove.
18431 (font_supported_scripts): New function.
18432 (w32font_initialize): Remove.
18433 (syms_of_w32font): Update which symbols are defined.
18434
184352008-02-01 Jason Rumney <jasonr@gnu.org>
18436
18437 * font.c (font_pixel_size): Reverse assq_no_quit args.
18438
18439 * w32term.h (FONT_WIDTH): Report max width, not average.
18440 (FONT_MAX_WIDTH): Remove.
18441 (FONT_AVG_WIDTH): New macro.
18442
18443 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18444 redefinition of FONT_WIDTH.
18445
18446 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18447 (w32_cache_char_metrics): Use FONT_WIDTH.
18448
18449 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18450
184512008-02-01 Jason Rumney <jasonr@gnu.org>
18452
18453 * w32font.c (w32font_open): Make lfHeight negative.
18454
18455 * w32fns.c (x_default_font_parameter): Use new style font name.
18456 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18457
184582008-02-01 Jason Rumney <jasonr@gnu.org>
18459
18460 * w32font.c (QCsubranges): New symbol.
18461 (w32font_open, w32font_has_char): Get subranges from subproperty
18462 of extra.
18463 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18464 (syms_of_w32font): Define :subranges symbol.
18465
18466 * font.c (font_put_extra): Expose externally.
18467
18468 * font.h (font_put_extra): Move declaration from font.c.
18469
18470 * font.c (Ffont_get): Use font driver to determine otf capability.
18471 (adjust_anchor): Check if driver defines anchor_point before using.
18472
18473 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18474 (w32font_draw): Use options.
18475 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18476 Fix detection of truetype fonts.
18477 (registry_to_w32_charset): Handle charsets other than iso8859-1
18478 expressed as lisp symbols.
18479 (w32_registry): Express charset as lisp symbol.
18480 (fill_in_logfont): Reverse pixel and point height logic.
18481 Don't set width here. Set quality to default.
18482
18483 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18484 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18485
18486 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18487 Remove redundant loop and allocation.
18488
18489 * makefile.w32-in (font.o, w32font.o): New objects.
18490 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18491 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18492
18493 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18494 STORE_XCHARB a valid l-value.
18495
18496 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18497 calculations for non-Truetype fonts.
18498 (x_draw_glyph_string): Sync with xterm.c.
18499 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18500 Remove redundant code.
18501 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18502
18503 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18504 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18505
18506 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18507 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18508
18509 * w32font.c: New file for w32 font backend.
18510
185112008-02-01 Kenichi Handa <handa@m17n.org>
18512
18513 * term.c: Don't include "buffer.h" twice.
18514
185152008-02-01 Kenichi Handa <handa@m17n.org>
18516
18517 * character.c (Funibyte_string): New function.
18518 (syms_of_character): Defsubr it.
18519
185202008-02-01 Jason Rumney <jasonr@gnu.org>
18521
18522 * w32term.c [USE_FONT_BACKEND]:
18523 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18524 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18525 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18526 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18527 (x_free_frame_resources): Sync with xterm.c.
18528
185292008-02-01 Andreas Schwab <schwab@suse.de>
18530
18531 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18532 char-table size.
18533
185342008-02-01 Kenichi Handa <handa@m17n.org>
18535
18536 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18537
185382008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18541 font_otf_gpos, add font_drive_otf.
18542
18543 * fontset.c (fontset_find_font): Pay attention to font size
18544 specified for a font.
18545 (reorder_font_vector): Check contents of font_def.
18546
18547 * font.c (struct otf_list): Delete it.
18548 (otf_list): Make it a lisp variable.
18549 (otf_open): Use lispy otf_list.
18550 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18551 (check_otf_features): New function.
18552 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18553 New functions.
18554 (font_drive_otf): New function merging font_otf_gsub and
18555 font_otf_gpos.
18556 (font_open_for_lface): New arg spec. Change argument order.
18557 (font_load_for_face): Adjust for the change of font_open_for_lface.
18558 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18559 Ffont_otf_gpos.
18560 (syms_of_font): Staticpro otf_list. Delete defsubr of
18561 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18562
18563 * xfaces.c (set_font_frame_param): Adjust for the change of
18564 font_open_for_lface.
18565
18566 * font.h (font_open_for_lface): Adjust prototype.
18567 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18568 member otf_drive.
18569 (font_otf_gsub, font_otf_gpos): Delete externs.
18570 (font_drive_otf): Extern it.
18571
185722008-02-01 Kenichi Handa <handa@m17n.org>
18573
18574 * font.c (font_at): If the window W is not on a window system,
18575 return Qnil.
18576
18577 * coding.c (produce_chars, encode_coding): Don't call
18578 insert_from_gap if no characters to produce.
18579
185802008-02-01 Kenichi Handa <handa@m17n.org>
18581
18582 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18583 Fclear_face_cache.
18584
18585 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18586
185872008-02-01 Miles Bader <miles@gnu.org>
18588
18589 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18590 Parse "--disable-font-backend" option.
18591 (standard_args): Add "--disable-font-backend" option.
18592
185932008-02-01 Kenichi Handa <handa@m17n.org>
18594
18595 * fontset.c (fontset_find_font): New function.
18596 (fontset_font): Use fontset_find_font.
18597 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18598 Register the specified font for all Latin characters.
18599 (new_fontset_from_font): Register the specified font for all Latin
18600 characters.
18601 (dump_fontset): For a realized fontset, include the base fontset
18602 name in the returned vector.
18603
186042008-02-01 Kenichi Handa <handa@m17n.org>
18605
18606 * character.h (CHAR_STRING): Cast C to unsigned on calling
18607 char_string.
18608
18609 * character.c (char_string): Type of arg C changed to unsigned.
18610 Signal an error if C is an invalid character code.
18611
18612 * editfns.c (general_insert_function, Fchar_to_string):
18613 Use CHARACTERP, not INTEGERP.
18614
186152008-02-01 Kenichi Handa <handa@m17n.org>
18616
18617 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18618 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18619
18620 * regex.c (analyse_first): Fix for multibyte characters in "case
18621 charset:" and "case categoryspec:".
18622
186232008-02-01 Andreas Schwab <schwab@suse.de>
18624
18625 * Makefile.in (LIBES): Move standard libraries to the end.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18630 nonzero, don't shrink the buffer nextb.
18631
18632 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18633
18634 * coding.c (coding_alloc_by_making_gap): New arg offset.
18635 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18636 offset.
18637 (decode_coding_iso_2022): Update coding->safe_charsets.
18638 (decode_coding_gap): Temporarily set
18639 current_buffer->text->inhibit_shrinking to 1.
18640
186412008-02-01 Kenichi Handa <handa@m17n.org>
18642
18643 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18644 indexing into elements of s->cmp and s->char2b.
18645
186462008-02-01 Juanma Barranquero <lekktu@gmail.com>
18647
18648 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18649
186502008-02-01 Kenichi Handa <handa@m17n.org>
18651
18652 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18653 target_multibyte instead of multibyte.
18654 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18655 (bcmp_translate): Change the argument name from multibyte to
18656 target_multibyte.
18657
186582008-02-01 Kenichi Handa <handa@m17n.org>
18659
18660 These changes are to compile a regexp into a pattern that can be
18661 used both for multibyte and unibyte targets.
18662
18663 * Makefile.in (search.o): Depend on charset.h.
18664
18665 * character.c (multibyte_char_to_unibyte_safe): New function.
18666
18667 * search.c: Include "charset.h".
18668 (compile_pattern_1): Delete argument multibyte. Don't set
18669 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18670 (compile_pattern): Don't compare cp->buf.target_multibyte.
18671 Compare cp->buf.charset_unibyte.
18672 (compile_pattern): Set cp->buf.target_multibyte.
18673
18674 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18675
18676 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18677
18678 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18679 multibyte. Change callers.
18680 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18681 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18682 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18683 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18684 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18685 (regex_compile): Make the compiled pattern usable both for
18686 multibyte and unibyte targets.
18687 (analyse_first): Make the fastmap usable both for multibyte and
18688 unibyte targets.
18689 (TRANSLATE_VIA_MULTIBYTE): Delete.
18690 (re_match_2_internal): Pay attention to the case that the
18691 multibyteness of bufp and target may be different.
18692
186932008-02-01 Kenichi Handa <handa@m17n.org>
18694
18695 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18696 empty box occupy at least one column width.
18697
186982008-02-01 Miles Bader <miles@gnu.org>
18699
18700 * Makefile.in: Remove redundant HAVE_XFT clause.
18701
187022008-02-01 Kenichi Handa <handa@m17n.org>
18703
18704 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18705
187062008-02-01 Kenichi Handa <handa@m17n.org>
18707
18708 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18709 being nil.
18710
187112008-02-01 Kenichi Handa <handa@m17n.org>
18712
18713 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18718
187192008-02-01 Kenichi Handa <handa@m17n.org>
18720
18721 * search.c (simple_search): Fix previous change.
18722
187232008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 * xftfont.c (ftfont_font_format): Extern declaration.
18726
18727 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18728
18729 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18730 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18731
18732 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18733 (ftfont_font_format): Fix previous change.
18734
18735 * font.h (Ffont_xlfd_name): EXFUN it.
18736
18737 * font.c (font_parse_xlfd): Fix the array size of `f'.
18738 (register_font_driver): Use EQ to compare driver->type.
18739
18740 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18741 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18742 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18743
187442008-02-01 Kenichi Handa <handa@m17n.org>
18745
18746 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18747 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18748
187492008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * xfont.c (xfont_open): Set font->format.
18752
18753 * xftfont.c (xftfont_open): Set font->format.
18754
18755 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18756 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18757 (ftfont_open): Set font->format.
18758 (ftfont_font_format): New function.
18759
18760 * font.h (struct font): New member format.
18761
18762 * font.c (Qopentype): New variable.
18763 (syms_of_font): Defsym it.
18764 (Fquery_font): Change the format of the last element of the return
18765 value.
18766
187672008-02-01 Kenichi Handa <handa@m17n.org>
18768
18769 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18770 last resort.
18771
187722008-02-01 Kenichi Handa <handa@m17n.org>
18773
18774 * coding.c (detect_coding_charset): Fix detection of multi-byte
18775 charset.
18776
187772008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18778
18779 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18780
187812008-02-01 Kenichi Handa <handa@m17n.org>
18782
18783 * xdisp.c (get_next_display_element): Set it->face_id for the
18784 first component of a composition.
18785 (x_produce_glyphs): Check if the font is changed or not for composition.
18786
187872008-02-01 Kenichi Handa <handa@m17n.org>
18788
18789 * fontset.c (Qlatin): New variable.
18790 (syms_of_fontset): Define it as a lisp symbol.
18791 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18792
187932008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * font.c (font_unparse_fcname): Pay attention to the case that
18796 some of font property is a null string.
18797
187982008-02-01 Kenichi Handa <handa@m17n.org>
18799
18800 * term.c: Include "composite.h".
18801 (encode_terminal_code): Output all components of composition.
18802 Check the size of encode_terminal_src.
18803 (produce_glyphs): For composition, call produce_composite_glyph.
18804 (append_composite_glyph, produce_composite_glyph): New functions.
18805
18806 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18807 is not found, get font_info from the current ascii face.
18808
188092008-02-01 Kenichi Handa <handa@m17n.org>
18810
18811 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18812 buffer-file-name to Qnil before calling insert_from_buffer.
18813
18814 * font.c (font_unparse_fcname): Pay attention to the case that
18815 foundry is a null string.
18816
188172008-02-01 Kenichi Handa <handa@m17n.org>
18818
18819 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18820
18821 * font.c (Qunicode_sip): New variable.
18822 (syms_of_font): Declare it as a Lisp symbol.
18823
18824 * font.h (Qunicode_sip): Extern it.
18825
188262008-02-01 Kenichi Handa <handa@m17n.org>
18827
18828 * composite.c (get_composition_id): Pay attention to TAB component.
18829
18830 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18831 TAB. Adjust for the change of s->char2b which always points to
18832 the first element of allocated memory.
18833
18834 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18835
18836 * xdisp.c (handle_composition_prop): Set it->c to the first
18837 non-TAB component.
18838 (fill_composite_glyph_string): Change argument.
18839 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18840 (x_produce_glyphs): Fix handling of left/right padding.
18841
188422008-02-01 Kenichi Handa <handa@m17n.org>
18843
18844 * coding.c (detect_coding_system): Fix for handling off
18845 inhibit_iso_escape_detection. Fix for the case that no coding
18846 system is defined for a specific coding category.
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * font.c (font_matching_entity): Delete unused local var.
18851
18852 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18853 opening a font.
18854
18855 * fileio.c (Finsert_file_contents): On recovering a file, assume
18856 Unix-like eol.
18857 (choose_write_coding_system): On auto-saving a file, force
18858 Unix-like eol.
18859
18860 * coding.c (setup_coding_system): Fix setting of
18861 coding->common_flags based on eol_type.
18862 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18863 inherit from it.
18864
188652008-02-01 Kenichi Handa <handa@m17n.org>
18866
18867 * alloc.c (NSTATICS): Increas to 0x600.
18868
188692008-02-01 Kenichi Handa <handa@m17n.org>
18870
18871 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18872 (ftfont_list): Don't check :name property.
18873 (ftfont_match): New function.
18874 (ftfont_pattern_entity): If the pattern doesn't contain
18875 FC_SPACING, don't assume FC_MONO.
18876
18877 * font.h (struct font_driver): New member `match'.
18878 (font_update_drivers): Adjust prototype.
18879
18880 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18881 property of FONT.
18882 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18883 them unconditionally.
18884 (font_matching_entity): New function.
18885 (font_open_by_name): Try font_matching_entity if exact match is
18886 not found.
18887 (font_update_drivers): Delete the arg FONT. Return a list of
18888 actually used backends. Don't free faces, font caches here.
18889 Don't store data in frame parameters. Don't call x_set_font.
18890 (Ffont_spec): Store :name property as is.
18891 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18892 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18893 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18894 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18895 Call font->driver->otf_gsub instead of font_otf_gsub.
18896
18897 * frame.c (x_set_font_backend): Do more works that were done in
18898 font_update_drivers before.
18899
18900 * xfont.c (xfont_match): New function.
18901 (xfont_driver): Set xfont_driver.match to xfont_match.
18902 (xfont_draw): Set font in GC if necessary.
18903
18904 * ftxfont.c (ftxfont_match): New function.
18905 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18906
18907 * xftfont.c (xftfont_match): New function.
18908 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18909
189102008-02-01 Kenichi Handa <handa@m17n.org>
18911
18912 * font.h (struct font): New member scalable.
18913 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18914 (font_otf_gsub): Adjust prototype.
18915
18916 * font.c (font_otf_capability): Fix handling of the default langsys.
18917 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18918 Check the contents of SPEC.
18919 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18920 (check_gstring): New function.
18921 (REPLACEMENT_CHARACTER): New macro.
18922 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18923 glyph codes of GSTRING.
18924 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18925 (font_prepare_composition): Set cmp->glyph_len.
18926 (font_open_entity): Set font->scalable.
18927 (Ffont_get): Handle :otf property.
18928 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18929 functions.
18930 (Fquery_font): Use font->font.full_name.
18931 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18932 Sfont_otf_alternates.
18933
18934 * ftfont.c (ftfont_open): Set font->font.full_name and
18935 font->font.name properly. Fix calculation of font->font.height
18936 and font->min_width.
18937
18938 * ftxfont.c (ftxfont_create_gcs): New function.
18939 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18940 (ftxfont_draw_backgrond): Fix filling region.
18941 (ftxfont_default_fid): New function.
18942 (ftxfont_open): Set xfont->fid to the return value of
18943 ftxfont_default_fid.
18944 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18945 (ftxfont_done_face): Free only GCs that are created by
18946 ftxfont_create_gcs.
18947 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18948
18949 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18950 Clip to src->width, etc (not src->clip_XXX).
18951
18952 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18953 FontBackend frame parameter.
18954
189552008-02-01 Kenichi Handa <handa@m17n.org>
18956
18957 * font.h (struct font_driver_list): New member `on'.
18958 (Fclear_font_cache): EXFUN it.
18959 (font_update_drivers): Extern it.
18960
18961 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18962 (font_list_entities): Check driver_list->on.
18963 (register_font_driver): Initalize `on' member to 0.
18964 (font_update_drivers): New function.
18965 (Fclear_font_cache): Check driver_list->on.
18966
18967 * frame.h (Qfont_backend): Extern it.
18968 (x_set_font_backend): Extern it.
18969
18970 * frame.c (Qfont_backend): New variable.
18971 (frame_parms): New element for font-backend.
18972 (x_set_font_backend): New function.
18973
18974 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18975 FontBackend frame parameter.
18976 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18977 x_set_font_backend.
18978
18979 * xfont.c (xfont_list): Don't try listing by :name property if the
18980 name is not for XLFD.
18981
189822008-02-01 Kenichi Handa <handa@m17n.org>
18983
18984 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18985 (LGLYPH_SET_TO): New macros.
18986 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18987 element of G is vector or not.
18988 (font_at): Extern it.
18989
18990 * font.c: Include window.h.
18991 (font_lispy_object): New function.
18992 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18993 end of valid glyph.
18994 (font_close_object): Fix getting (struct font *).
18995 (font_at): New function.
18996 (Ffont_get): If FONT is a font-object, get entity from it.
18997 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18998 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18999 range check.
19000 (Ffont_at): New function.
19001 (syms_of_font): Defsubr Sfont_at.
19002
19003 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19004 before the entry for Qcomposition.
19005 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19006 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19007 the font in gstring.
19008 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19009 LGLYPH_FORM (g) to detect the end of valid glyph.
19010 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19011 we are composing with gstring.
19012
19013 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19014 Check if adjustment is vector or not.
19015
19016 * Makefile.in (font.o): Make it depends on window.h.
19017
190182008-02-01 Kenichi Handa <handa@m17n.org>
19019
19020 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19021 adjustment is vector or not.
19022
190232008-02-01 Miles Bader <miles@gnu.org>
19024
19025 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19026
190272008-02-01 Kenichi Handa <handa@m17n.org>
19028
19029 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19030 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19031 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19032
19033 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19034 (DEVICE_DELTA): Fix typo.
19035 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19036 LGLYPH format.
19037
19038 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19039 the change of LGLYPH format.
19040
190412008-02-01 Kenichi Handa <handa@m17n.org>
19042
19043 * ftfont.c (ftfont_list): Fix typo.
19044 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19045
190462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19047
19048 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19049
19050 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19051 xftface_info is non-NULL.
19052
190532008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19054
19055 * ftfont.c (ftfont_list): Move misplaced #endif.
19056
190572008-02-01 Kenichi Handa <handa@m17n.org>
19058
19059 * ftfont.c (ftfont_list): Pay attention to the case that
19060 FC_CAPABILITY is not defined.
19061
190622008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * xftfont.c (xftfont_open): Set charset related members to -1.
19065
19066 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19067 QCname.
19068 (ftfont_open): Set charset related members to -1.
19069
19070 * fontset.c (Votf_script_alist): New variable.
19071 (syms_of_fontset): Initialize it.
19072 (fontset_font): Delete unused variable.
19073
19074 * fontset.h (Votf_script_alist): Extern it.
19075
19076 * font.c (font_find_for_lface): Optimize code.
19077
19078 * font.h (font_close_object, font_merge_old_spec): Extern them.
19079
190802008-02-01 Kenichi Handa <handa@m17n.org>
19081
19082 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19083 (syms_of_font): Initialize them.
19084 (font_pixel_size): Allow float value in dpi.
19085 (font_prop_validate_type): Delete.
19086 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19087 Change caller.
19088 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19089 (font_prop_validate_extra): Delete.
19090 (font_prop_validate_spacing): New function.
19091 (font_property_table): Add elements for all known properties.
19092 (get_font_prop_index): Rename from check_font_prop_name. New
19093 argument FROM. Change caller.
19094 (font_prop_validate): Validate all known properties.
19095 (font_put_extra): Delete argument force. Change caller.
19096 (font_expand_wildcards): Make it static. Fix the way of shrinking
19097 the possible range.
19098 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19099 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19100 Change caller.
19101 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19102 (font_parse_fcname): Delete argument merge. Fix parsing of point
19103 size. Don't validate properties values here. Change caller.
19104 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19105 (font_open_by_name): Delete unused variable.
19106 (Ffont_spec): Likewise. Validate property values.
19107 (Ffont_match_p): New function.
19108
19109 * font.h (QCscalable): Extern it.
19110 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19111
19112 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19113
19114 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19115 (xfont_list_pattern): New function.
19116 (xfont_list): Use xfont_list_pattern.
19117
191182008-02-01 Kenichi Handa <handa@m17n.org>
19119
19120 * font.h (Flist_fonts): EXFUN it.
19121
191222008-02-01 Jason Rumney <jasonr@gnu.org>
19123
19124 * w32term.c (w32_initialize): Add back smoothing_type and
19125 smoothing_enabled definitions.
19126
191272008-02-01 Kenichi Handa <handa@m17n.org>
19128
19129 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19130 s->face->font on determining underline position.
19131
191322008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19135 (font_has_char): Accept font-object too.
19136 (font_find_for_lface): Try at first with a size specified in face.
19137
191382008-02-01 Kenichi Handa <handa@m17n.org>
19139
19140 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19141 font_open_by_name.
19142
191432008-02-01 Kenichi Handa <handa@m17n.org>
19144
19145 * font.h (QCspacing, QCdpi): Extern them.
19146 (enum font_spacing): New enum.
19147 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19148
19149 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19150 (QCspacing, QCdpi): New variables.
19151 (syms_of_font): Initialize them.
19152 (font_pixel_size): New function.
19153 (font_put_extra): New function.
19154 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19155 in FONT_EXTRA.
19156 (font_parse_fcname): Handle enumerated values (e.g. bold).
19157 Fix handling font size. Add QCname property that contains only
19158 unknown properties.
19159 (font_score): Change argument. Change caller. Pay attention to
19160 FONT_PIXEL_SIZE_QUANTUM.
19161 (font_sort_entites, font_list_entities, font_find_for_lface)
19162 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19163 (Ffont_spec): Add QCname property that contains only unknown properties.
19164
19165 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19166 include weight in listing pattern, instead check weight of each
19167 listed font. Don't include scalable in pattern. Pay attention to
19168 FONT_PIXEL_SIZE_QUANTUM.
19169
191702008-02-01 Kenichi Handa <handa@m17n.org>
19171
19172 * font.c (font_parse_fcname): Fix parsing of point-size.
19173 (font_unparse_fcname): Produce symbolic names for style properties.
19174 (font_list_entities): Handle float size correctly.
19175 (font_open_by_name): Prefer `normal' property values if the name
19176 doesn't specify them.
19177
19178 * fontset.c (Finternal_char_font): Use font_get_name, not
19179 Ffont_xlfd_name.
19180
19181 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19182 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19183 pattern. Don't force scalable.
19184
19185 * xftfont.c (xftfont_open): For generating a name, start from
19186 96-byte buffer.
19187
191882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19189
19190 * frame.h (x_new_fontset2): Fix prototype.
19191
191922008-02-01 Kenichi Handa <handa@m17n.org>
19193
19194 * font.h (struct font_driver): Delete member parse_name.
19195 (font_match_p, font_get_spec, font_parse_fcname)
19196 (font_unparse_fcname): Extern them.
19197 (font_get_name): Adjust prototype.
19198
19199 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19200 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19201 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19202 unnecessary checks for weight, slant, and swidth.
19203 (font_parse_fcname): New function.
19204 (font_unparse_fcname): New function.
19205 (font_parse_name): New function.
19206 (font_match_p): New function.
19207 (font_get_name): Change return value to Lisp string.
19208 (font_get_spec): New function.
19209 (Qunspecified, Qignore_defface): Don't extern them.
19210 (font_find_for_lface): Assume that LFACE is fully specified.
19211 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
19212 object, use it for FACE.
19213 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
19214 driver->parse_name.
19215 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
19216
19217 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
19218 prototype.
19219
19220 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
19221 argument F. Don't call Fnew_fontset. Instead, directly call
19222 make_fontset.
19223
19224 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
19225
19226 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
19227 of x_new_fontset2.
19228
19229 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
19230 (Qsans__serif): New variables.
19231 (ftfont_generic_family_list): New variable.
19232 (syms_of_ftfont): Initialize the above variables.
19233 (ftfont_pattern_entity): Delete argument NAME.
19234 (ftfont_list_generic_family): New function.
19235 (ftfont_parse_name): Delete this function.
19236 (ftfont_list): Try generic family only when FcFontList found no font.
19237 (ftfont_list_family): Fix args to FcObjectSetBuild.
19238
19239 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
19240 object in attrs[LFACE_FONT_INDEX].
19241 (set_lface_from_font_name): Cancel all changes for font-backend.
19242 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
19243 function.
19244 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
19245 font object in QCfont attribute.
19246 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
19247 (realize_default_face) [USE_FONT_BACKEND]: Call
19248 set_lface_from_font_and_fontset.
19249
19250 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
19251 "fixed", and signal error here if no suitable font was found.
19252
19253 * xfont.c (xfont_parse_name): Delete this function.
19254
19255 * xftfont.c (xftfont_open): Change coding style of error
19256 handling. Generate fontconfig's fontname pattern.
19257
19258 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
19259 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
19260
19261 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
19262 Both args FONTSET and FONT_OBJECT must be existing ones.
19263
192642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19265
19266 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
19267
192682008-02-01 Kenichi Handa <handa@m17n.org>
19269
19270 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
19271
19272 * font.h (struct font): Fix typo.
19273
19274 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
19275 XLFD_XXX_INDEX.
19276 (enum xlfd_field_mask): New enum.
19277 (intern_font_field): Changed argument. Change caller. If digits
19278 are followed by non-digits, return a symbol.
19279 (font_expand_wildcards): New function.
19280 (font_parse_xlfd): Fix wildcard handling.
19281 (Ffont_spec): If :name is specified, reflect the info in the other
19282 properties.
19283
19284 * ftfont.c (ftfont_pattern_entity): Fix typo.
19285 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
19286 locale.
19287
192882008-02-01 Kenichi Handa <handa@m17n.org>
19289
19290 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
19291
19292 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
19293 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
19294 registry doesn't specify encoding part.
19295 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
19296 (font_open_by_name): At first try parsing the name.
19297 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
19298 as Lisp symbols.
19299
19300 * fontset.c (reorder_font_vector): Pay attention to the case that
19301 the 3rd element of font_def is nil.
19302 (fontset_font): For the default fontset, append one more fontset
19303 elements for a script-based font specification. Don't add script
19304 attribute on finding a font.
19305 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
19306 font name.
19307 (fontset_ascii_font): If a font can't be opened, return nil.
19308
19309 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
19310 (ftfont_pattern_entity): New function.
19311 (ftfont_get_cache): Assume that freetype_font_cache is already
19312 initialized.
19313 (ftfont_list): Handle the case that a file is specified in font
19314 name. Use ftfont_pattern_entity to generate entities.
19315 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
19316 (syms_of_ftfont): Initialize freetype_font_cache.
19317
19318 * xftfont.c (xftfont_open): Make the font name fontconfig's
19319 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
19320 (xftfont_close): Free font->font.name if not NULL.
19321
19322 * xfont.c (xfont_list): If script is specified for a font, return
19323 null_vector.
19324 (xfont_list_family): Declare argument type.
19325
19326 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
19327 name, set LFACE_FONT (lface) to nil.
19328
19329 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
19330 return Qnil.
19331
193322008-02-01 Kenichi Handa <handa@m17n.org>
19333
19334 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
19335 (standard_args): Add "-enable-font-backend".
19336
193372008-02-01 Kenichi Handa <handa@m17n.org>
19338
19339 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19340 (struct xftdraw_list, xftdraw_list): Delete them.
19341 (register_xftdraw, check_xftdraw): Delete them.
19342 (xftfont_prepare_face): Don't call register_xftdraw.
19343 (xftfont_done_face): Don't call check_xftdraw.
19344 (xftfont_draw): Get background color only when with_background is
19345 nonzero.
19346
19347 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19348
193492008-02-01 Kenichi Handa <handa@m17n.org>
19350
19351 These changes are for the new font handling codes.
19352
19353 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19354 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19355 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19356 (FONTSRC, FONTOBJ): New variables.
19357 (obj): Add $(FONTOBJ).
19358 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19359 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19360 @LIBOTF_LIBS@.
19361 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19362 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19363
19364 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19365
19366 * character.h (Vscript_representative_chars): Extern it.
19367
19368 * character.c (Vscript_representative_chars): New variable.
19369 (syms_of_character): Declare it as a Lisp variable.
19370
19371 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19372 enable_font_backend is nonzero, accept the composition method
19373 COMPOSITION_WITH_GLYPH_STRING.
19374
19375 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19376 enumeration COMPOSITION_WITH_GLYPH_STRING.
19377
19378 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19379 members clip_x, clip_y, clip_width, and clip_height.
19380 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19381
19382 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19383 --enable-font-backend. Call syms_of_font.
19384
19385 * fns.c (assoc_no_quit): New function.
19386
19387 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19388 (face_for_font, new_fontset_from_font)
19389 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19390
19391 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19392 (fontset_font, fontset_ascii, face_for_char)
19393 (make_fontset_for_ascii_face, Ffont_info)
19394 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19395 is nonzero, use font-backend mechanism.
19396 (find_font_encoding): Make it non-static.
19397 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19398 New functions.
19399
19400 * frame.h (struct frame): New members resx and resy.
19401 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19402 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19403
19404 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19405 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19406
19407 * lisp.h (assoc_no_quit): Extern it.
19408
19409 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19410 Through out the file, use FONT_INFO_FROM_FACE instead of
19411 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19412 rif->per_char_metric.
19413 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19414 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19415 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19416 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19417 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19418 nonzero, use font-backend mechanism.
19419 (get_per_char_metric): New function.
19420
19421 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19422 (set_lface_from_font_name)
19423 (set_font_frame_param, free_realized_face)
19424 (prepare_face_for_display, clear_face_gcs)
19425 (Finternal_set_font_selection_order, realize_x_face)
19426 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19427 font-backend mechanism.
19428 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19429 (load_face_font) [USE_FONT_BACKEND]: Abort.
19430 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19431 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19432
19433 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19434 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19435 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19436 nonzero, register all available font drivers. Call
19437 x_default_font_parameter for deciding a font.
19438 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19439
19440 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19441 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19442 (x_set_glyph_string_clipping_exactly)
19443 (x_compute_glyph_string_overhangs)
19444 (x_draw_glyph_string_foreground)
19445 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19446 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19447 enable_font_backend is nonzero, use font-backend mechanism.
19448 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19449
194502008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19453 system_eol_type.
19454 (syms_of_coding): Initialize system_eol_type.
19455
19456 * process.c (Fset_process_coding_system): Inherit system's eol
19457 format if necessary.
19458
194592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19460
19461 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19462
194632008-02-01 Kenichi Handa <handa@m17n.org>
19464
19465 * coding.c (decode_eol): Pay attention to buffer relocation in
19466 del_range_2.
19467 (decode_coding): Call decode_eol before restoring undo_list.
19468
194692008-02-01 Kenichi Handa <handa@m17n.org>
19470
19471 * charset.c (Fdefine_charset_internal): Fix setting of
19472 emacs_mule_bytes.
19473
194742008-02-01 Kenichi Handa <handa@m17n.org>
19475
19476 * keyboard.c (read_char): Check if C is a character or not before
19477 looking up Vkeyboard_translate_table.
19478
194792008-02-01 Kenichi Handa <handa@m17n.org>
19480
19481 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19482 condition to terminate the loop.
19483
194842008-02-01 Kenichi Handa <handa@m17n.org>
19485
19486 * coding.c (produce_composition): Compare charbuf[i] instead of
19487 args[i] against 0.
19488 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19493 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19494 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19495 detect_coding.
19496 (emacs_mule_char): Handle old style (Emacs 20) component character
19497 of a composition.
19498 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19499 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19500 composition rule.
19501 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * coding.c (encode_coding_ccl): Allocate destination dynamically
19506 when necessary.
19507
195082008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19511 the loop. When quitted, show a proper error message.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19516 src->clip_head and src->clip_tail temporarily instead of src->hl.
19517
19518 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19519 character sequence.
19520 (Fccl_execute_on_string): Use ASET, not XSET.
19521
195222008-02-01 Kenichi Handa <handa@m17n.org>
19523
19524 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19525
195262008-02-01 Kenichi Handa <handa@m17n.org>
19527
19528 * coding.c (decode_coding): Fix the condition of terminating the
19529 decoding loop.
19530
195312008-02-01 Kenichi Handa <handa@m17n.org>
19532
19533 * data.c (Faset): On setting a character bigger than 255 in a
19534 unibyte string, signal an error instead of make the string multibyte.
19535
195362008-02-01 Kenichi Handa <handa@m17n.org>
19537
19538 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19539 made by a mapping table.
19540
195412008-02-01 Kenichi Handa <handa@m17n.org>
19542
19543 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19544 not.
19545 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19546 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19547
19548 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19549 s->face is NULL or not.
19550
195512008-02-01 Kenichi Handa <handa@m17n.org>
19552
19553 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19554 (x_draw_glyph_string): Fix drawing of right_overhang and
19555 left_overhang around/on cursor.
19556
19557 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19558
195592008-02-01 Kenichi Handa <handa@m17n.org>
19560
19561 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19562
195632008-02-01 Kenichi Handa <handa@m17n.org>
19564
19565 * coding.c (Fdefine_coding_system_internal)
19566 (Fdefine_coding_system_alias): Avoid a duplicated element in
19567 Vcoding_system_alist.
19568
195692008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19572
19573 * coding.c (Qcoding_system_define_form): New variable.
19574 (syms_of_coding): Intern and staticpro it.
19575 (Fcoding_system_p): Check Qcoding_system_define_form.
19576 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19577
19578 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19579 Fcoding_system_p.
19580 (CHECK_CODING_SYSTEM): If ID is not available, call
19581 Fcheck_coding_system.
19582 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19583 Try also Fcheck_coding_system.
19584
195852008-02-01 Kenichi Handa <handa@m17n.org>
19586
19587 * coding.c (code_conversion_restore): GCPRO arg.
19588
195892008-02-01 Kenichi Handa <handa@m17n.org>
19590
19591 * character.c (lisp_string_width): Check multibyteness of STRING.
19592
195932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19594
19595 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19596 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19597 (decode_mac_font_name): Use decode_coding_c_string instead of
19598 decode_coding.
19599 (x_load_font): Initialize fontp->fontset to -1. Set
19600 fontp->encoding_type.
19601
196022008-02-01 Kenichi Handa <handa@m17n.org>
19603
19604 * search.c (search_buffer): Give up BM search on case-fold-search
19605 if one of a target character has a case-equivalence of different
19606 byte length even if that target charcter is an ASCII.
19607 (simple_search): Fix calculation of byte length of matched text.
19608 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19609
196102008-02-01 Kenichi Handa <handa@m17n.org>
19611
19612 * coding.c (decode_coding): Fix handling of invalid bytes.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19617 Unicode characters.
19618
196192008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 * coding.c (encode_coding_object): If a pre-write-conversion
19622 function makes a new buffer, kill it.
19623
196242008-02-01 Kenichi Handa <handa@m17n.org>
19625
19626 * coding.c (QCascii_compatible_p): New variable.
19627 (syms_of_coding): Initialize it.
19628 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19629 calling string_char.
19630 (record_conversion_result): Add `default:' case.
19631 (coding_charset_list): Delete unused variable `coding_type'.
19632 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19633 property in the plist of the coding system.
19634 (Fcoding_system_put): Check QCascii_compatible_p.
19635
196362008-02-01 Miles Bader <miles@gnu.org>
19637
19638 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19639 removed calculation of frame `f', as it's now used.
19640
196412008-02-01 Kenichi Handa <handa@m17n.org>
19642
19643 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19644 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19645 (UNIDATA): New variable.
19646 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19647 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19648 $(RUN_TEMACS) unconditionally.
19649
196502008-02-01 Kenichi Handa <handa@m17n.org>
19651
19652 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19653 (admindir): New variable.
19654 ($(lispsource)international/charprop.el): New target.
19655
196562008-02-01 Miles Bader <miles@gnu.org>
19657
19658 * character.c (chars-in-region): Remove obsolete function.
19659 (syms_of_character): Remove its initialization.
19660
196612008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19662
19663 * w32select.c (validate_coding_system)
19664 (setup_windows_coding_system): New functions.
19665 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19666 setup_windows_coding_system.
19667 (setup_config, Fw32_get_clipboard_data): Use
19668 validate_coding_system.
19669 (Fx_selection_exists): Move call to setup_config to a place
19670 where signals are allowed.
19671
19672 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19673 (Fcheck_coding_system): Add declarations.
19674
196752008-02-01 Kenichi Handa <handa@m17n.org>
19676
19677 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19678
196792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19680
19681 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19682 string as the second argument for x_new_fontset.
19683
196842008-02-01 Kenichi Handa <handa@m17n.org>
19685
19686 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19687 (encode_coding_object): Use safe_call instead of call2.
19688
196892008-02-01 Kenichi Handa <handa@m17n.org>
19690
19691 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19692
19693 * Makefile.in (lisp): Include charprop.el.
19694
196952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19696
19697 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19698 Not sure if it's unnecessary.
19699
197002008-02-01 Steven Tamm <steventamm@mac.com>
19701
19702 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19703 some possibly unnecessary fontset checking code that crashed
19704 when creating a new frame.
19705
197062008-02-01 Kenichi Handa <handa@m17n.org>
19707
19708 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19709 lookup_face.
19710
19711 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19712
19713 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19714
197152008-02-01 Kenichi Handa <handa@m17n.org>
19716
19717 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19718 (coding_charset_list): New function.
19719
19720 * coding.h (coding_charset_list): Extern it.
19721
197222008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19725 concatenation of family and registry.
19726
197272008-02-01 Kenichi Handa <handa@m17n.org>
19728
19729 * character.h (BYTE8_STRING): Fix typo.
19730
19731 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19732 string to multibyte (sync to HEAD).
19733
19734 * casefiddle.c (casify_region): Handle changes in byte-length
19735 using replace_range_2 (sync to HEAD).
19736
197372008-02-01 Andreas Schwab <schwab@suse.de>
19738
19739 * chartab.c (map_char_table): GCPRO table and arg.
19740
197412008-02-01 Kenichi Handa <handa@m17n.org>
19742
19743 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19744 already at limit.
19745
197462008-02-01 Kenichi Handa <handa@m17n.org>
19747
19748 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19749 instead of fast_c_string_match_ignore_case.
19750 (find_font_encoding): Change argument to Lisp_Object. Use
19751 fast_string_match_ignore_case instead of
19752 fast_c_string_match_ignore_case. Change caller.
19753
197542008-02-01 Kenichi Handa <handa@m17n.org>
19755
19756 * xdisp.c (get_next_display_element): In unibyte case, decide to
19757 display in octal form by checking a character by
19758 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19759
19760 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19761
19762 * character.c (unibyte_has_multibyte_table): New variable.
19763
19764 * character.h (unibyte_has_multibyte_table): Extern it.
19765 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19766
197672008-02-01 Kenichi Handa <handa@m17n.org>
19768
19769 * coding.c (encode_coding_iso_2022): Fix handling of charset
19770 annotation.
19771
197722008-02-01 Kenichi Handa <handa@m17n.org>
19773
19774 * coding.c (setup_coding_system): If coding_system is nil, use
19775 Qundecided.
19776 (Fterminal_coding_system): Return nil if terminal coding system is
19777 `undecided'.
19778 (syms_of_coding): Define coding-system `undecided' here. Setup
19779 terminal_coding as `undecided'.
19780
197812008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * xdisp.c (message_dolog, set_message_1): Call
19784 unibyte_char_to_multibyte with arg type int.
19785
19786 * lread.c (read1): Fix reading of a char-table.
19787
19788 * print.c (print_object): Include sub char-table in circularities
19789 detection.
19790
197912008-02-01 Kenichi Handa <handa@m17n.org>
19792
19793 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19794 Append the found sequences in car of ARGS instead of prepending.
19795
197962008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * fileio.c (report_file_error): Make a unibyte string from
19799 strerror (errorno).
19800 (Fsubstitute_in_file_name): Fix the arg to
19801 unibyte_char_to_multibyte. It is evaluated twice.
19802
198032008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19806
198072008-02-01 Kenichi Handa <handa@m17n.org>
19808
19809 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19810 BOM is not found.
19811 (detect_coding, detect_coding_system): Optimization for ISO-2022
19812 when no 8-bit data is found.
19813
198142008-02-01 Jason Rumney <jasonr@gnu.org>
19815
19816 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19817
198182008-02-01 Kenichi Handa <handa@m17n.org>
19819
19820 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19821 CHARS.
19822
198232008-02-01 Steven Tamm <steventamm@mac.com>
19824
19825 * macterm.c (mac_encode_char): Add charset argument and update
19826 to use encoding_type.
19827 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19828 switch to pure fontset.
19829 (decode_mac_font_name): Temporarily remove decoding.
19830 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19831 (x_load_font): Temporarily remove encoding.
19832
198332008-02-01 Kenichi Handa <handa@m17n.org>
19834
19835 * xfaces.c (Fface_font): If frame is not on a window system,
19836 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19837 refer to face->font.
19838 (split_font_name_into_vector, build_font_name_from_vector)
19839 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19840 when HAVE_WINDOW_SYSTEM is defined.
19841
198422008-02-01 Kenichi Handa <handa@m17n.org>
19843
19844 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19845 (x_produce_glyphs): Fix setting of members of cmp in case
19846 cmp->glyph_len is zero.
19847
19848 * fontset.c (Fset_fontset_font): Fix docstring.
19849 (Ffontset_info): Make it backward compatible. New arg ALL.
19850
198512008-02-01 Kim F. Storm <storm@cua.dk>
19852
19853 * process.c (read_process_output): Grow decoding_buf when needed;
19854 this could cause a crash in allocate_string and compact_small_strings.
19855
198562008-02-01 Kenichi Handa <handa@m17n.org>
19857
19858 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19859
198602008-02-01 Kenichi Handa <handa@m17n.org>
19861
19862 * coding.c (setup_coding_system): Set coding->common_flags
19863 correctly for raw-text.
19864 (consume_chars): On encoding unibyte text by raw-text, don't check
19865 multibyte form.
19866 (encode_coding): On encoding by raw-text, never use translation tables.
19867
19868 * fileio.c (e_write): Short cut for the case of no encoding.
19869
198702008-02-01 Kenichi Handa <handa@m17n.org>
19871
19872 * coding.c (detect_coding, detect_coding_system): Delete unused
19873 variables.
19874
198752008-02-01 Kenichi Handa <handa@m17n.org>
19876
19877 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19878 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19879
198802008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * coding.c (Ffind_coding_systems_region_internal): Include
19883 raw-text and no-conversion in the result.
19884
198852008-02-01 Kenichi Handa <handa@m17n.org>
19886
19887 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19888 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19889 FONT_DEF.
19890 (font_def_arg, add_arg, from_arg, to_arg): New args.
19891 (set_fontset_font): Change argument.
19892 (Fset_fontset_font): Fix for the case that TARGET is a script
19893 name and charset name.
19894 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19895
198962008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * fontset.c (fontset_font): Rename from fontset_face. Change return
19899 value.
19900 (face_suitable_for_char_p, face_for_char): Adjust for the change
19901 of fontset_font.
19902 (make_fontset_for_ascii_face): Fix setting of the fontset element
19903 for ASCII.
19904 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19905 to get a font name.
19906 (Ffontset_info): Adjust for the change of fontset_font.
19907
19908 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19909
19910 * character.h (LEADING_CODE_LATIN_1_MIN)
19911 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19912
199132008-02-01 Kenichi Handa <handa@m17n.org>
19914
19915 * editfns.c (check_translation): New function.
19916 (Ftranslate_region_internal): Handle M:N mapping.
19917
199182008-02-01 Kenichi Handa <handa@m17n.org>
19919
19920 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19921
199222008-02-01 Kenichi Handa <handa@m17n.org>
19923
19924 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19925 goto invalid_code.
19926 (decode_coding_iso_2022): Fix handling of invalid designation.
19927
19928 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19929 after calling code_conversion_save.
19930
199312008-02-01 Kenichi Handa <handa@m17n.org>
19932
19933 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19934
19935 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19936
19937 * fontset.c: Include "intervals.h".
19938 (fontset_face): Fix comparing of Lisp_Objects.
19939 (free_face_fontset, new_fontset_from_font_name): Fix
19940 Lisp_Object/int mixup.
19941
19942 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19943
19944 * coding.c: Add many prototypes for static functions.
19945 (get_translation_table): Allow max_lookup to be NULL.
19946 (decode_coding, Ffind_coding_systems_region_internal)
19947 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19948 get_translation_table with max_lookup NULL.
19949
199502008-02-01 Kenichi Handa <handa@m17n.org>
19951
19952 * coding.c (get_translation_table): Declare it as Lisp_Object.
19953 (LOOKUP_TRANSLATION_TABLE): New macro.
19954 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19955 instead of CHAR_TABLE_REF.
19956
199572008-02-01 Kenichi Handa <handa@m17n.org>
19958
19959 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19960 annotation data format.
19961 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19962 Change arguments FROM and TO to single argument NCHARS. Change caller.
19963 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19964 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19965 (decode_coding_ccl, decode_coding_charset): Pay attention to
19966 coding->charbuf_used.
19967 (get_translation): New function.
19968 (produce_chars): New arguments translation_table and last_block.
19969 Translate characters here. Return number of carryover chars.
19970 Change caller.
19971 (produce_composition): New argument pos. Change caller.
19972 Adjust for the change of annotation data format.
19973 (produce_charset, produce_annotation): Likewise.
19974 (decode_coding, encode_coding): Don't call translate_chars.
19975 (consume_chars): New arg translation_table. Change caller.
19976 (translate_chars): Delete.
19977 (syms_of_coding): Make translation-table's number of extra slots 2.
19978
199792008-02-01 Kenichi Handa <handa@m17n.org>
19980
19981 * search.c (simple_search): Fix setting this_pos_byte in backward
19982 search.
19983
19984 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19985 byte sequence.
19986 (detect_coding_ccl): Fix setting of the variable valids.
19987
199882008-02-01 Kenichi Handa <handa@m17n.org>
19989
19990 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19991
19992 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19993
19994 * editfns.c (Ftranslate_region_internal): Rename from
19995 Ftranslate_region. Accept a char-table in TABLE.
19996 (syms_of_editfns): Defsubr Stranslate_region_internal.
19997
19998 * xfaces.c (set_lface_from_font_name): If a font is specified for
19999 a frame, generate a fontset from the font.
20000 (build_scalable_font_name): If the scalable font is requested for
20001 a specific size, don't change that size.
20002 (try_font_list): Try a scalable font also in the case that a
20003 pattern string is specified.
20004
200052008-02-01 Kenichi Handa <handa@m17n.org>
20006
20007 * xfaces.c (Fface_font): New optional arg CHARACTER.
20008
200092008-02-01 Kenichi Handa <handa@m17n.org>
20010
20011 * charset.h (CHARSET_OFFSET): New macro.
20012
200132008-02-01 Kenichi Handa <handa@m17n.org>
20014
20015 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20016
20017 * fontset.c (fontset_face): Handle the case that repertory is a
20018 char-table.
20019 (find_font_encoding): Return nil for unknown encoding.
20020 (Fset_fontset_font): Ignore a font of unknown encoding.
20021
200222008-02-01 Kenichi Handa <handa@m17n.org>
20023
20024 * keymap.c (describe_vector): Handle default value of a char table.
20025
20026 * fontset.c (fontset_face): Handle fallback fonts correctly.
20027 (Ffontset_info): Return infomation about fallback fonts.
20028
200292008-02-01 Kenichi Handa <handa@m17n.org>
20030
20031 * fontset.c (FONTSET_DEFAULT): New macro.
20032 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20033 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20034 the case that it is nil.
20035 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20036 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20037
20038 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20039 subset or superset.
20040
200412008-02-01 Kenichi Handa <handa@m17n.org>
20042
20043 * emacs.c (main): Call init_charset after syms_of_XXX.
20044
20045 * charset.c (Vcharset_map_directory): Delete.
20046 (Vcharset_map_path): New variable.
20047 (load_charset_map_from_file): Use Vcharset_map_path instead.
20048 (init_charset): Initialize Vcharset_map_path.
20049 (syms_of_charset): Delete declaration of "charset-map-directory",
20050 add declaration of "charset-map-path".
20051
200522008-02-01 Kenichi Handa <handa@m17n.org>
20053
20054 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20055 ASCII only string.
20056
20057 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20058
20059 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20060 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20061
200622008-02-01 Kenichi Handa <handa@m17n.org>
20063
20064 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20065
20066 * coding.c (QCmnemonic, QCdefalut_char)
20067 (QCdecode_translation_table, QCencode_translation_table)
20068 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20069 (get_translation_table): Return a list of translation tables if
20070 necessary.
20071 (decode_coding): Call get_translation_table with ENCODEP 0.
20072 (char_encodable_p): If translation_table is non-nil, always call
20073 translate_char.
20074 (Fdefine_coding_system_internal): Accept list of translation
20075 tables as :encode-translation-table and :decode-translation-table.
20076 (Fcoding_system_put): New function.
20077 (syms_of_coding): Declare new symbols. Defsubr
20078 Scoding_system_put.
20079 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20080 typically JISX0212.
20081
20082 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20083 when the charset is superset type.
20084
20085 * character.c (translate_char): Accept list of translation tables.
20086
200872008-02-01 Kenichi Handa <handa@m17n.org>
20088
20089 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20090 (CODING_ATTR_TRANS_TBL): New macro.
20091
20092 * coding.c (get_translation_table): New function.
20093 (translate_chars): Fix the bug of skipping annotation data.
20094 (decode_coding, encode_coding): Utilize get_translation_table.
20095 (char_encodable_p, Funencodable_char_position): Translate char if
20096 necessary.
20097 (Ffind_coding_systems_region_internal)
20098 (Fcheck_coding_systems_region): Setup translation table for encode
20099 in a coding system attribute vector in advance.
20100 (Fdefine_coding_system_internal): Allow a symbol as translation
20101 table. For shift-jis type coding system, allow 4th charset.
20102
201032008-02-01 Kenichi Handa <handa@m17n.org>
20104
20105 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20106
20107 * xdisp.c (get_next_display_element): Pass -1 as POS to
20108 FACE_FOR_CHAR if displaying a C-string.
20109
201102008-02-01 Kenichi Handa <handa@m17n.org>
20111
20112 * composite.c (get_composition_id): Handle xoff and yoff in a
20113 composition rule.
20114
20115 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20116 (struct composition): New member lbearing and rbearing.
20117
20118 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20119 (x_get_glyph_overhangs): Handle a composition glyph.
20120 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20121
20122 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20123 composition glyph.
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * print.c: Include charset.h.
20128 (Vprint_charset_text_property): New variable.
20129 (Qdefault): Extern it.
20130 (PRINT_STRING_NON_CHARSET_FOUND)
20131 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20132 (print_check_string_result): New variable.
20133 (print_check_string_charset_prop): New function.
20134 (print_prune_charset_plist): New variable.
20135 (print_prune_string_charset): New function.
20136 (print_object): Call print_prune_string_charset if
20137 Vprint_charset_text_property is not t.
20138 (print_interval): Print nothing if interval->plist is nil.
20139 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20140 variable. Init and staticpro print_prune_charset_plist.
20141
201422008-02-01 Kenichi Handa <handa@m17n.org>
20143
20144 * fontset.c (new_fontset_from_font_name): Use the specified font
20145 for all characters in the new fontset.
20146
20147 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20148 OBJECT args.
20149
20150 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20151 OBJECT args for composition too.
20152
20153 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20154 OBJECT args.
20155
201562008-02-01 Kenichi Handa <handa@m17n.org>
20157
20158 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20159
20160 * fontset.c (reorder_font_vector): Adjust for the change of
20161 FONT_DEF format.
20162 (fontset_face): New arg id. Change caller.
20163 (face_for_char): New args pos and object.
20164 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20165 (fs_query_fontset): Check NAME by Fassoc too.
20166 (Fset_fontset_font): Allow non-XLFD font name.
20167 (Ffontset_info): Adjust for the change of FONT_DEF format.
20168
20169 * fontset.h (face_for_char): Adjust prototype.
20170
20171 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20172 (append_space, extend_face_to_end_of_line)
20173 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20174 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20175
20176 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20177 POS and OBJECT args.
20178
20179 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20180 POS and OBJECT args.
20181
201822008-02-01 Jason Rumney <jasonr@gnu.org>
20183
20184 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20185 of GlobalAlloc'ed memory.
20186
201872008-02-01 Kenichi Handa <handa@m17n.org>
20188
20189 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20190
20191 * charset.h (charset_table_used): Delete extern.
20192
20193 * charset.c (charset_table_used): Make it static.
20194 (map_charset_chars): Fix args to c_function with.
20195
20196 * chartab.c (map_sub_char_table_for_charset): Fix args to
20197 c_function with.
20198
20199 * coding.h (enum coding_result_code): Delete
20200 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20201
20202 * coding.c (Qinsufficient_source, Qinconsistent_eol)
20203 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
20204 (Vlast_code_conversion_error): New variables.
20205 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
20206 (ONE_MORE_BYTE): Record error if any instead of signaling an
20207 error. If non-ASCII multibyte char is found, return the negative
20208 value of the code. All callers changed to check it.
20209 (ONE_MORE_BYTE_NO_CHECK): Likewise.
20210 (record_conversion_result): New function. Change all codes setting
20211 coding->result to call this function.
20212 (detect_coding_utf_8, decode_coding_utf_8)
20213 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
20214 Don't use the local variable incomplete.
20215 (emacs_mule_char): Change the second arg to `const'.
20216 (decode_coding): Fix of flushing out unprocessed data.
20217 (make_conversion_work_buffer): Fix making of a work buffer.
20218 (decode_coding_object): Return coding->dst_object.
20219
20220 * fontset.c (set_fontset_font): Fix args.
20221
20222 * lisp.h (CHARACTERBITS): Define as 22.
20223
20224 * process.c (send_process): Be sure to set coding->src_multibyte.
20225
20226 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
20227
202282008-02-01 Kenichi Handa <handa@m17n.org>
20229
20230 * xdisp.c (handle_auto_composed_prop): Give limit to
20231 Fnext_single_char_property_change.
20232
202332008-02-01 Kenichi Handa <handa@m17n.org>
20234
20235 * composite.c (syms_of_composite): Don't make the composition hash
20236 table weak.
20237
20238 * fontset.c (Fset_fontset_font): Fix docstring.
20239
20240 * lisp.h (detect_coding_system): Adjust prototype.
20241
20242 * fileio.c (kill_workbuf_unwind): Delete this function.
20243 (Finsert_file_contents): Adjust the call of detect_coding_system.
20244 Get conversion_buffer by code_conversion_save. Use the macro
20245 CODING_MAY_REQUIRE_DECODING. After decoding, update
20246 coding_system.
20247
20248 * coding.h (make_conversion_work_buffer): Delete extern.
20249 (code_conversion_save): Extern it.
20250
20251 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
20252 (CODING_GET_INFO): Delete argument eol_type. Change callers.
20253 (decode_coding_utf_8): Don't do eol converion.
20254 (detect_coding_utf_16): Check coding->src_chars, not
20255 coding->src_bytes. Add heuristics for those that have no signature.
20256 (decode_coding_emacs_mule, decode_coding_iso_2022)
20257 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20258 Don't do eol converion.
20259 (adjust_coding_eol_type): Return a new coding system.
20260 (detect_coding): Don't detect eol. Fix for utf-16 detection.
20261 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
20262 each change.
20263 (decode_coding): Pay attention to undo_list. Do eol conversion for
20264 all types of coding-systems (if necessary).
20265 (Vcode_conversion_work_buf_list): Delete it.
20266 (Vcode_conversion_reused_workbuf): Rename from
20267 Vcode_conversion_reused_work_buf.
20268 (Vcode_conversion_workbuf_name): New variable.
20269 (reused_workbuf_in_use): New variable.
20270 (make_conversion_work_buffer): Delete the arg DEPTH.
20271 (code_conversion_restore): Change argument to cons.
20272 (code_conversion_save): Delete the argument BUFFER. Change callers.
20273 (detect_coding_system): New argument src_chars. Change callers.
20274 Fix for utf-16 detection.
20275 (init_coding_once): Don't use ISO_carriage_return.
20276 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
20277 reused_workbuf_in_use.
20278
202792008-02-01 Kenichi Handa <handa@m17n.org>
20280
20281 * keymap.c (store_in_keymap): Pay attention to the case that idx
20282 is a cons specifying a character range.
20283
202842008-02-01 Kenichi Handa <handa@m17n.org>
20285
20286 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
20287 HANDLED_RECOMPUTE_PROPS.
20288
20289 * coding.c (Fdefine_coding_system_internal): Fix checking of
20290 ascii compatibility.
20291
202922008-02-01 Kenichi Handa <handa@m17n.org>
20293
20294 * charset.c (find_charsets_in_text): Delete unused locale variable.
20295 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
20296
20297 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
20298 Resync charset_list to Vemacs_mule_charset_list.
20299
20300 * keymap.c (store_in_keymap): Pay attention to the case that idx
20301 is a cons specifying a character range.
20302
203032008-02-01 Kenichi Handa <handa@m17n.org>
20304
20305 * composite.c (update_compositions): Bind inhibit-read-only, etc
20306 to t before calling remove-list-of-text-properties.
20307
20308 * print.c (print_object): Always print ASCII chars as is.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
20313
20314 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
20315 is a char table.
20316
203172008-02-01 Kenichi Handa <handa@m17n.org>
20318
20319 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
20320
203212008-02-01 Kenichi Handa <handa@m17n.org>
20322
20323 * xfaces.c (set_lface_from_font_name): Fix for the case that
20324 FONTNAME is not fontset name.
20325
203262008-02-01 Kenichi Handa <handa@m17n.org>
20327
20328 * fns.c (base64_encode_1): Fix previous change.
20329
203302008-02-01 Kenichi Handa <handa@m17n.org>
20331
20332 * fontset.c (set_fontset_font): New function.
20333 (Fset_fontset_font): If a font is specified for a charset, use
20334 map_charset_chars to store the font spec in a fontset.
20335
203362008-02-01 Kenichi Handa <handa@m17n.org>
20337
20338 * fontset.c (fontset_face): Create a fallback fontset on demand.
20339 (make_fontset): Don't create a fallback fontset here.
20340 (free_face_fontset): Free a fallback fontset (if any) too.
20341 (n_auto_fontsets): Delete this variable.
20342 (auto_fontset_alist): New variable.
20343 (new_fontset_from_font_name): Check auto_fontset_alist.
20344 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20345 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20346 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20347 Defsubr Sfontset_list_all.
20348
203492008-02-01 Kenichi Handa <handa@m17n.org>
20350
20351 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20352
203532008-02-01 Kenichi Handa <handa@m17n.org>
20354
20355 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20356
203572008-02-01 Kenichi Handa <handa@m17n.org>
20358
20359 * editfns.c (Fgoto_char): Fix docstring.
20360
203612008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * insdel.c (insert_from_gap): Adjust intervals correctly.
20364
203652008-02-01 Jason Rumney <jasonr@gnu.org>
20366
20367 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20368 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20369 (w32_initialize): Try to load it.
20370 (x_get_font_repertory): Use it if available.
20371 (w32_encode_char): Add shortcut for unicode output.
20372
20373 * w32fns.c (w32_load_system_font): Default charset to -1.
20374 (x_to_w32_charset): Match all fonts for unicode.
20375 (w32_to_x_charset): New parameter matching. Don't return partial
20376 or wildcard charsets.
20377 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20378 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20379 (w32_to_x_font): Match charset to real charset.
20380 (enum_font_cb2): Always list unicode versions.
20381
20382 * makefile.w32-in (temacs): Increase EMHEAP.
20383
203842008-02-01 Jason Rumney <jasonr@gnu.org>
20385
20386 * w32term.c (w32_encode_char): New charset parameter.
20387 font_info.encoding becomes encoding_type.
20388 (x_get_font_repertory): New function. Warning: stub only!
20389 (x_new_font): Return quickly if font already set.
20390 (x_new_fontset): fontsetname parameter is Lisp_Object.
20391 Use new fs_query_fontset. Try new_fontset_from_font_name.
20392 Use fontset_name for return value.
20393
20394 * w32term.h: Declare x_get_font_repertory.
20395
20396 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20397 place of find_charset_in_text. Use encode_coding_object in place
20398 of encode_coding.
20399 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20400 decode_coding.
20401
20402 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20403 of x_new_fontset.
20404 (w32_load_system_font): Initialize charset as unicode.
20405 font_info.encoding becomes encoding_type.
20406 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20407 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20408 (syms_of_w32fns): Set get_font_repertory_func.
20409
20410 * w32console.c: Include character.h. Use terminal_encode_buffer
20411 from term.c.
20412 (write_glyphs): Use new version of encode_terminal_code. Use
20413 encode_coding_object in place of encode_coding.
20414
20415 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20416 encoding becomes encoding_type.
20417
20418 * term.c (terminal_encode_buffer): Make externally visible.
20419
20420 * makefile.w32-in: Add character.h dependancies.
20421 (character.o, chartab.o): New targets.
20422
204232008-02-01 Kenichi Handa <handa@m17n.org>
20424
20425 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20426 CODING_ID_EOL_TYPE.
20427
204282008-02-01 Andreas Schwab <schwab@suse.de>
20429
20430 * coding.c (produce_chars): Revert last change.
20431
204322008-02-01 Kenichi Handa <handa@m17n.org>
20433
20434 * charset.h (charset_unicode): Extern it.
20435
20436 * charset.c (string_xstring_p): Check by (C >= 0x100).
20437 (find_charsets_in_text): Change format of the arc CHARSETS. New
20438 arg MULTIBYTE.
20439 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20440 change of find_charsets_in_text.
20441 (Fsplit_char): Fix doc. Never return unknown.
20442
20443 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20444
20445 * coding.c (Fdefine_coding_system_alias): Update
20446 Vcoding_system_list.
20447
20448 * fontset.c (load_font_get_repertory): Pay attention to the case
20449 that ENCODING of a font is specified by a char-table.
20450
20451 * xterm.c (x_get_font_repertory): Handle the case that the
20452 encoding of font is other than Unicode.
20453
204542008-02-01 Kenichi Handa <handa@m17n.org>
20455
20456 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20457 if a character is encodable by the terminal coding system. If
20458 not, produces proper number of `?'s. Update
20459 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20460 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20461
204622008-02-01 Kenichi Handa <handa@m17n.org>
20463
20464 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20465 variables.
20466 (encode_terminal_code): Change argument. Encode multiple
20467 characters at once. Store the result of encoding in
20468 terminal_encode_buffer.
20469 (write_glyphs, insert_glyphs): Adjust for the change of
20470 encode_terminal_code.
20471 (term_init): Initialize terminal_encode_buffer and
20472 terminal_encode_buf_size.
20473
20474 * coding.c (consume_chars): If coding->src_object is nil, don't
20475 check annotation.
20476
204772008-02-01 Kenichi Handa <handa@m17n.org>
20478
20479 * character.c (char_string): Use ASCII_CHAR_P instead of
20480 SINGLE_BYTE_CHAR_P.
20481
204822008-02-01 Kenichi Handa <handa@m17n.org>
20483
20484 * xdisp.c (handle_auto_composed_prop): Check if the last
20485 characters of auto-composed region is newly composed with the
20486 following characters.
20487 (handle_composition_prop): Fix checking of point being inside
20488 composition.
20489
204902008-02-01 Kenichi Handa <handa@m17n.org>
20491
20492 * fns.c (concat): Don't change multibyteness of the result by
20493 concatenating an 8-bit character.
20494
20495 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20496 multibyteness of the result when newelt is an 8-bit character.
20497
204982008-02-01 Dave Love <fx@gnu.org>
20499
20500 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20501 EMACS_INT.
20502
20503 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20504
20505 * xfaces.c (face_numeric_value): Declare dim size_t.
20506 (Finternal_lisp_face_equal_p): Remove unused f.
20507
20508 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20509 (MATRIX_ROW): Remove unused vars.
20510 (draw_glyphs, x_insert_glyphs, fast_find_position)
20511 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20512 byte/char counts.
20513
20514 * regex.c (regex_compile): Remove unused var.
20515
20516 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20517
20518 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20519 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20520
20521 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20522
20523 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20524
20525 * fileio.c (Fwrite_region): Remove unused var.
20526
20527 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20528 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20529
20530 * composite.c (Fremove_list_of_text_properties): Declare.
20531
20532 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20533 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20534 (coding_inherit_eol_type): Remove unused attrs.
20535 (detect_coding): Cast arg of detect_eol.
20536
20537 * charset.c (syms_of_charset): Remove unused var p.
20538 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20539 byte/char counts.
20540
20541 * casetab.c (set_case_table): Remove unused var.
20542
20543 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20544 unused vars.
20545
205462008-02-01 Dave Love <fx@gnu.org>
20547
20548 * xterm.c (x_bitmap_mask): Declare.
20549
205502008-02-01 Dave Love <fx@gnu.org>
20551
20552 * xterm.c (x_term_init): Fix type error.
20553
20554 * lisp.h: Add Funibyte_char_to_multibyte.
20555
20556 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20557 (Fset_coding_system_priority): Doc fix.
20558
20559 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20560
20561 * indent.c (check_composition): Make start and end EMACS_INT.
20562
20563 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20564
20565 * xdisp.c (handle_composition_prop, check_point_in_composition):
20566 Make buffer positions EMACS_INT.
20567
20568 * composite.c (find_composition, run_composition_function)
20569 (update_compositions, Ffind_composition_internal): Make buffer
20570 positions EMACS_INT.
20571
20572 * composite.h (find_composition, update_compositions): Make
20573 position args EMACS_INT.
20574
20575 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20576
20577 * intervals.c (get_property_and_range):
20578 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20579
20580 * unexalpha.c: Don't include varargs.h.
20581
205822008-02-01 Dave Love <fx@gnu.org>
20583
20584 * coding.h (ENCODE_UTF_8): New.
20585
20586 * Makefile.in (gtkutil.o): Depend on coding.h.
20587
20588 * coding.c (Fset_coding_system_priority): Doc fix.
20589
205902008-02-01 Kenichi Handa <handa@m17n.org>
20591
20592 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20593 the case of auto saving.
20594
205952008-02-01 Andreas Schwab <schwab@suse.de>
20596
20597 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20598 `range' from GC.
20599
206002008-02-01 Kenichi Handa <handa@m17n.org>
20601
20602 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20603
206042008-02-01 Kenichi Handa <handa@m17n.org>
20605
20606 * fileio.c (choose_write_coding_system): Return a decided coding system.
20607 (Fwrite_region): Set Vlast_coding_system_used to the return value
20608 of choose_write_coding_system.
20609
206102008-02-01 Kenichi Handa <handa@m17n.org>
20611
20612 * charset.c (Fset_charset_priority): Pay attention to duplicated
20613 arguments.
20614
20615 * coding.c (QCcategory): New variable.
20616 (syms_of_coding): Defsym it. Set all elements of
20617 Vcoding_category_table and their symbol values.
20618 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20619 coding-category-XXX, and coding-category-list.
20620 (Fdefine_coding_system_internal): Add category in the plist.
20621
206222008-02-01 Kenichi Handa <handa@m17n.org>
20623
20624 * callproc.c (Fcall_process): Handle carryover correctly.
20625
20626 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20627 (raw_text_coding_system): Check NILP (coding_system).
20628 (coding_inherit_eol_type): Check NILP (coding_system) and
20629 NILP (parent).
20630 (consume_chars): Fix for the case of raw-text.
20631
20632 * process.c (read_process_output): Handle carryover correctly.
20633
206342008-02-01 Dave Love <fx@gnu.org>
20635
20636 * regex.c (re_search_2): Fix last change.
20637
206382008-02-01 Kenichi Handa <handa@m17n.org>
20639
20640 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20641 target_multibyte. Even in a unibyte case, return a converted
20642 multibyte char.
20643 (GET_CHAR_AFTER): New macro.
20644 (PATFETCH): Translate via multibyte char.
20645 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20646 (SETUP_MULTIBYTE_RANGE): New macro.
20647 (regex_compile): Setup compiled code so that its multibyteness
20648 matches that of a target. Fix the handling of "[X-YZ]" using
20649 SETUP_MULTIBYTE_RANGE.
20650 (analyse_first) <charset>: For filling fastmap for all multibyte
20651 characters, don't check by BASE_LEADING_CODE_P.
20652 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20653 the same as RE_MULTIBYTE_P (bufp) now.
20654 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20655 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20656 (TRANSLATE_VIA_MULTIBYTE): New macro.
20657 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20658 It is the same as RE_MULTIBYTE_P (bufp) now.
20659 <exactn>: Translate via multibyte.
20660 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20661 translate it.
20662 <charset, charset_not>: Fetch a character by
20663 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20664 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20665 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20666 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20667 by GET_CHAR_AFTER.
20668 (bcmp_translate): Likewise.
20669
20670 * search.c (compile_pattern): Check the member target_multibyte,
20671 not the member multibyte of buf.
20672
20673 * lread.c (read1): While reading a string, set force_singlebyte
20674 and force_multibyte correctly.
20675
20676 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20677 up of unibyte_to_multibyte_table.
20678
206792008-02-01 Kenichi Handa <handa@m17n.org>
20680
20681 * coding.c (setup_coding_system): If coding has
20682 post-read-conversion or pre-write-conversion, set
20683 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20684 respectively.
20685 (decode_coding_gap): Run post-read-conversion if any.
20686
20687 * fileio.c (Finsert_file_contents): Even if we read into a
20688 unibyte buffer, check if we must decode the result or not.
20689
206902008-02-01 Kenichi Handa <handa@m17n.org>
20691
20692 * coding.c (make_conversion_work_buffer): Change the work buffer
20693 name to the same one as that of Emacs 21.
20694
206952008-02-01 Kenichi Handa <handa@m17n.org>
20696
20697 * coding.h (make_conversion_work_buffer): Adjust prototype.
20698 (code_conversion_restore): Don't extern it.
20699
20700 * coding.c (detected_mask): Delete unused variable.
20701 (decode_coding_iso_2022): Pay attention to the byte sequence of
20702 CTEXT extended segment, and retain those bytes as is.
20703 (decode_coding_ccl): Delete unused variable `valids'.
20704 (setup_coding_system): Delete unused variable `category'.
20705 (consume_chars): Delete unused variable `category'. Make it work
20706 for non-multibyte case.
20707 (make_conversion_work_buffer): Change argument.
20708 (saved_coding): Delete unused variable.
20709 (code_conversion_restore): Don't check saved_coding->destination.
20710 (code_conversion_save): New function.
20711 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20712 instead of record_unwind_protect.
20713 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20714 (detect_coding_system): Delete unused variable `mask'.
20715 (Fdefine_coding_system_internal): Delete unused variable id.
20716
20717 * fileio.c (kill_workbuf_unwind): New function.
20718 (Finsert_file_contents): On replacing, call
20719 make_conversion_work_buffer with correct args, and call
20720 record_unwind_protect with the first arg kill_workbuf_unwind.
20721
20722 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20723
207242008-02-01 Kenichi Handa <handa@m17n.org>
20725
20726 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20727 (fontset_add): Fix for the case that TO is less than TO1.
20728 (Ffontset_info): Don't use fallback fontset on checking the
20729 default fontset.
20730 (dump_fontset): New function for debugging.
20731
20732 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20733 coding_type is Qcharset.
20734
207352008-02-01 Kenichi Handa <handa@m17n.org>
20736
20737 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20738 (map_char_table): Don't inherit the value from the parent on
20739 initializing VAL. Adjust for the above change.
20740
207412008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 * coding.c (Qsignature, Qendian): Delete these variables.
20744 (syms_of_coding): Don't initialize them.
20745 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20746 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20747 detect_info->found.
20748 (decode_coding_utf_16): Don't detect BOM here.
20749 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20750 is NOT utf_16_without_bom.
20751 (setup_coding_system): For a coding system of type utf-16, check
20752 if the attribute :endian is Qbig or not (not nil or not), and set
20753 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20754 (detect_coding): If coding type is utf-16 and BOM detection is
20755 required, detect it.
20756 (Fdefine_coding_system_internal): For a coding system of type
20757 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20758
207592008-02-01 Kenichi Handa <handa@m17n.org>
20760
20761 * coding.c (coding_set_source): Fix for the case that the current
20762 buffer is different from coding->src_object.
20763 (decode_coding_object): Don't use the conversion work buffer if
20764 DST_OBJECT is a buffer.
20765
207662008-02-01 Dave Love <fx@gnu.org>
20767
20768 * lread.c (read_emacs_mule_char) [len==2]: Index
20769 emacs_mule_charset correctly.
20770
207712008-02-01 Dave Love <fx@gnu.org>
20772
20773 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20774 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20775 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20776 treated specially.)
20777 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20778 (detected_mask): Remove Big5 bits.
20779
207802008-02-01 Kenichi Handa <handa@m17n.org>
20781
20782 The following changes are to make the font rescaling facility
20783 compatible with Emacs 21.
20784
20785 * xfaces.c (Vface_font_rescale_alist): Rename from
20786 Vface_resizing_fonts.
20787 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20788 (font_rescale_ratio): Rename from font_resizing_ratio.
20789 (split_font_name): Set font->rescale_ratio.
20790 (better_font_p): Pay attention to font->rescale_ratio.
20791 (build_scalable_font_name): Likewise. Change RESX, and RESY
20792 fields.
20793 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20794
207952008-02-01 Kenichi Handa <handa@m17n.org>
20796
20797 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20798 (Qutf_16_le): Remove these variables.
20799 (syms_of_coding): Don't DEFSYM them.
20800 (decode_coding_utf_16): Fix handling of BOM.
20801 (encode_coding_utf_16): Fix handling of BOM.
20802
208032008-02-01 Kenichi Handa <handa@m17n.org>
20804
20805 * fileio.c (Finsert_file_contents): On replacing, before decoding
20806 the file into the work buffer, set point of the work buffer to the end.
20807
208082008-02-01 Dave Love <fx@gnu.org>
20809
20810 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20811
208122008-02-01 Dave Love <fx@gnu.org>
20813
20814 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20815 and fix C types.
20816
208172008-02-01 Kenichi Handa <handa@m17n.org>
20818
20819 * xdisp.c (SKIP_GLYPHS): New macro.
20820 (set_cursor_from_row): Pay attention to string display properties.
20821
20822 * category.c (copy_category_entry): Fix for the case that RANGE
20823 is an integer.
20824
20825 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20826
20827 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20828
208292008-02-01 Kenichi Handa <handa@m17n.org>
20830
20831 * charset.c (Fcharset_id_internal): New function.
20832 (syms_of_charset): Defsubr it.
20833
20834 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20835 with the last arg charset_list acquired from coding.
20836 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20837 the attribute coding_attr_ccl_valids.
20838
20839 * coding.h (enum define_coding_ccl_arg_index): Set the first
20840 member coding_arg_ccl_decoder to coding_arg_max.
20841
20842 * ccl.h (ccl_driver): Adjust prototype.
20843
20844 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20845 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20846 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20847 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20848 last arg Qnil.
20849
208502008-02-01 Kenichi Handa <handa@m17n.org>
20851
20852 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20853 call encode_char.
20854
20855 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20856
208572008-02-01 Dave Love <fx@gnu.org>
20858
20859 * composite.c (syms_of_composite): Make composition_hash_table weak.
20860
208612008-02-01 Kenichi Handa <handa@m17n.org>
20862
20863 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20864 (font_name_registry): Don't extern them.
20865 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20866
20867 * fontset.h (Qfontset): Don't extern it.
20868 (new_fontset_from_font_name): Extern it.
20869
20870 * fontset.c: Give 8 extra slots to fontset objects.
20871 (Qfontset_info): New variable.
20872 (syms_of_fontset): Defsym it.
20873 (FONTSET_FALLBACK): New macro.
20874 (fontset_face): Try also the default fontset.
20875 (make_fontset): Realize a fallback fontset from the default fontset.
20876 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20877 using split_font_name_into_vector and build_font_name_from_vector.
20878 (Fset_fontset_font): Access the elements of font_spec by enum
20879 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20880 name by using split_font_name_into_vector.
20881 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20882 generate a proper font name from the fontset name. Update
20883 Vfontset_alias_alist.
20884 (n_auto_fontsets): New variable.
20885 (new_fontset_from_font_name): New function.
20886 (Ffont_info): Store the information about fonts generated from the
20887 default fontset in the first extra slot of the returned char-table.
20888
20889 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20890 (font_name_registry): Delete function.
20891 (split_font_name_into_vector): New function.
20892 (build_font_name_from_vector): New function.
20893 (font_list): The argument REGISTRY is now a list of registry names.
20894 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20895 specifies an explicit font name, return the name as is. Make a
20896 list of registy names.
20897
20898 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20899 of x_new_fontset.
20900 (Fx_create_frame): Don't call x_new_fontset here. Just use
20901 x_list_fonts to check the existence of fonts.
20902
20903 * xterm.h (x_new_fontset): Adjust prototype.
20904
20905 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20906 string. Use new_fontset_from_font_name to create a fontset from a
20907 font name.
20908
209092008-02-01 Kenichi Handa <handa@m17n.org>
20910
20911 * syntax.c (Vfind_word_boundary_function_table): New name for
20912 Vnext_word_boundary_function_table.
20913 (find-word-boundary-function-table): New name for
20914 next-word-boundary-function-table.
20915
209162008-02-01 Dave Love <fx@gnu.org>
20917
20918 * Makefile.in: Fix some dependencies.
20919
20920 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20921 set it to nil before returning.
20922
20923 * composite.c (update_compositions): Fix type error.
20924
20925 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20926
209272008-02-01 Kenichi Handa <handa@m17n.org>
20928
20929 * xterm.c (x_new_font): Optimize for the case that the font is
20930 already set for the frame.
20931
209322008-02-01 Kenichi Handa <handa@m17n.org>
20933
20934 * chartab.c (char_table_ascii): Check if the char table contents
20935 is sub-char-table or not.
20936 (char_table_set, char_table_set_range): Fix argument to
20937 char_table_ascii.
20938
20939 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20940 (detect_coding_utf_8, detect_coding_utf_16)
20941 (detect_coding_emacs_mule, detect_coding_iso_2022)
20942 (detect_coding_sjis, detect_coding_big5)
20943 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20944 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20945 sequence is valid in this coding system. Change callers.
20946 (MAX_ANNOTATION_LENGTH): New macro.
20947 (ADD_ANNOTATION_DATA): New macro.
20948 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20949 ADD_ANNOTATION_DATA. Change the format of annotation data.
20950 (ADD_CHARSET_DATA): New macro.
20951 (emacs_mule_char): New argument ID. Change callers.
20952 (decode_coding_emacs_mule, decode_coding_iso_2022)
20953 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20954 Produce charset annotation data in coding->charbuf.
20955 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20956 to charset annotation data in coding->charbuf.
20957 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20958 coding->common_flags if the coding system is iso-2022 based and
20959 uses designation.
20960 (produce_composition): Adjust for the new annotation data format.
20961 (produce_charset): New function.
20962 (produce_annotation): Handle charset annotation.
20963 (handle_composition_annotation, handle_charset_annotation): New
20964 functions.
20965 (consume_chars): Handle charset annotation. Utilize the above two
20966 functions.
20967 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20968 buffer, get the deleted text as a string and set
20969 coding->src_object to that string.
20970 (detect_coding, detect_coding_system): Use the new struct
20971 coding_detection_info.
20972
20973 * coding.h (struct coding_detection_info): New structure.
20974 (struct coding_system): Adjust prototype of the member `detector'.
20975 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20976
209772008-02-01 Kenichi Handa <handa@m17n.org>
20978
20979 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20980
209812008-02-01 Dave Love <fx@gnu.org>
20982
20983 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20984 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20985 to new local and nullify apropos_accumulate before returning.
20986 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20987
209882008-02-01 Kenichi Handa <handa@m17n.org>
20989
20990 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20991 correctly.
e3eea1fc 20992
aac0c6e3
MR
209932008-02-01 Dave Love <fx@gnu.org>
20994
20995 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20996
209972008-02-01 Kenichi Handa <handa@m17n.org>
20998
20999 The following changes are to make character composition happen
21000 automatically on displaying.
21001
21002 * Makefile.in (lisp, shortlisp): Add composite.elc.
21003
21004 * composite.h (Qauto_composed, Vauto_composition_function)
21005 (Qauto_composition_function): Extern them.
21006
21007 * composite.c (Vcomposition_function_table)
21008 (Qcomposition_function_table): Delete variables.
21009 (Qauto_composed, Vauto_composition_function)
21010 (Qauto_composition_function): New variables.
21011 (run_composition_function): Don't call
21012 compose-chars-after-function.
21013 (update_compositions): Clear `auto-composed' text property.
21014 (compose_chars_in_text): Delete this function.
21015 (syms_of_composite): Staticpro Qauto_composed and
21016 Qauto_composition_function. Declare Vauto_composition_function as
21017 a Lisp variable.
21018
21019 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21020
21021 * xdisp.c (it_props): Add an entry for Qauto_composed.
21022 (handle_auto_composed_prop): New function.
21023
21024 * xselect.c (selection_data_to_lisp_data): Don't call
21025 compose_chars_in_text.
21026
210272008-02-01 Dave Love <fx@gnu.org>
21028
21029 * keyboard.c (read_char): Modify checking around use of
21030 Vkeyboard_translate_table.
21031
21032 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21033 and fix C types.
21034
210352008-02-01 Kenichi Handa <handa@m17n.org>
21036
21037 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21038 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21039 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21040 the case that the last byte is '\r' correctly.
21041 (decode_coding): Flush out the unprocessed data correctly.
21042 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21043
210442008-02-01 Dave Love <fx@gnu.org>
21045
21046 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21047 Add XK_ISO... case.
21048 (xaw_scroll_callback): Revert last change.
21049
210502008-02-01 Kenichi Handa <handa@m17n.org>
21051
21052 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21053
210542008-02-01 Kenichi Handa <handa@m17n.org>
21055
21056 * xfaces.c (Vface_resizing_fonts): New variable.
21057 (struct font_name): New member `resizing_ratio'.
21058 (font_resizing_ratio): New function.
21059 (split_font_name): Set font->resizing_ratio.
21060 (better_font_p): Pay attention to font->resizing_ratio.
21061 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21062 RESX, and RESY fields.
21063 (try_alternative_families): Try scalable fonts if
21064 Vscalable_fonts_allowed is not Qt.
21065 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21066
210672008-02-01 Dave Love <fx@gnu.org>
21068
21069 * xterm.c (xaw_scroll_callback): Cast correctly.
21070
210712008-02-01 Dave Love <fx@gnu.org>
21072
21073 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21074 (lispy_kana_keys): Comment out.
21075 (make_lispy_event) [XK_kana_A]: Comment out.
21076
21077 * xterm.c (xaw_scroll_callback): Cast call_data.
21078 (XTread_socket): Deal with ASCII keysyms.
21079 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21080
210812008-02-01 Dave Love <fx@gnu.org>
21082
21083 * xterm.c (Vx_keysym_table): New.
21084 (syms_of_xterm): Initialize it.
21085 (XTread_socket): Use it.
21086 From head: Eliminate incorrect optimization that tried to avoid
21087 decoding the output of X*LookupString.
21088 (x_get_font_repertory): Delete charset declaration.
21089
210902008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21093 return 0.
21094 (Fdefine_coding_system_internal): Setup
21095 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21096
210972008-02-01 Dave Love <fx@gnu.org>
21098
21099 * coding.c (Fcheck_coding_system): Doc fix.
21100
21101 * editfns.c (Finsert_byte): Return a proper value.
21102
211032008-02-01 Kenichi Handa <handa@m17n.org>
21104
21105 * coding.c (decode_coding): Fix args to translate_chars. Pay
21106 attention to Vstandard_translation_table_for_decode.
21107 (encode_coding): Fix args to translate_chars. Pay attention to
21108 Vstandard_translation_table_for_encode.
21109
21110 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21111 SINGLE_BYTE_CHAR_P.
21112
21113 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21114 not by SINGLE_BYTE_CHAR_P.
21115
21116 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21117 SINGLE_BYTE_CHAR_P.
21118
21119 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21120 SINGLE_BYTE_CHAR_P.
21121
21122 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21123 by SINGLE_BYTE_CHAR_P.
21124
21125 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21126 SINGLE_BYTE_CHAR_P.
21127
211282008-02-01 Dave Love <fx@gnu.org>
21129
21130 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21131
211322008-02-01 Dave Love <fx@gnu.org>
21133
21134 * fns.c (Flanginfo): Fix typo.
21135
21136 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21137
211382008-02-01 Kenichi Handa <handa@m17n.org>
21139
21140 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21141 (detect_coding_emacs_mule, detect_coding_iso_2022)
21142 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21143 incomplete byte sequence. Don't update *mask when correctly detected.
21144 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21145 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21146 (detect_coding, detect_coding_system): Adjust for the changes above.
21147
211482008-02-01 Kenichi Handa <handa@m17n.org>
21149
21150 * character.c (char_string): Rename from
21151 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21152 (string_char): Rename from string_char.
21153
21154 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21155 if C is greater than MAX_3_BYTE_CHAR.
21156 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21157 string_char instead of string_char_with_unification.
21158
211592008-02-01 Dave Love <fx@gnu.org>
21160
21161 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21162
211632008-02-01 Kenichi Handa <handa@m17n.org>
21164
21165 * keymap.c (push_key_description): Pay attention to force_multibyte.
21166
21167 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21168
211692008-02-01 Dave Love <fx@gnu.org>
21170
21171 * charset.c (define_charset_internal): Rename `supprementary'.
21172
21173 * Makefile.in (lisp, shortlisp): Remove latin-N.
21174
211752008-02-01 Dave Love <fx@gnu.org>
21176
21177 * xfns.c (x_window, x_window): Use use_xim.
21178
21179 * xterm.c (use_xim): Initialize.
21180 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21181 (x_term_init): Maybe set use_xim.
21182
21183 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21184
211852008-02-01 Kenichi Handa <handa@m17n.org>
21186
21187 * search.c (search_buffer): Fix case-fold-search of multibyte
21188 characters.
21189 (boyer_moore): Rename the last argument to char_high_bits.
21190
211912008-02-01 Kenichi Handa <handa@m17n.org>
21192
21193 * xdisp.c (display_string): Fix for the case of zero width glyph.
21194
21195 * xfns.c (x_set_font): Change the error message of the case that
21196 x_new_fontset returns Qt.
21197
21198 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21199 (Finternal_set_lisp_face_attribute): Use signal_error for the
21200 error of invalid fontset.
21201
21202 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
21203 fontset, return Qt.
21204
212052008-02-01 Dave Love <fx@gnu.org>
21206
21207 * unexelf.c (unexec): Make .got handling not SGI-specific.
21208
21209 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
21210
21211 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
21212
21213 * keyboard.c (read_key_sequence): Fix type error.
21214
21215 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
21216 type error.
21217
21218 * fontset.c (fontset_add): Return Lisp_Object.
21219
212202008-02-01 Dave Love <fx@gnu.org>
21221
21222 * charset.h (charset_ordered_list_tick): Declare extern.
21223
212242008-02-01 Kenichi Handa <handa@m17n.org>
21225
21226 The following changes (and some of 2008-02-01 changes of mine) are
21227 for handling syntax, category, and case conversion for unibyte
21228 characters by converting them to multibyte on the fly. With these
21229 changes, we don't have to setup syntax and case tables for unibyte
21230 characters in each language environment.
21231
21232 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
21233 multibyte if necessary.
21234
21235 * bytecode.c (Fbyte_code): Likewise.
21236
21237 * character.h (LEADING_CODE_LATIN_1_MIN)
21238 (LEADING_CODE_LATIN_1_MAX): New macros.
21239 (unibyte_to_multibyte_table): Extern it.
21240 (unibyte_char_to_multibyte): New macro.
21241 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
21242 (CHAR_LEADING_CODE): New macro.
21243 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
21244
21245 * character.c (unibyte_to_multibyte_table): New variable.
21246 (unibyte_char_to_multibyte): Move to character.h and define as macro.
21247 (multibyte_char_to_unibyte): If C is an eight-bit character,
21248 convert it to the corresponding byte value.
21249
21250 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
21251 not 1, signals an error. Update the elements of
21252 unibyte_to_multibyte_table.
21253 (init_charset_once): Initialize unibyte_to_multibyte_table.
21254 (syms_of_charset): Define the charset `iso-8859-1'.
21255
21256 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
21257 as is without converting it to unibyte. In a unibyte buffer,
21258 convert C to multibyte before checking the syntax.
21259
21260 * lisp.h (unibyte_char_to_multibyte): Delete extern.
21261
21262 * minibuf.c (Fminibuffer_complete_word): Use the macro
21263 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
21264
21265 * regex.h (struct re_pattern_buffer): New member target_multibyte.
21266
21267 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
21268 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
21269 that is zero, convert an eight-bit char to multibyte.
21270 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
21271 non-emacs case.
21272 (PATFETCH): Convert an eight-bit char to multibyte.
21273 (HANDLE_UNIBYTE_RANGE): New macro.
21274 (regex_compile): Setup the compiled pattern for multibyte chars
21275 even if the given regex string is unibyte. Use PATFETCH_RAW
21276 instead of PATFETCH in many places. To handle `charset'
21277 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
21278 only for ASCII chars.
21279 (analyse_first) <exactn>: Simplify because the compiled pattern
21280 is multibyte.
21281 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
21282 <charset>: Use CHAR_LEADING_CODE to get leading codes.
21283 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
21284 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
21285 multibyte always 1.
21286 (re_search_2): In emacs, set the locale variable multibyte to 1,
21287 otherwise to 0. New local variable target_multibyte. Check it
21288 to decide the multibyteness of STR1 and STR2. If
21289 target_multibyte is zero, convert unibyte chars to multibyte
21290 before translating and checking fastmap.
21291 (TARGET_CHAR_AND_LENGTH): New macro.
21292 (re_match_2_internal): In emacs, set the locale variable multibyte
21293 to 1, otherwise to 0. New local variable target_multibyte. Check
21294 it to decide the multibyteness of STR1 and STR2. Use
21295 TARGET_CHAR_AND_LENGTH to fetch a character from D.
21296 <charset, charset_not>: If multibyte is nonzero, check fastmap
21297 only for ASCII chars. Call bcmp_translate with
21298 target_multibyte, not with multibyte.
21299 <begline>: Declare the local variable C as `unsigned'.
21300 (bcmp_translate): Change the last arg name to target_multibyte.
21301
21302 * search.c (compile_pattern_1): Don't adjust the multibyteness of
21303 the regexp pattern and the matching target. Set cp->buf.multibyte
21304 to the multibyteness of the regexp pattern. Set
21305 cp->but.target_multibyte to the multibyteness of the matching target.
21306 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
21307 FETCH_STRING_CHAR_ADVANCE.
21308 (Freplace_match): Convert unibyte chars to multibyte.
21309
21310 * syntax.c (char_quoted, back_comment, scan_words)
21311 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
21312 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
21313 unibyte chars to multibyte.
21314 (skip_chars): Delete the arg syntaxp, and move the code for
21315 handling syntaxes to skip_syntaxes. Change callers.
21316 Fix the case that the multibyteness of STRING and the current
21317 buffer doesn't match.
21318 (skip_syntaxes): New function.
21319 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
21320 SINGLE_BYTE_CHAR_P.
21321
213222008-02-01 Kenichi Handa <handa@m17n.org>
21323
21324 * xfaces.c (QCfontset): New variable.
21325 (LFACE_FONTSET): New macro.
21326 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
21327 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
21328 (Finternal_set_lisp_face_attribute)
21329 (Finternal_get_lisp_face_attribute): Handle QCfontset.
21330 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
21331 check also LFACE_FONTSET_INDEX.
21332 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
21333 attrs[LFACE_FONT_INDEX].
21334 (syms_of_xfaces): Intern and staticpro QCfontset.
21335
21336 * dispextern.h (enum lface_attribute_index): New member
21337 LFACE_FONTSET_INDEX.
21338
21339 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21340
213412008-02-01 Kenichi Handa <handa@m17n.org>
21342
21343 * coding.c (coding_set_destination): Fix coding->destination for
21344 the case converting a region.
21345 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21346 (encode_coding_object): Fix coding->dst_pos and
21347 coding->dst_pos_byte for the case converting a region.
21348
21349 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21350
21351 * character.h (BYTE8_STRING): New macro.
21352
21353 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21354
213552008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21358 characters by octal form.
21359
21360 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21361
21362 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21363 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21364 _fetch_multibyte_char_len.
21365 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21366
21367 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21368
21369 * casefiddle.c (casify_object): Simplify. Handle the case that
21370 the case conversion change the byte length.
21371 (casify_region): Likewise.
21372
21373 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21374
21375 * character.c (_fetch_multibyte_char_len): Delete this variable.
21376 (syms_of_character): Setup Vprintable_chars.
21377
21378 * editfns.c (Fchar_equal): Fix for the unibyte case.
21379 (Finsert_byte): New function.
21380 (syms_of_editfns): Defsubr it.
21381
21382 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21383 of direct code 0x3ffff.
21384
21385 * search.c (Freplace_match): Fix for the unibyte case.
21386
213872008-02-01 Kenichi Handa <handa@m17n.org>
21388
21389 * lread.c (safe_to_load_p): Fix the logic.
21390
21391 * syntax.c (scan_words): Don't treat characters belonging to
21392 different scripts as constituting a word.
21393
21394 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21395
21396 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21397
21398 * emacs.c (main): In the case of --unibyte, instead of aborting on
21399 finding non-empty buffer, make it unibyte.
21400
214012008-02-01 Kenichi Handa <handa@m17n.org>
21402
21403 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21404 to create a fontset.
21405
214062008-02-01 Dave Love <fx@gnu.org>
21407
21408 * character.c (Funibyte_char_to_multibyte): Doc fix.
21409
21410 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21411
214122008-02-01 Kenichi Handa <handa@m17n.org>
21413
21414 * fontset.c (fontset_add): Make the type `int'.
21415 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21416
21417 * character.c (unibyte_char_to_multibyte)
21418 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21419 charset_unibyte, not charset_primary.
21420
21421 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21422
21423 * charset.c (charset_unibyte): Rename from charset_primary.
21424 (Funibyte_charset): Rename from Fprimary_charset.
21425 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21426 (syms_of_charset): Adjust for the above changes.
21427
21428 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21429 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21430 it->multibyte_p is zero.
21431
21432 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21433 Delete extern.
21434
214352008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * coding.c (Fdefine_coding_system_internal): Fix category setting
21438 for a coding system of type iso-2022.
21439
214402008-02-01 Kenichi Handa <handa@m17n.org>
21441
21442 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21443
214442008-02-01 Kenichi Handa <handa@m17n.org>
21445
21446 * syntax.c (Vnext_word_boundary_function_table): New variable.
21447 (next-word-boundary-function-table): Declare it as a Lisp variable
21448 in syms_of_syntax.
21449 (scan_words): Call functions in Vnext_word_boundary_function_table
21450 if any.
21451
21452 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21453
21454 * fontset.c (fs_load_font): If fontp->charset is not negative,
21455 return fontp without setting its members.
21456
214572008-02-01 Dave Love <fx@gnu.org>
21458
21459 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21460
21461 * m/sparc.h (HAVE_ALLOCA): Delete.
21462
21463 * s/irix6-5.h: Don't include strings.h.
21464 (bcopy, bzero, bcmp): Don't undef.
21465
21466 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21467
21468 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21469 (TIOCSIGSEND): Don't test IRIX6.
21470 (bcopy, bzero, bcmp): Define conditionally.
21471
214722008-02-01 Kenichi Handa <handa@m17n.org>
21473
21474 * buffer.c (Qas, Qmake, Qto): New variables.
21475 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21476 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21477
21478 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21479 we are inserting a process output into a multibyte buffer.
21480
21481 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21482 multibyte_char_to_unibyte.
21483
21484 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21485 by the primary charset, make it eight-bit char.
21486 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21487
21488 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21489 (charset_8_bit__control, charset_8_bit_graphic)
21490 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21491 (define_charset_internal): New function.
21492 (syms_of_charset): Call define_charset_internal for pre-defined
21493 charsets.
21494
21495 * charset.h (charset_8_bit): Extern it.
21496
21497 * coding.c (make_conversion_work_buffer): Adjust for the change
21498 of Fset_buffer_multibyte.
21499 (encode_coding_raw_text): Increment p0 in the loop.
21500
21501 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21502
21503 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21504 for the change of Fset_buffer_multibyte.
21505
21506 * fns.c (Fstring_to_multibyte): New function.
21507 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21508
215092008-02-01 Dave Love <fx@gnu.org>
21510
21511 * xfns.c (x_put_x_image): Declare args.
21512
21513 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21514 (try_font_list): Declare an arg.
21515
21516 * xdisp.c (message2_nolog, set_message): Declare an arg.
21517
21518 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21519
21520 * syntax.c (scan_sexps_forward): Declare an arg.
21521
21522 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21523 Declare an arg.
21524
21525 * lisp.h (Fnew_fontset): Declare.
21526
21527 * keymap.c (push_key_description): Call CHARACTERP correctly.
21528
21529 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21530 (face_for_char): Delete unused vars.
21531 (Fset_fontset_font): Doc fix. Delete unused vars.
21532
21533 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21534
21535 * composite.c (update_compositions): Declare arg.
21536
21537 * cm.c (calccost, cmgoto): Declare args.
21538
21539 * charset.c: Remove `emacs' conditional. Doc fixes.
21540 (map_char_table_for_charset): Declare.
21541
21542 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21543
21544 * ccl.c: Remove `emacs' conditional.
21545
215462008-02-01 Kenichi Handa <handa@m17n.org>
21547
21548 The following changes are to allow specifying multiple font
21549 patterns for a character range (specified by script or charset).
21550
21551 * Makefile.in (abbrev.o): Depend on syntax.h.
21552 (xfaces.o): Depend on charset.h.
21553
21554 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21555 SINGLE_BYTE_CHAR_P.
21556
21557 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21558
21559 * character.h (Vchar_script_table): Extern it.
21560
21561 * character.c (Vscript_alist): Delete.
21562 (Vchar_script_table, Qchar_script_table): New variable.
21563 (syms_of_character): Declare Vchar_script_table as a lisp variable
21564 and initialize it.
21565
21566 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21567 have property char-table-extra-slots, make no extra slot.
21568
21569 * dispextern.h (struct face): Delete member `charset'.
21570 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21571 SINGLE_BYTE_CHAR_P.
21572 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21573 Add prototypes.
21574 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21575 (generate_ascii_font_name): Rename from generate_ascii_font.
21576
21577 * fontset.h (get_font_repertory_func): New prototype.
21578 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21579 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21580
21581 * fontset.c (Qprepend, Qappend): New variables.
21582 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21583 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21584 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21585 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21586 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21587 (load_font_get_repertory): New functions.
21588 (fontset_set): Delete.
21589 (fontset_face): New arg FACE. Return face ID, not face.
21590 Complete re-write to handle new fontset structure. Change caller.
21591 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21592 (face_for_char): Don't call lookup_face.
21593 (make_fontset_for_ascii_face): New arg FACE.
21594 (fs_load_font): New arg CHARSET_ID. Don't check
21595 Vfont_encoding_alist here.
21596 (find_font_encoding): New function.
21597 (list_fontsets): Use STRINGP, not ! NILP.
21598 (accumulate_script_ranges): New function.
21599 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21600 re-written to handle new fontset structure.
21601 (Ffontset_font): Return a copy of element.
21602 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21603 docstring of font-encoding-alist.
21604
21605 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21606 (Fset_fotset_font): Fix arguments to 5.
21607
21608 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21609
21610 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21611 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21612 (highlight_trailing_whitespace): Adjust for the change of
21613 lookup_named_face.
21614
21615 * xfaces.c: Include charset.h.
21616 (load_face_font): Delete argument C. Change caller.
21617 (generate_ascii_font_name): Rename from generate_ascii_font.
21618 (font_name_registry): New function.
21619 (cache_face): Store ascii faces before non-ascii faces in buckets.
21620 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21621 Lookup only ascii faces.
21622 (lookup_non_ascii_face): New function.
21623 (lookup_named_face): Delete argument C. Change caller.
21624 (lookup_derived_face): Delete argument C. Change caller.
21625 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21626 a string, just call font_list with it.
21627 (choose_face_font): Delete arguments FACE and C. New arg
21628 FONT_SPEC. Change caller.
21629 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21630 Change caller.
21631 (realize_non_ascii_face): New function.
21632 (realize_x_face): Call load_face_font here.
21633 (realize_tty_face): Delete argument C. Change caller.
21634 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21635 get a face ID.
21636 (dump_realized_face): Don't print charset of FACE.
21637
21638 * xfns.c (x_set_font): Always call x_new_fontset and
21639 store_frame_parameter.
21640 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21641 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21642
21643 * xterm.h (x_get_font_repertory): Extern it.
21644
21645 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21646 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21647 it->multibyte_p is zero.
21648 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21649 (x_new_fontset): If FONTSETNAME doesn't match any existing
21650 fontsets, create a new one.
21651 (x_get_font_repertory): New function.
21652
216532008-02-01 Kenichi Handa <handa@m17n.org>
21654
21655 * coding.c (Ffind_coding_systems_region_internal): Detect an
21656 ASCII only string correctly.
21657
21658 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21659 version is 0.
21660
216612008-02-01 Kenichi Handa <handa@m17n.org>
21662
21663 * lread.c: Include "coding.h".
21664 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21665 (load_each_byte, unread_char): New variables.
21666 (readchar_backlog): Delete.
21667 (readchar): Return a character unless load_each_byte is nonzero.
21668 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21669 cons. If unread_char is not -1, simply return it.
21670 (unreadchar): Handle the case that readcharfun is
21671 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21672 (read_multibyte): Delete.
21673 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21674 (read_emacs_mule_char): New functions.
21675 (Fload): Even if the file doesn't have the extension ".elc", if
21676 safe_to_load_p returns a positive version number, assume that the
21677 file contains bytecompiled code. If the version is less than 22,
21678 load the file while decoding multibyte sequences by emacs-mule.
21679 (readevalloop): Don't use readchar_backlog.
21680 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21681 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21682 (read_escape): Delete the arg BYTEREP.
21683 (read1): Set load_each_byte to 1 temporarily while handling
21684 #@NUMBER. Don't call read_multibyte.
21685 (read_vector): Call Fread with a cons. If readcharfun is
21686 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21687 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21688 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21689 and Qload_force_doc_strings.
21690
216912008-02-01 Kenichi Handa <handa@m17n.org>
21692
21693 * xdisp.c (face_before_or_after_it_pos): Call
21694 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21695
216962008-02-01 Kenichi Handa <handa@m17n.org>
21697
21698 * character.h (TRAILING_CODE_P): New macro.
21699 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21700 (string_char_with_unification): Fix prototype.
21701 (Vscript_alist): Extern it.
21702
21703 * character.c (Vscript_alist): New variable.
21704 (string_char_with_unification, str_as_unibyte)
21705 (string_escape_byte8): Add `const' to local variables.
21706 (syms_of_character): Declare script-alist as a Lisp variable.
21707
21708 * charset.h (Vcharset_ordered_list): Extern it.
21709 (charset_ordered_list_tick): Extern it.
21710 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21711 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21712 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21713 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21714 (Funify_charset): Adjust for the change of Funify_charset.
21715
21716 * charset.c (charset_ordered_list_tick): New variable.
21717 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21718 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21719 deunify instead of unify a charset.
aac0c6e3
MR
21720 (string_xstring_p): Add `const' to local variables.
21721 (find_charsets_in_text): Add `const' to arguments and local variables.
21722 (encode_char): Adjust for the change of Funify_charset. Fix
21723 detecting of invalid code.
21724 (Fset_charset_priority): Increment charset_ordered_list_tick.
21725 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21726 and TO_CODE.
21727
21728 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21729 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21730 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21731 (decode_coding_ccl, consume_chars)
21732 (Ffind_coding_systems_region_internal)
21733 (Fcheck_coding_systems_region): Add `const' to local variables.
21734
21735 * print.c (print_object): Use octal form for printing the
21736 contents of a bool vector.
21737
217382008-02-01 Dave Love <fx@gnu.org>
21739
21740 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21741 <version == 20>: Refuse to load.
21742
217432008-02-01 Dave Love <fx@gnu.org>
21744
21745 * fns.c: Move coding.h.
21746 (Qcodeset, Qdays, Qmonths): New.
21747 (concat): Use CHARACTERP instead of INTEGERP.
21748 (Flocale_codeset): Delete.
21749 (Flanginfo): New function.
21750 (syms_of_fns): Change accordingly.
21751
21752 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21753
217542008-02-01 Dave Love <fx@gnu.org>
21755
21756 * casetab.c (init_casetab_once, init_casetab_once): Fix
21757 CHAR_TABLE_SET call.
21758
21759 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21760
21761 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21762
21763 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21764 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21765 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21766
21767 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21768
21769 * coding.c (ENCODE_DESIGNATION, decode_eol)
21770 (make_conversion_work_buffer, code_conversion_restore)
21771 (Fdefine_coding_system_internal): Convert Lisp types.
21772 (code_conversion_restore): Use EQ, not ==.
21773 (Fencode_coding_string): Fix code_convert_string call.
21774
21775 * coding.h (code_convert_region): Fix prototype.
21776
21777 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21778
21779 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21780 (Ffontset_info): Convert Lisp types.
21781
21782 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21783
21784 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21785
21786 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21787
21788 * chartab.c: Include "...h", not <...h> in some cases.
21789
21790 * callproc.c (Fcall_process): Remove unused variables.
21791
217922008-02-01 Dave Love <fx@gnu.org>
21793
21794 * coding.c (Fset_coding_system_priority): Allow null arg list.
21795
217962008-02-01 Dave Love <fx@gnu.org>
21797
21798 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21799 (Fself_insert_and_exit): Use CHARACTERP.
21800
21801 * callproc.c (Fcall_process): Remove unused vars.
21802
21803 * xterm.c (XTread_socket): Add extra dead keysyms.
21804
21805 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21806
21807 * dispextern.h: Remove prototypes for redraw_frame,
21808 redraw_garbaged_frames.
21809
21810 * cmds.c (Fself_insert_command): Use CHARACTERP.
21811
21812 * chartab.c (make_sub_char_table): Remove unused var.
21813 (Fset_char_table_default, Fmap_char_table): Doc fix.
21814
21815 * keymap.c (access_keymap): Remove generic char code.
21816 (push_key_description): Use CHARACTERP.
21817
218182008-02-01 Dave Love <fx@gnu.org>
21819
21820 * charset.c: Doc fixes.
21821 (Funify_charset): Extra checking.
21822
218232008-02-01 Dave Love <fx@gnu.org>
21824
21825 * lread.c: Remove some unused variables.
21826 (safe_to_load_p): If safe, return the magic number version byte.
21827 (Fload): Maybe use load-with-code-conversion.
21828
218292008-02-01 Kenichi Handa <handa@m17n.org>
21830
21831 * category.c (Fmodify_category_entry): Don't modify the contents
21832 of category_set for characters out of the range. Avoid
21833 unnecessary modification.
21834
21835 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21836 Vchar_unify_table. The default value of the table is now nil.
21837
21838 * character.c (syms_of_character): Setup Vchar_width_table for
21839 eight-bit-control and raw-byte chars.
21840
21841 * charset.h (enum define_charset_arg_index): Delete
21842 charset_arg_parents and add charset_arg_subset and
21843 charset_arg_superset.
21844 (enum charset_attr_index): Delete charset_parents and add
21845 charset_subset and charset_superset.
21846 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21847 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21848 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21849 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21850 (CHARSET_SUPERSET): New macros.
21851 (charset_work): Extern it.
21852 (ENCODE_CHAR): Use charset_work.
21853 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21854 (map_charset_chars): Extern it.
21855
21856 * charset.c (load_charset_map): Set the default value of encoder
21857 and deunifier char-tables to nil.
21858 (map_charset_chars): Change argument. Change callers. Use
21859 map_char_table_for_charset instead of map_char_table.
21860 (Fmap_charset_chars): New optional args from_code and to_code.
21861 (Fdefine_charset_internal): Adjust for the change of
21862 `define-charset' (:parents -> :subset or :superset).
21863 (charset_work): New variable.
21864 (encode_char, syms_of_charset): Adjust for the change of
21865 Fdefine_charset_internal.
21866 (Ffind_charset_string): Setup the vector `charsets' correctly.
21867
21868 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21869 the previous change.
21870 (char_table_ref_and_range): Adjust for the above change.
21871 (map_sub_char_table_for_charset): New function.
21872 (map_char_table_for_charset): New function.
21873
21874 * keymap.c (describe_vector): Handle a char-table directly here.
21875 (describe_char_table): Delete.
21876
21877 * lisp.h (map_charset_chars): Delete.
21878
218792008-02-01 Dave Love <fx@gnu.org>
21880
21881 * fns.c (count_combining): Comment out (unused).
21882 (Flocale_codeset): New.
21883 (syms_of_fns): Defsubr it.
21884
21885 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21886 (size_t): Remove.
21887
218882008-02-01 Dave Love <fx@gnu.org>
21889
21890 * Makefile.in (chartab.o): Depend on charset.h.
21891
218922008-02-01 Kenichi Handa <handa@m17n.org>
21893
21894 * character.c (syms_of_character): Set the default value of
21895 Vprintable_chars to Qnil.
21896
218972008-02-01 Dave Love <fx@gnu.org>
21898
21899 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21900
219012008-02-01 Kenichi Handa <handa@m17n.org>
21902
21903 * charset.c (load_charset_map): Handle the case that from < to
21904 correctly.
21905
21906 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21907 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21908 Pay attention to raw-8-bit chars.
21909
219102008-02-01 Kenichi Handa <handa@m17n.org>
21911
21912 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21913 It is not bytecompiled now.
21914
21915 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21916 (charset_jisx0208): New variables.
21917 (Fdefine_charset_internal): Setup them if appropriate.
21918 (init_charset_once): Initialize them to -1.
21919
21920 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21921 (charset_jisx0208): Extern them.
21922
21923 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21924 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21925 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21926 (setup_iso_safe_charsets): Fix arguments to Fassq.
21927 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21928 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21929 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21930 (encode_coding_iso_2022): Change the 1st arg to
21931 ENCODE_ISO_CHARACTER to a variable.
21932
219332008-02-01 Kenichi Handa <handa@m17n.org>
21934
21935 * charset.h (enum define_charset_arg_index): New enums
21936 charset_arg_min_code and charset_arg_max_code.
21937 (struct charset): New member char_index_offset.
21938
21939 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21940 Take charset->char_index_offset into account.
21941 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21942 args[charset_arg_max_code]. Setup charset.char_index_offset.
21943 (syms_of_charset): Fix args to Fdefine_charset_internal.
21944
219452008-02-01 Dave Love <fx@gnu.org>
21946
21947 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21948
219492008-02-01 Dave Love <fx@gnu.org>
21950
21951 * coding.c: Doc fixes.
21952 (Fcoding_system_aliases): Fix return value.
21953 (Qmac): Remove (duplicated) definition.
21954
219552008-02-01 Dave Love <fx@gnu.org>
21956
362654a6
JB
21957 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21958 New functions.
aac0c6e3
MR
21959
21960 * character.c (Fstring): Doc fix.
21961
21962 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21963
362654a6 21964 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21965 (font-encoding-alist): Doc fix.
21966
219672008-02-01 Dave Love <fx@gnu.org>
21968
21969 * term.c (costs_set): Declare static, non-initialized for pcc.
21970 (encode_terminal_code): Remove unused var.
21971
21972 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21973 for K&R.
21974
21975 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21976
21977 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21978 (suffixes): Move out of make_subsidiaries for K&R.
21979
21980 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21981
21982 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21983
219842008-02-01 Dave Love <fx@gnu.org>
21985
21986 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21987
21988 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21989
219902008-02-01 Yong Lu <lyongu@asia-infonet.com>
21991
21992 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21993
21994 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21995
219962008-02-01 Kenichi Handa <handa@m17n.org>
21997
21998 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21999 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22000
220012008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 * coding.c (decode_coding_charset): Adjust for the change of
22004 Fdefine_coding_system_internal.
22005 (Fdefine_coding_system_internal): For a coding system of
22006 `charset' type, store a list of charset IDs in
22007 `charset_attr_charset_valids' element of coding attributes.
22008
220092008-02-01 Kenichi Handa <handa@m17n.org>
22010
22011 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22012 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22013 caller. Handle 2-byte and 3-byte charsets correctly.
22014 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22015 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22016 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22017 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22018 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22019 sequence.
22020 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22021 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22022 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22023 and alt&rule composition.
22024 (decode_coding_iso_2022): Handle composition correctly.
22025 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22026
22027 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22028 re-defining a charset. If the charset has :emacs-mule-id, setup
22029 emacs_mule_bytes.
22030 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22031
220322008-02-01 Kenichi Handa <handa@m17n.org>
22033
22034 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22035 (encode_coding_big5, encode_coding_charset): If coding requires safe
22036 encoding, produce a character specified by
22037 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22038
220392008-02-01 Dave Love <fx@gnu.org>
22040
22041 * xterm.c (XSetIMValues): Declare.
22042
22043 * process.c: Conditionally include sys/wait.h, pty.h.
22044
22045 * print.c (print_object): Fix print format for 64-bit systems.
22046
22047 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22048
22049 * buffer.c (emacs_strerror): Declare.
22050
22051 * fontset.c (Fclear_face_cache): Declare.
22052 (accumulate_font_info): Comment-out (unused).
22053 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22054 variables.
22055
22056 * character.h (string_escape_byte8): Declare.
22057
22058 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22059 unused vars.
22060 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22061 (Fmap_charset_chars): Doc fix.
22062
22063 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22064 (Fset_coding_system_priority, Fset_coding_system_priority)
22065 (Fdefine_coding_system_internal): Doc fix.
22066
220672008-02-01 Dave Love <fx@gnu.org>
22068
22069 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22070
220712008-02-01 Kenichi Handa <handa@m17n.org>
22072
22073 * character.c (string_escape_byte8): Make multibyte string with
22074 correct size.
22075
22076 * charset.c (Fmake_char): Delete unnecessary code.
22077
220782008-02-01 Kenichi Handa <handa@m17n.org>
22079
22080 * xfns.c (x_encode_text): Allocate coding.destination here, and
22081 call encode_coding_object with dst_object Qnil.
22082
22083 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22084 multibyte form correctly.
22085
22086 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22087 against Vfont_encoding_alist.
22088
22089 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22090 handling of charset list.
22091 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22092 (decode_coding_object): Move point to coding->dst_pos before
22093 calling post-read-conversion function.
22094 (encode_coding_object): Give correct arguments to
22095 pre-write-conversion. Ignore the return value of
22096 pre-write-conversion function. Pay attention to the case that
22097 pre-write-conversion changes the current buffer. If dst_object is
22098 Qt, even if coding->src_bytes is zero, allocate at least one byte
22099 to coding->destination.
22100
22101 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22102
22103 * charset.c (Fmake_char): Make it more backward compatible.
22104 (Fmap_charset_chars): Fix docstring.
22105
221062008-02-01 Dave Love <fx@gnu.org>
22107
22108 * coding.c: Doc fixes.
22109 (Fdefine_coding_system_alias): Use names, not symbols, in
22110 coding-system-alist.
22111
221122008-02-01 Kenichi Handa <handa@m17n.org>
22113
22114 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22115 of calling free_realized_face.
22116
221172008-02-01 Yong Lu <lyongu@asia-infonet.com>
22118
22119 * charset.c (read_hex): Don't treat SPC as a comment starter.
22120 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22121 (Fdecode_char): Fix typo.
22122
221232008-02-01 Kenichi Handa <handa@m17n.org>
22124
22125 * charset.h (struct charset): New member `code_space_mask'.
22126
22127 * coding.c (coding_set_source): Delete the local variable beg_byte.
22128 (encode_coding_charset, Fdefine_coding_system_internal):
22129 Delete the local variable charset.
22130 (Fdefine_coding_system_internal): Setup
22131 attrs[coding_attr_charset_valids] correctly.
22132
22133 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22134 member to check if CODE is valid or not.
22135 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22136 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22137 is within the range of charset->min_code and carset->max_code.
22138
221392008-02-01 Dave Love <fx@gnu.org>
22140
22141 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22142
22143 * dispextern.h (generate_ascii_font): Fix return type.
22144
22145 * xfaces.c (generate_ascii_font): Fix arg declaration.
22146
22147 * coding.c (coding_inherit_eol_type)
22148 (Fset_terminal_coding_system_internal)
22149 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22150
221512008-02-01 Kenichi Handa <handa@m17n.org>
22152
22153 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22154 multiple charsets correctly.
22155
221562008-02-01 Kenichi Handa <handa@m17n.org>
22157
22158 * search.c (boyer_moore): Fix handling of multibyte character
22159 translation.
22160
22161 * xdisp.c (display_mode_element): When the variable `elt' is
22162 changed, update `this' and `lisp_string'.
22163
221642008-02-01 Kenichi Handa <handa@m17n.org>
22165
22166 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22167
22168 * callproc.c (Fcall_process): Be sure to give the current buffer
22169 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22170
22171 * charset.c (struct charset_map_entries): New struct.
22172 (load_charset_map): Rename from parse_charset_map. New args
22173 entries and n_entries. Change caller.
22174 (load_charset_map_from_file): Rename from load_charset_map.
22175 Change caller. New arg control_flag. Call load_charset_map at
22176 the tail.
22177 (load_charset_map_from_vector): New function.
22178 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22179 (encode_char): If the charset is compact, change a character index
22180 to a code point.
22181
22182 * coding.c (coding_alloc_by_making_gap): Check the case that the
22183 source and destination are the same correctly.
22184 (decode_coding_raw_text): Set coding->consumed_char and
22185 coding->consumed to 0.
22186 (produce_chars): If coding->chars_at_source is nonzero, update
22187 coding->consumed_char and coding->consumed before calling
22188 alloc_destination.
22189 (Fdefine_coding_system_alias): Register ALIAS in
22190 Vcoding_system_alist.
22191 (syms_of_coding): Define `no-conversion' coding system at the tail.
22192
22193 * fileio.c (Finsert_file_contents): Set coding_system instead of
22194 val. If the current buffer is multibyte, always call
22195 decode_coding_gap.
22196
22197 * xfaces.c (try_font_list): Give higher priority to fontset's
22198 family than face's family.
22199
222002008-02-01 Kenichi Handa <handa@m17n.org>
22201
22202 * callproc.c (Fcall_process): Be sure to give the current buffer
22203 to decode_coding_c_string.
22204
22205 * xfaces.c (try_font_list): Give a family specified in a fontset
22206 higher priority than a family specified in a face.
22207
222082008-02-01 Kenichi Handa <handa@m17n.org>
22209
22210 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
22211 Fix arguments to insert_from_buffer.
22212
22213 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
22214
222152008-02-01 Kenichi Handa <handa@m17n.org>
22216
22217 * coding.c (produce_chars): Set the variable `multibytep' correctly.
22218 (decode_coding_gap): Set coding->dst_multibyte correctly.
22219
222202008-02-01 Kenichi Handa <handa@m17n.org>
22221
22222 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
22223 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
22224 (encode_coding_utf_16): Substitute coding->default_char for
22225 non-Unicode characters.
22226 (decode_coding): Don't call record_insert here.
22227 (setup_coding_system): Initialize `surrogate' of
22228 coding->spec.utf_16 to 0.
22229 (EMIT_ONE_BYTE): Fix for multibyte case.
22230
22231 * insdel.c (insert_from_gap): Call record_insert.
22232
222332008-02-01 Kenichi Handa <handa@m17n.org>
22234
22235 * casefiddle.c (casify_region): Fix multibyte case.
22236
22237 * character.c (c_string_width): Add return type `int'.
22238 (char_string_with_unification): Delete arg ADVANCED.
22239
22240 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
22241 (CHAR_STRING): Adjust for the change of char_string_with_unification.
22242 (CHAR_STRING_ADVANCE): Make it do-while statement.
22243
22244 * chartab.c (sub_char_table_set_range): Optimize for the case
22245 DEPTH == 3. Add workaround code for a GCC optimization bug.
22246
22247 * charset.c (parse_charset_map): Remove an unused variable.
22248
22249 * coding.c: Delete unused variables.
22250
22251 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
22252 earlier. If inserted is zero and the coding system doesn't
22253 require flushing, don't call decode_coding_gap.
22254
22255 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
22256
222572008-02-01 Kenichi Handa <handa@m17n.org>
22258
22259 The following changes are for using Unicode as an internal
22260 character model, and use UTF-8 format for buffer/string
22261 representation.
22262
22263 * .gdbinit (xchartable): Adjust for the change of char table structure.
22264 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
22265
22266 * Makefile.in (obj): Add character.o and chartab.o.
22267 (lisp, shortlisp): Remove utf-8.elc.
22268 (*.o): For many files, change dependency on charset.h to
22269 character.h, and add dependency on character.h.
22270 (character.o, chartab.o): New targets.
22271
22272 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
22273 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
22274 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
22275 of "charset.h".
22276
22277 * dired.c, filelock.c: Include "character.h".
22278
22279 * alloc.c: Include "character.h" instead of "charset.h".
22280 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
22281 (syms_of_alloc): Remove defsubr for Smake_char_table.
22282
22283 * buffer.c: Include "character.h" instead of "charset.h", don't
22284 include "coding.h".
22285 (Fset_buffer_multibyte): Adjust for UTF-8.
22286
22287 * buffer.h: EXFUN Fbuffer_live_p.
22288
22289 * callproc.c: Include "character.h" instead of "charset.h".
22290 (Fcall_process): Big change for the new code-conversion APIs.
22291
22292 * casetab.c: Include "character.h" instead of "charset.h".
22293 (set_canon, set_identity, shuffle): Adjust for the new
22294 map_char_table spec.
22295 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
22296 accessing the char table structure.
22297
22298 * chartab.c: New file that implements char table.
22299
22300 * category.c: Include "character.h".
22301 (copy_category_entry): New function.
22302 (copy_category_table): Call map_char_table and copy_category_entry.
22303 (Fmake_category_table): Initialize all top-level slots.
22304 (char_category_set): New function.
22305 (modify_lower_category_set): Delete.
22306 (Fmodify_category_entry): Call char_table_ref_and_range.
22307
22308 * category.h (CATEGORY_SET): Just call char_category_set.
22309
22310 * ccl.c: Include "character.h".
22311 (Qccl, Qcclp): New variables.
22312 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
22313 it's less than 256.
22314 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
22315 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
22316 and DST type.
22317 (ccl_driver): Change types of argument, adjust code accordingly.
22318 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
22319 ccl_driver.
22320 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
22321
22322 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
22323 New members src_multibyte, dst_multibyte, consumed, and produced.
22324 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
22325 (CODING_SPEC_CCL_PROGRAM): New macro.
22326 (ccl_driver): Update prototype.
22327 (Qccl, Qcclp, Fccl_program_p): Extern them.
22328 (CHECK_CCL_PROGRAM): New macro.
22329
22330 * character.c, character.h, chartab.c: New files.
22331
22332 * charset.c: Mostly re-written. Move character and multibyte sequence
22333 handling codes to character.c.
22334
22335 * charset.h: Mostly re-written. Move character and multibyte sequence
22336 handling codes to character.h.
22337
22338 * coding.c, coding.h: Mostly re-written.
22339
22340 * composite.c: Include "character.h" instead of "charset.h".
22341 (CHAR_WIDTH): Move to character.h.
22342 (HASH_KEY, HASH_VALUE): Delete.
22343
22344 * composite.h (enum composition_method): Change order of enumeration
22345 symbols.
22346
22347 * data.c: Include "character.h" instead of "charset.h".
22348 (Faref): Call CHAR_TABLE_REF for a char table.
22349 (Faset): Call CHAR_TABLE_SET for a char table.
22350
22351 * dispextern.h (free_realized_face, check_face_attribytes)
22352 (generate_ascii_font): Extern them.
22353 (free_realized_multibyte_face): Delete extern.
22354
22355 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22356 table structure.
22357
22358 * editfns.c: Include "character.h" instead of "charset.h".
22359 (Fchar_to_string): Always call CHAR_STRING.
22360
22361 * emacs.c (main): Call init_charset_once, init_charset,
22362 syms_of_chartab, and syms_of_character.
22363
22364 * fileio.c: Include "character.h" instead of "charset.h".
22365 (Finsert_file_contents): Big change for the new code-conversion API.
22366 (choose_write_coding_system, Fwrite_region): Likewise.
22367 (build_annotations_2): Delete.
22368 (e_write): Big change for the new code-conversion API.
22369
22370 * fns.c: Include "character.h" instead of "charset.h".
22371 (copy_sub_char_table): Move to chartab.c.
22372 (Fcopy_sequence): Call copy_char_table for a char table.
22373 (concat): Delete codes calling count_multibyte.
22374 (string_char_to_byte, string_byte_to_char): Adjust for the new
22375 multibyte form.
22376 (internal_equal): Adjust for the change of char table structure.
22377 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22378 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22379 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22380 (char_table_translate, optimize_sub_char_table)
22381 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22382 chartab.c.
22383 (char_table_ref_and_index): Delete.
22384 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22385 (Fmd5): Call preferred_coding_system instead of accessing
22386 Vcoding_category_list. Adjust for the new code-conversion API.
22387 (syms_of_fns): Move defsubr for char table related functions to
22388 chartab.c.
22389
22390 * fontset.c: Mostly re-written.
22391
22392 * fontset.h (struct font_info): Change type of the member encoding_type.
22393 (enum FONT_SPEC_INDEX): New enum.
22394 (fontset_font_pattern, fs_load_font): Update prototype.
22395 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22396
22397 * indent.c: Include "character.h" instead of "charset.h".
22398 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22399
22400 * insdel.c: Include "character.h" instead of "charset.h".
22401 (copy_text): Don't refer to Vnonascii_translation_table.
22402 (insert_from_gap): New function.
22403
22404 * keyboard.c: Include "character.h" instead of "charset.h".
22405 (command_loop_1): Never call direct_output_forward_char before
22406 a non-ASCII character.
22407 (read_char): If Vkeyboard_translate_table is a char table, always
22408 translate a character.
22409
22410 * keymap.c: Include "character.h".
22411 (store_in_keymap): Handle the case that IDX is a cons.
22412 (Fdefine_key): Handle the case that KEY is a cons and the car part
22413 is also a cons (range).
22414 (push_key_description): Adjust for the new character code.
22415 (describe_vector): Call describe_char_table for a char table.
22416 (describe_char_table): New function.
22417
22418 * keymap.h (describe_char_table): Extern it.
22419
22420 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22421 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22422 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22423 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22424 Delete.
22425 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22426 structure.
22427 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22428 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22429 (CHARTAB_SIZE_BITS_3): New macros.
22430 (chartab_size): Extern it.
22431 (struct Lisp_Char_Table): Re-design.
22432 (struct Lisp_Sub_Char_Table): New structure.
22433 (HASH_KEY, HASH_VALUE): Move from fns.c.
22434 (CHARACTERBITS): Define as 22.
22435 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22436 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22437 (GC_SUB_CHAR_TABLE_P): New macro.
22438 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22439 (code_convert_string_norecord): Deleted extern.
22440 (init_character_once, syms_of_character, init_charset)
22441 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22442
22443 * lread.c: Include "character.h".
22444 (read_multibyte): New arg NBYTES.
22445 (read_escape): Change the meaning of returned *BYTEREP.
22446 (to_multibyte): Delete.
22447 (read1): Adjust the handling of char table and string.
22448
22449 * print.c: Include "character.h" instead of "charset.h".
22450 (print_string): Convert 8-bit raw bytes to octal form by
22451 string_escape_byte8.
22452 (print_object): Adjust for the new multibyte form. Print 8-bit
22453 raw bytes always in octal form. Handle sub char table correctly.
22454
22455 * process.c: Include "character.h" instead of "charset.h".
22456 (read_process_output, send_process): Adjust for the new
22457 code-conversion API.
22458
22459 * puresize.h (BASE_PURESIZE): Increase.
22460
22461 * regex.c: Include "character.h" instead of "charset.h".
22462 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22463 (regex_compile): Accept a range whose starting and ending
22464 character have different leading bytes.
22465 (analyse_first): Adjust for the above change.
22466
22467 * search.c: Include "character.h" instead of "charset.h".
22468 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22469 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22470
22471 * syntax.c: Include "character.h" instead of "charset.h".
22472 (syntax_parent_lookup): Delete.
22473 (Fmodify_syntax_entry): Accept a cons as CHAR.
22474 (skip_chars): Adjust for the new multibyte form.
22475 (init_syntax_once): Call char_table_set_range instead of directly
22476 accessing the structure of a char table.
22477
22478 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22479 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22480 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22481 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22482
22483 * term.c: Include "buffer.h" and "character.h".
22484 (encode_terminal_code, write_glyphs): Adjust for the new
22485 code-conversion API.
22486 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22487
22488 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22489
22490 * xdisp.c: Include "character.h".
22491 (get_next_display_element): Adjust for the new multibyte form.
22492 (disp_char_vector): Adjust for the new char table structure.
22493 (decode_mode_spec_coding): Adjust for the new structure of
22494 coding system.
22495 (decode_mode_spec): Adjust for the new code-conversion API.
22496
22497 * xfaces.c: Include "character.h" instead of "charset.h".
22498 (load_face_font): Adjust for the change of choose_face_font and
22499 FS_LOAD_FONT.
22500 (generate_ascii_font): New function.
22501 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22502 (set_font_frame_param): Adjust for the change of choose_face_font.
22503 (free_realized_face): Make it public.
22504 (free_realized_faces_for_fontset): Rename from
22505 free_realized_multibyte_face. Free also faces realized for ASCII.
22506 (choose_face_font): Change arguments. Adjust for the change of
22507 fontset_font_pattern and FS_LOAD_FONT.
22508
22509 * xfns.c: Include "character.h".
22510 (x_encode_text): Adjust for the new code-conversion API.
22511
22512 * xselect.c: Don't include "charset.h".
22513 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22514
22515 * xterm.c: Include "character.h".
22516 (x_encode_char): New argument CHARSET. Change caller.
22517 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22518 Call ENCODE_CHAR instead of SPLIT_CHAR.
22519 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22520 CHAR_WIDTH instead of CHARSET_WIDTH.
22521 (XTread_socket): Adjust for the new code-conversion API.
22522 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22523 (x_load_font): Adjust for the change of struct font.
22524
225252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22526
22527 * xfaces.c (face_at_buffer_position): Remove unused vars.
22528
225292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22530
22531 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22532 Fix overflow checking.
22533
225342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22535
22536 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22537 Cancel previous change.
22538
225392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22540
22541 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22542 ccl->eight_bit_control. Fix check for buffer overflow.
22543 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22544 (ccl_driver): Initialize extra_bytes to 0.
22545
225462008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22547
22548 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22549 return it ORed with ctrl_modifier.
22550
225512008-01-29 Miles Bader <miles@gnu.org>
22552
22553 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22554
225552008-01-28 Jason Rumney <jasonr@gnu.org>
22556
22557 * w32.c (stat): Don't double check for networked drive.
22558
225592008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22560
22561 * window.c (run_window_configuration_change_hook): New function.
22562 Code extracted from set_window_buffer. Set the selected frame.
22563 (set_window_buffer): Use it.
22564 * window.h (run_window_configuration_change_hook): Declare.
22565 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22566
22567 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22568
225692008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22570
22571 * Makefile.in: Remove references to unused macros.
22572
225732008-01-26 Eli Zaretskii <eliz@gnu.org>
22574
22575 * w32.c (g_b_init_get_sid_sub_authority)
22576 (g_b_init_get_sid_sub_authority_count): New static variables.
22577 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22578 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22579 (init_user_info): Use them to retrieve uid and gid.
22580 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22581 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22582 st_uid and st_gid of the file.
22583
225842008-01-26 Jason Rumney <jasonr@gnu.org>
22585
22586 * w32.c (logon_network_drive): New function.
22587 (stat): Use it.
22588
225892008-01-26 Chong Yidong <cyd@stupidchicken.com>
22590
22591 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22592 invisible text covered with an ellipsis.
22593
225942008-01-25 Richard Stallman <rms@gnu.org>
22595
22596 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22597 jump back to beginning. Move some other initializations after that.
22598 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22599 New variables.
22600 (syms_of_xdisp): Init them.
22601
22602 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22603
22604 * buffer.c (reset_buffer_local_variables):
22605 Implement `permanent-local-hook'.
22606 (Qpermanent_local_hook): New variable.
22607 (syms_of_buffer): Init and staticpro it.
22608
226092008-01-25 Michael Albinus <michael.albinus@gmx.de>
22610
22611 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22612
226132008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22614
22615 * fns.c (Fclrhash): Return TABLE.
22616
226172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22618
22619 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22620 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22621 is set even without positional changes.
22622 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22623
22624 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22625
226262008-01-23 Jason Rumney <jasonr@gnu.org>
22627
22628 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22629
22630 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22631 the unicode range available in MULE by locale-coding-system.
22632 Improve dbcs lead byte detection. Set event timestamp and modifiers
22633 earlier.
22634
226352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22636
22637 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22638 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22639 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22640 when used on child processes.
22641
226422008-01-21 Michael Albinus <michael.albinus@gmx.de>
22643
22644 * dbusbind.c (Fdbus_method_return_internal): Rename from
22645 Fdbus_method_return.
22646 (Fdbus_unregister_object): Move to dbus.el.
22647 (Fdbus_call_method, Fdbus_method_return_internal)
22648 (Fdbus_send_signal): Improve debug messages.
22649
226502008-01-20 Martin Rudalics <rudalics@gmx.at>
22651
22652 * undo.c (undo_inhibit_record_point): New variable.
22653 (syms_of_undo): Initialize it.
22654 (record_point): Don't record point when undo_inhibit_record_point
22655 is set.
22656
226572008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22658
22659 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22660
22661 * xdisp.c (Qauto_hscroll_mode): New var.
22662 (syms_of_xdisp): Initialize it.
22663 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22664 window's buffer.
22665 (hscroll_windows): Don't check automatic_hscrolling_p here.
22666
22667 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22668 vscroll if we're setting window-buffer to the value it already has.
22669
226702008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22671
22672 * m/intel386.h: Remove references to XENIX.
22673
226742008-01-17 Andreas Schwab <schwab@suse.de>
22675
22676 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22677 instead of HAVE_X86_64_LIB64_DIR.
22678 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22679
226802008-01-17 Glenn Morris <rgm@gnu.org>
22681
22682 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22683 to HAVE_X86_64_LIB64_DIR.
22684
226852008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22686
22687 * s/irix3-3.h:
22688 * s/irix4-0.h:
22689 * s/386-ix.h:
22690 * s/domain.h:
22691 * s/hpux9-x11r4.h:
22692 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22693
22694 * sysdep.c: Remove code containing references to symbols defined
22695 by unsupported systems.
22696
226972008-01-16 Glenn Morris <rgm@gnu.org>
22698
22699 * coding.c (select-safe-coding-system-function): Doc fix.
22700
227012008-01-15 Glenn Morris <rgm@gnu.org>
22702
22703 * config.in: Revert 2008-01-13 change: this is a generated file.
22704
227052008-01-13 Tom Tromey <tromey@redhat.com>
22706
22707 * lisp.h: Fix typo.
22708
227092008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22710
22711 * m/sequent-ptx.h:
22712 * m/sequent.h:
22713 * s/ptx.h:
22714 * s/ptx4-2.h:
22715 * s/ptx4.h: Remove files for systems no longer supported.
22716
22717 * callproc.c (Fcall_process): Fix previous change.
22718
227192008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22720
22721 * unexsunos4.c: Remove file, system not supported anymore.
22722
22723 * m/mips.h:
22724 * m/intel386.h:
22725 * callproc.c:
22726 * config.in:
22727 * ecrt0.c:
22728 * emacs.c:
22729 * fileio.c:
22730 * frame.c:
22731 * getpagesize.h:
22732 * keyboard.c:
22733 * lread.c:
22734 * process.c:
22735 * puresize.h:
22736 * sysdep.c:
22737 * systty.h:
22738 * syswait.h:
22739 * unexec.c:
22740 * xdisp.c:
22741 * alloc.c: Remove code containing references to symbols defined by
22742 unsupported systems.
22743
227442008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22745
22746 * coding.c (detect_coding_mask): Fix previous change.
22747
227482008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22749
22750 * coding.c (detect_coding_iso2022): New arg
22751 latin_extra_code_state. Allow Latin extra codes only
22752 when *latin_extra_code_state is nonzero.
22753 (detect_coding_mask): If there is a NULL byte, detect the encoding
22754 as UTF-16 or binary. If Latin extra codes exist, detect the
22755 encoding as ISO-2022 only when there's no other proper encoding is
22756 found.
22757
227582008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22759
22760 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22761 #ifdef MAC_OS.
22762
227632008-01-08 Richard Stallman <rms@gnu.org>
22764
22765 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22766
227672008-01-06 Nick Roberts <nickrob@snap.net.nz>
22768
22769 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22770 menu bar in parentheses.
22771
227722008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22773
22774 * m/7300.h:
22775 * m/acorn.h:
22776 * m/alliant-2800.h:
22777 * m/alliant.h:
22778 * m/alliant1.h:
22779 * m/alliant4.h:
22780 * m/altos.h:
22781 * m/amdahl.h:
22782 * m/apollo.h:
22783 * m/att3b.h:
22784 * m/aviion-intel.h:
22785 * m/aviion.h:
22786 * m/celerity.h:
22787 * m/clipper.h:
22788 * m/cnvrgnt.h:
22789 * m/convex.h:
22790 * m/cydra5.h:
22791 * m/delta88k.h:
22792 * m/dpx2.h:
22793 * m/dual.h:
22794 * m/elxsi.h:
22795 * m/f301.h:
22796 * m/gould-np1.h:
22797 * m/gould.h:
22798 * m/i860.h:
22799 * m/ibmps2-aix.h:
22800 * m/ibmrt-aix.h:
22801 * m/ibmrt.h:
22802 * m/irist.h:
22803 * m/is386.h:
22804 * m/isi-ov.h:
22805 * m/mega68.h:
22806 * m/mg1.h:
22807 * m/news-r6.h:
22808 * m/news-risc.h:
22809 * m/news.h:
22810 * m/nh3000.h:
22811 * m/nh4000.h:
22812 * m/ns16000.h:
22813 * m/ns32000.h:
22814 * m/nu.h:
22815 * m/orion.h:
22816 * m/orion105.h:
22817 * m/paragon.h:
22818 * m/pfa50.h:
22819 * m/plexus.h:
22820 * m/pyramid.h:
22821 * m/pyrmips.h:
22822 * m/sh3el.h:
22823 * m/sps7.h:
22824 * m/sr2k.h:
22825 * m/stride.h:
22826 * m/sun1.h:
22827 * m/sun2.h:
22828 * m/sun3-68881.h:
22829 * m/sun3-fpa.h:
22830 * m/sun3-soft.h:
22831 * m/sun3.h:
22832 * m/sun386.h:
22833 * m/symmetry.h:
22834 * m/tad68k.h:
22835 * m/tahoe.h:
22836 * m/targon31.h:
22837 * m/tek4300.h:
22838 * m/tekxd88.h:
22839 * m/tower32.h:
22840 * m/tower32v3.h:
22841 * m/ustation.h:
22842 * m/wicat.h:
22843 * m/xps100.h:
22844 * s/cxux.h:
22845 * s/cxux7.h:
22846 * s/dgux.h:
22847 * s/dgux4.h:
22848 * s/dgux5-4-3.h:
22849 * s/dgux5-4r2.h:
22850 * s/esix.h:
22851 * s/esix5r4.h:
22852 * s/hiuxmpp.h:
22853 * s/hiuxwe2.h:
22854 * s/iris3-5.h:
22855 * s/iris3-6.h:
22856 * s/isc2-2.h:
22857 * s/isc3-0.h:
22858 * s/isc4-0.h:
22859 * s/isc4-1.h:
22860 * s/newsos5.h:
22861 * s/newsos6.h:
22862 * s/osf1.h:
22863 * s/osf5-0.h:
22864 * s/riscix1-1.h:
22865 * s/riscix12.h:
22866 * s/sco4.h:
22867 * s/sco5.h:
22868 * s/sunos4-0.h:
22869 * s/sunos4-1.h:
22870 * s/sunos413.h:
22871 * s/sunos4shr.h:
22872 * s/umax.h:
22873 * s/unipl5-2.h:
22874 * s/xenix.h:
22875 * cxux-crt0.s:
22876 * unexapollo.c:
22877 * unexconvex.c:
22878 * unexenix.c:
22879 * unexsni.c: Remove files for systems no longer supported.
22880
22881 * m/intel386.h: Remove references to unsupported systems.
22882
22883 * w32.c (get_emacs_configuration): Remove reference to i860.
22884
22885 * sysdep.c: Remove dead code.
22886
228872008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22888
22889 * s/rtu.h:
22890 * m/masscomp.h: Remove files. Platform is obsolete.
22891
228922008-01-04 Michael Albinus <michael.albinus@gmx.de>
22893
22894 * dbusbind.c (Fdbus_method_return): New function.
22895 (xd_read_message): Add the serial number to the event.
22896 (Fdbus_register_method): Activate the function.
22897
228982008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22899
22900 * keyboard.c (read_key_sequence): Fix typo.
22901
229022008-01-03 Michael Albinus <michael.albinus@gmx.de>
22903
22904 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22905 (xd_signature, xd_append_arg): Handle element type detection for
22906 empty arrays.
22907 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22908 SDATA () calls; this must be solved more general.
22909 (Fdbus_register_signal): Use SBYTES instead of strlen.
22910
229112008-01-03 Magnus Henoch <magnus@zemdatav>
22912
22913 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22914 unsigned int for byte values (necessary for big-endian platform).
22915 (Fdbus_call_method): Handle the case of no returned arguments.
22916
229172007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22918
22919 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22920
229212007-12-31 Magnus Henoch <mange@freemail.hu>
22922
22923 * dbusbind.c (xd_signature): Signature of variant is just "v".
22924
229252007-12-30 Michael Albinus <michael.albinus@gmx.de>
22926
22927 * dbusbind.c: Fix several errors and compiler warnings.
22928 Reported by Tom Tromey <tromey@redhat.com>.
22929 (XD_ERROR, XD_DEBUG_MESSAGE)
22930 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22931 (xd_append_arg): Part for basic D-Bus types rewritten.
22932 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22933 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22934 appropriate.
22935 (xd_read_message): Return Qnil. Don't signal an error; it is not
22936 useful during event reading.
22937 (Fdbus_register_signal): Signal an error if the check for
22938 FUNCTIONP fails.
22939 (Fdbus_register_method): New function. The implementation is not
22940 complete, the call of the function signals an error therefore.
22941 (Fdbus_unregister_object): New function, renamed from
22942 Fdbus_unregister_signal. The initial check signals an error, if
22943 the object is not well formed.
22944
229452007-12-30 Richard Stallman <rms@gnu.org>
22946
22947 * textprop.c (get_char_property_and_overlay):
22948 Signal error if POSITION is out of range in a buffer.
22949
229502007-12-29 Martin Rudalics <rudalics@gmx.at>
22951
22952 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22953 because the original parameters are in pure storage now.
22954
229552007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22956
22957 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22958
229592007-12-22 Eli Zaretskii <eliz@gnu.org>
22960
22961 * callint.c (syms_of_callint) <command-history>: Add reference to
22962 history-length in the doc string.
22963
229642007-12-17 Jason Rumney <jasonr@gnu.org>
22965
22966 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22967 before passing as wParam.
22968
229692007-12-22 Michael Albinus <michael.albinus@gmx.de>
22970
22971 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22972 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22973 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22974 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22975 as number.
22976 (Fdbus_call_method): Fix docstring.
22977
229782007-12-21 Michael Albinus <michael.albinus@gmx.de>
22979
22980 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22981 New macros.
22982 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22983 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22984 Simplify.
22985 (xd_signature): New function.
22986 (xd_append_arg): Compute also signatures. Major rewrite.
22987 (xd_retrieve_arg): Make debug messages friendly.
22988 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22989 Check for signatures of arguments.
22990
229912007-12-19 Michael Albinus <michael.albinus@gmx.de>
22992
22993 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22994 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22995 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22996 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22997 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22998 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22999 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23000 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23001 (xd_retrieve_value): Remove. Functionality included in ...
23002 (xd_append_arg): New function.
23003 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23004
230052007-12-16 Michael Albinus <michael.albinus@gmx.de>
23006
23007 * dbusbind.c (top): Include <stdio.h>.
23008 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23009 dbus_message_new_method_call and dbus_message_new_signal.
23010 (Fdbus_register_signal): Rename unique_name to uname.
23011 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23012 non-existing unique name. Fix typos in matching rule. Return an
23013 object which is useful in Fdbus_unregister_signal.
23014 (Fdbus_unregister_signal): Reimplementation, in order to remove
23015 only the corresponding entry.
23016 (Vdbus_registered_functions_table): Change the order of entries.
23017 Apply these changes in xd_read_message and Fdbus_register_signal.
23018
230192007-12-16 Andreas Schwab <schwab@suse.de>
23020
23021 * fileio.c (Finsert_file_contents): Fix overflow check to not
23022 depend on undefined integer overflow.
23023
230242007-12-14 Jason Rumney <jasonr@gnu.org>
23025
23026 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23027 for characters above 127.
23028
230292007-12-13 Jason Rumney <jasonr@gnu.org>
23030
23031 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23032 before dereferencing array.
23033 (lookup_vk_code): Remove zero comparison.
23034
230352007-12-14 Michael Albinus <michael.albinus@gmx.de>
23036
23037 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23038 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23039 Use `unsigned int' instead of `uint'.
23040 (xd_read_message, Fdbus_register_signal): Split expressions into
23041 multiple lines before operators "&&" and "||", according to the
23042 GNU Coding Standards.
23043
230442007-12-14 Eli Zaretskii <eliz@gnu.org>
23045
23046 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23047
230482007-12-12 Juri Linkov <juri@jurta.org>
23049
23050 * buffer.c (Frename_buffer): In interactive spec replace
23051 `read-buffer' with `read-string' that uses `buffer-name-history'
23052 as history, and the current buffer's name as default.
23053
230542007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23055
23056 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23057 manipulating the backtrace manually.
23058 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23059 (struct backtrace, backtrace_list): Remove.
23060 (command_loop_1): Remove dead var `no_direct'.
23061
23062 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23063 preserve non-built-in buffer-local variables.
23064 (Fkill_all_local_variables): Don't re-create&re-set permanent
23065 buffer-local variables.
23066
230672007-12-09 Juri Linkov <juri@jurta.org>
23068
23069 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23070 Lisp code that uses `read-buffer' with current buffer as default.
23071
230722007-12-08 Michael Albinus <michael.albinus@gmx.de>
23073
23074 * dbusbind.c (xd_read_message): Generate an event for every
23075 registered handler. There might be several handlers registered
23076 for the same signal.
23077 (Fdbus_register_signal): Don't overwrite a registration for the
23078 same signal. Add a new registration if handlers are different.
23079 (Vdbus_registered_functions_table): Rework doc string.
23080
230812007-12-07 Michael Albinus <michael.albinus@gmx.de>
23082
23083 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23084 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23085 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23086 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23087 Unify argument lists.
23088 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23089 arguments and hash table keys. Use unique name for service.
23090 (Fdbus_unregister_signal): Remove checks.
23091 (Vdbus_registered_functions_table): Fix doc string.
23092
230932007-12-05 Magnus Henoch <mange@freemail.hu>
23094
23095 * process.c (make_process): Initialize pty_flag to 0.
23096
230972007-12-05 Jason Rumney <jasonr@gnu.org>
23098
23099 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23100 specified XBMs.
23101
231022007-12-05 Richard Stallman <rms@gnu.org>
23103
23104 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23105
231062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23107
23108 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23109 New variable.
23110 (mac_try_close_socket) [MAC_OSX]: New function.
23111 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23112 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23113
23114 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23115 Use mac_try_close_socket.
23116
231172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23118
23119 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23120 reloc_base.
23121 (copy_dysymtab): Compute relocation base here.
23122 (rebase_reloc_address) [__ppc64__]: New function.
23123 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23124 changed.
23125
231262007-12-05 Jason Rumney <jasonr@gnu.org>
23127
23128 * w32proc.c (sys_spawnve): Quote args with wildcards.
23129
231302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23131
23132 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23133 __objc_* sections.
23134 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23135
231362007-12-05 Michael Albinus <michael.albinus@gmx.de>
23137
23138 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23139 Move check for Vdbus_registered_functions_table to
23140 xd_read_queued_messages.
23141 (xd_read_queued_messages): Protect xd_read_message calls by
23142 internal_condition_case_1.
23143
231442007-12-04 Michael Albinus <michael.albinus@gmx.de>
23145
23146 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23147 Qdbus_system_bus and Qdbus_session_bus, respectively.
23148 (Vdbus_intern_symbols): Remove.
23149 (Vdbus_registered_functions_table): New hash table.
23150 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23151 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23152 Rewrite in order to manage registered functions by hash table
23153 Vdbus_registered_functions_table.
23154
231552007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23156
23157 * xterm.c: Update URL to Window Manager Specification in comment.
23158
231592007-12-02 Michael Albinus <michael.albinus@gmx.de>
23160
23161 * config.in (HAVE_DBUS): Add.
23162
23163 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23164 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23165 (obj): Add $(DBUS_OBJ).
23166 (LIBES): Add $(DBUS_LIBS).
23167 (dbusbind.o): New target.
23168
23169 * dbusbind.c: New file.
23170
23171 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23172
23173 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23174 (Qdbus_event): New Lisp symbol.
23175 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23176 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23177 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23178
23179 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23180
231812007-12-01 Richard Stallman <rms@gnu.org>
23182
23183 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23184
231852007-11-30 Jason Rumney <jasonr@gnu.org>
23186
23187 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23188 (w32con_reset_terminal_modes): Clear screen buffer.
23189 (w32_face_attributes): Don't use color indexes that are out of range.
23190 Only reverse the default colors.
23191
23192 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23193 WINDOWSNT.
23194
23195 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23196
231972007-11-29 Jason Rumney <jasonr@gnu.org>
23198
23199 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23200 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23201 if the terminal colors are initialized.
23202 (unspecified_fg, unspecified_bg): Remove unused declarations.
23203
232042007-11-29 Andreas Schwab <schwab@suse.de>
23205
23206 * keyboard.c (apply_modifiers): Fix typo.
23207
232082007-11-29 Richard Stallman <rms@gnu.org>
23209
23210 * keymap.c (Fcurrent_local_map): Doc fix.
23211
232122007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
23213
23214 * s/gnu-kfreebsd.h: New file.
23215
232162007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
23217
23218 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
23219 Don't cast redundantly.
23220
23221 * keyboard.c (KEY_TO_CHAR): New macro.
23222 (parse_modifiers, apply_modifiers): Accept integer arguments.
23223 (read_key_sequence): Use them to unify the "shift->unshift" mapping
23224 for chars and symbol keys.
23225 After doing such remapping, apply function-key-map again.
23226
232272007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
23228
23229 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
23230 compiled anymore.
23231
232322007-11-26 Andreas Schwab <schwab@suse.de>
23233
23234 * process.c (list_processes_1): Fix indentation level of the
23235 command column.
23236
232372007-11-23 Andreas Schwab <schwab@suse.de>
23238
23239 * editfns.c (Fformat): Handle %c specially since it requires the
23240 argument to be of type int.
23241
232422007-11-23 Markus Triska <markus.triska@gmx.at>
23243
23244 * emacs.c (main): Call init_editfns before init_process, since
23245 init_process sets Vprocess_connection_type depending on OS release.
23246
232472007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
23248
23249 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
23250 (find_symbol_value): Use do_symval_forwarding.
23251
23252 * data.c (set_internal): Set the value in the `cons-cell' (for
23253 Buffer_Local_values) not only for frame-local variables.
23254
232552007-11-22 Andreas Schwab <schwab@suse.de>
23256
23257 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
23258 values to sprintf.
23259 * keymap.c (Fsingle_key_description): Likewise.
23260 * print.c (print_object): Likewise.
23261
232622007-11-22 Jan Djärv <jan.h.d@swipnet.se>
23263
23264 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
23265 file for image is nil.
23266
232672007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
23268
23269 * term.c: Include stdarg.h.
23270 (fatal): Implement using varargs.
23271 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
23272
232732007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23274
23275 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
23276 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
23277 Update call to buffer_slot_type_mismatch.
23278 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
23279 (buffer_slot_type_mismatch): Update.
23280 * buffer.c (buffer_local_types): Remove.
23281 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
23282 (defvar_per_buffer): Set the type in the buffer_objfwd.
23283
232842007-11-21 Jason Rumney <jasonr@gnu.org>
23285
23286 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
23287 CreateFileMapping returns NULL on failure.
23288
232892007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
23290
23291 * search.c (Fset_match_data): Remove the `evaporate' feature.
23292 (unwind_set_match_data): Don't use the `evaporate' feature.
23293
232942007-11-21 Jason Rumney <jasonr@gnu.org>
23295
23296 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
23297
23298 * w32console.c (w32con_write_glyphs): Remove unused variables.
23299
233002007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
23301
23302 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
23303
23304 * s/darwin.h (MULTI_KBOARD): Remove.
23305
23306 * macfns.c (x_create_tip_frame, Fx_create_frame)
23307 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
23308
233092007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
23310
23311 * buffer.c (Fbuffer_local_value): Remove redundant test.
23312 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
23313 than in `current-buffer' to match the comment.
23314 Do the swap using swap_in_global_binding.
23315
23316 * data.c (store_symval_forwarding, set_internal):
23317 * eval.c (specbind): Remove dead code.
23318
23319 * coding.c (detect_coding, Fupdate_coding_systems_internal):
23320 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
23321 Since we do not want to see internal Lisp_*fwd objects here.
23322
233232007-11-18 Jan Djärv <jan.h.d@swipnet.se>
23324
23325 * sysdep.c (init_system_name): Use getaddrinfo if available.
23326
23327 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
23328 (x_scroll_bar_note_movement): start, end, with, height in struct
23329 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
23330
233312007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
23332
23333 * puresize.h (BASE_PURESIZE): Increase to 1190000.
23334
233352007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23338 This undoes Richard's change of 14-Oct-2002.
23339
23340 * alloc.c (allocate_other_vector):
23341 * lisp.h (allocate_other_vector): Remove.
23342
23343 * window.c (struct save_window_data): Move non-lisp data to the end
23344 and make it `int' rather than Lisp_Object.
23345 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23346 Done wrap/unwrap integer values.
23347 (Fset_window_configuration, compare_window_configurations):
23348 Update use of fields to their new types.
23349
23350 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23351 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23352 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23353 (SET_SCROLL_BAR_X_WINDOW): Remove.
23354 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23355 Access the new x_window field directly.
23356 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23357 Don't wrap/unwrap integers into Lisp_Objects.
23358 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23359 (x_scroll_bar_report_motion):
23360 Don't wrap/unwrap integers into Lisp_Objects.
23361 (x_term_init): Use SDATA.
23362 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23363 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23364 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23365 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23366 * xfns.c (x_set_background_color):
23367 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23368 Access the new x_window field directly.
23369
23370 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23371 (allocate_pseudovector): Make non-static.
23372
23373 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23374 (allocate_pseudovector): Declare.
23375 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23376
233772007-11-15 Andreas Schwab <schwab@suse.de>
23378
23379 * editfns.c (Fformat): Correctly format EMACS_INT values.
23380 Also take precision into account when formatting an integer.
23381
23382 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23383
233842007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23385
23386 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23387 (syms_of_keyboard): Defsubr it.
23388
23389 * data.c (swap_in_global_binding): Fix longstanding bug where
23390 store_symval_forwarding was not called with the right second argument,
23391 thus causing objfwd-ing from being dropped.
23392
233932007-11-14 Juanma Barranquero <lekktu@gmail.com>
23394
23395 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23396 (Fx_display_pixel_height, Fx_display_planes)
23397 (Fx_display_color_cells, Fx_server_max_request_size)
23398 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23399 (Fx_display_visual_class, Fx_display_save_under):
23400 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23401 (Fx_display_pixel_height, Fx_display_planes)
23402 (Fx_display_color_cells, Fx_server_max_request_size)
23403 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23404 (Fx_display_mm_height, Fx_display_mm_width)
23405 (Fx_display_backing_store, Fx_display_visual_class)
23406 (Fw32_select_font, Fx_display_save_under):
23407 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23408 (Fx_display_pixel_height, Fx_display_planes)
23409 (Fx_display_color_cells, Fx_server_max_request_size)
23410 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23411 (Fx_display_save_under): Fix typos in docstrings.
23412
234132007-11-14 Juanma Barranquero <lekktu@gmail.com>
23414
23415 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23416 corresponding to deleted entries; they are an implementation detail.
23417 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23418 Remove variables.
23419 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23420 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23421 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23422 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23423 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23424 (Fw32_define_rgb_color, Fw32_load_color_file)
23425 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23426 Fix typos in docstrings.
23427 (Fx_server_version): Reflow docstring.
23428 (Fw32_shell_execute): Doc fixes.
23429
234302007-11-13 Juanma Barranquero <lekktu@gmail.com>
23431
23432 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23433 if w32_parse_hot_key returned nil.
23434
234352007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23436
23437 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23438
234392007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23440
aac0c6e3
MR
23441 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23442
23443 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23444
23445 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23446 Remove W32_SCROLL_BAR_CLICK_EVENT.
23447
23448 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23449 Add MULTIMEDIA_KEY_EVENT.
23450
23451 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23452 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23453 (make_lispy_event) [WINDOWSNT]: Use it to translate
23454 MULTIMEDIA_KEY_EVENT.
23455
23456 * w32term.h (WM_APPCOMMAND): Define if not already.
23457 (GET_APPCOMMAND_LPARAM): Likewise.
23458
23459 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23460 WM_APPCOMMAND.
23461
23462 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23463 (syms_of_w32fns): Export and initialize it.
23464 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23465
234662007-11-09 Chong Yidong <cyd@stupidchicken.com>
23467
23468 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23469 twice.
23470
23471 * xdisp.c (handle_face_prop): Fix last change.
23472
234732007-11-09 Richard Stallman <rms@gnu.org>
23474
23475 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23476 not just for after-strings and before-strings.
23477 Call face_for_overlay_string and pass the overlay to it.
23478 (handle_display_prop): Determine whether property came from an overlay.
23479 Pass OVERLAY arg to handle_single_display_spec.
23480 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23481 (load_overlay_strings): Fill in it->string_overlays.
23482 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23483
23484 * xfaces.c (face_for_overlay_string): Function renamed from
23485 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23486
23487 * dispextern.h (struct it): New elt string_overlays.
23488 New elt from_overlay, also in stack.
23489 Rearrange a few elements.
23490 (face_for_overlay_string): Decl renamed from
23491 face_at_buffer_position_no_overlays, and add argument.
23492
234932007-11-09 Richard Stallman <rms@gnu.org>
23494
23495 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23496 to get the base face for an overlay string.
23497
23498 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23499
23500 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23501
23502 * xdisp.c (handle_stop): Move some code out of loop.
23503
235042007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23505
23506 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23507 Fix conversion from Lisp object to ATSUFontID.
23508
235092007-11-09 Jason Rumney <jasonr@gnu.org>
23510
23511 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23512
235132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23514
23515 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23516 Don't assume regions are aligned to page boundary.
23517 (print_load_command_name): Add LC_UUID if defined.
23518
235192007-11-09 Richard Stallman <rms@gnu.org>
23520
23521 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23522
235232007-11-07 Jason Rumney <jasonr@gnu.org>
23524
23525 * s/windows95.h: Remove.
23526
235272007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23528
23529 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23530 abort with a message on unhandled store_type values.
23531
235322007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23533
23534 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23535 Remove HAVE_X11R5 and HAVE_X11R4.
23536
235372007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23538
23539 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23540
235412007-11-01 Johan Bockgård <bojohan@gnu.org>
23542
23543 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23544 Don't set s->stippled_p here, since it has already been set by
23545 x_set_glyph_string_gc from x_draw_glyph_string.
23546
235472007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23548
23549 * sunfns.c: Remove file.
23550
23551 * m/sun386.h:
23552 * m/sun2.h:
23553 * m/sparc.h: Remove Sun windows code.
23554
235552007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23556
23557 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23558 (init_keyboard): Set current_kboard's window-system to nil.
23559 (tty_read_avail_input): Typo.
23560 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23561
235622007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23563
23564 * s/usg5-4.h:
23565 * s/usg5-3.h:
23566 * s/ptx.h:
23567 * m/is386.h:
23568 * m/ibmps2-aix.h:
23569 * Makefile.in: Remove all mentions of X10.
23570
23571 * dispnew.c (syms_of_display): Don't mention version 10.
23572
235732007-10-28 Juanma Barranquero <lekktu@gmail.com>
23574
23575 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23576 ($(BLD)/abbrev.$(O)): Remove.
23577
235782007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23579
23580 Rewrite abbrev.c in Elisp.
23581 * image.c (Qcount): Don't declare as extern.
23582 (syms_of_image): Initialize and staticpro `Qcount'.
23583 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23584 * emacs.c (main): Don't call syms_of_abbrev.
23585 * Makefile.in (obj): Remove abbrev.o.
23586 (abbrev.o): Remove.
23587 * abbrev.c: Remove.
23588
235892007-10-26 Martin Rudalics <rudalics@gmx.at>
23590
23591 * window.c (window_min_size_2): Don't count header-line.
23592
235932007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23594
23595 * frame.h (struct frame): Move all bit fields after the first bit
23596 field to take advantage of the available space. Group all the
23597 chars together to reduce wasted space due to padding.
23598
235992007-10-26 Juanma Barranquero <lekktu@gmail.com>
23600
23601 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23602
23603 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23604 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23605 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23606 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23607 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23608 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23609 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23610 (last_marked, mark_object_loop_halt): Make static.
23611
23612 * frame.c (syms_of_frame) <delete-frame-functions>:
23613 Fix typo in docstring.
23614
236152007-10-25 Juanma Barranquero <lekktu@gmail.com>
23616
23617 * w32.c (init_environment): Fix tiny memory leak.
23618 (w32_get_resource): Remove unused variable `ok'.
23619
236202007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23621
23622 Make `window-system' into a keyboard-local variable (rather than
23623 frame-local as done originally by multi-tty).
23624
23625 * keyboard.h (struct kboard): Add Vwindow_system.
23626 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23627 (mark_kboards): Mark Vwindow_system.
23628
23629 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23630 (init_display): Don't set the obsolete `window-system' frame-param.
23631
23632 * xterm.c (x_term_init):
23633 * w32term.c (w32_create_terminal):
23634 * term.c (init_tty): Set Vwindow_system.
23635 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23636 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23637
23638 * xfns.c (Fx_create_frame, x_create_tip_frame):
23639 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23640 * macfns.c (Fx_create_frame):
23641 Don't set the obsolete `window-system' frame-param.
23642
23643 * frame.h (Qwindow_system): Remove.
23644 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23645 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23646
236472007-10-24 Richard Stallman <rms@gnu.org>
23648
23649 * frame.c (x_figure_window_size): For fullscreen case,
23650 set USPosition | PPosition without clobbering rest of window_prompting.
23651
23652 * keyboard.c (Fcurrent_idle_time): Doc fix.
23653
23654 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23655
236562007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23657
23658 * process.c (unwind_request_sigio): Only define if __ultrix__.
23659
23660 * callproc.c (child_setup): Remove spurious *.
23661
23662 * lisp.h (Fget_text_property): Declare.
23663 (have_menus_p): Declare it here rather than in sys-dep header files.
23664 * macterm.h (have_menus_p):
23665 * msdos.h (have_menus_p):
23666 * xterm.h (have_menus_p): Remove.
23667
23668 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23669 (Fmake_variable_frame_local): Just check the variable's const-ness
23670 rather than checking nil or t.
23671
236722007-10-22 Jason Rumney <jasonr@gnu.org>
23673
23674 * w32fns.c: Include math.h.
23675 (w32_abort): Declaration moved to nt/config.nt.
23676
23677 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23678 (abort): Redefinition moved to nt/config.nt.
23679
23680 * m/windowsnt.h: Remove.
23681
236822007-10-22 Juanma Barranquero <lekktu@gmail.com>
23683
23684 * emacs.c (Fdump_emacs): Fix typo in message.
23685 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23686 <installation-directory>: Reflow docstring.
23687
236882007-10-22 Juri Linkov <juri@jurta.org>
23689
23690 * minibuf.c: Allow minibuffer default to be a list of default values.
23691 With empty input use the first element of this list as returned default.
23692 (string_to_object)
23693 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23694 (read_minibuf): If defalt is cons, set histstring to its car.
23695 (Fread_string): If default_value is cons, set val to its car.
23696 (Fread_buffer): If def is cons, use its car.
23697 (Fcompleting_read): If defalt is cons, set val to its car.
23698
236992007-10-21 Michael Albinus <michael.albinus@gmx.de>
23700
23701 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23702
237032007-10-20 Juanma Barranquero <lekktu@gmail.com>
23704
23705 * doc.c (Fdocumentation): Check for advice in all cases.
23706
237072007-10-19 Chong Yidong <cyd@stupidchicken.com>
23708
23709 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23710
237112007-10-19 Richard Stallman <rms@gnu.org>
23712
23713 * doc.c (Fdocumentation): Check for and handle an advised function.
23714
237152007-10-19 Juanma Barranquero <lekktu@gmail.com>
23716
23717 * process.c (Fset_process_filter): Doc fix.
23718
237192007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23720
23721 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23722 which caused key-translation-map to applied repeatedly (thus breaking
23723 double-mode).
23724
237252007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23726
23727 * xselect.c (x_own_selection, x_handle_selection_clear)
23728 (x_clear_frame_selections):
23729 * w32menu.c (list_of_panes, list_of_items):
23730 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23731 * textprop.c (validate_plist, interval_has_all_properties)
23732 (interval_has_some_properties, interval_has_some_properties_list)
23733 (add_properties, text_property_list):
23734 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23735 * minibuf.c (Fassoc_string):
23736 * macselect.c (x_own_selection, x_clear_frame_selections)
23737 (Fx_disown_selection_internal):
23738 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23739 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23740
237412007-10-17 Chong Yidong <cyd@stupidchicken.com>
23742
23743 * process.c: Link to libs for calling res_init() if available.
23744 (Fmake_network_process): Call res_init() before getaddrinfo or
23745 gethostbyname, if possible.
23746
237472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23748
23749 * lread.c (read1): Set pvectype for char_tables.
23750
23751 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23752 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23753 Add type checks.
23754 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23755
23756 * alloc.c (free_misc): Use XMISCTYPE.
23757 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23758
237592007-10-17 Glenn Morris <rgm@gnu.org>
23760
23761 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23762 (syms_of_minibuf): Add Qcompletion_ignore_case.
23763 * dired.c (Qcompletion_ignore_case): Change to external.
23764 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23765 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23766 (Fread_file_name): Use it rather than intern'ing.
23767
23768 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23769 (Fread_coding_system): Ignore case of user input.
23770
237712007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23772
23773 * xdisp.c (handle_display_prop): Ignore display specs after
23774 replacing one when string text is being replaced.
23775 (handle_single_display_spec): Pretend as if characters with display
23776 property haven't been consumed only when buffer text is being replaced.
23777
237782007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23779
23780 * xfns.c (Fx_create_frame, Fx_display_list):
23781 * window.c (window_fixed_size_p, enlarge_window)
23782 (shrink_window_lowest_first):
23783 * macterm.c (init_font_name_table):
23784 * macfns.c (Fx_create_frame, Fx_display_list):
23785 * lread.c (close_load_descs):
23786 * keyboard.c (read_char_x_menu_prompt):
23787 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23788 * coding.c (code_convert_region_unwind): Test the type of an object
23789 rather than just !NILP before extracting data from it.
23790
23791 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23792
23793 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23794 (XMISCANY): New macro.
23795 (XMISCTYPE): Use it.
23796 (struct Lisp_Misc_Any): New type.
23797 (union Lisp_Misc): Use it.
23798 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23799 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23800 (find_symbol_value, set_internal, default_value, Fset_default)
23801 (Fmake_variable_buffer_local, Fmake_local_variable)
23802 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23803 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23804 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23805 * alloc.c (allocate_buffer): Set the size and tag.
23806 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23807 Use XMISCANY.
23808 (die): Follow the GNU convention for error messages.
23809 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23810 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23811 tag any more.
23812 (set_buffer_internal_1):
23813 * frame.c (store_frame_param):
23814 * eval.c (specbind):
23815 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23816
23817 * doc.c (Fsnarf_documentation): Simplify.
23818
238192007-10-14 Juanma Barranquero <lekktu@gmail.com>
23820
23821 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23822 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23823
238242007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23825
23826 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23827
238282007-10-14 Juanma Barranquero <lekktu@gmail.com>
23829
23830 * eval.c (do_autoload): Don't save autoloads.
23831
23832 * data.c (Ffset): Save autoload of the function being set.
23833
238342007-10-07 John Paul Wallington <jpw@pobox.com>
23835
23836 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23837 parameter before setting up faces.
23838
238392007-10-13 Eli Zaretskii <eliz@gnu.org>
23840
23841 * ccl.c (Fregister_code_conversion_map):
23842 * keyboard.c (append_tool_bar_item): Reformat last change.
23843
23844 * lisp.h (eabs): Rename from `abs'. All callers changed.
23845
238462007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23847
23848 * buffer.c (add_overlay_mod_hooklist):
23849 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23850 * fontset.c (make_fontset):
23851 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23852 (append_tool_bar_item):
23853 * macmenu.c (grow_menu_items):
23854 * w32menu.c (grow_menu_items):
23855 * xmenu.c (grow_menu_items): Use larger_vector.
23856
238572007-10-13 Eli Zaretskii <eliz@gnu.org>
23858
23859 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23860 selected frame'' on MSDOS).
23861
238622007-10-12 Martin Rudalics <rudalics@gmx.at>
23863
23864 * frame.c (Qexplicit_name): New variable.
23865 (x_report_frame_params): Report it in parameter alist.
23866 (syms_of_frame): Intern and staticpro it.
23867
238682007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23869
23870 * macfns.c (x_create_tip_frame): Set terminal for frame.
23871
238722007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23873
23874 * frame.c (Qenvironment): Remove.
23875 (syms_of_frame) <Qenvironment>: Don't initialize.
23876 (Fdelete_frame): Don't treat the `environment' param specially.
23877 * frame.h (Qenvironment): Don't declare.
23878 * callproc.c (set_initial_environment): Don't set unused frame param.
23879
23880 * frame.c (Fframe_with_environment): Remove.
23881 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23882
23883 * lisp.h (Fframe_with_environment): Don't declare.
23884
238852007-10-10 Juanma Barranquero <lekktu@gmail.com>
23886
23887 * indent.c (indent_tabs_mode, last_known_column)
23888 (last_known_column_modified): Make static.
23889 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23890
238912007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23892
23893 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23894
238952007-10-09 Jason Rumney <jasonr@gnu.org>
23896
23897 * w32term.c (x_set_window_size): Disable code that attempts to tell
23898 Lisp code about a size change before it actually happens.
23899
239002007-10-09 Richard Stallman <rms@gnu.org>
23901
23902 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23903 return HANDLED_RETURN.
23904
239052007-10-08 Martin Rudalics <rudalics@gmx.at>
23906
23907 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23908 when there's an unread command event.
23909
23910 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23911 window autoselection act appropriately when leaving selected frame.
23912 (syms_of_frame): Initialize focus_follows_mouse.
23913 * frame.h (focus_follows_mouse): Extern it.
23914 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23915 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23916 * msdos.c (dos_rawgetc): Likewise.
23917 * w32term.c (w32_read_socket): Likewise.
23918 * xterm.c (handle_one_xevent): Likewise.
23919 * xdisp.c (syms_of_xdisp): In doc-string of
23920 mouse-autoselect-window mention focus-follows-mouse.
23921
239222007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23923
23924 * macterm.c (mac_load_query_font): Fix missing return value.
23925 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23926 Add BLOCK_INPUT.
23927
239282007-10-08 Richard Stallman <rms@gnu.org>
23929
23930 * xdisp.c (get_window_cursor_type): Implement documented behavior
23931 for cursor-in-non-selected-windows = t.
23932
239332007-10-08 Jason Rumney <jasonr@gnu.org>
23934
23935 * w32.c (w32_get_resource): Always close registry keys.
23936
239372007-10-08 Jason Rumney <jasonr@gnu.org>
23938
23939 * makefile.w32-in (LIBS): Add COMCTL32.
23940
23941 * w32fns.c (globals_of_w32fns): Init common controls.
23942
239432007-10-08 Richard Stallman <rms@gnu.org>
23944
23945 * image.c (our_memory_buffer): Rename from omfib_buffer.
23946
239472007-10-08 Richard Stallman <rms@gnu.org>
23948
23949 * buffer.c (Foverlays_at): Doc fix.
23950
239512007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23952
23953 * fns.c (Fplist_put): Preserve uneven tail data.
23954
239552007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23956
23957 * termhooks.h (enum event_kind): Remove trailing comma.
23958
23959 * frame.h (enum): Remove trailing comma.
23960
239612007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23962
23963 * w32proc.c (delete_child): Don't terminate threads of zombies.
23964
239652007-10-08 Martin Rudalics <rudalics@gmx.at>
23966
23967 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23968
23969 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23970 last-repeatable-command.
23971 (init_kboard): Initialize Vlast_repeatable_command.
23972 (command_loop_1): Set it to real_this_command unless that was
23973 bound to an input event.
23974 (mark_kboards): Mark it.
23975
239762007-10-08 Richard Stallman <rms@gnu.org>
23977
23978 * eval.c (condition-case): Doc fix.
23979
239802007-10-08 Masatake YAMATO <jet@gyve.org>
23981
23982 * xfaces.c (tty_supports_face_attributes_p): Fix code
23983 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23984 was copied and not edited.
23985
239862007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23987
23988 Add new `input-decode-map' keymap and use it for terminal
23989 escape sequences.
23990 * keyboard.h (struct kboard): Add Vinput_decode_map.
23991 Remove Vlocal_key_translation_map.
23992 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23993 (init_kboard): Init input-decode-map.
23994 Replace local-key-translation-map back with key-translation-map.
23995 (syms_of_keyboard): Declare input-decode-map.
23996 Remove local-key-translation-map. Update docstrings.
23997 (mark_kboards): Mark Vinput_decode_map.
23998 Don't mark Vlocal_key_translation_map.
23999 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24000 Replace local-key-translation-map back with key-translation-map.
24001 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24002 Bind in input-decode-map rather than function-key-map.
24003
24004 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24005 This was made redundant by the previous introduction of XSETPVECTYPE.
24006
240072007-10-09 Richard Stallman <rms@gnu.org>
24008
24009 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24010
240112007-09-29 Richard Stallman <rms@gnu.org>
24012
24013 * eval.c (internal_condition_case_2, internal_condition_case_1)
24014 (internal_condition_case): Reenable abort if x_catching_errors ()
24015 to see if that really happens and why.
24016
240172007-10-06 Andreas Schwab <schwab@suse.de>
24018
24019 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24020
240212007-10-04 Juanma Barranquero <lekktu@gmail.com>
24022
24023 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24024
240252007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24026
24027 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24028
240292007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24030
24031 * window.h (struct window):
24032 * window.c (struct save_window_data, struct saved_window):
24033 * termhooks.h (struct terminal):
24034 * process.h (struct Lisp_Process):
24035 * frame.h (struct frame):
24036 * buffer.h (struct buffer):
24037 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24038 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24039 The size field of (pseudo)vectors is now unsigned.
24040 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24041
24042 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24043 Turn `count' into an integer.
24044
24045 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24046 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24047 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24048 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24049 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24050
24051 * alloc.c (allocate_pseudovector): New fun.
24052 (ALLOCATE_PSEUDOVECTOR): New macro.
24053 (allocate_window, allocate_terminal, allocate_frame)
24054 (allocate_process): Use it.
24055 (mark_vectorlike): New function.
24056 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24057 (mark_terminals): Use it.
24058 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24059 (Fmake_byte_code): Use XSETPVECTYPE.
24060
24061 * frame.c (Fframe_parameters): Minor simplification.
24062
24063 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24064
24065 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24066
24067 * buffer.c (Fget_buffer_create, init_buffer_once):
24068 * lread.c (defsubr):
24069 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24070
24071 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24072 defined differently in the m/*.h files.
24073 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24074 (XSETPVECTYPE): New macro.
24075 (XSETPSEUDOVECTOR): Use it.
24076
24077 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24078 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24079
24080 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24081 * lread.c (defvar_per_buffer):
24082 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24083
24084 * window.c (candidate_window_p): Only consider as visible frames that
24085 are on the same terminal.
24086
24087 * m/ibms390x.h (MARKBIT): Remove unused macro.
24088
240892007-10-01 Juanma Barranquero <lekktu@gmail.com>
24090
24091 * lread.c (Fload): Fix typo in docstring.
24092
240932007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24094
24095 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24096 of a non-zero value can't yield zero.
24097
240982007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24099
24100 * term.c (term_clear_mouse_face, term_mouse_highlight)
24101 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24102
24103 * print.c (safe_debug_print): Use XHASH.
24104
24105 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24106 Lisp elements such as tags.
24107 (XHASH): New macro.
24108 (EQ): Use it.
24109 (SREF, SSET, STRING_COPYIN): Use SDATA.
24110 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24111
24112 * alloc.c (mark_terminal): Remove left-over declaration.
24113 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24114 (allocate_vectorlike): Remove type argument. Adjust callers.
24115 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24116 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24117
24118 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24119 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24120 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24121 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24122 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24123 Use them.
24124
24125 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24126 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24127 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24128
241292007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24130
24131 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24132 loaded by default.
24133
241342007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24135
24136 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24137 on this tty.
24138 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24139
24140 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24141 Update all users.
24142 (handle_one_term_event): Use Gpm_DrawPointer.
24143 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24144 Signal errors instead of returning nil. Always return nil.
24145 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24146 Make it a noop if gpm-mouse was not activated.
24147 (syms_of_term): Update names.
24148
241492007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24150
24151 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24152 (init_sys_modes): Check that gpm_tty is the current tty.
24153
24154 * alloc.c (allocate_terminal): Set the vector size to only count the
24155 lisp fields. Initialize those to nil.
24156 (mark_object): Don't treat terminals specially.
24157 (mark_terminal): Remove.
24158 (mark_terminals): Use mark_object instead.
24159
24160 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24161 the GC to the beginning.
24162
24163 * indent.h:
24164 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24165
24166 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24167
241682007-09-25 Jason Rumney <jasonr@gnu.org>
24169
24170 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24171
24172 * w32console.c (create_w32cons_output): Remove.
24173
24174 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24175
24176 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24177 (reset_sys_modes): Use reset_terminal_modes_hook.
24178
241792007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24180
24181 * eval.c (do_autoload): Don't output any message.
24182
241832007-09-24 Juri Linkov <juri@jurta.org>
24184
24185 * emacs.c (standard_args): Change priority of "--no-splash"
24186 from 40 to 3. Add "--no-desktop" with the same priority.
24187
241882007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24189
24190 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24191 and optimize the case where they are all 1.
24192
241932007-09-23 Johannes Weiner <hannes@saeurebad.de>
24194
24195 * lisp.h (abs): Define if not defined.
24196 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24197 Don't define `abs', since it's defined in lisp.h.
24198
241992007-09-22 Eli Zaretskii <eliz@gnu.org>
24200
24201 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24202 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
24203 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
24204 (init_tty): Use DEV_TTY instead of "/dev/tty".
24205 [WINDOWSNT]: No need to protect from NAME arg being null.
24206
242072007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
24208
24209 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
24210 up the tty state.
24211
242122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24213
24214 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
24215 (gpm_tty): Change its type.
24216 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
24217 (gpm_tty): Change its type and initialize it.
24218 (Fterm_open_connection): Check the frame is indeed a tty.
24219 Use the new gpm_tty.
24220 (Fterm_close_connection): Use the new gpm_tty.
24221 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
24222 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
24223
242242007-09-21 Juanma Barranquero <lekktu@gmail.com>
24225
24226 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
24227 underline_color, to draw strike-through.
24228
242292007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
24230
24231 * lisp.h (allocate_terminal): Declare.
24232
24233 * window.c (candidate_window_p): Consider frames that are being placed
24234 by the user as somewhere between visible and iconified.
24235 (window_loop): Prefer windows on the current frame.
24236 (Fselect_window): Move the use of select-frame to the beginning so we
24237 can just delegate all the work (it'll call us back anyway).
24238
24239 * frame.c (Qdisplay_environment_variable):
24240 * frame.h (Qdisplay_environment_variable): Delete.
24241
24242 * .gdbinit (xbacktrace): Print the arg's address rather than the value
24243 of the first arg, since that value may be a union.
24244
24245 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
24246 parameter rather than Qdisplay_environment_variable. If all else
24247 fails, look for DISPLAY in initial-environment.
24248
242492007-09-21 Glenn Morris <rgm@gnu.org>
24250
24251 * Makefile.in (emacstool): Remove target.
24252 (lisp, shortlisp): Remove termdev.elc.
24253
242542007-09-21 Markus Triska <markus.triska@gmx.at>
24255
24256 * xterm.c (x_delete_display): Compile session management conditionally.
24257
242582007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
24259
24260 * callproc.c (getenv_internal_1): New function.
24261 (getenv_internal): Use it.
24262 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
24263
24264 * terminal.c (get_terminal): Don't accept ints to represent terminals.
24265 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
24266 (Fset_terminal_parameter): Work with dead terminals as well.
24267 (Fmodify_terminal_parameters): Remove.
24268
24269 * terminal.c (get_terminal): Handle terminals.
24270 Make sure the terminal returned is live.
24271 (create_terminal): Use allocate_terminal.
24272 (mark_terminals): Move to alloc.c.
24273 (delete_terminal): Use terminal->name as liveness status.
24274 NULL out fields after freeing their contents.
24275 Don't deallocate the object.
24276 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
24277 rather than an int.
24278 (Fterminal_live_p): Accept non-integer arguments.
24279 (Fterminal_list): Return terminal objects rather than an ints.
24280
24281 * alloc.c (enum mem_type): New member for `terminal' objects.
24282 (allocate_terminal): New function.
24283 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
24284 Handle terminals.
24285 (mark_terminal): New fun.
24286 (mark_terminals): Move from terminal.c.
24287
24288 * term.c (get_tty_terminal): Don't treat output_initial specially.
24289 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
24290 (delete_tty): Use terminal->name as liveness status.
24291
24292 * termhooks.h (struct terminal): Make it into a pseudovector.
24293 Remove `deleted' replaced by checking `name's nullness.
24294
24295 * print.c (print_object): Handle terminals.
24296
24297 * lisp.h (enum pvec_type): New `terminal' pseudovector.
24298 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
24299
24300 * frame.c (make_terminal_frame):
24301 * keyboard.c (tty_read_avail_input):
24302 * w32term.c (x_delete_terminal):
24303 * xfns.c (Fx_create_frame, x_create_tip_frame):
24304 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
24305
243062007-09-20 Glenn Morris <rgm@gnu.org>
24307
24308 * process.c (Fmake_network_process): Doc fix.
24309
243102007-09-19 Jason Rumney <jasonr@gnu.org>
24311
24312 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
24313
243142007-09-19 Michaël Cadilhac <michael@cadilhac.name>
24315
24316 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
24317 Fix a C warning regarding variable constness.
24318
24319 * xterm.c (handle_one_xevent): Fix a C warning.
24320
243212007-09-18 Jason Rumney <jasonr@gnu.org>
24322
24323 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
24324
243252007-09-17 Jan Djärv <jan.h.d@swipnet.se>
24326
24327 * gtkutil.c (gdpy_def): New variable.
24328 (xg_initialize): Initialize gdpy_def.
24329 (xg_display_close): If no other display exists, set gdpy_def to a
24330 new connection.
24331
243322007-09-16 Jan Djärv <jan.h.d@swipnet.se>
24333
24334 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
24335 when we have no file name for the icon.
24336 (xg_tool_bar_expose_callback): Remove.
24337 (xg_create_tool_bar): Don't connect expose signal to
24338 xg_tool_bar_expose_callback.
24339 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24340
243412007-09-16 Andreas Schwab <schwab@suse.de>
24342
24343 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24344 values instead of zapping them.
24345
243462007-09-14 Glenn Morris <rgm@gnu.org>
24347
24348 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24349 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24350 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24351 scope and rename to omfib_buffer for clarity.
24352 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24353
243542007-09-14 Kenichi Handa <handa@m17n.org>
24355
24356 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24357
243582007-09-13 Jason Rumney <jasonr@gnu.org>
24359
24360 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24361
24362 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24363
24364 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24365 (mac_term_init): Call here instead, passing rif.
24366
243672007-09-13 Glenn Morris <rgm@gnu.org>
24368
24369 * s/hpux.h: No longer define `static' as nothing.
24370
243712007-09-13 Johan Bockgård <bojohan@gnu.org>
24372
24373 * callint.c (Fcall_interactively): Remove unused var `fun'.
24374
243752007-09-12 Romain Francoise <romain@orebokech.com>
24376
24377 * window.c (prefer_window_split_horizontally, display_buffer):
24378 Revert 2007-09-08 change.
24379
243802007-09-12 Glenn Morris <rgm@gnu.org>
24381
24382 * alloca.c: Remove file.
24383 * Makefile.in (alloca): Do not undef.
24384 (allocaobj, alloca.o): Remove.
24385 (otherobj): Remove allocaobj.
24386 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24387 * regex.c (C_ALLOCA): Remove all references and code that was only
24388 used when this was defined.
24389 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24390 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24391 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24392
24393 * Makefile.in (SOURCES, unlock, relock): Delete.
24394
24395 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24396 (menu_grab_callback): All uses changed.
24397
24398 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24399 (x_reply_selection_request): All uses changed.
24400
244012007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24402
24403 * lread.c (load_warn_old_style_backquotes): Change message to look
24404 better when it appears in the middle of byte-compiler messages.
24405
244062007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24407
24408 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24409
24410 * xterm.c (x_create_terminal): Add comment.
24411
24412 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24413
244142007-09-10 Richard Stallman <rms@gnu.org>
24415
24416 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24417
244182007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24419
24420 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24421 (DEFUN): Document `intspec', use it instead of `prompt'.
24422
24423 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24424
24425 * data.c (Finteractive_form): If the interactive specification starts
24426 with a `(', use it as a Lisp form.
24427
24428 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24429 name and file modes.
24430
24431 * callint.c (Fcall_interactively): Comment fixes.
24432
244332007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24434
24435 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24436 and compiled functions.
24437
244382007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24439
24440 * window.c (prefer_window_split_horizontally): New variable.
24441 (display_buffer): Consider splitting window horizontally depending
24442 on prefer_window_split_horizontally.
24443
244442007-09-08 Eli Zaretskii <eliz@gnu.org>
24445
24446 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24447
244482007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24449
24450 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24451
24452 * frame.c (x_set_frame_parameters): Check number is positive before
24453 using XFASTINT.
24454
24455 * window.c (freeze_window_start): Don't presume selected_window holds
24456 a window object.
24457 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24458
244592007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24460
24461 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24462
244632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24464
24465 * window.c (Vsplit_window_preferred_function): New var.
24466 (Fdisplay_buffer): Use it.
24467 (syms_of_window): Export, and initialize it.
24468
244692007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24470
24471 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24472
244732007-09-06 Glenn Morris <rgm@gnu.org>
24474
24475 * gtkutil.c (menu_grab_callback) <cnt>:
24476 * xselect.c (x_reply_selection_request) <cnt>: Move static
24477 variable to file scope.
24478
244792007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24480
24481 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24482 consistent values of selected_frame and selected_window.
24483
244842007-09-04 Jason Rumney <jasonr@gnu.org>
24485
24486 * w32console.c (initialize_w32_display): Zero unused hooks.
24487
244882007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24489
24490 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24491 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24492
244932007-09-04 Jason Rumney <jasonr@gnu.org>
24494
24495 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24496 in w32console.c. Set up input. Remove XXX comments that have been
24497 confirmed as correct.
24498
24499 * s/ms-w32.h (MULTI_KBOARD): Define.
24500
24501 * w32console.c (one_and_only_w32cons): Remove.
24502 (initialize_w32_display): Take terminal argument.
24503
24504 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24505 initialize_w32_display.
24506 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24507
24508 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24509
24510 * keyboard.c (discard_mouse_events): Discard it.
24511 (make_lispy_event): Translate it to a lisp event.
24512 (lispy_wheel_names): Add wheel-left and right events.
24513 (syms_of_keyboard): Enlarge wheel_syms.
24514
24515 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24516 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24517
24518 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24519
24520 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24521 from WM_MOUSEHWHEEL.
24522 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24523
24524 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24525 terminal.
24526
24527 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24528 keyboard for the terminal.
24529
245302007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24531
24532 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24533 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24534 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24535 and resume-tty-function to resume-tty-hook.
24536 (Fsuspend_tty, Fresume_tty): Use new names.
24537
245382007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24539
24540 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24541 if it starts with "n:".
24542
245432007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24544
24545 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24546
245472007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24548
24549 * frame.h:
24550 * frame.c (Qterm_environment_variable): Remove.
24551 (syms_of_frame): Don't init and staticpro it.
24552
24553 * callproc.c (getenv_internal): Remove special case for $TERM.
24554
24555 * callproc.c (Vinitial_environment): New variable.
24556 (set_initial_environment): Initialize it.
24557 (syms_of_callproc): Declare it.
24558 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24559 TERM under which a process runs is never related to the TERM in which
24560 Emacs is running.
24561
245622007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24563
24564 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24565 * s/darwin.h: ... do it here.
24566
245672007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24568
24569 * lisp.h (set_initial_environment): Rename from set_global_environment.
24570
24571 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24572 removed by mistake on the multi-tty branch.
24573
24574 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24575 (Fmodify_frame_parameters): Return a value.
24576
24577 * image.c (png_load): Comment-out var only used in commented-out code.
24578
24579 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24580 before passing it to mark_object.
24581
24582 * xfaces.c (internal_resolve_face_name): Return a value.
24583 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24584
24585 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24586 (x_icon): Comment-out var only used in commented-out code.
24587
245882007-08-29 Romain Francoise <romain@orebokech.com>
24589
24590 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24591 QUIT hasn't been provided.
24592
245932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24594
24595 * callproc.c (child_setup, getenv_internal): Use the
24596 display-environment-variable and term-environment-variable frame params.
24597 (set_initial_environment): Initialise Vprocess_environment.
24598
24599 * config.in: Disable multi-keyboard support on a mac.
24600
24601 * frame.c (Qterm_environment_variable)
24602 (Qdisplay_environment_variable): New variables.
24603 (syms_of_frame): Intern and staticpro them.
24604 (Fmake_terminal_frame): Disable output method test.
24605
24606 * frame.h: Declare them here.
24607
24608 * macfns.c (x_set_mouse_color): Get rif from the frame.
24609 (x_set_tool_bar_lines): Don't use updating_frame.
24610 (mac_window): Add 2 new parameters for consistency with other systems.
24611 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24612 frame parameters following what is done in X11 and w32. Don't use
24613 FRAME_MAC_DISPLAY_INFO.
24614 (Fx_open_connection, start_hourglass): Remove window-system check.
24615 (x_create_tip_frame): Get the keyboard from the terminal.
24616
24617 * macmenu.c: Reorder includes.
24618 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24619
24620 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24621 terminal parameter.
24622 (x_clear_frame): Add a frame parameter.
24623 (note_mouse_movement): Get rif from the frame.
24624 (mac_term_init): Initialize the terminal.
24625 (mac_initialize): Make static and move terminal initialization ...
24626 (mac_create_terminal): ... to this new function.
24627
24628 * macterm.h (struct mac_display_info): Add terminal.
24629 (mac_initialize): Delete declaration.
24630
24631 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24632
24633 * sysdep.c: Comment out text after #endif.
24634
24635 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24636 is defined. Better initialize ttys in windows. Use terminal
24637 specific mouse_position_hook.
24638
24639 * termhooks.h (union display_info): Add mac_display_info.
24640
24641 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24642 Set the default minibuffer frame, window_system and the rest of the
24643 frame parameters following what is done in X11.
24644
24645 * w32term.c (w32_initialize): Make static.
24646
24647 * xselect.c (x_handle_selection_clear): Only access
24648 terminal->kboard when MULTI_KBOARD is defined.
24649
24650 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24651 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24652
246532007-08-29 Jason Rumney <jasonr@gnu.org>
24654
24655 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24656 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24657
24658 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24659 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24660
24661 * keyboard.c (restore_kboard_configuration): Only define when
24662 MULTI_KBOARD defined.
24663
24664 * makefile.w32-in: Update dependancies from Makefile.in.
24665 (OBJ1): Add terminal.$(O)
24666
24667 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24668 Don't define function body.
24669 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24670
24671 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24672
24673 * w32.c (request_sigio, unrequest_sigio): Remove.
24674
24675 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24676 (w32con_clear_frame, w32con_clear_end_of_line)
24677 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24678 (w32con_delete_glyphs, w32con_set_terminal_window)
24679 (scroll_line, w32_sys_ring_bell): Add frame arg.
24680 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24681 Add terminal arg.
24682 (PICK_FRAME): Remove.
24683 (w32con_write_glyphs): Use frame specific terminal coding.
24684 (one_and_only_w32cons): New global variable.
24685 (initialize_w32_display): Use it for storing hooks.
24686 (create_w32cons_output): New function.
24687
24688 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24689 arg a frame.
24690
24691 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24692 Set window_system.
24693 (x_set_tool_bar_lines): Don't use updating_frame.
24694 (Fx_create_frame): Set terminal and ref count.
24695 (Fx_open_connection): Remove window-system check.
24696
24697 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24698
24699 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24700 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24701 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24702 Add frame arg.
24703 (x_delete_terminal, w32_create_terminal): New functions.
24704 (w32_term_init): Create a terminal.
24705 (w32_initialize): Move terminal specific initialization to
24706 w32_create_terminal.
24707
24708 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24709 (w32_clear_rect, w32_clear_area): Use background from frame.
24710 (w32_display_info): Add terminal.
24711 (w32_sys_ring_bell, x_delete_display): Declare here.
24712
24713 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24714
24715 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24716
247172007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24718
24719 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24720 Fix get_named_tty calls for the controlling tty.
24721
247222007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24723
194d44e7 24724 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24725
247262007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24727
24728 * term.c (tty_insert_glyphs): Add missing first parameter.
24729
247302007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24731
24732 * buffer.c (Fbuffer_list, Fbury_buffer):
24733 Take frame->buried_buffer_list into account.
24734
24735 * cm.c (current_tty): New variable, for cmputc().
24736 (cmputc): Use it.
24737 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24738 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24739 (cmgoto): Add tty parameter. Pass it on to calccost().
24740 Use emacs_tputs() instead of tputs().
24741
24742 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24743 tputs().
24744 (current_tty): New variable, for cmputc().
24745 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24746
24747 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24748 (internal_condition_case, internal_condition_case_1)
24749 (internal_condition_case_2): Don't abort when x_catching_errors.
24750
24751 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24752 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24753 prevent crashes caused by bogus longjmps in read_char.
24754
24755 * keymap.h (Fset_keymap_parent): Add EXFUN.
24756
24757 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24758 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24759 Remove redundant definition.
24760
24761 * macfns.c (x_set_mouse_color, x_make_gc):
24762 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24763
24764 * w32term.c (x_free_frame_resources):
24765 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24766 (w32_initialize): Use the accessor macros for terminal characteristics.
24767
24768 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24769 Use the accessor macros for terminal characteristics.
24770 * msdos.c (internal_terminal_init): Use the accessor macros for
24771 terminal characteristics.
24772 (ScreenVisualBell, internal_terminal_init):
24773 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24774
24775 * termopts.h (no_redraw_on_reenter): Declare.
24776
24777 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24778 (mark_terminals, mark_ttys): Declare.
24779 (Fgarbage_collect): Call them.
24780 (mark_object): Mark buried_buffer_list.
24781
24782 * prefix-args.c: Include stdlib.h for exit.
24783
24784 * syssignal.h: Add comment.
24785
24786 * indent.c: Include stdio.h.
24787
24788 * window.h (Vinitial_window_system): Declare.
24789 (Vwindow_system): Delete declaration.
24790
24791 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24792
24793 * image.c (lookup_image): Don't initialize `c' until the xasserts
24794 have been run.
24795
24796 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24797 FRAME_FOREGROUND_PIXEL.
24798
24799 * print.c (print_preprocess): Don't lose print_depth levels while
24800 iterating.
24801
24802 * widget.c (update_from_various_frame_slots):
24803 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24804
24805 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24806 frames.
24807 (window_internal_height): Remove bogus make_number call.
24808 (init_window_once): Call make_terminal_frame with two zero parameters.
24809
24810 * fileio.c (Fread_file_name): Update comment.
24811
24812 * callint.c (Fcall_interactively):
24813 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24814 Make sure it is correctly unwound.
24815
24816 * xsmfns.c (x_session_close): New function.
24817
24818 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24819 Delete declarations.
24820
24821 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24822 (x_output): Remove background_pixel and foreground_pixel fields.
24823 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24824 (x_delete_device, x_session_close): Declare.
24825
24826 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24827 (read_filtered_event): Call `read_char' with a local
24828 `wrong_kboard_jmpbuf'.
24829
24830 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24831 Don't call single_kboard_state. Use FRAME_RIF.
24832
24833 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24834 systems.
24835
24836 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24837 (Fframe_with_environment, Fset_input_meta_mode)
24838 (Fset_quit_char): EXFUN.
24839 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24840 (init_sys_modes, reset_sys_modes): Update prototypes.
24841 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24842
24843 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24844 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24845 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24846 Delete declarations.
24847 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24848 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24849 New declarations.
24850
24851 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24852 already does that during init_display(). Call syms_of_keymap
24853 before syms_of_keyboard. Call `syms_of_terminal'.
24854 Call set_initial_environment, not set_process_environment.
24855 (shut_down_emacs): Call reset_all_sys_modes() instead of
24856 reset_sys_modes().
24857
24858 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24859 (internal_resolve_face_name, resolve_face_name_error): New functions.
24860 (resolve_face_name): Protect against loops and errors thrown by Fget.
24861 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24862 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24863
24864 * scroll.c: Replace CURTTY() with local variables throughout the
24865 file (where applicable).
24866 (calculate_scrolling, calculate_direct_scrolling)
24867 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24868 characteristics.
24869
24870 * keymap.c (Vfunction_key_map): Remove.
24871 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24872 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24873 (Vkey_translation_map): Remove.
24874 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24875 (Fdescribe_buffer_bindings)
24876 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24877 Update for terminal-local key-translation-map.
24878
24879 * Makefile.in (callproc.o): Update dependencies.
24880 (lisp, shortlisp): Add termdev.elc.
24881 (obj): Add terminal.o.
24882 (terminal.o): Add dependencies.
24883 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24884 (data.o, fns.o): Add termhooks.h dependency.
24885 (SOME_MACHINE_LISP): Add dnd.elc.
24886 (minibuf.o): Fix typo.
24887 Update dependencies.
24888
24889 * data.c (do_symval_forwarding, store_symval_forwarding)
24890 (find_symbol_value): Use the selected frame's keyboard, not
24891 current_kboard.
24892
24893 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24894 Vwindow_system.
24895
24896 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24897 Fmenu_bar_open.
24898 (syms_of_xmenu): Update defsubr.
24899 (mouse_position_for_popup, Fx_popup_menu)
24900 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24901 (set_frame_menubar, free_frame_menubar)
b97439ce 24902 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24903 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24904 an X frame.
24905
24906 * xselect.c (x_own_selection): Abort if not an X frame.
24907 (some_frame_on_display): Check if it is an X frame.
24908 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24909
24910 * coding.c: Include frame.h and termhooks.h.
24911 (terminal_coding, keyboard_coding): Delete.
24912 (Fset_terminal_coding_system_internal)
24913 (Fset_keyboard_coding_system_internal)
24914 (Fkeyboard_coding_system)
24915 (Fterminal_coding_system): Add a terminal parameter.
24916 Get terminal_coding from the terminal.
24917 (init_coding_once): Don't call setup_coding_system here.
24918
24919 * dispextern.h (set_scroll_region, turn_off_insert)
24920 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24921 (tty_clear_end_of_line, tty_setup_colors)
24922 (delete_tty, updating_frame)
24923 (produce_special_glyphs, produce_glyphs, write_glyphs)
24924 (insert_glyphs): Remove.
24925 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24926 (tty_turn_off_highlight, get_tty_size): Add declaration.
24927 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24928
24929 * frame.h (enum output_method): Add output_initial.
24930 (struct x_output): Delete.
24931 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24932 Access foreground_pixel and background_pixel directly from the frame.
24933 (tty_display): Delete.
24934 (struct frame): Add buried_buffer_list, foreground_pixel,
24935 background_pixel and terminal. Delete kboard.
24936 (union output_data): Add tty.
24937 (FRAME_KBOARD): Get the kboard from the terminal.
24938 (FRAME_INITIAL_P): New macro.
24939 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24940 (Qterm_environment_variable, Qdisplay_environment_variable)
24941 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24942 New declarations.
24943
24944 * termchar.h (tty_output, tty_display_info): New structures.
24945 (tty_list): Declare.
24946 (FRAME_TTY, CURTTY): New macros.
24947 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24948 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24949 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24950 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24951
24952 * callproc.c: Include frame.h and termhooks.h, for terminal
24953 parameters.
24954 (add_env): New function.
24955 (child_setup): Use it.
24956 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24957 (getenv_internal): Fix get_terminal_param call.
24958 (Fgetenv_internal, egetenv): Update doc.
24959 (syms_of_callproc): Initialize Vprocess_environment to nil.
24960 Register and initialize them. Remove obsolete defvars. Update doc
24961 strings.
24962 (child_setup): Handle Vlocal_environment_variables.
24963 (getenv_internal): Add terminal parameter.
24964 Handle Vlocal_environment_variables.
24965 (Fgetenv_internal): Add terminal parameter.
24966 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24967 environment in a frame (not terminal) parameter. Update doc strings.
24968 (set_initial_environment): Rename from set_global_environment.
24969 Store Emacs environment in initial frame parameter.
24970
24971 * xdisp.c (redisplay_internal): Update references to
24972 `previous_terminal_frame'.
24973 (display_mode_line, Fformat_mode_line): Replace calls to
24974 `push_frame_kboard' with `push_kboard'.
24975 (get_glyph_string_clip_rects): Add extra parentheses and
24976 braces to prevent compiler warnings.
24977 (calc_pixel_width_or_height): Add xassert to check that the
24978 frame is alive. Don't call `lookup_image' on a termcap frame.
24979 (message2_nolog, message3_nolog, redisplay_internal)
24980 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24981 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24982 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24983 (Fx_display_pixel_width, Fx_display_pixel_height)
24984 (Fx_display_planes, Fx_display_color_cells)
24985 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24986 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24987 (Fx_display_backing_store, Fx_display_visual_class)
24988 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24989 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24990
24991 * xfns.c (x_set_foreground_color x_set_background_color)
24992 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24993 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24994 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24995 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24996 terminal that is being deleted.
24997 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24998 frame parameter, and make sure it overrides any user-supplied setting.
24999 (Fx_close_connection, Fx_synchronize): Unify argument names with
25000 the rest of the DEFUNs.
25001
25002 * dispnew.c (Fsend_string_to_terminal): Update call to
25003 `get_tty_terminal'.
25004 (Fredraw_frame, Fsend_string_to_terminal)
25005 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25006 FRAME_TERMCAP_P and FRAME_TTY.
25007 (window_change_signal): Don't believe width/height values that are
25008 impossibly small.
25009 (Vinitial_window_system): Rename from Vwindow_system.
25010 (termscript, Wcm, rif): Delete.
25011
25012 * termhooks.h (struct terminal): New struct containing the
25013 previously global text display hooks and new members NAME,
25014 DELETED and PARAM_ALIST.
25015 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25016 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25017 (FRAME_RIF): New macros.
25018 (get_terminal_param, get_device): New declarations.
25019 (termscript): Delete declaration.
25020
25021 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25022 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25023 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25024 FRAME_FOREGROUND_PIXEL.
25025 (x_fully_uncatch_errors): Disable definition.
25026 (x_scroll_bar_expose): Fix reference to foreground pixel.
25027 (XTread_socket): Disable loop on all X displays.
25028 (x_delete_terminal): Don't set terminal->deleted and let
25029 delete_terminal delete the frames on the terminal.
25030 (x_delete_display): Doc update to reflect changes in
25031 delete_terminal.
25032 (x_display_info) <terminal>: Move member earlier in the struct.
25033 (deleting_tty): Remove old variable.
25034 (Fsuspend_tty): Call clear_tty_hooks.
25035 (Fresume_tty, init_tty): Call set_tty_hooks.
25036 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25037 errors on X frames.
25038 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25039 (handle_one_xevent): Initialize `f' to NULL.
25040 (x_delete_terminal, x_create_terminal): New functions.
25041 (XTset_terminal_modes, XTreset_terminal_modes)
25042 (XTread_socket, x_connection_closed, x_term_init)
25043 (x_term_init, x_delete_display): Add terminal parameter.
25044 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25045 X connections.
25046
25047 * frame.c: Include termchar.h.
25048 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25049 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25050 (Qdisplay_environment_variable): New vars.
25051 (Fframep): Deal with output_initial.
25052 (Fframe-live-p): Doc fix.
25053 (Fwindow-system): New function.
25054 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25055 (make_terminal_frame): Don't create frames on a terminal that is
25056 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25057 (store_frame_param): Check for found_for_frame before calling XFRAME.
25058 (Fmake_terminal_frame): Handle NULL tty names correctly.
25059 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25060 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25061 frames to refer to a deleted frame in their 'environment parameter.
25062 (Fframe_with_environment): New function.
25063 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25064 (get_future_frame_param): New function.
25065 (Fmake_terminal_frame): Use it.
25066 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25067
25068 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25069 * sysdep.c (reset_sys_modes): Update for renames.
25070
25071 * keyboard.c (tty_read_avail_input): New function.
25072 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25073 (syms_of_keyboard): Defsubr them.
25074 (Fset_input_meta_mode, Fset_quit_char): New functions.
25075 (Fset_input_mode): Split to above functions.
25076 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25077 parameter. Use it in call to `read_char'.
25078 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25079 Set wrong_kboard_jmpbuf correctly in recursive calls.
25080 Use current_kboard to access Vkeyboard_translate_table.
25081 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25082 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25083 Update longjmp invocations. Remember the original current_kboard,
25084 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25085 changes it. Comment out unnecessary calls to
25086 `record_single_kboard_state' and `any_kboard_state'.
25087 Update recursive calls.
25088 (wrong_kboard_jmpbuf): Remove global variable.
25089 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25090 Handle deleted interrupted_kboards correctly; that is a legal
25091 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25092 and read_char calls. Abort if interrupted_kboard died in read_char.
25093 (any_kboard_state, single_kboard_state)
25094 (push_frame_kboard): Remove function.
25095 (pop_kboard): Switch out of single_kboard mode if the kboard has
25096 been deleted. Remove unused variable. Help debugging by not
25097 changing current_kboard unnecessarily. Set current_kboard to the
25098 kboard of the selected frame when the stored kboard object has
25099 been deleted before pop_kboard.
25100 (temporarily_switch_to_single_kboard): Change first parameter to a
25101 frame pointer. Throw an error when caller wants to change kboards
25102 while in single_kboard mode. Don't push_kboard if we weren't in
25103 single kboard state. Don't pop_kboard if we popped into any
25104 kboard state.
25105 (restore_kboard_configuration): Abort if pop_kboard changed the
25106 kboard in single_kboard mode. Call pop_kboard only after setting
25107 up single_kboard mode.
25108 (Frecursive_edit): Switch to single_kboard mode only in nested
25109 command loops.
25110 (cmd_error, command_loop, command_loop_1, timer_check):
25111 Comment out unnecessary call to `any_kboard_state' and
25112 `record_single_kboard_state'.
25113 (delete_kboard): Exit single_kboard mode if we have just deleted
25114 that kboard. Use FRAME_KBOARD.
25115 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25116 `fatal_error_signal'.
25117 (record_single_kboard_state): Don't push_kboard if we weren't in
25118 single kboard state. Don't pop_kboard if we popped into any
25119 kboard state.
25120 (push_frame_kboard): Rename to push_kboard.
25121 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25122 (read_avail_input): Read input from all terminals.
25123 (mark_kboards): Also mark Vkeyboard_translate_table.
25124 (kbd_buffer_store_event_hold): Simplify condition.
25125 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25126 (Vkeyboard_translate_table): Move to struct kboard.
25127 (init_kboard): Initialize Vkeyboard_translate_table.
25128 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25129 Vkeyboard_translate_table. Update doc strings. Update docs of
25130 local-function-key-map and function-key-map.
25131
25132 * terminal.c: New file.
25133
25134 * term.c: Include errno.h.
25135 (Vring_bell_function, device_list, initial_device)
25136 (next_device_id, ring_bell, update_begin, update_end)
25137 (set_terminal_window, cursor_to, raw_cursor_to)
25138 (clear_to_end, clear_frame, clear_end_of_line)
25139 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25140 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25141 (syms_of_term): Move their initialization to terminal.c.
25142 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25143 (Ftty_display_color_cells)
25144 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25145 (clear_tty_hooks, set_tty_hooks)
25146 (init_tty, maybe_fatal): New functions.
25147 (Ftty_type): Return nil if terminal is not on a tty instead of
25148 throwing an error. Doc update.
25149 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25150 Doc update. Initialize new subrs and variables.
25151 (delete_tty): Use terminal->deleted.
25152 (tty_set_terminal_modes): Rename from set_terminal_modes.
25153 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25154 (set_scroll_region): Rename to `tty_set_scroll_region'.
25155 (turn_on_insert): Rename to `tty_turn_on_insert'.
25156 (turn_off_insert): Rename to `tty_turn_off_insert'.
25157 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25158 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25159 (toggle_highligh): Rename to `tty_toggle_highlight'.
25160 (background_highlight): Rename to `tty_background_highlight'.
25161 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25162 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25163 (tty_set_scroll_region, tty_background_highlight)
25164 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25165 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25166 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25167 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25168 Add static modifier.
25169 (tty_reset_terminal_modes, tty_set_terminal_window)
25170 (tty_set_scroll_region, tty_background_highlight)
25171 (tty_highlight_if_desired, tty_cursor_to)
25172 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25173 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25174 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25175 renames.
25176
251772007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25178
25179 * keyboard.c: Qrtl is new.
25180 (parse_tool_bar_item): Handle :rtl keyword.
25181 (syms_of_keyboard): Intern :rtl keyword.
25182
25183 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25184
25185 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25186 so no Lisp code is executed.
25187 (file_for_image, find_rtl_image): New functions.
25188 (xg_get_image_for_pixmap): Use file_for_image.
25189 (update_frame_tool_bar): If direction is RTL, use RTL image if
25190 defined. Use Gtk stock images if defined.
25191
251922007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25193
25194 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25195 for nonexistent or zero-width glyph in composition glyph.
25196
251972007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25198
25199 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25200
25201 * xdisp.c (Finvisible_p): New function.
25202 (syms_of_xdisp): defsubr it.
25203
252042007-08-24 Juanma Barranquero <lekktu@gmail.com>
25205
25206 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
25207 Doc fixes.
25208
252092007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25210
25211 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
25212
252132007-08-24 Martin Rudalics <rudalics@gmx.at>
25214
25215 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
25216 whether decoding has modified buffer contents.
25217
252182007-08-24 Jason Rumney <jasonr@gnu.org>
25219
25220 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
25221 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
25222 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
25223 (init_svg_functions) [HAVE_NTGUI]: New function.
25224 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
25225 (svg_load_image): Use them.
25226 (svg_load_image) [HAVE_NTGUI]: Implement background.
25227
252282007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25229
25230 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
25231 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
25232 (LIBX): Remove @RSVG_LIBS@.
25233 (LIBES): Add $(RSVG_LIBS).
25234
25235 * image.c (svg_load_image): Blend with specified background if exists.
25236 Use IMAGE_BACKGROUND. Add Mac OS Support.
25237
25238 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
25239 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
25240 Remove macros.
25241 [MAC_OSX] (socket_callback): Do nothing.
25242 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
25243 ReceiveNextEvent.
25244 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
25245 socket_callback.
25246 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
25247
252482007-08-22 Glenn Morris <rgm@gnu.org>
25249
25250 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
25251
252522007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
25253
25254 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
25255
25256 * image.c: Add support for SVG images. Some additional comments
25257 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
25258 (svg_image_p): New function to test for SVG image.
25259 (svg_load): New function to load SVG image.
25260 (svg_load_image): New function, helper for svg_load.
25261 (Qsvg): New Lisp_object.
25262 (svg_keyword_index): New enum.
25263 (svg_format): New static `image_keyword' struct.
25264 (svg_type): New static `image_type' struct.
25265 (librsvg/rsvg.h): Include it.
25266
252672007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
25268
25269 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
25270
252712007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
25272
25273 * lread.c (Qold_style_backquotes): New var.
25274 (syms_of_lread): Init and staticpro it.
25275 (load_warn_old_style_backquotes): New fun.
25276 (Fload): Use them to warn about old style backquotes.
25277 (end_of_file_error, Fload): Remove unused vars.
25278
25279 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
25280
25281 * lread.c (Vold_style_backquotes): New var.
25282 (syms_of_lread): Init and export it to Elisp.
25283 (read1): Set it when we find an old-style (back)quote.
25284
252852007-08-22 Jason Rumney <jasonr@gnu.org>
25286
25287 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
25288
252892007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
25290
25291 * puresize.h (BASE_PURESIZE): Increase to 1140000.
25292
252932007-08-19 Richard Stallman <rms@gnu.org>
25294
25295 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
25296
252972007-08-19 Andreas Schwab <schwab@suse.de>
25298
25299 * alloc.c (pure): Round PURESIZE up.
25300
253012007-08-17 Jan Djärv <jan.h.d@swipnet.se>
25302
25303 * xterm.c (handle_one_xevent): Remove check that mouse click is in
25304 active frame.
25305
253062007-08-16 Richard Stallman <rms@gnu.org>
25307
25308 * eval.c (Fcommandp): Add parens to clarify.
25309
25310 * minibuf.c (Fall_completions): Use enum for type of table.
25311
25312 * emacs.c (USAGE2): Improve text.
25313
253142007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
25315
25316 * term.c (tty_default_color_capabilities): Declare static
25317 variables in file scope, to avoid HPUX compiler problem.
25318
253192007-08-13 Jan Djärv <jan.h.d@swipnet.se>
25320
25321 * gtkutil.c (update_frame_tool_bar): Use -1 as index
25322 to gtk_toolbar_insert.
25323
253242007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
25325
25326 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
25327
25328 * insdel.c (reset_var_on_error): New fun.
25329 (signal_before_change, signal_after_change):
25330 Use it to reset (after|before)-change-functions to nil in case of error.
25331 Bind inhibit-modification-hooks to t.
25332 Don't bind (after|before)-change-functions to nil while they run.
25333
253342007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25335
25336 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25337 filling pixmap with stippled background.
25338
253392007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25340
25341 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25342 Don't use invisible frame as parent window for repositioning.
25343
253442007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25345
25346 * print.c (new_backquote_output): Rename from old_backquote_output.
25347 (print): Inverse its logic (according to its name) so as to match the
25348 behavior of new_backquote_flag in lread.c.
25349
253502007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25351
25352 * gmalloc.c (posix_memalign): New function.
25353
25354 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25355 ActivateControl/DeactivateControl here.
25356 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25357 frame-notice-user-settings is non-nil.
25358 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25359 for kEventParamFMFontStyle.
25360 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25361 mac_pass_command_to_system and mac_pass_control_to_system here.
25362 (XTread_socket): Call ActivateControl/DeactivateControl here.
25363 (XTread_socket) [TARGET_API_MAC_CARBON]:
25364 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25365 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25366 for window repositioning.
25367
253682007-08-08 Glenn Morris <rgm@gnu.org>
25369
25370 * Replace `iff' in doc-strings and comments.
25371
253722007-08-07 Chong Yidong <cyd@stupidchicken.com>
25373
25374 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25375
253762007-08-07 Martin Rudalics <rudalics@gmx.at>
25377
25378 * fileio.c (Finsert_file_contents): Run format-decode and
25379 after_insert_file_functions on entire buffer when REPLACE is
25380 non-nil and inhibit modification_hooks and point_motion_hooks.
25381 For consistency, run after_insert_file_functions iff something
25382 got inserted. Move signal_after_change and update_compositions
25383 after code running after_insert_file_functions. Make sure that
25384 undo_list doesn't record intermediate steps of the decoding process.
25385
253862007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25387
25388 * emacs.c (main)
25389 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25390 Call malloc_enable_thread on interactive startup.
25391
25392 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25393 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25394 [USE_PTHREAD]: Conditionalize with it.
25395 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25396 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25397 New functions.
25398
253992007-08-06 Chong Yidong <cyd@stupidchicken.com>
25400
25401 * xdisp.c (redisplay_window): When restoring original buffer
25402 position, make sure it is still valid.
25403
25404 * image.c (png_load): Ignore png-supplied background color.
25405
254062007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25407
25408 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25409 Use kCFAbsoluteTimeIntervalSince1970.
25410
25411 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25412 New variable.
25413 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25414 event loop should be quit.
25415 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25416 Quit dialog event loop if quit_dialog_event_loop is set.
25417
25418 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25419 (Selection): New typedef. Use instead of ScrapRef.
25420 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25421 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25422 (mac_clear_selection): Rename from clear_scrap.
25423 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25424 scrap_has_target_type. All uses changed.
25425 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25426 (mac_selection_has_target_p): New functions.
25427 (mac_put_selection_value): Rename from put_scrap_string.
25428 (mac_get_selection_value): Rename from get_scrap_string.
25429 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25430 (put_scrap_private_timestamp, scrap_has_target_type)
25431 (get_scrap_private_timestamp): Remove functions.
25432 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25433 (x_own_selection, x_get_local_selection):
25434 Use mac_valid_selection_value_p.
25435 (x_own_selection): Don't use put_scrap_private_timestamp.
25436 Record OWNERSHIP-INFO into Vselection_alist instead.
25437 (x_get_local_selection): Don't check type if request is local.
25438 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25439 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25440
254412007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25442
25443 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25444 add comment explaining why.
25445
254462007-08-03 Richard Stallman <rms@gnu.org>
25447
25448 * fileio.c (Fvisited_file_modtime): Use make_time.
25449
254502007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25451
25452 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25453 build.
25454
254552007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25456
25457 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25458
254592007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25460
25461 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25462
254632007-07-30 Richard Stallman <rms@gnu.org>
25464
25465 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25466
254672007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25468
25469 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25470
254712007-07-28 Nick Roberts <nickrob@snap.net.nz>
25472
25473 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25474 remote default-directory.
25475
25476 * buffer.c (mode-line-format): Update doc string.
25477
254782007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25479
25480 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25481 scroll bar gap.
25482 (x_scroll_bar_create): Set bar->fringe_extended_p.
25483 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25484 on frame edge. Check fringe background extension. Don't clear
25485 extended fringe background area.
25486
25487 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25488 (w32_fill_area): Enclose multiple statements with do ... while (0).
25489
25490 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25491 Extend fringe background to scroll bar gap.
25492 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25493 Set bar->fringe_extended_p.
25494 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25495 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25496 background extension. Don't clear extended fringe background area.
25497
25498 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25499 New member fringe_extended_p.
25500
255012007-07-25 Glenn Morris <rgm@gnu.org>
25502
25503 * Relicense all FSF files to GPLv3 or later.
25504
25505 * COPYING: Switch to GPLv3.
25506
255072007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25508
25509 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25510
25511 * data.c (Finteractive_form): Check for the presence of an
25512 `interactive-form' symbol property more thoroughly.
25513
25514 * data.c (Finteractive_form): Use an `interactive-form' property if
25515 present, analogous to the function-documentation property.
25516
255172007-07-24 Jason Rumney <jasonr@gnu.org>
25518
25519 * w32fns.c (x_real_positions): Get real position from OS instead of
25520 calculating it.
25521
255222007-07-23 Jason Rumney <jasonr@gnu.org>
25523
25524 * filelock.c (current_lock_owner): Allow for @ sign in username.
25525
255262007-07-22 Nick Roberts <nickrob@snap.net.nz>
25527
25528 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25529 remote default-directory.
25530
25531 * buffer.c (mode-line-format): Describe above case in doc string.
25532
255332007-07-20 Eli Zaretskii <eliz@gnu.org>
25534
25535 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25536 Define if not defined.
25537
255382007-07-18 Jason Rumney <jasonr@gnu.org>
25539
25540 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25541
255422007-07-18 Richard Stallman <rms@gnu.org>
25543
25544 * data.c (Fsetq_default): Doc fix.
25545
25546 * eval.c (Fsetq): Doc fix.
25547
255482007-07-18 Juanma Barranquero <lekktu@gmail.com>
25549
25550 * coding.c (Ffind_operation_coding_system):
25551 * eval.c (For, Fand): Doc fixes.
25552 Reported by Johan Bockgård.
25553
255542007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25555
25556 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25557
25558 * xterm.h: Declare x_ewmh_activate_frame.
25559
25560 * xterm.c (x_ewmh_activate_frame): New function.
25561 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25562
255632007-07-17 Martin Rudalics <rudalics@gmx.at>
25564
25565 * window.c (Fdisplay_buffer): If largest or LRU window is the
25566 only window, split it even if it is not eligible for splitting.
25567 This restores the original behavior broken by the 2007-07-15
25568 change.
25569
255702007-07-17 Glenn Morris <rgm@gnu.org>
25571
25572 * abbrev.c (abbrev_check_chars): New function.
25573 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25574 Call abbrev_check_chars to check abbrev characters are word
25575 constituents. Doc fix.
25576
255772007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25578
25579 * process.c (Fstart_process, Fmake_network_process)
25580 (read_process_output): Fix up last changes.
25581
255822007-07-16 Eli Zaretskii <eliz@gnu.org>
25583
25584 * makefile.w32-in (clean): Don't delete *~.
25585
255862007-07-16 Andreas Schwab <schwab@suse.de>
25587
25588 * window.c (Fdisplay_buffer): Use NILP.
25589 (Fset_window_scroll_bars): Likewise.
25590
255912007-07-15 Martin Rudalics <rudalics@gmx.at>
25592
25593 * window.c (window_min_size_2): New function.
25594 (window_min_size_1, size_window, Fdisplay_buffer)
25595 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25596 windows without mode- or header-lines when window-min-height is
25597 too small.
25598 (size_window): Reset nodelete_p after testing it, following an
25599 earlier note by Kim F. Storm.
25600 (display_buffer): Do not set split_height_threshold to twice the
25601 value of window_min_height to avoid changing the value of a
25602 customizable variable. Rather explicitly check whether the
25603 height of the window that shall be splitted is at least as large
25604 as split_height_threshold.
25605 (Fwindow_full_width_p): New defun.
25606 (syms_of_window): Defsubr it.
25607
25608 * window.h: Add EXFUN for Fwindow_full_width_p.
25609
256102007-07-14 Jason Rumney <jasonr@gnu.org>
25611
25612 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25613
256142007-07-14 Richard Stallman <rms@gnu.org>
25615
25616 * eval.c (maybe_call_debugger): New function.
25617 (find_handler_clause): Use maybe_call_debugger.
25618 Call it when the handler says `debug'.
25619 Eliminate DEBUGGER_VALUE_PTR.
25620 (Fsignal): Eliminate debugger_value.
25621 (Qdebug): New variable.
25622 (syms_of_eval): Initialize it.
25623
256242007-07-14 Juanma Barranquero <lekktu@gmail.com>
25625
25626 * eval.c (Fprogn):
25627 * keyboard.c (Ftrack_mouse):
25628 * print.c (Fwith_output_to_temp_buffer):
25629 * window.c (Fsave_window_excursion): Doc fix.
25630
256312007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25632
25633 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25634
256352007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25636
25637 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25638 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25639 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25640 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25641 Remove unused encoding_carryover.
25642 * process.c: Adjust all functions accordingly.
25643
256442007-07-12 Richard Stallman <rms@gnu.org>
25645
25646 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25647
256482007-07-11 Jason Rumney <jasonr@gnu.org>
25649
25650 * makefile.w32-in (LIBS): Include OLE32.
25651
25652 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25653 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25654
256552007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25656
25657 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25658 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25659 from a Lisp_Object into a bare pointer.
25660 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25661 Adjust the code correspondingly.
25662
25663 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25664
25665 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25666 (term_show_mouse_face): Remove unused var `j'.
25667 (handle_one_term_event): Remove unused vars `i' and `j'.
25668 Don't cast return value of ttyname since it's not necessary.
25669
256702007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25671
25672 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25673 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25674
25675 * fns.c (map_char_table): Use an array of int for `indices' rather than
25676 an array of Lisp_Objects (which are only ever integers anyway).
25677 (Fmap_char_table): Update caller.
25678 * lisp.h: Update prototype.
25679 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25680 * fontset.c (Ffontset_info):
25681 * casetab.c (set_case_table): Update callers.
25682
25683 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25684
25685 * keymap.c (struct accessible_keymaps_data)
25686 (struct where_is_internal_data): New structures.
25687 (accessible_keymaps_1, where_is_internal_1): Use them to change
25688 interface to adhere to the one used by map_keymap.
25689 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25690 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25691
25692 * keymap.h (map_keymap_function_t): More informative prototype.
25693
256942007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25695
25696 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25697 (looking_at_1): Don't change search_regs and last_thing_searched
25698 if `inhibit-changing-match-data' is non-nil.
25699 (string_match_1, search_buffer, set_search_regs): Likewise.
25700 (syms_of_search): Add Lisp level definition for
25701 `inhibit-changing-match-data' and set it to nil.
25702 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25703 start and end of the match, instead of using values in search_regs.
25704
257052007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25706
25707 * minibuf.c (Fcompleting_read): New value `confirm-only'
25708 for `require-match'.
25709
257102007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25711
25712 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25713 part of the 2007-06-27 change to syms_of_fileio.
25714
257152007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25716
25717 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25718 Check WINDOWP before using XWINDOW. Consolidate return statements.
25719
257202007-06-27 Richard Stallman <rms@gnu.org>
25721
25722 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25723
257242007-06-27 Juanma Barranquero <lekktu@gmail.com>
25725
25726 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25727
257282007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25729
25730 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25731 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25732 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25733 (_free_internal, memalign): Use them.
25734 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25735 Initialize to PTHREAD_MUTEX_INITIALIZER.
25736 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25737 (morecore_nolock): Rename from morecore. All uses changed.
25738 Use only nolock versions of internal allocation functions.
25739 (_malloc_internal_nolock, _realloc_internal_nolock)
25740 (_free_internal_nolock): New functions created from
25741 _malloc_internal, _realloc_internal, and _free_internal.
25742 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25743 Copy hook value to automatic variable before its use.
25744 (memalign): Copy hook value to automatic variable before its use.
25745
257462007-06-26 Kenichi Handa <handa@m17n.org>
25747
25748 * coding.c (Ffind_operation_coding_system): Docstring improved.
25749 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25750
257512007-06-25 David Kastrup <dak@gnu.org>
25752
25753 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25754 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25755 cater for additional parameter.
25756
25757 * keymap.h: Adjust number of parameters to `current-active-maps'.
25758
25759 * doc.c (Fsubstitute_command_keys): Adjust call of
25760 `current-active-maps'.
25761
257622007-06-25 David Kastrup <dak@gnu.org>
25763
25764 * callint.c (Fcall_interactively): Make the parsing of interactive
25765 specs somewhat more readable.
25766
257672007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25768
25769 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25770 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25771 if extended background has already been filled.
25772
257732007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25774
25775 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25776 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25777
25778 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25779 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25780 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25781 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25782 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25783 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25784 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25785 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25786 Run timers during dialog popup.
25787 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25788
257892007-06-21 Jason Rumney <jasonr@gnu.org>
25790
25791 * image.c (convert_mono_to_color_image): Swap fore and background.
25792
257932007-06-20 Jason Rumney <jasonr@gnu.org>
25794
25795 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25796 (w32_free_bdf_font): Unmap memory not handle.
25797
257982007-06-20 Sam Steingold <sds@gnu.org>
25799
25800 * gmalloc.c (__morecore): Fix the declaration to comply with the
25801 definition.
25802
258032007-06-20 Juanma Barranquero <lekktu@gmail.com>
25804
25805 * w32term.c (w32_delete_display): Remove leftover declaration.
25806 (w32_define_cursor, w32_initialize): Make static.
25807
25808 * w32.c (_wsa_errlist): Fix typo in error message.
25809 (init_environment): Ignore any environment variable from the
25810 registry having a null value.
25811
258122007-06-20 Glenn Morris <rgm@gnu.org>
25813
25814 * Makefile.in (LIBGIF): Default to -lgif.
25815
258162007-06-17 Jason Rumney <jasonr@gnu.org>
25817
25818 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25819 unicode strings.
25820
258212007-06-16 Juanma Barranquero <lekktu@gmail.com>
25822
25823 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25824 Fix typo in docstring.
25825
258262007-06-16 Eli Zaretskii <eliz@gnu.org>
25827
25828 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25829 and their keybindings.
25830
258312007-06-15 Chong Yidong <cyd@stupidchicken.com>
25832
25833 * composite.c (update_compositions): Fix last fix.
25834
258352007-06-14 Jason Rumney <jasonr@gnu.org>
25836
25837 * w32.c (get_process_times_fn): New function pointer.
25838 (globals_of_w32): Intialize it if present in kernel32.dll.
25839 (w32_get_internal_run_time): New function.
25840
25841 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25842
258432007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25844
25845 * composite.c (update_compositions): Check the validness of
25846 compositions.
25847
258482007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25849
25850 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25851 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25852
25853 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25854 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25855
25856 * macgui.h (USE_MAC_TOOLBAR): New define.
25857
25858 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25859 Return immediately unless popup is activated.
25860
25861 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25862 background to scroll bar gap.
25863 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25864 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25865 scroll bars on frame edge. Check fringe background extension.
25866 Don't clear extended fringe background area.
25867 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25868 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25869 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25870 [USE_MAC_TOOLBAR]: New macros.
25871 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25872 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25873 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25874 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25875 [USE_MAC_TOOLBAR]: New functions.
25876 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25877 manually if previous repositioning has failed.
25878 (mac_handle_keyboard_event): Use precomputed event kind.
25879 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25880 as tool bar item click. Handle mouse movement over tool bar items.
25881
25882 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25883 toolbar_win_gravity.
25884 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25885 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25886 Add externs.
25887
25888 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25889 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25890
258912007-06-14 Chong Yidong <cyd@stupidchicken.com>
25892
25893 * image.c (search_image_cache): Remove unused variable.
25894
258952007-06-13 Chong Yidong <cyd@stupidchicken.com>
25896
25897 * xfns.c, xmenu.c: Link to xaw3d if available.
25898
258992007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25900
25901 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25902 frame_foreground and frame_background.
25903
25904 * image.c (lookup_image): Save frame foreground and background colors.
25905 (search_image_cache): Check if saved and current frame colors match.
25906
259072007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25908
25909 * regex.c (regex_compile): Remove the `regnum' counter.
25910 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25911
259122007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25913
25914 * term.c: Include intervals.h to declare Fget_text_property.
25915
259162007-06-10 Jason Rumney <jasonr@gnu.org>
25917
25918 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25919
259202007-06-08 Juanma Barranquero <lekktu@gmail.com>
25921
25922 * callint.c (Fcall_interactively):
25923 * editfns.c (Fdelete_and_extract_region):
25924 * fileio.c (Fread_file_name):
25925 * fns.c (Fmapconcat):
25926 * keyboard.c (cmd_error_internal):
25927 * keymap.c (Fkey_description):
25928 * lread.c (openp):
25929 * minibuf.c (read_minibuf):
25930 * search.c (wordify):
25931 * sunfns.c (sel_read):
25932 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25933 * xfns.c (x_default_scroll_bar_color_parameter):
25934 * xmenu.c (menu_help_callback):
25935 * xselect.c (Fx_get_atom_name):
25936 * xterm.c (x_term_init): Use empty_unibyte_string.
25937
259382007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25939
25940 * alloc.c (init_strings): Initialize canonical empty strings.
25941 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25942 canonical empty string when the requested size is 0.
25943
25944 * emacs.c (empty_unibyte_string): Rename from empty_string.
25945 (empty_multibyte_string): New canonical empty string.
25946 (syms_of_emacs): Don't initialize empty_string.
25947
25948 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25949 string, if appropriate.
25950 (empty_unibyte_string, empty_multibyte_string): New externs.
25951 (empty_string): Remove extern.
25952
25953 * lread.c (syms_of_lread): Use empty_unibyte_string.
25954
259552007-06-07 Jason Rumney <jasonr@gnu.org>
25956
25957 * s/ms-w32.h: Don't define HAVE_TZNAME.
25958
25959 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25960
259612007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25962
25963 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25964
25965 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25966 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25967
25968 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25969 Don't call next handler.
25970 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25971 Remove argument. Install handler to application.
25972 (set_frame_menubar): Don't change deep_p.
25973 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25974 FRAME_OUTER_TO_INNER_DIFF_Y.
25975 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25976 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25977 [HAVE_DIALOGS]: New macros.
25978 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25979 Use them.
25980 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25981
25982 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25983 init_service_handler. All callers changed. Return OSStatus value.
25984
25985 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25986 All callers changed so as not to call SetPortWindowPort.
25987 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25988 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25989 mac_draw_string_common.
25990 (mac_draw_image_string_qd): Likewise.
25991 (mac_draw_string_common): Use them. Add INLINE.
25992 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25993 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25994 GetGlobalMouse.
25995 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25996 and FRAME_OUTER_TO_INNER_DIFF_Y.
25997 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25998 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25999 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26000 repositioning window to mac_handle_window_event.
26001 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26002 saving window location to mac_handle_window_event
26003 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26004 (install_menu_target_item_handler): Remove argument in extern.
26005 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26006 Also accept command events.
26007 (do_keystroke): New function created from XTread_socket.
26008 (init_command_handler): Remove functions.
26009 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26010 and save window location by kEventWindowShowing and kEventWindowHiding
26011 handlers here. Don't call next handler for window state change and
26012 focus events.
26013 (mac_handle_application_event, mac_handle_keyboard_event)
26014 [TARGET_API_MAC_CARBON]: New functions.
26015 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26016 kEventWindowShowing and kEventWindowHiding events. Move installation
26017 of mouse, font, text input and menu target item handlers to
26018 install_application_handler.
26019 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26020 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26021 New function.
26022 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26023 Register it.
26024 (XTread_socket) [TARGET_API_MAC_CARBON]:
26025 Consolidate SendEventToEventTarget calls.
26026 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26027 Move application activation handler to mac_handle_application_event.
26028 Move keyboard handler to mac_handle_keyboard_event.
26029 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26030 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26031 init_command_handler. Call install_application_handler.
26032
26033 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26034 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26035
260362007-06-07 Glenn Morris <rgm@gnu.org>
26037
26038 * emacs.c (main): Use `emacs-copyright' in --version output.
26039
260402007-06-06 Chong Yidong <cyd@stupidchicken.com>
26041
26042 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26043
260442007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26045
26046 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26047
26048 * macgui.h: Replace WindowPtr with WindowRef.
26049
26050 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26051 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26052 Replace ControlHandle with ControlRef.
26053 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26054
26055 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26056 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26057 Replace ControlHandle with ControlRef.
26058 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26059 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26060
26061 * macterm.h (struct scroll_bar): Rename member control_handle_low
26062 and control_handle_high to control_ref_low and control_ref_high.
26063 All uses changed.
26064 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26065 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26066 respectively. All uses changed.
26067 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26068 (install_window_handler, remove_window_handler): Replace WindowPtr
26069 with WindowRef in externs.
26070
260712007-06-05 Juanma Barranquero <lekktu@gmail.com>
26072
26073 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26074
260752007-06-03 Nick Roberts <nickrob@snap.net.nz>
26076
26077 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26078
26079 * frame.c (Fmouse_position, Fmouse_pixel_position):
26080 Condition on HAVE_GPM too.
26081
26082 * term.c (term_mouse_highlight): Remove unused variables.
26083 (Fterm_open_connection): Set gpm_zerobased to 1.
26084 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26085 Use zero based co-ordinates.
26086 (handle_one_term_event): Report a drag as mouse movement too.
26087
26088 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26089
260902007-06-03 Chong Yidong <cyd@stupidchicken.com>
26091
26092 * image.c (search_image_cache): New function. Require background
26093 color match if background color is unspecified in the image spec.
26094 (uncache_image, lookup_image): Use it.
26095
260962007-06-01 Juanma Barranquero <lekktu@gmail.com>
26097
26098 * window.c (Fshrink_window): Reflow docstring.
26099
261002007-06-02 Chong Yidong <cyd@stupidchicken.com>
26101
26102 * Version 22.1 released.
26103
261042007-06-01 Richard Stallman <rms@gnu.org>
26105
26106 * xfns.c (x_encode_text): Add GCPRO.
26107
261082007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26109
26110 * xfns.c (x_set_name_internal): Save encoded name before
26111 x_encode_text in case string data is relocated.
26112
261132007-05-31 Richard Stallman <rms@gnu.org>
26114
26115 * buffer.c (syms_of_buffer): Doc fix.
26116
261172007-05-30 Nick Roberts <nickrob@snap.net.nz>
26118
26119 * sysdep.c (init_sys_modes): Add rather than replace with
26120 O_NONBLOCK.
26121
26122 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26123 term_mouse_moveto.
26124
26125 * termhooks.h (term_mouse_moveto): New extern.
26126
26127 * term.c (mouse_face_window): Rename...
26128 (Qmouse_face_window): ...to this.
26129 (term_show_mouse_face, term_clear_mouse_face)
26130 (term_mouse_highlight): Use Qmouse_face_window.
26131 (term_mouse_moveto): New function.
26132 (term_mouse_position): Make it work.
26133 (syms_of_term): Uncomment assignment to mouse_position_hook.
26134 Staticpro Qmouse_face_window.
26135
261362007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26137
26138 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26139 around current_column call.
26140
261412007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26142
26143 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26144 * xdisp.c (next_element_from_buffer):
26145 * window.c (delete_window):
26146 * term.c (term_mouse_highlight):
26147 * msdos.c (getdefdir):
26148 * macterm.c (mac_create_bitmap_from_bitmap_data)
26149 (init_font_name_table):
26150 * fns.c (Fsxhash):
26151 * data.c (Fmake_local_variable):
26152 * ccl.c (ccl_driver): Likewise.
26153
261542007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26155
26156 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26157 Call mac_wakeup_from_rne on window size change.
26158
261592007-05-25 Chong Yidong <cyd@stupidchicken.com>
26160
26161 * image.c (uncache_image): Fix typo.
26162
261632007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26164
26165 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26166
261672007-05-22 Richard Stallman <rms@gnu.org>
26168
26169 * xterm.c (x_connection_closed): Remove NO_RETURN.
26170
261712007-05-22 Martin Rudalics <rudalics@gmx.at>
26172
26173 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26174
261752007-05-21 Chong Yidong <cyd@stupidchicken.com>
26176
26177 * image.c (uncache_image): New function.
26178 (Fimage_refresh): New function.
26179
261802007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26181
26182 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26183
261842007-05-20 Nick Roberts <nickrob@snap.net.nz>
26185
26186 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26187 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26188
261892007-05-20 Nick Roberts <nickrob@snap.net.nz>
26190
26191 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26192 conditional on [HAVE_GPM_H].
26193
261942007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26195
26196 * syntax.c (skip_chars): Update syntax-table only after we checked that
26197 the new location is valid.
26198
261992007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26200
26201 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26202 mac_get_window_bounds.
26203
262042007-05-20 Nick Roberts <nickrob@snap.net.nz>
26205
26206 * Makefile.in (LIBGPM): Allow it to be set from configure.
26207 If set then link Emacs with it.
26208
26209 * config.in: Regenerate.
26210
26211 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
26212 New externs.
26213
26214 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
26215 Include gpm.h.
26216 (handle_one_term_event, term_gpm): New externs.
26217
26218 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
26219 and allow it to be interrupted by SIGIO.
26220
26221 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
26222 (wait_reading_process_output): Wait on gpm_fd too.
26223 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
26224 (add_gpm_wait_descriptor_called_flag): New variable.
26225 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
26226
26227 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
26228 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
26229 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
26230 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
26231 (make_lispy_event): Add case GPM_CLICK_EVENT.
26232 (read_avail_input): Handle mouse input.
26233
26234 * term.c (write_glyphs_with_face): New function.
26235 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
26236 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
26237 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
26238 (mouse_face_face_id, term_gpm, pos_x, pos_y)
26239 (last_mouse_x, last_mouse_y): New variables.
26240 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
26241 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
26242 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
26243 (Fterm_close_connection): New functions.
26244 (term_init): Initialise mouse_face_window.
26245
262462007-05-19 Chong Yidong <cyd@stupidchicken.com>
26247
26248 * xdisp.c (redisplay_window): If first window line is a
26249 continuation line, recompute the new window start instead of
26250 recentering.
26251
262522007-05-18 Glenn Morris <rgm@gnu.org>
26253
26254 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
26255 Suggested by Alfred M. Szmidt <ams@gnu.org>.
26256
262572007-05-17 Glenn Morris <rgm@gnu.org>
26258
26259 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
26260
262612007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26262
26263 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
26264 dead key repeat and up events.
26265
262662007-05-14 Chong Yidong <cyd@stupidchicken.com>
26267
26268 * image.c (pbm_load): Check image size for monochrome pbm.
26269
262702007-05-13 Chong Yidong <cyd@stupidchicken.com>
26271
26272 * xterm.c (XTread_socket): Revert last change.
26273
262742007-05-12 Chong Yidong <cyd@stupidchicken.com>
26275
26276 * image.c (pbm_load): Correctly check image size for greyscale pbm.
26277
26278 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
26279
262802007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26281
26282 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
26283 mixup (YAILOM).
26284
262852007-05-07 Andreas Schwab <schwab@suse.de>
26286
26287 * keymap.c (Flookup_key): Fix typo in last change.
26288
262892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
26290
26291 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
26292 mapping for unibyte strings.
26293
262942007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26295
26296 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
26297 (Fx_popup_dialog) [MAC_OSX]: Likewise.
26298
262992007-04-29 Richard Stallman <rms@gnu.org>
26300
26301 * insdel.c (replace_range): For undo, record insertion first.
26302
263032007-04-29 Andreas Schwab <schwab@suse.de>
26304
26305 * lisp.h (VECSIZE): Use OFFSETOF.
26306
263072007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26308
26309 * xdisp.c (try_window_reusing_current_matrix): Fix number of
26310 disabled lines.
26311
263122007-04-28 Richard Stallman <rms@gnu.org>
26313
26314 * lread.c (read_escape): In a string, \s is always space.
26315
263162007-04-27 Jan Djärv <jan.h.d@swipnet.se>
26317
26318 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
26319
26320 * gtkutil.c (xg_update_menubar, create_menus): Create empty
26321 submenu for menu bar items.
26322
26323See ChangeLog.10 for earlier changes.
26324
26325;; Local Variables:
26326;; coding: utf-8
26327;; add-log-time-zone-rule: t
aac0c6e3
MR
26328;; End:
26329
e3eb1dae 26330 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
26331
26332 This file is part of GNU Emacs.
26333
26334 GNU Emacs is free software: you can redistribute it and/or modify
26335 it under the terms of the GNU General Public License as published by
26336 the Free Software Foundation, either version 3 of the License, or
26337 (at your option) any later version.
26338
26339 GNU Emacs is distributed in the hope that it will be useful,
26340 but WITHOUT ANY WARRANTY; without even the implied warranty of
26341 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26342 GNU General Public License for more details.
26343
26344 You should have received a copy of the GNU General Public License
26345 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26346
26347;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40