(c-guess-basic-syntax CASE 5D.5): Fix an infinite loop on invalid syntax.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
0de59eae
AS
12008-06-21 Andreas Schwab <schwab@suse.de>
2
3 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 4 (.el.elc): Likewise.
0de59eae 5
fb38e9c9
MB
62008-06-21 Miles Bader <miles@gnu.org>
7
8 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9 build dir, not the lisp source dir.
10
fc46d219
SM
112008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14 (bootstrapclean): Remove.
15 (.el.elc): New rule.
16 (PRECOMP): New var.
17 (../lisp/subdirs.el): Remove.
18 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19 (witness-emacs): New target.
20 (mostlyclean): Remove witness-emacs as well.
21 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
22 Add witness-emacs dependency.
23
eaf1f6e7
CY
242008-06-20 Chong Yidong <cyd@stupidchicken.com>
25
26 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
27 defined by the font.
28
49f6eb95
SM
292008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
30
31 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
32 (bootstrap-clean): New target that keeps TAGS around.
33 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
34 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
35
4c100a01
JR
362008-06-20 Jason Rumney <jasonr@gnu.org>
37
49f6eb95
SM
38 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
39 Remove obsolete font code.
db61a7f8 40
49f6eb95
SM
41 * w32font.c (font_matches_spec): Use csb bitfield from font signature
42 to determine language support.
4c100a01 43
759d3f32
SM
442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
45
46 * sysdep.c (cfsetspeed): New fun extracted from the code.
47 (cfmakeraw): Move before first use.
48
25241b4d
SM
492008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
50
51 * sysdep.c (cfmakeraw): Provide fallback implementation.
52 (serial_configure): Provide fallback implementation of cfsetspeed.
53
d7afccca
KH
542008-06-20 Kenichi Handa <handa@m17n.org>
55
dc2226d0
KH
56 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
57 the pattern.
58
9b9cd864
KH
59 * fontset.c (fontset_from_font): Copy font_spec before changing
60 the elements.
61
d7afccca
KH
62 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
63
770e2e6e
SM
642008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
65
66 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
67 for explicit `font' parameters.
68
69 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
70
22e64f7c
KH
712008-06-19 Kenichi Handa <handa@m17n.org>
72
73 * frame.c: Include <ctype.h>.
74 (x_set_font_backend): Allow spacing characters in the X resource
75 for FontBackend.
76
27129af9
SM
772008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
78
79 * w32fns.c, xfns.c (Qfont_param): New var.
80 (syms_of_w32fns): Initialize it.
22e64f7c
KH
81 (x_default_font_parameter): Record explicit `font' into
82 `font-parameter'.
27129af9 83
d26424c5
KH
842008-06-18 Kenichi Handa <handa@m17n.org>
85
86 * font.c (font_parse_xlfd): Fix previous change.
87 (font_parse_fcname): Don't use :fc-unknown-spec.
88 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
89 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
90 (font_add_log): Prepend the driver name to the resulting fonts.
91
92 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
93 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
94 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
95
96 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
97 (QCembolden): New variables.
98 (syms_of_xftfont): DEFSYM them.
99 (xftfont_open): Call XftFontMatch. Don't trust the result of
100 XftTextExtents8 if the pixel_size is less than 5.
101
51cf11be
AS
1022008-06-18 Andreas Schwab <schwab@suse.de>
103
104 * font.c (Ffont_face_attributes): Only define if
105 HAVE_WINDOW_SYSTEM.
106 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
107
07d9ba9b
JR
1082008-06-18 Jason Rumney <jasonr@gnu.org>
109
27129af9 110 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 111
27129af9 112 * w32uniscribe (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 113
0c36bc4e
CY
1142008-06-17 Chong Yidong <cyd@stupidchicken.com>
115
116 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
117 unknown-spec list. For known key symbols, intern using correct
118 symbol name.
0c36bc4e 119
70d6ecc6
KH
1202008-06-17 Kenichi Handa <handa@m17n.org>
121
122 * xfaces.c (realize_default_face): If the frame is not on window
123 system, set the fontset of face to nil.
124
821bc4db
KH
1252008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
126
127 * fontset.c (fontset_pattern_regexp): Escape some reg-expr
128 characters.
129
3554e566
JB
1302008-06-16 Juanma Barranquero <lekktu@gmail.com>
131
132 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
133 (build_font_name_from_vector): Delete externs.
134
135 * xfaces.c (struct font_name): Don't declare.
136
93eed26b
SM
1372008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
138
139 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
140
d756bcd0
CY
1412008-06-16 Chong Yidong <cyd@stupidchicken.com>
142
143 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
144
7a18a178
JB
1452008-06-16 Juanma Barranquero <lekktu@gmail.com>
146
147 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 148 (Ffont_face_attributes): Doc fix.
7a18a178 149
6f568955
AS
1502008-06-16 Andreas Schwab <schwab@suse.de>
151
152 * font.c (Ffont_face_attributes): Fix definition.
153
3ef8c1b4
JR
1542008-06-16 Jason Rumney <jasonr@gnu.org>
155
93eed26b 156 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 157
93eed26b
SM
158 * font.c (font_style_symbolic_from_value): Remove.
159 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 160
93eed26b
SM
161 * w32font.c (w32_to_fc_weight): New function.
162 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 163
5e634ec9
KH
1642008-06-16 Kenichi Handa <handa@m17n.org>
165
166 * font.c (font_check_object): Delete it.
167 (font_clear_cache): Check if a font-object is alive.
168 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
169 font-object to nil.
170 (font_close_object): Don't check FONT_CLOSE_OBJECT.
171 (font_at): Don't call font_check_object.
2babb359 172 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 173
6409a955
KY
1742008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
175
176 * puresize.h (BASE_PURESIZE): Increase to 1230000.
177
ce4eaddb
CY
1782008-06-16 Chong Yidong <cyd@stupidchicken.com>
179
180 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
181
523dbe64
CY
1822008-06-15 Chong Yidong <cyd@stupidchicken.com>
183
54b2ab27 184 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
185 (font_unparse_fcname): Handle data in family and foundry indices
186 as symbols, not strings.
187 (font_unparse_gtkname, Ffont_face_attributes): New functions.
188
54b2ab27 189 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
190
191 * font.h (font_unparse_gtkname): Add prototype.
192
9f296082
KH
1932008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
194
54b2ab27 195 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 196
3306c6dc
AS
1972008-06-15 Andreas Schwab <schwab@suse.de>
198
199 * font.c (font_update_drivers): Fix crash when no drivers match.
200
a099c27a
SM
2012008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
202
203 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
204 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
205
a8aa344d
SM
2062008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
207
208 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
209
a879ee6f
SM
2102008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
211
212 * process.c (Fserial_process_configure, Fprocess_send_eof):
213 Use EQ to compare Lisp_Objects.
214
6fe9826d
JR
2152008-06-13 Jason Rumney <jasonr@gnu.org>
216
a879ee6f 217 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 218
a879ee6f
SM
219 * w32font.c (logfont_to_fcname): New function.
220 (Fx_select_font): New font dialog function compatible with
221 GTK/fontconfig version.
6fe9826d 222
a879ee6f
SM
223 * font.c (font_style_symbolic_from_value): New function.
224 (font_style_symbolic): Use it.
6fe9826d 225
a879ee6f 226 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 227
17ab8f5d
JB
2282008-06-13 Juanma Barranquero <lekktu@gmail.com>
229
230 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
231 <font-width-table>: Fix typos in docstrings.
232
d888760c
GM
2332008-06-13 Daniel Engeler <engeler@gmail.com>
234
235 These changes add serial port access.
236 * process.c: Add HAVE_SERIAL.
237 (Fdelete_process, Fprocess_status, Fset_process_buffer)
238 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
239 (list_processes_1, select_wrapper, Fstop_process)
240 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
241 (status_notify): Modify to handle serial processes.
242 [HAVE_SERIAL] (Fserial_process_configure)
243 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
244 New functions.
245 * process.h (struct Lisp_Process): Add `type'.
246 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
247 New functions.
248 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
249 serial ports.
250 (serial_open, serial_configure) New functions.
251 * w32.h: Add FILE_SERIAL.
252 (struct _child_process): Add ovl_read, ovl_write.
253
f4cc0153
KH
2542008-06-13 Kenichi Handa <handa@m17n.org>
255
256 * dispextern.h (enum lface_attribute_index): New member
257 LFACE_FOUNDRY_INDEX.
258
259 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 260 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 261 style symbols.
7a18e381 262 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
263 order of font-driver to scores.
264 (font_list_entities): Don't check alternate_familes here.
265 (font_clear_prop): Handle foundry.
266 (font_update_lface): Don't parse "foundry-family" form here.
267 Handle FONT_FOUNDRY_INDEX.
268 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 269 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 270 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 271 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
272 (free_font_driver_list): Delete it.
273 (font_update_drivers): Preserve the order of backends.
274 (syms_of_font): Setting of sort_shift_bits adjusted for the change
275 of font_score and font_sort_entites.
276 (font_update_sort_order): Likewise.
277
278 * xfaces.c (LFACE_FOUNDRY): New macro.
279 (check_lface_attrs): Check foundry.
7a18e381 280 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
281 (merge_face_vectors): Check foundry.
282 (merge_face_ref): Likewise.
283 (Finternal_set_lisp_face_attribute): Likewise.
284 (x_update_menu_appearance): Likewise.
285 (Finternal_get_lisp_face_attribute): Likewise.
286 (lface_hash): Likewise.
287 (lface_same_font_attributes_p): Likewise.
288 (x_supports_face_attributes_p): Likewise.
289 (tty_supports_face_attributes_p): Likewise.
290 (Finternal_set_alternative_font_family_alist): Intern strings.
291 (Finternal_set_alternative_font_registry_alist): Downcase strings.
292 (realize_default_face): Set LFACE_FOUNDRY (lface).
293
294 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
295 font-driver at first.
296
297 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
298
d434fef5 2992008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
300
301 * lread.c (Fload): Use xfree, not free on saved_doc_string.
302
9c5e177e
JM
3032008-06-12 Jim Meyering <meyering@redhat.com>
304
d434fef5 305 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
306 * unexmacosx.c (unexec_free): Ignore a NULL argument.
307
2afc21f5
SM
3082008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
309
310 * character.h (CHAR_TO_BYTE_SAFE): New macro.
311 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
312 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
313 (WEAK_ALIAS): Simplify.
314 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
315 when searching a unibyte buffer.
316
76c0de62
CY
3172008-06-12 Chong Yidong <cyd@stupidchicken.com>
318
319 * xfns.c (Fx_select_font): Rename from x-font-dialog.
320
0500dcc9
JB
3212008-06-12 Juanma Barranquero <lekktu@gmail.com>
322
323 * w32font.c: Include ctype.h.
324
f42adef6
JR
3252008-06-11 Jason Rumney <jasonr@gnu.org>
326
2afc21f5
SM
327 * w32font.c (w32font_encode_char): Detect missing glyphs that are
328 misreported as space.
329 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
330 as aliases for registry iso10646-1.
f42adef6 331
4b7cdc0e
SM
3322008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
333
334 * buffer.c (clone_per_buffer_values): Skip `name'.
335
cc02ebe1
CY
3362008-06-11 Chong Yidong <cyd@stupidchicken.com>
337
338 * font.c (font_parse_fcname): Fix last change; accept decimal
339 points in font size.
340
351ccb76
JR
3412008-06-10 Jason Rumney <jasonr@gnu.org>
342
0500dcc9
JB
343 * w32uniscribe.c (add_opentype_font_name_to_list):
344 Skip non unicode fonts.
351ccb76 345
f473ed6f
CY
3462008-06-10 Chong Yidong <cyd@stupidchicken.com>
347
348 * xfns.c (Fx_font_dialog): New function.
349
5d6333d5 350 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
351 xg_file_response_callback.
352 (pop_down_dialog): Rename from pop_down_file_dialog.
353 (xg_get_file_name): Callers changed.
354 (xg_get_font_name): New function.
355
5d6333d5 356 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 357
2a3bd2e1
SM
3582008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
359
360 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
361 x_underline_minimum_display_offset.
362 (syms_of_xdisp): Declare it here rather than in xterm.c.
363 * dispextern.h (underline_minimum_offset): Declare it.
364 * w32term.c (x_draw_glyph_string): Use it.
365 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
366 (syms_of_xterm): Don't declare it any more.
367 (x_draw_glyph_string): Adjust to the new name.
368
d5dc6163
SM
3692008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
370
371 * xterm.c (x_underline_minimum_display_offset): New var.
372 (x_draw_glyph_string): Use it.
373 (syms_of_xterm): Declare it.
374
0abdd197
CY
3752008-06-10 Chong Yidong <cyd@stupidchicken.com>
376
377 * font.c (font_parse_fcname): Accept GTK-style font names too.
378
a1562258
SM
3792008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
380
928b5acc
SM
381 * dired.c (file_name_completion): Don't return t if the match is exact
382 but with different capitalization.
383 * minibuf.c (Ftry_completion): Simplify.
384
a1562258
SM
385 * window.c (Vwindow_point_insertion_type): New var.
386 (set_window_buffer): Use it.
387 (syms_of_window): Init and export it to Lisp.
388
9552dbd1
KH
3892008-06-10 Kenichi Handa <handa@m17n.org>
390
391 * font.h (font_intern_prop): Prototype adjusted.
392
393 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
394 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
395 Adjust for the change of font_intern_prop.
9552dbd1 396
a1562258
SM
397 * ftfont.c (ftfont_pattern_entity):
398 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
399 (w32_registry):
400 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
401 the change of font_intern_prop.
402
8993ad2e
JB
4032008-06-09 Juanma Barranquero <lekktu@gmail.com>
404
405 * w32menu.c (digest_single_submenu): Declare extern.
406
0c2258fc
JR
4072008-06-09 Jason Rumney <jasonr@gnu.org>
408
a1562258 409 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 410
a1562258
SM
411 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
412 (parse_single_submenu): Remove.
413 (digest_single_submenu): Remove.
414 (syms_of_w32menu): Don't initialise variables that have moved
415 to menu.c.
416 (set_frame_menubar): Sync with version in xmenu.c.
417 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 418
8993ad2e
JB
419 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
420 Make static again.
0c2258fc 421
02246cb8
JR
4222008-06-09 Jason Rumney <jasonr@gnu.org>
423
8993ad2e
JB
424 Changes to w32 files related to the move of common menu code
425 to menu.c on 2008-06-08 by Chong Yidong.
426
427 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
428 defs to w32gui.h.
429 (single_keymap_panes, push_menu_item, push_menu_pane):
430 Make globally visible.
431
d434fef5
JB
432 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
433 (local_free, malloc_widget_value, free_widget_value)
434 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
435 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
436 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 437 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 438 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
439 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
440 (init_menu_items, finish_menu_items, discard_menu_items)
441 (grow_menu_items, push_submenu_start, push_submenu_end)
442 (push_left_right_boundary, push_menu_pane, push_menu_item)
443 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 444 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
445 (update_submenu_strings): Remove functions.
446 (xmalloc_widget_value): Remove and declare extern.
447
448 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
449 (OBJ1): Build it.
450
451 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
452 (local_heap, local_alloc, local_free, malloc_widget_value)
453 (free_widget_value): Define here.
02246cb8 454
9e1bb909
KH
4552008-06-09 Kenichi Handa <handa@m17n.org>
456
366664ad
KH
457 * font.h (Qascii_0): Extern it.
458
9e1bb909
KH
459 * font.c (Qascii_0): New variable.
460 (syms_of_font): DEFSYM it.
461 (font_open_by_name): If the registry "iso8859-1" fails, try also
462 "ascii-0".
463
464 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
465
b2ee479e
KH
4662008-06-08 Kenichi Handa <handa@m17n.org>
467
8f440b79 468 * .gdbinit (xfont): New command.
b2ee479e 469
01ef9d36
AS
4702008-06-08 Andreas Schwab <schwab@suse.de>
471
a4240420
AS
472 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
473 * Makefile.in (menu.o): Update dependencies.
474
0181bf66 475 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
476 * emacs.c (main): Always call syms_of_menu.
477 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
478
c07cbae6
CY
4792008-06-08 Chong Yidong <cyd@stupidchicken.com>
480
481 * Makefile.in: Compile menu.c.
482
483 * lisp.h: Declare syms_of_menu.
484
485 * emacs.c (main): Call syms_of_menu.
486
487 * keyboard.h: Relocate platform-independent menu definitions from
488 xmenu.c.
489
490 * menu.c: New file. Relocate platform-independent menu
904d8c69 491 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
492
493 * xmenu.c: Remove platform-independent menu definitions.
494 (menu_items menu_items_inuse, menu_items_allocated)
495 (menu_items_used, menu_items_n_panes)
496 (menu_items_submenu_depth): Move to keyboard.h.
497 (init_menu_items, finish_menu_items, unuse_menu_items)
498 (discard_menu_items, restore_menu_items, save_menu_items)
499 (grow_menu_items, push_submenu_start, push_submenu_end)
500 (push_left_right_boundary, push_menu_pane, push_menu_item)
501 (keymap_panes, single_keymap_panes, single_menu_item)
502 (list_of_panes, list_of_items, find_and_call_menu_selection)
503 (xmalloc_widget_value, free_menubar_widget_value_tree)
504 (parse_single_submenu, digest_single_submenu)
505 (update_submenu_strings): Move to menu.c.
506
4958ed94
SM
5072008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
508
509 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
510
408b8ab4
MB
5112008-06-06 Miles Bader <miles@gnu.org>
512
513 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
514 face, not frame default.
515
87478b52
SM
5162008-06-05 Martin Rudalics <rudalics@gmx.at>
517
518 * window.c (pop_up_windows, pop_up_frames)
519 (display_buffer_reuse_frames, Vpop_up_frame_function)
520 (Vdisplay_buffer_function, Veven_window_heights)
521 (Vspecial_display_buffer_names, Vspecial_display_regexps)
522 (Vspecial_display_function, Vsame_window_buffer_names)
523 (Vsame_window_regexps, split_height_threshold)
524 (Vsplit_window_preferred_function): Move those vars to window.el.
525 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
526 (Fdisplay_buffer): Move those functions to window.el.
527 (syms_of_window): Remove corresponding declarations.
528 (display_buffer): New function.
529 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
530 * dispnew.c (Flast_nonminibuf_frame): New function.
531 * buffer.c (Fpop_to_buffer): Move to window.el.
532
9e0e0d77
SM
5332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
534
535 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
536
4a485df8
KH
5372008-06-05 Kenichi Handa <handa@m17n.org>
538
539 * coding.c (detect_coding): Fix previous change.
540 (detect_coding_system): Likewise.
541
8ba31f36
SM
5422008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
543
c0dc8f64
SM
544 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
545
8ba31f36
SM
546 * keymap.c (Vminibuffer_local_filename_must_match_map):
547 Rename from Vminibuffer_local_must_match_filename_map.
548 (syms_of_keymap):
549 * minibuf.c (Fcompleting_read): Adjust accordingly.
550 * commands.h: Rename declaration as well.
551
7740d2c7
KH
5522008-06-05 Kenichi Handa <handa@m17n.org>
553
e7438ece
KH
554 * font.c (Ffont_spec): Don't use font_parse_family_registry for
555 family name.
556 (Ffont_put): Likewise.
557
558 * fontset.c (fontset_find_font): Call font_open_for_lface with the
559 current font-spec.
560
7740d2c7
KH
561 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
562 is unspecified.
563
564 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
565 are the same as those of default face, realize a new fontset from
566 default->fontset.
9e0e0d77 567 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 568
c876b227
SM
5692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
570
571 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
572 (move_it_in_display_line): New wrapper.
573
574 * window.c (window_scroll_pixel_based_preserve_x)
575 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
576 (window_scroll_pixel_based, window_scroll_line_based):
577 Use them to preserve column positions.
578 (syms_of_window): Initialize them.
579
580 * indent.c (Fvertical_motion): Extend first arg to allow passing an
581 (HPOS . VPOS) pair.
582
583 * dispextern.h (move_it_in_display_line): Declare.
584
927abf37
JB
5852008-06-05 Juanma Barranquero <lekktu@gmail.com>
586
587 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
588 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
589 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
590
9d14503e
JB
5912008-06-04 Juanma Barranquero <lekktu@gmail.com>
592
593 * window.c (Fset_window_parameter): Doc fix.
594 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
595
e6841c3b
JB
5962008-06-04 Joakim Verona <joakim@verona.se>
597
598 * window.h (struct window): Add new member window_parameters.
599
600 * window.c (Fwindow_parameters, Fwindow_parameter)
601 (Fset_window_parameter): New defuns.
602 (syms_of_window): Defsubr the new defuns.
603 (make_window): Initialize window_parameters to nil.
604
4ba50634
JPW
6052008-06-04 John Paul Wallington <jpw@pobox.com>
606
607 * eval.c (Fdefmacro): Doc fix.
608
c0e16b14
KH
6092008-06-04 Kenichi Handa <handa@m17n.org>
610
611 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 612 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
613 (detect_coding_system): Fix handling of coding->head_ascii.
614
0615d903
AS
6152008-06-03 Andreas Schwab <schwab@suse.de>
616
617 * font.c (font_prop_validate_spacing): Fix last change.
618
8a1816bb
KH
6192008-06-03 Kenichi Handa <handa@m17n.org>
620
eea9c5c4
KH
621 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
622 (font_parse_fcname): Fix handling of unknown key.
623
624 * xfont.c (xfont_list): Try an alias.
625
8a1816bb
KH
626 * charset.c (char_charset): Return NULL if the arg charset_list is
627 specified and C doesn't belong to any of them.
628
2f593f4c 6292008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
630
631 * font.c (font_pixel_size): Don't take cdr of an integer.
632
c2cd06e6
JM
6332008-06-02 Jim Meyering <meyering@redhat.com>
634
70fdbb46
JM
635 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
636 * alloc.c (xfree): Return right away for a NULL arg.
637 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
638 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
639 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
640 (create_apple_event_from_drag_ref, cfstring_create_normalized):
641 Likewise.
70fdbb46
JM
642 * doprnt.c (doprnt1): Likewise.
643 * frame.c (frame): Likewise.
644 * keyboard.c (wipe_kboard): Likewise.
1f204af3 645 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
646 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
647 * term.c (tty_default_color_capabilities, maybe_fatal)
648 (delete_tty): Likewise.
649 * w16select.c (string): Likewise.
650 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
651 * w32bdf.c (w32_free_bdf_font): Likewise.
652 * w32fns.c (w32_unload_font): Likewise.
653 * w32font.c (w32font_close): Likewise.
654 * window.c (size_window): Likewise.
655 * xselect.c (receive_incremental_selection): Likewise.
656 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
657 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
658 * w32.c (stat): Likewise.
659
2f593f4c 660 Remove useless if-before-free tests.
70fdbb46
JM
661 * editfns.c (Fset_time_zone_rule): Likewise.
662 * lread.c (nosuffix): Likewise.
663 * ralloc.c (get_bloc): Likewise.
664 * regex.c (reg_free): Likewise.
665 * xftfont.c (xftfont_open, xftfont_close): Likewise.
666 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
667 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 668
4fc1984a
KH
6692008-06-02 Kenichi Handa <handa@m17n.org>
670
1d1e1245
KH
671 * font.c (font_find_for_lface): Handle float font size.
672 (font_open_for_lface): Likewise.
673
4fc1984a
KH
674 * xfaces.c (x_supports_face_attributes_p): Check face->font before
675 comparing the properties.
676
aee986fd
JR
6772008-06-01 Jason Rumney <jasonr@gnu.org>
678
e6841c3b
JB
679 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
680 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
681 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
682 Don't add empty script list.
683 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 684
60a3d7ee
DN
6852008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
686
aee986fd 687 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
688 ".." has been used elsewhere in the file for a long time.
689 (LIBXT_STATIC): Remove conditional based on unused variable.
690
f2cec7a9
MB
6912008-06-01 Miles Bader <miles@gnu.org>
692
693 * xfaces.c (Vface_remapping_alist): New variable.
694 (syms_of_xfaces): Initialize it.
695 (enum named_merge_point_kind): New type.
696 (struct named_merge_point): Add `named_merge_point_kind' field.
697 (push_named_merge_point): Make cycle detection respect different
698 named-merge-point kinds.
c876b227 699 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
700 Remove face-name alias resolution.
701 (lface_from_face_name): New definition using
702 `lface_from_face_name_no_resolve'.
c876b227 703 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
704 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
705 (get_lface_attributes): New definition that layers face-remapping on
706 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
707 (lookup_basic_face): New function.
708 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
709 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
710 `get_lface_attributes'.
711 (face_at_buffer_position): Use `lookup_basic_face' to lookup
712 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
713 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
714
715 * xdisp.c (init_iterator): Pass base_face_id through
716 `lookup_basic_face' when we actually use it as a face-id.
717 (handle_single_display_prop): Use `lookup_basic_face' to lookup
718 DEFAULT_FACE_ID.
719
720 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
721 lookup the initial face-id.
722
723 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
724
518c0b83
JB
7252008-06-01 Juanma Barranquero <lekktu@gmail.com>
726
727 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
728 (Fremove_text_properties): Fix typos in docstrings.
729
719b3d63
KH
7302008-05-31 Kenichi Handa <handa@m17n.org>
731
e4c93315
KH
732 * font.c (font_list_entities): Fix the car part of data to be
733 stored in the cache.
734
719b3d63
KH
735 * ftfont.c (ftfont_font_format): Don't use strcasestr.
736
d0827857
SM
7372008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
738
739 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
740 Add a `test' argument so another predicate than `equal' can be used.
741 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
742 (map_char_table): Remove unused vars `c' and `i'.
743 * lisp.h (Foptimize_char_table): Adjust declaration.
744 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
745
a266686a
KH
7462008-05-30 Kenichi Handa <handa@m17n.org>
747
d0827857 748 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
749 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
750 defined.
751
fd9440c5
SM
7522008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
753
754 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
755 (Fmake_variable_frame_local): Disallow mixing buffer-local and
756 frame-local settings for the same variable.
757
fd2ae9b2
KH
7582008-05-30 Kenichi Handa <handa@m17n.org>
759
9e0e0d77 760 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
761 (syms_of_fontset): Delete defsubr of Sfont_info.
762
763 * font.c (font_style_to_value, font_score): Delete casting of the
764 args to xstcasecmp.
765 (register_font_driver): Increment num_font_drivers only when
766 registering the driver globally.
9e0e0d77 767 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
768 (syms_of_font): Defsubr Sfont_info.
769
eaf11618
KH
7702008-05-29 Kenichi Handa <handa@m17n.org>
771
772 * coding.h (enum define_coding_utf8_arg_index): New enum.
773 (enum coding_attr_index): Change coding_attr_utf_16_bom to
774 coding_attr_utf_bom.
fd9440c5
SM
775 (enum utf_bom_type): Rename from utf_16_bom_type.
776 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
777 (struct coding_system): Add utf_8_bom in `spec' union.
778
779 * coding.c (CODING_UTF_8_BOM): New macro.
780 (enum coding_category): Delete coding_category_utf_8, add
781 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
782 coding_category_utf_8_sig.
783 (CATEGORY_MASK_UTF_8): Delete it.
784 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
785 (CATEGORY_MASK_UTF_8_SIG): New macros.
786 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
787 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
788 CATEGORY_MASK_UTF_8_SIG.
789 (CATEGORY_MASK_UTF_8): New macro.
790 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
791 (detect_coding_utf_8): Check BOM.
792 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 793 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
794 (encode_coding_utf_16): Likewise.
795 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
796 (detect_coding, detect_coding_system): Handle utf-8-auto.
797 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
798 (syms_of_coding): Fix setting up of Vcoding_category_table.
799
891bd142
SM
8002008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
801
802 * process.c (Faccept_process_output): If `millisec' is non-nil,
803 `seconds' default to 0.
804 (wait_reading_process_output): Also return non-nil if we read output
805 from a non-running process.
806
1519d52e
JR
8072008-05-29 Jason Rumney <jasonr@gnu.org>
808
fd9440c5
SM
809 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
810 `raster' specified.
811 (add_font_entity_to_list): Allow non-opentype truetype fonts back
812 in the uniscribe backend, but disallow any font that has no
813 unicode subrange support.
1519d52e 814
d5ab09cd
JB
8152008-05-29 Juanma Barranquero <lekktu@gmail.com>
816
817 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
818 Fix typos in docstrings.
819
a4eec626
KH
8202008-05-29 Kenichi Handa <handa@m17n.org>
821
822 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 823 (Fx_family_fonts): Set frame correctly.
a4eec626 824
a6e0b7e5
JR
8252008-05-28 Jason Rumney <jasonr@gnu.org>
826
d5ab09cd 827 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 828
6b3d752c
SM
8292008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
830
831 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
832 calling build_annotations.
833
c3f9fba8
JB
8342008-05-28 Juanma Barranquero <lekktu@gmail.com>
835
836 * coding.c (Fdecode_coding_region, Fencode_coding_region)
837 (Fencode_coding_string):
838 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
839 <latin-extra-code-table>: Fix typos in docstrings.
840 (syms_of_coding) <coding-system-alist>: Doc fix.
841 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
842
00c670e1
KH
8432008-05-28 Kenichi Handa <handa@m17n.org>
844
b75d7f28
KH
845 * fontset.c (Ffont_info): Don't call font_close_object.
846
847 * font.c (font_parse_family_registry): Use Ffont_put to validate
848 foundry and family.
849 (font_delete_unmatched): Don't check spacing.
850 (font_list_entities): Add spacing to the spec to list fonts.
851
852 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 853 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 854
00c670e1
KH
855 * coding.c (encode_coding_raw_text): Fix previous change.
856 (encode_coding_object): When the dst_object is a buffer and is
857 different from src_object, move gap to PT.
858
45feca91
CY
8592008-05-27 Chong Yidong <cyd@stupidchicken.com>
860
c3f9fba8 861 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 862
5dd5d9eb
SM
8632008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
864
01d45367
SM
865 * coding.c (encode_coding_raw_text): Set coding->produced_char for
866 all branches. Compute it differently.
867
5dd5d9eb
SM
868 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
869
9c623c85
JB
8702008-05-27 Juanma Barranquero <lekktu@gmail.com>
871
872 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
873 into "else if () ... else ...".
874
943f2093
JR
8752008-05-27 Jason Rumney <jasonr@gnu.org>
876
5dd5d9eb
SM
877 * w32font.c (w32font_open_internal): Determine if glyph indices
878 are likely to work here.
943f2093 879
7385fe74
CY
8802008-05-27 Chong Yidong <cyd@stupidchicken.com>
881
882 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
883 draw overlap glyphs with appropriate highlighting.
884
4f64a164
KH
8852008-05-27 Kenichi Handa <handa@m17n.org>
886
887 * xfont.c (xfont_open): Fix calculation of font->average_width.
888
1fb5aad7
SM
8892008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
890
891 * casefiddle.c (casify_object): Try to guess better whether the
892 argument is a byte or a char.
893
f8eb1603
AS
8942008-05-26 Andreas Schwab <schwab@suse.de>
895
1fb5aad7
SM
896 * xselect.c (x_reply_selection_request): Properly handle format == 32.
897 Always send multiples of format size.
5a9c35e5 898
f8eb1603
AS
899 * xterm.c (x_set_frame_alpha): Fix type mismatch.
900
ba93d684
JR
9012008-05-26 Jason Rumney <jasonr@gnu.org>
902
1fb5aad7
SM
903 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
904 (compute_metrics): Don't set failure if we just cleared the cache.
905 (w32_weight_table): Remove unused variable.
906 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
907 backwards compatibility.
ba93d684 908
505ecc49
KH
9092008-05-25 Kenichi Handa <handa@m17n.org>
910
1fb5aad7
SM
911 * w32term.c (x_draw_glyph_string):
912 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
913
914 * xfaces.c: Delete unused function prototypes.
915 (xstrlwr, font_frame): Delete them.
916 (clear_face_cache): Delete unused variable.
917
1fb5aad7
SM
918 * xftfont.c (xftfont_open): Delete unused variable.
919 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
920
921 * ftxfont.c (ftxfont_open): Delete unused variable.
922
923 * fontset.c (face_for_char): Optimize for the case of no charset
924 property.
925
926 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
927 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
928 (otf_open, font_otf_capability, generate_otf_features)
929 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 930 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
931 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
932 (syms_of_font): Codes for accessing above commented out.
933
f481eb31
EZ
9342008-05-24 Eli Zaretskii <eliz@gnu.org>
935
936 * w32proc.c: Include dispextern.h.
937
938 * w32.c: Include dispextern.h.
939
20746fe4
JB
9402008-05-23 Juanma Barranquero <lekktu@gmail.com>
941
942 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
943 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
944 Fix typos in docstrings.
945
e7150846
JR
9462008-05-23 Jason Rumney <jasonr@gnu.org>
947
20746fe4 948 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 949
dbf46ba6
KH
9502008-05-23 Kenichi Handa <handa@m17n.org>
951
6c652beb
KH
952 * charset.c (Qemacs, charset_emacs): New variables.
953 (char_charset): Fix for non-Unicode characters.
954 (syms_of_charset): Define charset_emacs.
955
baf4d3b3 956 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
957 s->underline_thickness and s->underline_position. Be sure to draw
958 underline within the current line area.
baf4d3b3
KH
959
960 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 961 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 962 underline within the current line area.
baf4d3b3 963
dbf46ba6
KH
964 * fontset.c: Delete unused variables and add casting for char *
965 throughout the file.
966 (fontset_font): Try the fallback fonts of the current fontset
967 before consulting the default fontset.
968
969 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
970
9e0e0d77 971 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 972
3b780338
JR
9732008-05-22 Jason Rumney <jasonr@gnu.org>
974
20746fe4 975 * font.c: Don't include strings.h.
577eba22 976
9e0e0d77 977 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 978
20746fe4
JB
979 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
980 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
981 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
982 to call xstrcasecmp.
05131107 983
b1722a46 984 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 985
b1722a46 986 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 987
b1722a46 988 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 989
b1722a46 990 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 991
a30e1957
KH
9922008-05-22 Kenichi Handa <handa@m17n.org>
993
20746fe4 994 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 995
20746fe4 996 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
997 change of font_style_table.
998
a30e1957
KH
999 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
1000 two args.
1001
1002 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
1003 two args.
1004
631248e5
SM
10052008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
1006
1007 * minibuf.c (keys_of_minibuf): Delete.
1008 * lisp.h (keys_of_minibuf): Delete.
1009 * emacs.c (main): Don't call keys_of_minibuf.
1010
318548be
KH
10112008-05-22 Kenichi Handa <handa@m17n.org>
1012
631248e5 1013 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
1014 ftfont_list_generic_family. Return a single family for each
1015 generic family.
1016 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
1017 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
1018 Call font_add_log.
318548be
KH
1019 (ftfont_match): Call font_add_log.
1020
1021 * font.h (Ffont_xlfd_name): EXFUN adjusted.
1022 (FONT_DEBUG): Define it.
1023 (font_add_log): Extern it.
631248e5 1024 (font_assert): Rename from xassert.
318548be
KH
1025
1026 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
1027 (xfont_list_family): Call font_add_log.
1028 (xfont_match): Likewise.
631248e5 1029 (memq_no_quit): Delete.
318548be
KH
1030
1031 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
1032 call of Ffont_xlfd_name.
1033
1034 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 1035 (swidth_table): Move to font.c.
318548be
KH
1036
1037 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 1038 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
1039 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
1040 New variables.
631248e5
SM
1041 (struct table_entry): Move from xfaces.c and modified.
1042 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 1043 contents adjusted for the change of struct table_entry.
20746fe4 1044 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 1045 format change of font_style_table.
318548be
KH
1046 (font_parse_family_registry): Don't overwrite existing foundry and
1047 family of font_spec.
1048 (font_score): Fix calculation of diff for sizes.
1049 (font_sort_entites): Call font_add_log.
1050 (font_delete_unmatched): Return a newly created list.
1051 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
1052 (font_matching_entity, font_open_entity, font_close_entity):
1053 Call font_add_log.
318548be 1054 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 1055 (Finternal_set_font_style_table): Delete.
318548be
KH
1056 (BUILD_STYLE_TABLE): New macro.
1057 (build_style_table): New function.
1058 (Vfont_log, font_log_env_checked): New variables.
1059 (font_add_log): New function.
1060 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
1061 Declare Lisp variables "font-weight-table", "font-slant-table",
1062 "font-width-table", and "font-log". Initialize font_style_table.
1063
6aac1c03
DN
10642008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
1065
bcc850aa 1066 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 1067
7950790f
GM
10682008-05-21 Seiji Zenitani <zenitani@mac.com>
1069 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 1070
7950790f 1071 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 1072 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 1073 (x_set_alpha): New function.
a2979e8e 1074
7950790f 1075 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 1076
7950790f
GM
1077 * xfns.c (x-create-frame, Qalpha):
1078 Initialize the frame parameter `alpha'.
b9fb2c45
GM
1079 * xterm.c (OPAQUE, OPACITY): New.
1080 (x_set_frame_alpha): New function.
1081 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 1082
7950790f
GM
1083 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
1084 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 1085
5c2a72d9
JR
10862008-05-20 Jason Rumney <jasonr@gnu.org>
1087
20746fe4
JB
1088 * w32font.c (add_font_entity_to_list): Don't add non-opentype
1089 truetype fonts to opentype list.
5c2a72d9 1090
eb152aa9
JB
10912008-05-20 Juanma Barranquero <lekktu@gmail.com>
1092
1093 * fontset.c (Ffontset_info): Doc fix.
1094 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
1095 <ignore-relative-composition>: Fix typos in docstrings.
1096
1097 * font.c (syms-of-font) <font-encoding-alist>:
1098 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
1099 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
1100 (Ffont_otf_alternates): Doc fixes.
1101
ad00e1a3
KH
11022008-05-20 Kenichi Handa <handa@m17n.org>
1103
1104 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
1105 font.h through out the file.
9e0e0d77 1106 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 1107 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
1108 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
1109
1110 * emacs.c (main): Call syms_of_font unconditionally.
1111
1112 * font.h (find_font_encoding): Extern it.
1113
9e0e0d77 1114 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
1115 fontset.c.
1116 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
1117 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
1118 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
1119 only when HAVE_WINDOW_SYSTEM is defined.
1120 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
1121 when HAVE_WINDOW_SYSTEM is defined.
1122
9e0e0d77
SM
1123 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
1124 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
1125
1126 * xfaces.c: Include font.h unconditionally.
1127 (merge_face_ref, merge_face_vectors)
1128 (Finternal_set_lisp_face_attribute): Cancel the previous change.
1129
40a69fac
SM
11302008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
1131
1132 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
1133 indirect_variable.
1134 * eval.c (lisp_indirect_variable): New fun.
1135 (Fuser_variable_p): Use it.
1136
8c2dccbf
SM
11372008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1138
ad97b375
SM
1139 * lisp.h (indirect_variable):
1140 * data.c (indirect_variable, let_shadows_buffer_binding_p):
1141 Use Lisp_Symbol pointers rather than Lisp_Object.
1142 Adjust callers.
1143 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
1144 To this end, change calling-convention.
1145
8c2dccbf
SM
1146 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
1147 if some non-hidden buffers are selected by string&pred.
1148
ad97b375
SM
11492008-05-19 Chong Yidong <cyd@stupidchicken.com>
1150
1151 * process.c (wait_reading_process_output): Always check status
1152 when in batch mode.
1153
25b81df4
KH
11542008-05-19 Kenichi Handa <handa@m17n.org>
1155
1156 * font.c (font_list_entities): Fix handling of cache.
1157 (font_matching_entity): Likewise.
1158
8c2dccbf 1159 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 1160 (ft_face_cache): New variable.
1f204af3 1161 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 1162 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
1163 (fc_charset_table): New variable.
1164 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
1165 . FC_CHARSET_IDX) as :font-entity property in the font entity.
1166 Callers changed.
dde8403f 1167 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
1168 (ftfont_spec_pattern): New argument fc_charset_idx.
1169 Check registry more rigidly. Change callers.
a2979e8e 1170 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
1171 change of :font-entity property of the font.
1172
a2979e8e 1173 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
1174 property of the font.
1175
d4a1d553
JB
11762008-05-18 Juanma Barranquero <lekktu@gmail.com>
1177
1178 * coding.c (Fcoding_system_p): Rename argument to match docstring.
1179 (Funencodable_char_position, Fcheck_coding_systems_region)
1180 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
1181 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
1182 (Ffind_operation_coding_system, Fset_coding_system_priority)
1183 (Fcoding_system_eol_type): Doc fixes.
1184
07cfc4e7
GM
11852008-05-17 Glenn Morris <rgm@gnu.org>
1186
1187 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
1188
1cab27d2
EZ
11892008-05-16 Eli Zaretskii <eliz@gnu.org>
1190
1191 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
1192 and st_gid.
1193
dde8403f 1194 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
1195 HAVE_WINDOW_SYSTEM is not defined.
1196
1197 * xfaces.c (merge_face_ref, merge_face_vectors)
1198 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
1199 HAVE_WINDOW_SYSTEM is defined.
1200 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
1201
86b89713
SM
12022008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
1203
1204 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
1205
6750bd93
YM
12062008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1207
62867b11 1208 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 1209
79f105c9
KH
12102008-05-15 Kenichi Handa <handa@m17n.org>
1211
1212 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
1213 preference.
1214
6b33da9f
GM
12152008-05-15 Glenn Morris <rgm@gnu.org>
1216
1217 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
1218
d0e4433b
CY
12192008-05-15 Chong Yidong <cyd@stupidchicken.com>
1220
1221 * fns.c (init_fns): Don't initialize weak_hash_tables here.
1222 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
1223
1224 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
1225
5f2d79e0
KH
12262008-05-15 Kenichi Handa <handa@m17n.org>
1227
fd8a1cae
KH
1228 * ftfont.c (ftfont_list): Downcase family name to check generic
1229 families.
1230
1231 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
1232 font-spec for QCfont value.
1233
5f2d79e0
KH
1234 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
1235 buffer. Check the return value of it.
1236
e5e29349
JR
12372008-05-14 Jason Rumney <jasonr@gnu.org>
1238
1239 * w32term.c (w32_get_glyph_overhangs): Remove.
1240 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
1241
1f09f444
KH
12422008-05-14 Kenichi Handa <handa@m17n.org>
1243
1244 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
1245 (font_clear_cache): Check if the cached vector of entities is nil
1246 or not.
1f09f444 1247
ecae6af9 12482008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
1249
1250 * emacs.c (main_thread): Conditionalize on
1251 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1252 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
1253
1254 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
1255 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
1256 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1257
c6b278e7
KH
12582008-05-14 Kenichi Handa <handa@m17n.org>
1259
1260 * coding.c (detect_coding_iso_2022): Ignore a coding category that
1261 has no corresponding coding system.
1262
12632008-05-14 Jason Rumney <jasonr@gnu.org>
1264
1265 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
1266
1267 * w32font.h (w32font_open_internal): Update declaration.
1268
1269 * w32font.c (w32font_open_internal): Change last argument from
1270 w32font_info struct to font object. Fill in font object from
1271 font_entity. Get Outline metrics if possible. Use them to
1272 calculate underline position and thickness. Use xlfd name as name
1273 property. Don't set codepage.
1274 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 1275 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
1276 (w32font_draw): Use s->font.
1277 (clear_cached_metrics): Don't clear non-existent blocks.
1278
1279 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
1280 font was not found.
a879ee6f 1281 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
1282
1283 * w32uniscribe.c (uniscribe_open): Pass font_object to
1284 w32font_open_internal.
1285
12862008-05-14 Kenichi Handa <handa@m17n.org>
1287
1288 These changes are to delete all legacy font-handling codes, and
1289 make Emacs use only font-backends.
1290
1291 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
1292 (frame.o, image.o, print.o): Depend on $(FONTSRC).
1293
1294 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
1295
1296 * charset.h (Vcharset_non_preferred_head)
1297 (Vcurrent_iso639_language): Extern them.
1298
1299 * charset.c (Vcharset_non_preferred_head): New variable.
1300 (Vcurrent_iso639_language): New variable.
1301 (syms_of_charset): Declare it as a Lisp variable.
1302 (char_charset): Don't check non preferred charsets. As a last
1303 resort, return charset_unicode.
1304 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1305
1306 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1307 conditionals. Don't check enable_font_backend. Delete all codes
1308 used only when USE_FONT_BACKEND is not defined.
1309
1310 * dispextern.h (struct glyph_string): Change type of `font' to
1311 `struct font *'.
1312 (struct glyph_string): New member underline_position and
1313 underline_thickness.
1314 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1315 (struct face): Change type of `font' to `struct font *'. Remove
1316 members `font_name', `font_info_id'.
1317 (per_char_metric, encode_char): Delete externs.
1318 (calc_pixel_width_or_height): Adjust the prototype.
1319
1320 * emacs.c (enable_font_backend): Delete extern.
1321 (main): Don't set enable_font_backend. Don't check the command
1322 line argument "-disable-font-backend".
1323
1324 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1325 (enum font_property_index): New members FONT_DPI_INDEX,
1326 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1327 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1328 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1329 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1330 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1331 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1332 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1333 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1334 (struct font_spec, struct font_entity): New structs.
1335 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1336 (struct font): Many members from old "struct font_info" moved to
1337 here. Members font and entity deleted.
1338 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1339 the new font-related objects.
1340 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1341 (CHECK_FONT_GET_OBJECT): Likewise.
1342 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1343 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1344 (struct font_driver): New members case_sensitive anc check. Type
1345 of the member list and open changed.
1346 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1347 (font_symbolic_width, font_find_object, font_get_spec)
1348 (font_set_lface_from_name): Delete extern.
20746fe4 1349 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
1350
1351 * font.c: Include <strings.h>.
1352 (enable_font_backend): Delete it.
1353 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1354 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1355 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1356 (null_string): Delete it.
1357 (null_vector): Make it static.
1358 (font_family_alist): Delete it.
1359 (Qnormal): Extern it.
1360 (QCextra, QClanguage): Delete it.
1f204af3 1361 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
1362 (font_make_spec, font_make_entity, font_make_object)
1363 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1364 the string. Callers changed.
1365 (font_pixel_size): Adjusted for the format change of font-related
1366 objects.
1367 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1368 (font_style_to_value, font_style_symbolic): New function.
1369 (build_font_family_alist): Delete it.
1370 (font_registry_charsets): Use Fassoc_string instead of
1371 assq_no_quit.
1372 (font_prop_validate_symbol): Don't return null_string.
1373 (font_prop_validate_style): Adjusted for the change of
1374 style-related values in a font vector.
20746fe4 1375 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
1376 QCantialias, add entries for QCavgwidth.
1377 (get_font_prop_index): Delete the 2nd argument FROM.
1378 (font_prop_validate): Arguments changed.
1379 (font_put_extra): Adjusted for the change of font-related objects.
1380 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1381 (font_parse_fcname, font_unparse_fcname)
1382 (font_prepare_composition): Likewise.
1383 (font_parse_family_registry): Renamed from font_merge_old_spec.
1384 (otf_open): Delete the 1st arg entity.
1385 (font_otf_capability): Adjusted for the above change.
1386 (font_score): New arg alternate_families. Adjusted for the change
1387 of font-related objects.
1388 (font_sort_entites): New arg best_only.
1389 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
1390 Delete them.
1391 (font_match_p): Check alternate families.
1392 (font_find_object): Delete it.
1393 (font_check_object): New function.
c3f9fba8 1394 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
1395 (font_delete_unmatched): New arg.
1396 (font_list_entities): Call font_driver->list with a spec that
1397 doesn't specify style-related properties.
1398 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 1399 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
1400 (font_close_object, font_has_char, font_encode_char)
1401 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
1402 (font_spec_from_name, font_clear_prop, font_update_lface):
1403 New functions.
1404 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
1405 (font_prepare_for_face, font_done_for_face, font_open_by_name)
1406 (font_at): Adjusted for the change of font-related objects.
1407 (font_range): New function.
1408 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 1409 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
1410 (Fcopy_font_spec, Fmerge_font_spec): New function.
1411 (Ffont_family_list): Renamed from list-families.
1412 (Finternal_set_font_style_table): Arguments changed.
1413 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
1414 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
1415 change of font-related objects.
c3f9fba8 1416 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 1417
3554e566 1418 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
1419 struct font.
1420 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
1421 (enum FONT_SPEC_INDEX): Delete it.
1422 (font_info, list_fonts_func, load_font_func, query_font_func)
1423 (set_frame_fontset_func, find_ccl_program_func)
1424 (get_font_repertory_func, new_fontset_from_font_name): Delete
1425 externs.
1426 (fontset_from_font_name): Extern it.
1427 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
1428 (FONT_INFO_FROM_FACE): Deleted.
1429 (face_for_font): Adjust prototype.
1430
1431 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
1432 conditionals. Don't check enable_font_backend. Delete all codes
1433 used only when USE_FONT_BACKEND is not defined.
1434 (get_font_info_func, list_font_func, load_font_func)
1435 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
1436 (get_font_repertory_func): Delete them.
1437 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
1438 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
1439 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
1440 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
1441 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
1442 (fontset_compare_rfontdef): New function.
1443 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
1444 ront-defs by qsort. Adjusted for the change of font-group vector.
1445 (load_font_get_repertory): Deleted.
1446 (fontset_find_font): Use new macros to ref/set elements of
1447 font-def and rfont-def.
1448 (fontset_font): Fix the timing of remembering that no font for C.
1449 (free_face_fontset): Do nothing if the face has no fontset.
1450 (face_suitable_for_char_p): Use new macros to ref/set elements of
1451 rfont-def.
1452 (face_for_char): Likewise. Call face_for_char with font_object.
1453 (fs_load_font): Delete. Delete #pragma surrounding it.
1454 (fs_query_fontset): Use strcasecmp instead of strcmp.
1455 (generate_ascii_font_name): Adjusted for the format change of
1456 font-spec.
1457 (Fset_fontset_font): Likewise. Use new macros to set elements of
1458 font-def.
1459 (Fnew_fontset): Use font_unparse_xlfd to generate
1460 FONTSET_ASCII (fontset).
1461 (new_fontset_from_font_name): Deleted.
1462 (fontset_from_font): Renamed from new_fontset_from_font. Check if
1463 a fontset is already created for the font. FIx updating of
1464 Vfontset_alias_alist.
1465 (fontset_ascii_font): Deleted.
1466 (Ffont_info): Adjusted for the format change of font-spec.
1467 (Finternal_char_font): Likewise.
1468 (Ffontset_info): Likewise.
1469 (syms_of_fontset): Don't check load_font_func.
1470
1471 * fns.c (internal_equal): Handle PREV_FONT.
1472
1473 * frame.h: Delete USE_FONT_BACKEND conditional.
1474
1475 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1476 conditionals. Don't check enable_font_backend. Delete all codes
1477 used only when USE_FONT_BACKEND is not defined.
1478 (x_set_font): Call x_new_font, not x_new_fontset2.
1479 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1480 already set for the frame.
1481
1482 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1483 a font-entity by font_make_entity. Use font_intern_prop instead
1484 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1485 font property. If a font is scalable, set avgwidth property to 0.
1486 Set font-entity property by font_put_extra.
1487 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1488 (ffont_driver): Adjusted for the change of struct font_driver.
1489 (ftfont_spec_pattern): New function.
1490 (ftfont_list): Return a list, not vector.
1491 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1492 (ftfont_list_family): Don't downcase names.
1493 (ftfont_free_entity): Deleted.
1494 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1495 struct font. Get underline_thickness and underline_position from
1496 font property. Don't update dpyinfo->smallest_font_height and
1497 dpyinfo->smallest_char_width.
1498 (ftfont_close): Don't free `struct font'.
1499 (ftfont_has_char): Adjusted for the format change of font-entity.
1500 (ftfont_encode_char, ftfont_text_extents): Likewise.
1501
1502 * ftxfont.c (ftxfont_list): Return a list, not vector.
1503 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1504 struct font. Get underline_thickness and underline_position from
1505 font property. Don't update dpyinfo->smallest_font_height and
1506 dpyinfo->smallest_char_width.
1507 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1508 (ftxfont_draw): Adjusted for the change of struct font.
1509
1510 * image.c (image_ascent): Don't include "charset.h". Include
1511 "character.h" and "font.h".
1512
1513 * lisp.h (enum pvec_type): New member PREV_FONT.
1514 (Fassoc_string): EXFUN it.
1515
1516 * print.c: Include font.h.
1517 (print_object): Handle font-related objects.
1518
1519 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1520 conditionals. Don't check enable_font_backend. Delete all codes
1521 used only when USE_FONT_BACKEND is not defined.
1522 (handle_auto_composed_prop): Do nothing if it->f is not on a
1523 window system. Check how many following characters can be
1524 displayed by the same font.
1525 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1526 'struct font *'.
1527 (get_char_face_and_encoding): Assign the whole encoding task to
1528 the `encode-char' method of a font driver.
1529 (fill_composite_glyph_string): Adjusted for the change of `struct
1530 face' and `struct glyph_string'.
1531 (fill_glyph_string): Likewise.
1532 (get_per_char_metric): Arguments changed.
1533 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1534 and `struct glyph_string'.
1535 (produce_stretch_glyph, calc_line_height_property)
1536 (x_produce_glyphs): Likewise.
1537
1538 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1539 conditionals. Don't check enable_font_backend. Delete all codes
1540 used only when USE_FONT_BACKEND is not defined. Use
1541 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1542 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1543 (Qp): Extern them.
1544 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1545 Deleted.
1546 (struct font_name): Deleted.
1547 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1548 (compare_fonts_by_sort_order): New function.
1549 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1550 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1551 Deleted.
1552 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1553 compare_fonts_by_sort_order.
1554 (Fx_font_family_list): Call Ffont_family_list.
1555 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1556 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1557 (face_symbolic_slant, face_symbolic_swidth)
1558 (split_font_name_into_vector, build_font_name_from_vector)
1559 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1560 (font_rescale_ratio, split_font_name, build_font_name)
1561 (free_font_names, sort_fonts, x_face_list_fonts)
1562 (face_font_available_p, sorted_font_list, cmp_font_names)
1563 (font_list_1, concat_font_list, font_list, remove_duplicates):
1564 Deleted.
1565 (Fx_list_fonts): Use Ffont_list.
1566 (LFACE_AVGWIDTH): Deleted.
1567 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1568 by FONTP.
1569 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1570 (set_lface_from_font_name): Delete it.
1571 (set_lface_from_font): Renamed from
1572 set_lface_from_font_and_fontset. Caller changed. Don't set
1573 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1574 for face.
c3f9fba8
JB
1575 (merge_face_vectors): Copy font-spec if necessary.
1576 Clear properties of the font-spec if necessary.
c6b278e7
KH
1577 (merge_face_ref): Clear properties of the font-spec if necessary.
1578 (Finternal_set_lisp_face_attribute): Likewise.
1579 (set_font_frame_param): Use font_load_for_lface to load a
1580 font-object, and call Fmodify_frame_parameters with it.
1581 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
1582 font name by Ffont_xlfd_name.
1583 (Finternal_lisp_face_attribute_values): Don't check QCweight,
1584 QCslant, and QCwidth.
1585 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
1586 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
1587 Compare fonts by EQ.
1588 (lookup_non_ascii_face): Deleted.
1589 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
1590 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
1591 Check atomic font properties by case insensitive.
c6b278e7
KH
1592 (realize_non_ascii_face): Set face->overstrike correctly.
1593 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
1594 (dump_realized_face): Get font name from
1595 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
1596
1597 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
1598 conditionals. Don't check enable_font_backend. Delete all codes
1599 used only when USE_FONT_BACKEND is not defined.
1600 (xic_create_xfontset): Original code deleted and renamed from
1601 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
1602 (x_make_gc): Don't set GCFont in GCs.
1603 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
1604 opened by "fixed".
1605 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
1606 find_ccl_program_func, query_font_func, set_frame_fontset_func,
1607 get_font_repertory_func.
1608
1609 * xfont.c: Include <stdlib.h> and "ccl.h".
1610 (struct xfont_info): New structure.
1611 (xfont_query_font): Deleted.
1612 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1613 moved from xterm.c.
1614 (xfont_driver): Adjusted for the change of struct font_driver.
1615 (compare_font_names): New function.
1616 (xfont_list_pattern): Sort font names case insensitively. Make
1617 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1618 (xfont_list): Return a list, not vector.
1619 (xfont_match): If the font doesn't have QCname property, generate
1620 a name from the other font properties.
1621 (xfont_open): Return a font-ojbect. Adjusted for the change of
1622 struct font. Get underline_thickness and underline_position from
1623 font property. Don't update dpyinfo->smallest_font_height and
1624 dpyinfo->smallest_char_width.
1625 (xfont_close): Don't free struct font.
1626 (xfont_prepare_face): Adjusted for the change of struct font.
1627 (xfont_done_face): Deleted.
1628 (xfont_has_char): Adjusted for the change of struct font.
1629 (xfont_encode_char, xfont_draw): Likewise.
1630 (xfont_check): New function.
1631
1632 * xftfont.c (xftfont_list): Adjusted for the change of `list'
1633 callback function.
1634 (xftfont_match): Adjusted for the fontmat change of font-entity.
1635 (xftfont_open): Adjusted for the format change of font-entity and
1636 font-object. Adjusted for the change of struct font. Return a
1637 font-object. Don't update dpyinfo->smallest_font_height and
1638 dpyinfo->smallest_char_width.
1639 (xftfont_close): Block input while calling XftFontClose.
1640 (xftfont_prepare_face): Don't block input while calling
1641 xftfont_get_colors. Adjusted for the change of struct font.
1642 (xftfont_shape): Return value of error case fixed.
1643
1644 * xrdb.c (x_load_resources): Don't setup a fontset resource.
1645
1646 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
1647 conditionals.
1648 (FONT_WIDTH): Return (f)->max_width.
1649 (struct x_display_info): Delete member `font'.
1650 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
1651 (x_find_ccl_program, x_get_font_repertory): Delete externs.
1652 (struct x_output): Change type of `font' to `struct font *'.
1653
1654 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
1655 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 1656 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
1657 (x_per_char_metric, x_encode_char): Deleted.
1658 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
1659 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 1660 `struct face'.
c6b278e7
KH
1661 (x_draw_glyph_string_foreground)
1662 (x_draw_composite_glyph_string_foreground): Likewise.
1663 (x_draw_glyph_string): Likewise. Use font->underline_position and
1664 font->underline_thickness.
1665 (x_new_font): Renamed from x_new_fontset2.
1666 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
1667 (x_check_font): Call `check' method of a font driver.
1668 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
1669 (x_query_font, x_get_font_repertory): Deleted.
1670 (x_find_ccl_program): Renamed and moved to xfont.c.
1671 (x_redisplay_interface): Adjusted for the change of `struct
1672 redisplay_interface'.
1673
1674 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
1675 conditionals. Don't check enable_font_backend. Delete all codes
1676 used only when USE_FONT_BACKEND is not defined. Surround non-used
1677 code by "#ifdef OLD_FONT" and "endif".
1678 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
1679
1680 * w32font.h (struct w32font_info): New member.
1681 (FONT_COMPAT): New macro.
1682 (w32font_open_internal): Prototype adjusted.
1683
1684 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
1685 OLD_FONT" and "endif".
1686
1687 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
1688 conditionals. Don't check enable_font_backend. Delete all codes
1689 used only when USE_FONT_BACKEND is not defined.
1690 (w32font_open): Return a font-object. Make a font-object by
1691 font_make_object. Adjusted for the change of struct w32font_info.
1692 (w32font_close): Don't free struct font. Adjusted for the change
1693 of struct w32font_info.
1694 (w32font_encode_char, w32font_text_extents, w32font_draw):
1695 Adjusted for the change of struct w32font_info.
1696 (w32font_draw): Likewise.
1697 (w32font_list_internal): Return a list, not vector.
1698 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 1699 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
1700 (add_font_name_to_list): Don't downcase names.
1701 (w32_enumfont_pattern_entity): Make a font-entity by
1702 font_make_entity. Adjusted for the format change of font-entity.
1703 Use FONT_SET_STYLE to set a style-related font property. If a
1704 font is scalable, set avgwidth property to 0. Set font-entity
1705 property by font_put_extra.
c3f9fba8 1706 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
1707 (w32_weight_table, w32_decode_weight): New variables.
1708 (w32_encode_weight): New function.
1709 (fill_in_logfont): Adjusted for the format change of font-spec.
1710 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
1711 weight value.
1712 (w32font_driver): Adjusted for the change of struct font_driver.
1713
1714 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
1715 conditionals. Don't check enable_font_backend. Surround non-used
1716 code by "#ifdef OLD_FONT" and "endif".
1717 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
1718 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
1719
1720 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
1721 conditionals. Don't check enable_font_backend. Delete all codes
1722 used only when USE_FONT_BACKEND is not defined. Surround non-used
1723 code by "#ifdef OLD_FONT" and "endif".
1724
1725 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
1726 (uniscribe_open): Return value changed to font-object.
1727 Adjusted for the format change of font-object.
1728 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
1729 (add_opentype_font_name_to_list): Don't downcase names.
1730 (uniscribe_font_driver): Adjusted for the change of struct
1731 font_driver.
1732
f9d4c199
CY
17332008-05-13 Chong Yidong <cyd@stupidchicken.com>
1734
1735 * dispnew.c (update_frame_1): Check if tty output is still valid
1736 before flushing it.
1737
44f249c0
JD
17382008-05-13 Jan Djärv <jan.h.d@swipnet.se>
1739
1740 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
1741 to Gtk+ menus.
1742
01bb4018
SM
17432008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1744
3271a8f5
SM
1745 * dired.c (file_name_completion): Tweak the code so as to always do it
1746 in a single pass. Tighten the scope of some variables.
1747
01bb4018
SM
1748 * dired.c (Qdefault_directory): New var.
1749 (file_name_completion): Use it instead of Fexpand_file_name.
1750 (syms_of_dired): Initialize it.
1751
728bb8e0
SM
17522008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
1753
1754 * fileio.c (double_dollars): Remove dead code.
1755
ed4c17bb
EZ
17562008-05-10 Eli Zaretskii <eliz@gnu.org>
1757
6c5665e9
EZ
1758 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
1759 Mention w32-get-true-file-attributes in doc string.
1760
ed4c17bb
EZ
1761 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1762
71e1f69d
GM
17632008-05-09 Glenn Morris <rgm@gnu.org>
1764
1765 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
1766 2008-04-23.
1767
ee7a2e7a
EZ
17682008-05-09 Eli Zaretskii <eliz@gnu.org>
1769
8aaaec6b
EZ
1770 Support for reporting owner and group of each file on MS-Windows:
1771 * dired.c (stat_uname, stat_gname): New functions, with special
1772 implementation for w32.
1773 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
1774
ee7a2e7a
EZ
1775 * w32.c: Rename the_passwd_* to dflt_passwd_*.
1776 (dflt_group_name): New static variable.
728bb8e0 1777 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
1778 (init_user_info): Init dflt_group fields. Get user's group name
1779 from LookupAccountSid.
8aaaec6b
EZ
1780 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
1781 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
1782 New initialization states.
1783 (globals_of_w32): Initialize them to zero. Initialize the default
1784 group name to "None".
1785 (GetFileSecurity_Name): New global var, the name of the function
1786 to call for GetFileSecurity.
1787 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
1788 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
1789 (get_file_security, get_security_descriptor_owner)
1790 (get_security_descriptor_group, is_valid_sid)
1791 (get_file_security_desc, get_rid, get_name_and_id)
1792 (get_file_owner_and_group): New functions.
1793 (stat): Use get_file_security_desc and get_file_owner_and_group to
1794 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
1795 high 32 bits of file's size, now that st_size is 64-bit wide.
1796 Fix test when to get true file attributes.
8aaaec6b
EZ
1797 (init_user_info): Use get_rid instead of equivalent inline code.
1798 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 1799
b199c436
CY
18002008-05-09 Chong Yidong <cyd@stupidchicken.com>
1801
1802 * image.c (png_load): Use correct bit-depth for setting background
1803 color.
1804
86914123
EZ
18052008-05-08 Eli Zaretskii <eliz@gnu.org>
1806
1807 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
1808 epa-hook.elc.
1809
67b5d7de
JB
18102008-05-08 Juanma Barranquero <lekktu@gmail.com>
1811
1812 * font.c (Ffont_match_p): Don't use `iff' in docstring.
1813
1a111394
DN
18142008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1815
1816 * macfns.c (Fx_create_frame): Make a copy of frame parameters
1817 because the original parameters are in pure storage now.
1818 (mac_window): Remove unused params. Update callers.
1819
6d77fa95
SM
18202008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1821
7a3d90dc
SM
1822 * lread.c (substitute_object_recurse): Use lower-level primitives.
1823 Don't signal errors when traversing sub-char-tables.
1824 Don't loop over all the possible characters when traversing char-tables.
1825
6d77fa95
SM
1826 * print.c (print_preprocess): Add sub-char-tables to the print-table,
1827 just like we do in print.c.
1828
140eb764
SM
18292008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1830
1831 * minibuf.c (Ftry_completion): Remove code left over from when we used
1832 scmp instead of Fcompare_strings.
1833
e9184ccb
JB
18342008-05-04 Juanma Barranquero <lekktu@gmail.com>
1835
1836 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
1837
0e9378b3
YM
18382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1839
1840 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
1841 Create bitmap context in native byte order.
1842
f67e15be
MB
1843 * macterm.c (XDrawLine)
1844 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
1845 context in native byte order.
064032d0 1846
f67e15be 18472008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
1848
1849 * config.in: Regenerate.
1850
1851 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
1852 New definitions for Image I/O support.
1853 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1854 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
1855 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1856 (mac_data_provider_release_data, image_load_image_io)
1857 [USE_MAC_IMAGE_IO]: New functions.
1858 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
1859 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
1860 (init_image_func_pointer) [MAC_OSX]: Remove function.
1861 (image_load_quartz2d) [MAC_OSX]: Check availability of
1862 CGImageCreateWithPNGDataProvider at compile time.
1863 Use lowercase `false' for boolean constant.
1864 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
1865 Use image_load_image_io.
1866 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
1867 Don't check MyCGImageCreateWithPNGDataProvider.
1868 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
1869 Don't call init_image_func_pointer.
1870
1871 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
1872
1873 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
1874 Make variable non-static.
1875 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1876 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1877
1878 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
1879 (RED_FROM_ULONG): Mask off higher bits.
1880 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
1881
1882 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
1883 Include AvailabilityMacros.h.
1884 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
1885 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
1886
c6bff69e
SM
18872008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
1888
1889 * chartab.c (Fset_char_table_range): If range is t, really set all
1890 chars to that value.
1891
7412d429
EZ
18922008-05-03 Eli Zaretskii <eliz@gnu.org>
1893
1894 * dired.c (Ffile_attributes): Don't allow the device number become
1895 negative.
1896
f83bbfac
DU
18972008-05-02 Daiki Ueno <ueno@unixuser.org>
1898
5a81d3d7 1899 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 1900
2e3148e2
JL
19012008-05-02 Juri Linkov <juri@jurta.org>
1902
1903 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
1904 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
1905 DEFAULT argument as a list of default values in docstrings.
2e3148e2 1906
923fb88c
CY
19072008-05-01 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1910
047aaeb9
MR
19112008-05-01 Martin Rudalics <rudalics@gmx.at>
1912
1913 * dispnew.c (change_frame_size_1): Preserve small windows when
1914 shrinking frames by calling set_window_height|width with third
1915 arg 2.
1916
1917 * window.h (struct window): Replace field too_small_ok by field
1918 resize_proportionally.
1919
1920 * window.c (make_window): Initialize resize_proportionally.
1921 (enlarge_window): Temporarily set resize_proportionally to make
1922 sure that shrink_windows does scale the window proportionally.
1923 (shrink_windows): When window has resize_proportionally set try
1924 to shrink it proportionally by stealing from other windows.
1925 (struct saved_window, Fset_window_configuration)
1926 (compare_window_configurations): Handle resize_proportionally.
1927 (WINDOW_TOTAL_SIZE): New macro.
1928 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 1929 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
1930 window-min-height|width are handled by window_min_size_2 now.
1931 (size_window, Fsplit_window, enlarge_window)
1932 (adjust_window_trailing_edge, grow_mini_window): Don't call
1933 check_min_window_sizes.
c6bff69e
SM
1934 (window_min_size_2, window_min_size_1, window_min_size):
1935 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 1936 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
1937 (adjust_window_trailing_edge, grow_mini_window):
1938 Adjust arguments of window_min_size... functions.
047aaeb9
MR
1939 (shrink_windows): Argument min_size removed. New argument
1940 safe_p allows shrinking windows to their safe minimum sizes.
1941 Calculate minimum size and decide whether a window shall be
1942 deleted for each window individually.
1943 (size_window): When nodelete_p equals 2, tell shrink_windows to
1944 delete windows only if their new minimum size is no more safe.
1945 (shrink_window_lowest_first): Call window_min_size_1 to make
1946 sure to preserve modeline of bottom-most window when resizing
1947 the minibuffer.
1948 (Fset_window_configuration, Fcurrent_window_configuration)
1949 (compare_window_configurations): Do not handle
1950 window-min-height|width any more.
1951 (syms_of_window): Clarify window-min-height|width doc-strings.
1952
2a54a229
SM
19532008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
1954
1955 * dired.c (file_name_completion): Fix up the encoding/decoding issue
1956 some more. Copy some of the code from Ftry_completions.
1957 Remove special case code that dates back to initial revision when the
1958 slash was only added when necessary and that can't trigger nowadays.
1959
384bc634
KH
19602008-04-27 Kenichi Handa <handa@m17n.org>
1961
1962 * font.c (font_prop_validate): Signal `error' instead of `font'.
1963
2c2279c6
JR
19642008-04-29 Jason Rumney <jasonr@gnu.org>
1965
1966 * w32fns.c (Fw32_battery_status): New defun.
1967 (syms_of_w32fns): Defsubr it.
1968
fb4a622a
AS
19692008-04-28 Andreas Schwab <schwab@suse.de>
1970
1971 * dired.c (file_name_completion): Fix another mixing of encoded
1972 and decoded names.
1973
23f250f4
JB
19742008-04-28 Juanma Barranquero <lekktu@gmail.com>
1975
1976 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
1977
d8d30dff
JB
19782008-04-27 Juanma Barranquero <lekktu@gmail.com>
1979
1980 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1981
ea6104a8
AS
19822008-04-27 Andreas Schwab <schwab@suse.de>
1983
9c691c00
AS
1984 * dired.c (file_name_completion): Fix inappropriate mixing of
1985 encoded and decoded names.
1986
ec1bf773
AS
1987 * xterm.c (XTread_socket): Fix use of uninitialized variable.
1988
ea6104a8
AS
1989 * puresize.h (BASE_PURESIZE): Increase to 1200000.
1990
01388a3d
EZ
19912008-04-26 Eli Zaretskii <eliz@gnu.org>
1992
1993 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
1994 2008-03-31, it's not needed anymore with `struct stat' definition
1995 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
1996 for the same reasons.
1997
175aea10 19982008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
1999
2000 * m/sparc.h: Additional redefinitions for GNU/Linux.
2001
1289aeb8
YM
20022008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2003
2004 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
2005 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2006 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
2007 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
2008 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2009 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
2010 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2011 Likewise.
2012
2013 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 2014 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
2015 (mac_ax_number_of_characters): Add externs.
2016 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
2017 [USE_MAC_TSM]: Likewise.
2018 (mac_handle_text_input_event) [MAC_OSX]:
2019 Handle kEventTextInputOffsetToPos for no active input area case.
2020 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2021 (mac_handle_document_access_event)
2022 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
2023 (install_application_handler) [MAC_OSX]: Register handlers for
2024 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
2025 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
2026 Register mac_handle_document_access_event.
2027
2028 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
2029 Make functions non-static.
2030
dbd50d4b
SM
20312008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2032
2033 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
2034 (read_file_name_completion_ignore_case, insert_default_directory)
2035 (Qdefault_directory): Move to minibuffer.el.
2036 (Fread_file_name): Call the new `read-file-name' instead.
2037
9ea37b9d 20382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
2039
2040 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
2041 Make function non-static.
2042 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
2043 Remove function.
2044 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2045 Move to mactoolbox.c.
2046 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
2047
2048 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
2049 (mac_rect_make): New macro.
2050
2051 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
2052 instead of float.
2053 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2054 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
2055 (XSetBackground) [USE_CG_DRAWING]: Likewise.
2056 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
2057 CGRectMake.
2058 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
2059 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
2060 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
2061 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2062 instead of WindowRef in argument type.
2063 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
2064 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
2065 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
2066 instead of DISPLAY. All uses changed.
2067 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
2068 (x_calc_absolute_position): Simplify so as not to use
2069 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
2070
2071 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
2072 instead of WindowRef in argument type.
2073 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
2074 [TARGET_API_MAC_CARBON]: Remove externs.
2075 (create_apple_event, mac_event_parameters_to_lisp)
2076 [TARGET_API_MAC_CARBON]: Add externs.
2077
d8d30dff 2078 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
2079 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
2080 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
2081 is clicked.
2082 (x_activate_menubar): Remove extern for saved_menu_event_location.
2083 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
2084 Move from mac.c.
2085
9ea37b9d 20862008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
2087
2088 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
2089 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
2090
9ea37b9d 20912008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
2092
2093 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
2094 attributes only for local files.
2095
2096 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 2097 default to Qlocal.
bd735631 2098
88970542
JL
20992008-04-22 Juri Linkov <juri@jurta.org>
2100
2101 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
2102 read-buffer-to-switch instead of using the letter "B".
2103
92ec67e3
SM
21042008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2105
2106 * fileio.c (Qdefault_directory): New variable.
2107 (Fread_file_name): Use it to pass `dir' to the completion functions.
2108
a32b2382
CY
21092008-04-20 Chong Yidong <cyd@stupidchicken.com>
2110
2a2e8de7 2111 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 2112
6c8b4f07
SM
21132008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2114
ece5f847
SM
2115 * keyboard.c (Vpre_help_message): Remove.
2116 (show_help_echo): Remove default C code.
2117
6c8b4f07
SM
2118 * dired.c (directory_files_internal, file_name_completion):
2119 Only call ENCODE_FILE if the string is indeed decoded.
2120
73d798d5
SM
21212008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2122
2123 * Makefile.in (TOOLKIT_DEFINES): Remove.
2124 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
2125
d8d30dff 21262008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
2127
2128 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
2129 (mactoolbox.o): New target.
2130
2131 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
2132 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
2133
2134 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
2135 Use mac_set_frame_window_background instead of XSetWindowBackground.
2136 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
2137 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
2138 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
2139 instead of SetWindowTitleWithCFString.
2140 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
2141 Move function to mactoolbox.c.
2142 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
2143 Use mac_set_window_modified instead of SetWindowModified.
2144 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
2145 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
2146 (Fx_focus_frame): Use mac_front_non_floating_window instead of
2147 FrontNonFloatingWindow. Use mac_activate_window instead of
2148 ActivateWindow. Use mac_active_non_floating_window instead of
2149 ActiveNonFloatingWindow.
2150 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
2151 Use mac_show_hourglass and mac_hide_hourglass.
2152 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
2153 instead of GetGlobalMouse.
2154 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
2155 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
2156 Use mac_bring_window_to_front instead of BringToFront.
2157 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
2158 mactoolbox.c.
2159 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
2160 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
2161 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
2162 mactoolbox.c.
2163
2164 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
2165 (XtPointer): Move typedef from macmenu.c.
2166 (enum button_type): Move enum from macmenu.c.
2167 (widget_value): Move typedef from macmenu.c.
2168 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
2169 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2170 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2171 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2172 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2173 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2174 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2175 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
2176 (Selection): Move typedef from macselect.c.
2177 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
2178 macterm.c.
2179 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
2180 (mac_is_window_collapsed, mac_bring_window_to_front)
2181 (mac_send_window_behind, mac_hide_window, mac_show_window)
2182 (mac_collapse_window, mac_front_non_floating_window)
2183 (mac_active_non_floating_window, mac_activate_window)
2184 (mac_move_window_structure, mac_move_window, mac_size_window)
2185 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
2186
2187 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
2188 (enum mac_menu_kind): Move enum to mactoolbox.c.
2189 (min_menu_id): Move variable to mactoolbox.c.
2190 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
2191 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
2192 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
2193 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
2194 [TARGET_API_MAC_CARBON]: Likewise.
2195 (XtPointer): Move typedef to macgui.h.
2196 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
2197 (widget_value): Move typedef to macgui.h.
2198 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
2199 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
2200 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
2201 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
2202 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
2203 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
2204 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
2205 (popup_activated_flag): Make variable non-static.
2206 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
2207 (add_menu_item, fill_menu, dispose_menus):
2208 Move functions to mactoolbox.c.
2209 (restore_show_help_function, menu_target_item_handler)
2210 (install_menu_target_item_handler, mac_handle_dialog_event)
2211 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
2212 [TARGET_API_MAC_CARBON]: Likewise.
2213 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
2214 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2215 (find_and_call_menu_selection, name_is_separator): Make function
2216 non-static.
2217 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
2218 to mactoolbox.c.
2219 (set_frame_menubar): Don't call install_menu_quit_handler.
2220 (menu_item_selection): New variable.
2221 (mac_menu_show): Use create_and_show_popup_menu.
2222 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
2223 selection but set variable menu_item_selection. All uses changed.
2224 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
2225 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 2226
d02fe47d
MB
2227 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
2228 (Selection): Move typedef to macgui.h.
2229 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
2230 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
2231 Make variables non-static.
2232 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2233 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
2234 Make functions non-static.
2235 (Vmac_service_selection) [MAC_OSX]: Likewise.
2236 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
2237 (mac_valid_selection_target_p, mac_clear_selection)
2238 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2239 (mac_put_selection_value, mac_selection_has_target_p)
2240 (mac_get_selection_value, mac_get_selection_target_list)
2241 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
2242 Move functions to mactoolbox.c.
2243 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
2244 Likewise.
2245 (copy_scrap_flavor_data, mac_handle_service_event)
2246 (install_service_handler) [MAC_OSX]: Likewise.
2247 (syms_of_macselect) <Vmac_dnd_known_types>:
2248 Use mac_dnd_default_known_types.
463f55ee 2249
d02fe47d
MB
2250 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
2251 Move to mactoolbox.c.
2252 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
2253 (Fx_selection_owner_p): Add EXFUN.
2254 (install_window_handler, remove_window_handler, XSetWindowBackground):
2255 Remove externs.
2256 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
2257 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
2258 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
2259 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
2260 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
2261 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
2262 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
2263 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
2264 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
2265 (create_and_show_popup_menu, mac_get_selection_from_symbol)
2266 (mac_valid_selection_target_p, mac_clear_selection)
2267 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2268 (mac_put_selection_value, mac_selection_has_target_p)
2269 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
2270 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
2271 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
2272 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2273 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
2274 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2275 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
2276 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2277 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 2278
d02fe47d 2279 * mactoolbox.c: New file.
af253914 2280
d8d30dff 22812008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 2282
d02fe47d 2283 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 2284
8ee085a4
SM
22852008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2286
73d798d5
SM
2287 * character.c (Fmultibyte_char_to_unibyte):
2288 Return latin1 chars unchanged.
5556875b 2289
8ee085a4
SM
2290 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
2291 relocated if it points to `name'.
2292
5dff5999
KH
22932008-04-17 Kenichi Handa <handa@m17n.org>
2294
2295 * data.c (Faset): Allow setting a multibyte character in an
2296 ASCII-only unibyte string.
2297
2298 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2299
a51f4969
SM
23002008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2301
2302 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2303 done in config.h.
2304
add553ac
JB
23052008-04-16 Juanma Barranquero <lekktu@gmail.com>
2306
2307 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2308 (Fchar_direction): Add usage in the docstring.
2309
8ad7b280
CY
23102008-04-15 Chong Yidong <cyd@stupidchicken.com>
2311
2312 * keyboard.c (read_key_sequence): Remove always-true checks.
2313
e157d7ba
JR
23142008-04-14 Jason Rumney <jasonr@gnu.org>
2315
2316 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2317 compatibility struct, for better underline positioning.
2318
9ec3aaef 23192008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
2320
2321 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2322 string.
2323
36c08864
DN
23242008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2325
2326 * m/hp800.h (XUINT, XSET): Remove.
2327
f5acc071
JB
23282008-04-12 Juanma Barranquero <lekktu@gmail.com>
2329
2330 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2331 previous change.
2332
5b5a2ea1
SM
23332008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2334
2335 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2336 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2337
492d9fd6
SM
23382008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2339
2340 * keymap.h (map_keymap_canonical): Declare.
2341 * xmenu.c (single_keymap_panes): Use it.
2342
dd60787c
GM
23432008-04-11 Glenn Morris <rgm@gnu.org>
2344
2345 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2346 set the target's value to that of the alias.
2347
c23b5410
SM
23482008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2349
2350 * term.c (set_tty_color_mode): Left over typo.
2351
e89b536d
MA
23522008-04-10 Michael Albinus <michael.albinus@gmx.de>
2353
2354 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 2355 only after check for file name handler functions. Signal, when
e89b536d
MA
2356 native functionality is not supported.
2357 (syms_of_fileio): Declare it unconditionally.
2358
40a339c8
JR
23592008-04-10 Jason Rumney <jasonr@gnu.org>
2360
31403b24
JR
2361 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2362 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2363
40a339c8
JR
2364 * w32.c (logon_network_drive): Also logon to remote drives that
2365 are mapped to drive letters.
2366
96a7394f
GM
23672008-04-10 Glenn Morris <rgm@gnu.org>
2368
2369 * xdisp.c (truncate-partial-width-windows): Doc fix.
2370
34b67b0f
SM
23712008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2372
2373 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2374 Move functions to minibuffer.el.
2375 (syms_of_fileio): Don't declare them.
2376
c025fb0a
SM
23772008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2378
ba5ff07b
SM
2379 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2380 (syms_of_minibuf): Remove its initialization.
2381
c025fb0a
SM
2382 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2383
7a6a86ad
JB
23842008-04-09 Juanma Barranquero <lekktu@gmail.com>
2385
2386 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
2387
cf907d69
JR
23882008-04-09 Jason Rumney <jasonr@gnu.org>
2389
3dc94c30
JR
2390 * makefile.w32-in (distclean): Delete makefile too.
2391 (maintainer-clean): New target.
2392
8d28646b
JR
2393 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
2394
cf907d69
JR
2395 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
2396 for new font backend and composite cases.
2397
ef5eb925
JD
23982008-04-09 Jan Djärv <jan.h.d@swipnet.se>
2399
2400 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
2401 Most of the code moved to run_timers.
2402 (do_pending_atimers): Call run_timers.
2403 (run_timers): New function.
2404
cf907d69
JR
2405 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
2406 run atimers.
ef5eb925
JD
2407
2408 * process.c (wait_reading_process_output): The same as above.
2409
9b2cd403
SM
24102008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2411
32bae13c
SM
2412 * minibuf.c (last_exact_completion): Remove variable.
2413 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
2414 (complete_and_exit_1, complete_and_exit_2)
2415 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2416 (Fdisplay_completion_list, display_completion_list_1)
2417 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
2418 (Fexit_minibuffer, Fminibuffer_message): Move functions to
2419 minibuffer.el.
32bae13c
SM
2420 (syms_of_minibuf): Remove corresponding initializations.
2421
5c4cc82a
SM
2422 * keyboard.c (Qdeactivate_mark): New var.
2423 (command_loop_1): Use it to call `deactivate-mark'.
2424 (syms_of_keyboard): Initialize it.
2425
9b2cd403
SM
2426 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
2427 to another frame.
2428 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
2429 Don't call set_tty_color_mode.
2430 (store_frame_param): Reset previous_frame rather than call
2431 set_tty_color_mode.
2432 * term.c (set_tty_color_mode): Rewrite.
2433 * dispextern.h (set_tty_color_mode): New type.
2434 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
2435
84cb7b45
SM
24362008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2437
2438 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
2439 for generic chars, which do not exist any more in emacs-unicode.
2440
3ed051d4
MA
24412008-04-08 Michael Albinus <michael.albinus@gmx.de>
2442
2443 * coding.c (detect_coding_emacs_mule)
2444 (Ffind_operation_coding_system): Fix typo.
2445
58c3ea42
JR
24462008-04-08 Jason Rumney <jasonr@gnu.org>
2447
3bf8d230
JR
2448 * w32uniscribe.c (SNAME): Extract only symbol name.
2449
56a70cca
JR
2450 * w32font.h (struct w32_metric_cache): New struct.
2451 (w32font_info): Use it.
2452 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
2453 (CACHE_BLOCKSIZE): New constants.
3ed051d4 2454
58c3ea42
JR
2455 * w32font.c (Qja, Qko, Qzh): New symbols.
2456 (syms_of_w32font): Initialise them.
2457 (font_matches_spec): Use them to filter by language.
2458 (recompute_cached_metrics): Remove function.
2459 (compute_metrics, clear_cached_metrics): New functions.
2460 (w32font_encode_char): Use them to manage metric cache.
2461 (w32font_text_extents): Cache metrics for all glyphs on demand.
2462 Delay converting glyph indices to WORD until needed.
2463 (w32font_open_internal): Initialize metric cache to empty.
2464 (registry_to_w32_charset): Charset should always be a symbol.
2465 (fill_in_logfont, list_all_matching_fonts): Family should
2466 always be a symbol.
2467
0ce24b2d
JR
24682008-04-06 Jason Rumney <jasonr@gnu.org>
2469
2470 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
2471 Give up if glyph indices not supported. Use uniscribe obtained
2472 ABC widths for individual metrics. Map glyph clusters back to
2473 characters using fClusterStart flag. Return number of glyphs
2474 produced, not chars processed.
b7655e0c 2475 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 2476
5bc6ddff 24772008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 2478
fbf57abb
JB
2479 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2480 Use SetMenuItemHierarchicalMenu.
56613f06 2481
5bc6ddff 24822008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 2483
5bc6ddff
MB
2484 * image.c (pbm_load): Allow color values up to 65535.
2485 Throw an error if max_color_idx is outside the supported range.
2486 Report an error when image size is invalid.
2487 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 2488
5bc6ddff 24892008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 2490
5bc6ddff
MB
2491 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2492 cFileName a file name that includes `?' characters, use the 8+3
2493 alias in cAlternateFileName instead.
5ed6ba5b 2494
5bc6ddff 24952008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 2496
5bc6ddff
MB
2497 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2498 append "CCL: Quitted" when the CCL program is quitted.
2499 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 2500
5bc6ddff 2501 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 2502
c36e15db
CY
25032008-04-05 Chong Yidong <cyd@stupidchicken.com>
2504
9605d567
CY
2505 * search.c (compile_pattern_1): Treat non-nil and non-string of
2506 search-spaces-regexp as nil.
2507
c36e15db
CY
2508 * minibuf.c (Fassoc_string): Tweak docstring.
2509
40beb147
EZ
25102008-04-05 Eli Zaretskii <eliz@gnu.org>
2511
2512 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2513 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2514 2008-03-14 to force inode be positive.
2515
2516 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2517 _S_* ones, since we now use our own sys/stat.h.
2518 (stat, fstat): Don't mangle the inode number.
aa08d1ff 2519 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 2520
4591d6cb
SM
25212008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2522
d4417eb0
SM
2523 * frame.h (struct frame): Give one more bit to `visible' since we use
2524 values larger than 1 to indicate obscured frames on ttys.
2525
00f7c5ed
SM
2526 * keymap.c (Qkeymap_canonicalize): New var.
2527 (Fmap_keymap_internal): New fun.
2528 (describe_map): Use keymap-canonicalize.
2529
4591d6cb
SM
2530 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2531 (Fundo_boundary): Set them.
2532 (syms_of_undo): Initialize them.
2533 (record_point): Use them instead of last_point_position*.
2534 (last_undo_buffer): Change type.
2535
3187540e
JR
25362008-04-04 Jason Rumney <jasonr@gnu.org>
2537
0ce24b2d
JR
2538 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2539 (recompute_cached_metrics): Don't set ascent and descent per char.
2540
3187540e 2541 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 2542 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 2543 Rearrange loop for counting features.
3187540e 2544
f1a6b216
SM
25452008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2546
2547 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2548 buffer with byte-size of source buffer.
2549
1d8dcf63
CY
25502008-04-03 Chong Yidong <cyd@stupidchicken.com>
2551
2552 * callint.c (Fcall_interactively): Handle temporary region even
2553 when shift-select-mode is off.
2554
6b8aa22a
JR
25552008-04-03 Jason Rumney <jasonr@gnu.org>
2556
2557 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2558
2f3cbb32
KH
25592008-04-03 Kenichi Handa <handa@m17n.org>
2560
2561 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2562 (CATEGORY_MASK_UTF_16): Likewise.
2563 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2564 binary file.
2565 (detect_coding): Add null-byte detection for a binary file.
2566 (detect_coding_system): Likewise.
2567
43f4f91c
JR
25682008-04-03 Jason Rumney <jasonr@gnu.org>
2569
0c1b4ae2
JR
2570 * w32uniscribe.c: New file.
2571
2572 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2573
2574 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
2575
2576 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
2577 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
2578 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
2579 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
2580 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
2581 (Qphonetic): New symbols.
2582 (syms_of_w32font): Initialize them.
2583 (font_supported_scripts): Use them.
2584 (w32font_list_family): List all charsets.
2585 (w32font_text_extents, recompute_cached_metrics): Fix metric
2586 calculations.
2587 (w32_enumfont_pattern_entity): Make full_type a DWORD.
2588 Give opentype fonts their own format.
2589 (font_matches_spec): New arguments backend and logfont.
2590 Handle :otf spec for uniscribe backend.
2591 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
2592 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 2593
0c1b4ae2
JR
2594 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
2595 font backend.
2596 (globals_of_w32fns): Initialize uniscribe font backend.
2597
fbf57abb 2598 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
2599 dependencies.
2600 (w32uniscribe.$(O)): New file to build.
2601 (FONT_OBJ): Include w32uniscribe.$(O).
2602 (LIBS): Add uniscribe libraries.
2603
43f4f91c
JR
2604 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
2605
75043a7d
CY
26062008-04-02 Chong Yidong <cyd@stupidchicken.com>
2607
2608 * callint.c (Vshift_select_mode): New var.
2609 (Finteractive): Document new ^ spec.
2610 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2611 is present.
2612
2613 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2614 (command_loop_1): Avoid running the direct display versions of
2615 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
2616 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2617 shift-translation takes place.
2618
2619 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2620 avoid clobbering by define-minor-mode.
2621
2622 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2623 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2624
2625 * syntax.c (Fforward_word): Add ^ interactive spec.
2626
2627 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
2628 (Fscroll_right): Add ^ interactive spec.
2629
b2b7f29e
SM
26302008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2631
a432c0a6
SM
2632 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
2633
994b75e0
SM
2634 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
2635
b2b7f29e
SM
2636 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
2637
e99c7806
JL
26382008-03-31 Juri Linkov <juri@jurta.org>
2639
2640 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
2641
1c9c1270
JD
26422008-03-30 Jan Djärv <jan.h.d@swipnet.se>
2643
2644 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 2645 (xg_resize_outer_widget): Remove.
1c9c1270
JD
2646 (x_wm_size_hint_off): Fix indentation.
2647 (xg_frame_set_char_size): Call flush_and_sync after
2648 gtk_window_resize.
2649 (x_wm_set_size_hint): Pass NULL as geometry window to
2650 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
2651 Add menu bar and tool bar height to base height.
2652 (xg_update_frame_menubar, free_frame_menubar)
2653 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
2654 (update_frame_tool_bar, free_frame_tool_bar):
2655 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 2656
90b3fc84
MA
26572008-03-30 Michael Albinus <michael.albinus@gmx.de>
2658
2659 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
2660 (Fdbus_call_method): New parameter TIMEOUT.
2661 (dbus-send-signal): Optimize UNGCPRO call.
2662
7ae6d1d1
JL
26632008-03-29 Juri Linkov <juri@jurta.org>
2664
2665 * window.c (Fdisplay_buffer): Move call to
2666 Vsplit_window_preferred_function out of conditions that check
2667 if window is eligible for vertical splitting.
2668 When Vsplit_window_preferred_function is non-nil, call it and use
2669 its non-nil return value as window. Otherwise, continue doing
2670 vertical splitting using Fsplit_window with arg horflag=nil.
2671 (syms_of_window) <Vsplit_window_preferred_function>: Change the
2672 default value from `split-window' to nil.
2673
f03f8f2c
JL
26742008-03-29 Juri Linkov <juri@jurta.org>
2675
2676 * callint.c (Fcall_interactively): Revert 2008-03-16 change
2677 for interactive code letters 'b' and 'B'.
2678
6d557778
EZ
26792008-03-29 Eli Zaretskii <eliz@gnu.org>
2680
2681 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
2682 multibyte string.
2683
58555d81
SM
26842008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2685
2686 * keyboard.c (pending_funcalls): New var.
2687 (timer_check): Run it.
2688 (syms_of_keyboard): Initialize it.
2689 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
2690 (Vdelete_terminal_functions): New vars.
2691 (syms_of_terminal): Initialize them.
2692 (Fdelete_terminal): Run delete-terminal-functions.
2693 * xdisp.c (safe_eval): Rewrite.
2694 (safe_call2): New fun.
2695 * frame.c (Qdelete_frame_functions): New var.
2696 (syms_of_frame): Initialize it.
2697 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
2698 * lisp.h (safe_call2, pending_funcalls): Declare.
2699
4c92f429
AS
27002008-03-28 Andreas Schwab <schwab@suse.de>
2701
2702 * indent.c (Fmove_to_column): Move declaration before statements.
2703
a1567c45
SM
27042008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
2705
2806a183
SM
2706 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
2707 (struct frame): Use bit fields for boolean vars.
2708
eef60308
SM
2709 * process.c (server_accept_connection): Simplify naming.
2710 (emacs_get_tty_pgrp): Use SDATA.
2711
a1567c45
SM
2712 * coding.c (decode_coding_object): Fix last change.
2713
30076589
JR
27142008-03-27 Jason Rumney <jasonr@gnu.org>
2715
2716 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
2717
880820fe
KH
27182008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
2719
2720 * charset.c (Fdefine_charset_internal): Change the way of
2721 registering charsets in Vcharset_order_list.
2722 (syms_of_charset): Make the charset `eight-bit' supplementary.
2723
3cf8cdfb
CY
27242008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
2725
2726 * regex.c (EXTEND_BUFFER): Change order of pointer addition
2727 operations, to avoid having the difference between pointers
2728 overflow.
2729
ef6f5c0e
SM
27302008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2731
80e3db56
SM
2732 * indent.c (check_display_width): New fun.
2733 (scan_for_column): Use it.
2734
c397dc7a
SM
2735 * data.c (syms_of_data): Mark most-positive-fixnum and
2736 most-negative-fixnum as constants.
2737
bf6b4d58
SM
2738 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
2739
ef6f5c0e
SM
2740 * indent.c (scan_for_column): Extract from current_column_1.
2741 Merge with the same code from Fmove_to_column.
2742 (current_column_1, Fmove_to_column): Use it.
2743
72d5003d
SM
27442008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2745
12270607
SM
2746 * keymap.c (map_keymap_internal): New fun.
2747 (map_keymap): Use it.
2748 (Fmap_keymap_internal): New fun.
2749 (Fmap_keymap): Remove left-out test from before make_save_value.
2750
a10cca6c
SM
2751 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
2752
d7b10f4c
SM
2753 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
2754 Use XCAR/XCDR.
2755
5431bd6a
SM
2756 * process.h (struct Lisp_Process): Remove filter_multibyte.
2757 * process.c (QCfilter_multibyte): Remove.
2758 (setup_process_coding_systems): Don't use filter_multibyte.
2759 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
2760 (read_process_output): Don't adjust multibyteness to filter_multibyte.
2761 (Fset_process_filter_multibyte): Change the coding-system to
2762 approximate the previous behavior.
2763 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
2764 coding-system.
2765
72d5003d
SM
2766 * coding.c (decode_coding_object): When not decoding into a buffer,
2767 obey the coding system's preference of (uni|multi)byte.
2768
438eba3c
SM
27692008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2770
2771 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
2772 every char is changed and has a different byte-length.
2773 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
2774 Fix int -> EMACS_INT.
2775
9ec3aaef 27762008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 2777
438eba3c 2778 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
2779 strings. Check for NULL `interface' or `member'.
2780
b07103dc
EZ
27812008-03-22 Eli Zaretskii <eliz@gnu.org>
2782
2783 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2784 cFileName a file name that includes `?' characters, use the 8+3
2785 alias in cAlternateFileName instead.
2786
5371d722
SM
27872008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
2788
2789 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
2790
6ba7f443
SM
27912008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2792
2793 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
2794 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
2795 work on current_buffer only instead (that was already the case
2796 for some of the code anyway).
2797 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
2798 (temp_set_point, temp_set_point_both): Use EMACS_INT.
2799 (SET_PT, SET_PT_BOTH): Adjust.
2800 * intervals.h (set_point, temp_set_point, set_point_both)
2801 (temp_set_point_both): Remove redundant declarations.
2802
bf1c0f27
SM
28032008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2804
2805 * fileio.c (Finsert_file_contents):
2806 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
2807 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
2808 when buffer != current_buffer anyway.
2809
acab783e
AS
28102008-03-20 Andreas Schwab <schwab@suse.de>
2811
2812 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
2813 as default.
2814
d148e14d
JR
28152008-03-19 Jason Rumney <jasonr@gnu.org>
2816
2817 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
2818 (syms_of_w32fns): Initialize them.
2819 (HOURGLASS_ID): New constant.
2820 (x_window_to_frame): Don't check hourglass_window.
2821 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
2822 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
2823 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
2824 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
2825 Only change the cursor if hourglass is not active.
2826 (Fx_create_frame): Initialize frame's current_cursor.
2827 (hourglass_atimer): Remove.
2828 (hourglass_started): New function.
2829 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
2830 (show_hourglass): Adapt to w32, changing argument to frame.
2831
2832 * w32term.h (struct w32_output): Remove hourglass_window.
2833 Add current_cursor.
2834
2835 * eval.c (call_debugger, Fsignal):
2836 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
2837 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
2838 (Fexecute_extended_command, cancel_hourglass_unwind):
2839 * minibuf.c (read_minibuf):
2840 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 2841
a5c54077
JB
28422008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2843
2844 * window.c (run_funs): New fun.
2845 (run_window_configuration_change_hook): Use it to run the buffer-local
2846 and the global part of the hook.
2847
2848 * xdisp.c (format_mode_line_unwind_data): Add window argument.
2849 (unwind_format_mode_line): Restore selected window.
2850 (x_consider_frame_title, Fformat_mode_line): Set selected window.
2851
f9f3238f
SM
28522008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2853
253c3c82
SM
2854 * editfns.c (Fchar_equal): Check they are valid characters.
2855
f9f3238f
SM
2856 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
2857
065a118d
AS
28582008-03-17 Andreas Schwab <schwab@suse.de>
2859
0b8be006
AS
2860 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
2861 against a charset.
2862
065a118d
AS
2863 * lisp.h (Fbuffer_list): Declare.
2864
880820fe 28652008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
2866
2867 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
2868 handlebox_widget is != 0.
2869
6206d6c2
JL
28702008-03-16 Juri Linkov <juri@jurta.org>
2871
2872 * callint.c (Fcall_interactively): For interactive code letters
2873 'b' and 'B' put the buffer list into the list of default "future"
2874 values of the minibuffer.
2875
f5020181
AS
28762008-03-16 Andreas Schwab <schwab@suse.de>
2877
a864f6d6
AS
2878 * keyboard.c (read_key_sequence): Fix downcasing of letters with
2879 modifiers.
2880
f5020181
AS
2881 * regex.c (re_match_2_internal): Correct matching of a charset
2882 against latin-1 characters.
2883
03f244e2
KH
28842008-03-16 Kenichi Handa <handa@m17n.org>
2885
2886 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
2887 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
2888 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
2889 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
2890 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
2891 CHAR_STRING_ADVANCE.
2892 (produce_chars): Fix for the case that the source and the
2893 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
2894 instead of CHAR_STRING_ADVANCE.
2895 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
2896 STRING_CHAR_ADVANCE.
2897
0e2501ed
AS
28982008-03-15 Andreas Schwab <schwab@suse.de>
2899
2900 * regex.c (re_match_2_internal): Correct matching of eight bit
2901 characters in unibyte strings.
2902
7723e095
MR
29032008-03-15 Martin Rudalics <rudalics@gmx.at>
2904
2905 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
2906 at end of range when it coincides with the end of the buffer.
2907
f507f365
EZ
29082008-03-14 Eli Zaretskii <eliz@gnu.org>
2909
294f1153
EZ
2910 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
2911
f507f365
EZ
2912 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
2913
64f0809d
JR
29142008-03-14 Jason Rumney <jasonr@gnu.org>
2915
956ae531
JR
2916 * editfns.c (initial_tz): New variable.
2917 (syms_of_editfns): Initialize it.
2918 (Fset_time_zone_rule): Set it when first called.
2919 Use it when TZSTRING is nil.
2920
64f0809d
JR
2921 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
2922 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
2923 (monitor_from_point_fn, get_monitor_info_fn): New globals.
2924 (globals_of_w32fns): Initialize them.
2925 (compute_tip_xy): Use them to position tooltips.
2926
21a4ff8e
GM
29272008-03-14 Glenn Morris <rgm@gnu.org>
2928
2929 * emacs.c (main): Revert previous change.
2930 (standard_args): Revert -internal-script back to -scriptload,
2931 and remove the long-option form.
2932
a09a5b5b
GM
29332008-03-13 Glenn Morris <rgm@gnu.org>
2934
2935 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
2936 Remove option -enable-font-backend.
2937
1c55ebd1
SM
29382008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2939
2940 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
2941
880820fe 29422008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
2943
2944 * xterm.c (x_connection_closed): For GTK: If this is the last
2945 terminal just exit without closing the display.
2946
7145be81
JR
29472008-03-11 Jason Rumney <jasonr@gnu.org>
2948
2949 * w32font.c (w32font_full_name): Use floor to round.
2950
e6201af3 29512008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
2952
2953 * sound.c (alsa_configure): Declare vol at beginning of block.
2954
e6201af3 2955 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 2956
390b81fa 29572008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 2958
56388398
MB
2959 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
2960 size of resulting string.
af0ad939 2961
390b81fa 29622008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 2963
56388398 2964 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 2965
390b81fa 29662008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 2967
56388398
MB
2968 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
2969 Don't pretend as if characters with display property haven't been
2970 consumed for string-replacing-string case.
acd37560 2971
223ed6db
KS
29722008-03-08 Kim F. Storm <storm@cua.dk>
2973
2974 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
2975 (get_next_display_element, next_element_from_string)
2976 (next_element_from_ellipsis, next_element_from_buffer): Use it.
2977
28545f7c
AS
29782008-03-08 Andreas Schwab <schwab@suse.de>
2979
2980 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
2981
c960bff8
JR
29822008-03-06 Jason Rumney <jasonr@gnu.org>
2983
290afd83
JB
2984 * w32font.c (w32_registry): Take font_type argument. Use ANSI
2985 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
2986 font_type is truetype.
2987 (w32font_coverage_ok): New function.
2988 (add_font_entity_to_list): Use it to filter unsuitable fonts.
2989
87b8ce92
KH
29902008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
2991
2992 * lread.c (Fread_char): Resolve modifiers.
2993 (Fread_char_exclusive): Likewise.
2994
2995 * character.c (char_resolve_modifier_mask): New function.
2996 (char_string): Use char_resolve_modifier_mask.
2997 (Fchar_resolve_modifiers): New function.
2998 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
2999 function.
3000
cefd56f6
JR
30012008-03-04 Jason Rumney <jasonr@gnu.org>
3002
3003 * makefile.w32-in: Always include w32font.c in the build.
3004 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
3005
03bd3c1f
AS
30062008-03-04 Andreas Schwab <schwab@suse.de>
3007
3008 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
3009 (versionclean): Likewise.
3010
6f69e89b
JB
30112008-03-04 Juanma Barranquero <lekktu@gmail.com>
3012
3013 * .cvsignore: Add oo.
3014
f4a3cc44
AS
30152008-03-03 Andreas Schwab <schwab@suse.de>
3016
3017 * coding.c (decode_coding_object): Inhibit gap shrinking while
3018 decoding in place.
3019
73f838ad
DN
30202008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
3021
3022 * w32term.c: Remove unused include "gnu.h".
6f69e89b 3023 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
3024
3025 * gnu.h: Rename to ...
3026 * emacs-icon.h: ... this.
3027 * xterm.c: Use emacs-icon.h instead of gnu.h.
3028 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
3029
ce9c1f06
JB
30302008-03-03 Juanma Barranquero <lekktu@gmail.com>
3031
3032 * w32font.c: Include math.h.
3033
34fd2d28
JR
30342008-03-03 Jason Rumney <jasonr@gnu.org>
3035
54efdcd1
JR
3036 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
3037 Compute options separately.
3038 (w32font_open_internal): Set glyph_idx before caching metrics.
3039
ce9c1f06
JB
3040 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
3041 Define if system headers don't.
3042 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
3043 (w32font_encode_char): Don't declare here.
3044
3045 * w32font.c (Quniscribe, QCformat): New symbols.
3046 (syms_of_w32font): Define them.
3047 (w32font_has_char): Indicate uncertainty.
ce9c1f06 3048 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 3049 (recompute_cached_metrics): New function.
ce9c1f06
JB
3050 (w32font_open_internal): Use it. Set font to use glyph points
3051 initially. Set format based on type of font.
34fd2d28 3052 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
3053 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
3054 on it. Set format based on information available here.
34fd2d28
JR
3055 (add_font_entity_to_list): Identify backend based on opentype_only.
3056
14daee73
AS
30572008-03-02 Andreas Schwab <schwab@suse.de>
3058
f907fb2e
AS
3059 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
3060
ce9c1f06
JB
3061 * coding.c (decode_coding_big5, produce_chars):
3062 Fix typos in last change.
14daee73 3063
c9cc6462
DN
30642008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
3065
3066 * gnu.h: New icon.
3067
119852e7
KH
30682008-03-02 Kenichi Handa <handa@m17n.org>
3069
3070 * coding.c (decode_coding_utf_8): When eol-type of CODING is
3071 `dos', don't decode '\r' if that is the last in the source.
3072 (decode_coding_utf_16, decode_coding_emacs_mule)
3073 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3074 (decode_coding_raw_text, decode_coding_charset): Likewise.
3075 (produce_chars): Don't decode EOL here. Use EMACS_INT.
3076
a823468b
JR
30772008-03-01 Jason Rumney <jasonr@gnu.org>
3078
3079 * w32font.c (w32font_full_name): Report point size for scalable fonts.
3080
4ddc7e30
KS
30812008-03-01 Kim F. Storm <storm@cua.dk>
3082
3083 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
3084
67997c79
JR
30852008-03-01 Jason Rumney <jasonr@gnu.org>
3086
3087 * w32font.c (w32font_full_name): New function.
3088 (w32font_open_internal): Use it.
3089
3f4e9c35
KS
30902008-03-01 Kim F. Storm <storm@cua.dk>
3091
3092 * dispnew.c (line_draw_cost): Fix invalid glyph check.
3093
f3b9e479
JR
30942008-03-01 Jason Rumney <jasonr@gnu.org>
3095
3096 * font.c (font_unparse_fcname): Increase len when style is a symbol.
3097
880820fe 30982008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
3099
3100 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
3101 xg_frame_resized when the event is for the edit widget.
3102
3103 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
3104
3105 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
3106 set_char_size.
3107 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
3108 operations on widgets here. Just set frame size if needed.
3109 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
3110 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
3111 (x_wm_set_size_hint): Set size hints on the edit widget only, not
3112 the whole frame.
3113 (xg_create_tool_bar): Move attachement of the tool bar to
3114 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
3115 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
3116
6c8acaa1
JR
31172008-03-01 Jason Rumney <jasonr@gnu.org>
3118
3119 * w32fns.c (w32_msg_pump): Disable debug code.
3120
51fb064b 31212008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 3122
51fb064b 3123 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 3124
60221a33
CY
31252008-02-29 Chong Yidong <cyd@stupidchicken.com>
3126
3127 * xdisp.c (next_overlay_string): Don't set
3128 overlay_strings_at_end_processed_p if we're currently reading from
3129 a display string.
3130
10cbc34f
SM
31312008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
3132
3133 * xdisp.c (get_overlay_strings_1): Fix typo.
3134
73c0054e
CY
31352008-02-29 Chong Yidong <cyd@stupidchicken.com>
3136
3137 * xdisp.c (get_overlay_strings_1): Add missing argument type.
3138
ec1c4354
KH
31392008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
3140
55082642
KH
3141 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
3142
ec1c4354
KH
3143 * xdisp.c (display_mode_element): Cancel the previous change.
3144 (decode_mode_spec): Likewise.
ee548a94
KH
3145 (handle_auto_composed_prop): Don't make composition if it->string
3146 is a string.
ec1c4354 3147
b6d898a2
KS
31482008-02-27 Kim F. Storm <storm@cua.dk>
3149
3150 * lisp.h (GLYPH): Change type from int to struct with separate char
3151 and face_id members.
3152 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
3153 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
3154 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
3155 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
3156 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
3157 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
3158 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
3159 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
3160 handle new Lisp glyph code encoding, either an integer or a cons.
3161
3162 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
3163 (GLYPH_ALIAS): Delete.
3164 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
3165 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
3166 (GLYPH_FROM_CHAR): Replace macro by ...
3167 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
3168
3169 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
3170 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
3171 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
3172 (GLYPH_INVALID_P): New macro.
3173 (spec_glyph_lookup_face): Update prototype.
3174
3175 * dispnew.c (line_draw_cost): Adapt to new glyph type.
3176 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
3177 new glyph code encoding.
3178 (spec_glyph_lookup_face): No return value; update passed glyph instead.
3179 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
3180
3181 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3182 Adapt to new glyph type and new glyph code encoding.
3183
3184 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
3185
3186 * indent.c (current_column, current_column_1, Fmove_to_column)
3187 (compute_motion): Adapt to new glyph code encoding.
3188
3189 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
3190
af2080a2
CY
31912008-02-27 Chong Yidong <cyd@stupidchicken.com>
3192
3193 * process.c (wait_reading_process_output): Check for window
3194 changes caused by timers.
880820fe 3195 Suggested by Johan Bockgård.
af2080a2 3196
253ed25e
GM
31972008-02-27 Glenn Morris <rgm@gnu.org>
3198
3199 * emacs.c (USAGE1): Add `--disable-font-backend'.
3200
18a9f8d9
SM
32012008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
3202
3203 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
3204 is made to the buffer.
3205
0f8b27ea
SM
32062008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3207
3208 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
3209 (face_at_string_position):
3210 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3211 (face_at_string_position):
3212 * xdisp.c (display_string, next_overlay_change):
3213 * buffer.h (overlays_at):
3214 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
3215 Update callers.
3216
4e7c53ca
CY
32172008-02-26 Chong Yidong <cyd@stupidchicken.com>
3218
3219 * editfns.c (Fformat): Doc fix.
3220
51c01100
JB
32212008-02-26 Juanma Barranquero <lekktu@gmail.com>
3222
3223 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
3224 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
3225 (Ffont_otf_alternates, Fquery_font): Doc fixes.
3226
13cda5f9
SM
32272008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3228
3229 * buffer.c (Fbuffer_swap_text): New function.
3230 (syms_of_buffer): Defsubr it.
3231
8018d430
CY
32322008-02-25 Chong Yidong <cyd@stupidchicken.com>
3233
3234 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
3235
9bde1a21
JR
32362008-02-25 Jason Rumney <jasonr@gnu.org>
3237
3238 * w32font.c (w32font_draw): Draw one character at a time when padding.
3239
eeca6f6f
SM
32402008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3241
3242 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
3243 Handle a nil arg. Use run_window_configuration_change_hook.
3244 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
3245 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
3246 Use run_window_configuration_change_hook.
3247
ec1c4354
KH
32482008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3249
3250 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
3251 1-pixel width.
3252
ae185452
KH
32532008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3254
3255 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
3256 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
3257 if the glyph in the font is zero pixel with.
3258
3259 * dispextern.h (struct glyph_string): New member padding_p.
3260
3261 * w32font.c (w32font_draw): Pay attention to s->padding_p.
3262
3263 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
3264
3265 * xfont.c (xfont_draw): Pay attention to s->padding_p.
3266
3267 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
3268
eeca6f6f 3269 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 3270
ffe832ea 32712008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 3272
ffe832ea 3273 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 3274
06045130
SM
32752008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
3276
3277 Allow fine-grained image-cache flushing.
3278 * dispextern.h (struct image): Add `dependencies' field.
3279 (clear_image_caches): Change arg to Lisp_Object.
3280 * image.c (make_image): Initialize `dependencies' field.
3281 (clear_image_cache): Change arg to allow fine-grained flushing.
3282 Perform the flush even if image-cache-eviction-delay is nil.
3283 (clear_image_caches): Change arg to Lisp_Object.
3284 (Fclear_image_cache): Expand meaning of the argument.
3285 (mark_image): Mark `dependencies' field.
3286 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
3287 (lface_hash): Use XHASH rather than XFASTINT.
3288 (face_at_buffer_position): Fix int -> EMACS_INT position.
3289 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
3290 (select_frame_for_redisplay): Remove code duplication.
3291 (redisplay_internal): Adapt arg to call to clear_image_caches.
3292
9d2818d6
DN
32932008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
3294
3295 * s/vms4-0.h:
3296 * s/vms4-2.h:
3297 * s/vms4-4.h:
3298 * s/vms5-5.h: Remove, unused.
3299
3300 * s/irix5-2.h:
3301 * s/irix6-0.h:
3302 * s/riscos5.h:
3303 * s/mach-bsd4-3.h:
2a2e8de7 3304 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
3305
3306 * Makefile.in:
3307 * filelock.c:
3308 * unexmips.c:
3309 * m/hp9000s300.h:
3310 * m/iris4d.h:
3311 * s/aix3-1.h:
3312 * s/hpux.h:
3313 * s/msdos.h:
3314 * s/usg5-0.h:
3315 * s/usg5-2-2.h:
3316 * s/usg5-2.h:
3317 * s/usg5-3.h: Remove references to obsolete variables.
3318
3319 * s/irix5-0.h: Remove, move all the contents ...
3320 * s/irix6-5.h: ... here. Simplify.
3321 * config.in: Regenerate.
3322
2a36efcf
JR
33232008-02-24 Jason Rumney <jasonr@gnu.org>
3324
c5ad7a3d 3325 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
3326 manually when cleartype is in use.
3327 (x_draw_glyph_string_foreground): Draw text transparently when
3328 cleartype is in use.
3329
2a36efcf
JR
3330 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3331 a font into it unless we have to.
3332
b03f96dc 33332008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 3334
b03f96dc
MB
3335 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3336 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 3337
b03f96dc 33382008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 3339
b03f96dc 3340 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 3341
b03f96dc 33422008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 3343
b03f96dc 3344 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 3345
b03f96dc 33462008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 3347
b03f96dc 3348 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 3349
d5958163
CY
33502008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3351
3352 * xterm.c (x_set_offset): Don't change the gravity if
3353 CHANGE_GRAVITY is -1.
3354
9997701e
CY
33552008-02-23 Chong Yidong <cyd@stupidchicken.com>
3356
3357 * fileio.c (auto_save_error_occurred): New var.
3358 (auto_save_error): Set it.
3359 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3360 error occurred.
3361
9d95a291
EZ
33622008-02-23 Eli Zaretskii <eliz@gnu.org>
3363
3364 * w32.c (globals_of_w32): Add initializations for
3365 g_b_init_get_sid_sub_authority and
3366 g_b_init_get_sid_sub_authority_count.
3367
43d1af23
SM
33682008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3369
43a1d19b
SM
3370 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3371 (font_parse_xlfd): Use them for sanity check.
608c3307 3372 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 3373
354884c4
SM
3374 Consolidate the image_cache to the terminal struct.
3375 * termhooks.h (P_): Remove redundant def.
3376 (struct terminal): New field `image_cache'.
3377 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3378 of FRAME_X_IMAGE_CACHE.
3379 * xterm.h (struct x_display_info): Remove image_cache field.
3380 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3381 * w32term.h (struct w32_display_info): Remove image_cache field.
3382 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3383 * macterm.h (struct mac_display_info): Remove image_cache field.
3384 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3385 * xterm.c (x_term_init):
3386 * w32term.c (w32_term_init):
3387 * macterm.c (mac_term_init): Set the image_cache in the terminal.
3388 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
3389 Remove declarations.
3390 (clear_image_caches, mark_image_cache): New declarations.
3391 * xfaces.c (clear_face_cache):
3392 * xdisp.c (redisplay_internal): Use clear_image_caches.
3393 * image.c (clear_image_cache): Don't check that a frame is on
3394 a window-system before checking if it shares the same cache.
3395 (clear_image_caches): New function.
3396 (Fclear_image_cache): Use it.
3397 (mark_image): Move from allo.c.
3398 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
3399 * alloc.c (mark_image, mark_image_cache): Move to image.c.
3400 (mark_object): Don't call mark_image_cache for frames.
3401 (mark_terminals): Call mark_image_cache.
3402
c2e42690
SM
3403 * lisp.h (Fdelete_terminal): Declare.
3404
43d1af23
SM
3405 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
3406 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
3407 wrong_type_argument.
3408
cc8d1311
KH
34092008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
3410
3411 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 3412 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 3413
6bd92640
SM
34142008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
3415
3416 * xterm.c (x_connection_closed): Consolidate identical tests.
3417 (x_delete_terminal): Don't crash if called via x_connection_closed.
3418
a73b5627
KH
34192008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
3420
3421 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 3422 (display_mode_element): Adjust for the above change.
a73b5627 3423
1b511542
SM
34242008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3425
3426 * callint.c (Fcall_interactively): Use AREF.
3427
81aefea4
SM
34282008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3429
3430 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
3431
880820fe 34322008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
3433
3434 * xfns.c (Fx_show_tip): Set string to " " if empty.
3435
a2b84f35
DN
34362008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
3437
3438 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
3439 with Qt.
3440
43c0454d
KH
34412008-02-17 Kenichi Handa <handa@m17n.org>
3442
3443 * ftfont.c (ftfont_shape): Return Lispy number.
3444
3445 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
3446 for GCs.
3447 (Finternal_set_font_selection_order): Call font_update_sort_order
3448 only when enable_font_backend is set.
3449 (realize_x_face): Set face->font_info to that of default face only
3450 when enable_font_backend is set.
3451
3452 * xdisp.c (handle_composition_prop): Set it->c to the fist
3453 characte of the composed region.
3454 (fill_composite_glyph_string): Set base_face->font_info to
3455 s->font_info. Get a face for ascii from base_face->ascii_face.
3456 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
3457 with a face already decided.
3458 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
3459 non-negative.
978bef9a
JB
3460 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
3461 call font_prepare_composition unconditionally.
43c0454d 3462
978bef9a 3463 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
3464
3465 * xterm.h (struct x_display_info): New member font.
3466
3467 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
3468 (x_set_mouse_face_gc, x_new_font): Likewise.
3469 (x_term_init): Setup display_info->font.
3470 (x_delete_terminal): Free display_info->font.
3471
3472 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
3473
3474 * ftxfont.c (ftxfont_default_fid): Delete it.
3475 (ftxfont_open): Set xfont->fid to 0.
978bef9a 3476 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
3477 font-driver.
3478
3479 * xftfont.c (xftfont_default_fid): Delete it.
3480 (xftfont_open): Set xfont->fid to 0.
3481
3482 * fontset.c (FONTSET_OBJLIST): New macro.
3483 (fontset_find_font): Update font-object list of the fontset.
3484 (free_realized_fontset): New function.
3485 (free_face_fontset): Call free_realized_fontset.
3486 (Ffont_info): Call font_close_object only when enable_font_backend
3487 is set.
3488
3489 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3490 [HAVE_NTGUI]: Include w32term.h.
3491 [MAC_OS]: Include macterm.ch.
3492 (font_otf_ValueRecord): Use make_number.
3493 (font_finish_cache): Fix handling of reference count.
3494 (font_clear_cache): Update num_fonts.
3495 (font_open_entity): Update smallest_char_width and
3496 smallest_font_height of the frame.
3497 (font_close_object): Update num_fonts.
3498 (Fclear_font_cache): Fix finding the target cache data.
3499
be617367
GM
35002008-02-16 Glenn Morris <rgm@gnu.org>
3501
3502 * fontset.c (Finternal_char_font): Fix compilation warning.
3503
2930d117
EZ
35042008-02-16 Eli Zaretskii <eliz@gnu.org>
3505
634d3003
EZ
3506 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3507 instead of char arrays. Enlarge the size of array passed to
3508 get_token_information.
3509
2930d117
EZ
3510 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3511 warnings.
3512
79214046
DN
35132008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3514
3515 * .gdbinit: Don't set `args', it breaks gdb --args.
3516
7f5d2c72
SM
35172008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3518
3519 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3520 within a narrowed buffer.
3521
6edacc43
KH
35222008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3523
b270d6af
JB
3524 * coding.c (decode_coding_object, encode_coding_object):
3525 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 3526
174105f7
SM
35272008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3528
b270d6af
JB
3529 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3530 hardcoding 1.
13818c30
SM
3531 (detect_coding_system):
3532 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3533 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3534 * insdel.c (insert_from_gap):
3535 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3536 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3537 (string_to_multibyte):
3538 * character.c (chars_in_text, multibyte_chars_in_text):
3539 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3540
f1c99628
SM
3541 * character.h (FETCH_STRING_CHAR_ADVANCE)
3542 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3543 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3544 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3545
7927d8e3
SM
3546 * casefiddle.c (casify_region): Only call after-change and composition
3547 functions on the part of the region that was changed.
3548
adf6a429 3549 * keyboard.c (read_avail_input):
174105f7
SM
3550 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3551
3ee24aec
SM
35522008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3553
3554 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3555 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3556
4ed4b975
JB
35572008-02-11 Juanma Barranquero <lekktu@gmail.com>
3558
3559 * w32menu.c (push_submenu_start, push_submenu_end)
3560 (push_left_right_boundary, push_menu_pane, push_menu_item):
3561 * keyboard.c (read_key_sequence): Don't pass args with side effects
3562 to AREF, it fails when compiling with -DENABLE_CHECKING.
3563
79e3bfb8
KH
35642008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3565
4ed4b975
JB
3566 * Makefile.in (${lispsource}international/charprop.el):
3567 Delete this target.
6e76043f 3568
79e3bfb8
KH
3569 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3570 emacs-unicode-2.
3571
5b8de9c5
SM
35722008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3573
3574 * terminal.c (Fdelete_terminal): Clean up the `force' path.
3575
eac1939a
SM
35762008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3577
c53956fe
SM
3578 * frame.c (Qnoelisp): New symbol.
3579 (syms_of_frame): Initialize it.
3580 (Fdelete_frame): Use it to distinguish a mere `force' passed from
3581 someharmles Elisp code, from a strong `force' from x_connection_closed.
3582 * frame.h (Qnoelisp): Declare.
3583 * xterm.c (x_connection_closed): Pass `noelisp'.
3584
eac1939a
SM
3585 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
3586 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
3587 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
3588 rather than `int' for the type of `type'.
3589
13f6772b
DN
35902008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
3591
3592 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
3593
3594 * Makefile.in (GNUC): Remove support for gcc-1.x.
3595
e8455367
RS
35962008-02-10 Richard Stallman <rms@gnu.org>
3597
3598 * lisp.h (ASET): Use AREF, not ASLOT.
3599
4b75ffab
SM
36002008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3601
3602 * lisp.h (ASET): Check bounds.
3603
d224e8c2
GM
36042008-02-10 Glenn Morris <rgm@gnu.org>
3605
3606 * buffer.c (mode-name): Doc fix.
3607
4624371d
DN
36082008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3609
290afd83
JB
3610 * Makefile.in:
3611 * emacs.c:
3612 * gmalloc.c:
3613 * keyboard.c:
3614 * lisp.h:
3615 * m/ibm370aix.h:
3616 * process.c:
3617 * regex.c:
3618 * s/hpux.h:
3619 * sysdep.c:
3620 * sysselect.h:
3621 * systty.h:
3622 * unexec.c:
3623 * w32term.c:
3624 * xsmfns.c:
3625 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
3626
3627 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
3628
3629 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
3630 nothing else needs it anymore.
3631
274ec34b
EZ
36322008-02-09 Eli Zaretskii <eliz@gnu.org>
3633
3634 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
3635 instead of unibyte_char_to_multibyte.
3636
deeaffe1
DN
36372008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3638
3639 * s/gnu-linux.h: Remove commented out code.
3640
4ed4b975 3641 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
3642
3643 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 3644 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 3645 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
3646 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
3647 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
3648
68b587a6
SM
36492008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3650
9141ca5e
SM
3651 * keymap.c (Fkey_description): Move side effect outside of macro call.
3652
dfae5f9a 3653 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
3654 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
3655
ff7a2223
SM
3656 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
3657 (syms_of_fontset): Use ASET.
3658
68b587a6
SM
3659 * fns.c (concat): Move side effect outside of macro call.
3660 (hash_clear): Use ASET.
3661
a31787b1
RS
36622008-02-08 Richard Stallman <rms@gnu.org>
3663
3664 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
3665 If FORCE, and frame has a surrogate minibuffer for another frame,
3666 delete the other frame first.
3667
987be29b 36682008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
3669
3670 * xterm.c (x_detect_focus_change): Handle embed client message.
3671 (handle_one_xevent): Ditto.
3672 (handle_one_xevent): If embedded and we get a button press/release,
3673 request focus.
3674 (xembed_set_info, xembed_send_message): New functions.
3675 (x_make_frame_visible): Call xembed_set_info if embedded.
3676 (x_make_frame_invisible): Call xembed_set_info if embedded.
3677 (x_term_init): Initialize Xatom_XEMBED.
3678 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
3679 (x_iconify_frame): Ditto.
3680
3681 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
3682 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
3683 (enum xembed_modifier, enum xembed_accelerator): New.
3684 (xembed_set_info, xembed_send_message): Declare.
3685 (FRAME_X_EMBEDDED_P): New.
3686
3687 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
3688 gtk_plug_new.
3689
3690 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
3691 window ID of a frame.
3692 (x_window): Reparent frame if embedded.
3693 (Fx_create_frame): Don't set border width if embedded.
3694
1f204af3 3695 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
3696 (standard_args): Ditto.
3697
880820fe 36982008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
3699
3700 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
3701
92413ef3
JD
37022008-02-07 Jim Meyering <meyering@redhat.com>
3703
6f69e89b 3704 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
3705 The latter provokes a warning from gcc about the empty else, when
3706 followed by ";". Also, without that trailing semicolon, it would
3707 silently swallow up any following statement.
c3f9fba8 3708 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
3709 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
3710 * buffer.h (DECODE_POSITION): Likewise.
3711 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
3712 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
3713 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
3714 (FETCH_CHAR_ADVANCE): Likewise.
3715 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 3716
03fa5713
GM
37172008-02-07 Jim Meyering <meyering@redhat.com>
3718
3719 * lread.c [lint]: Don't include <sys/inode.h>.
3720
3ae565b3
SM
37212008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
3722
3723 * xselect.c (x_handle_dnd_message):
3724 * xmenu.c (digest_single_submenu, xmenu_show):
3725 * xdisp.c (with_echo_area_buffer_unwind_data)
3726 (format_mode_line_unwind_data, unwind_format_mode_line)
3727 (display_menu_bar):
3728 * eval.c (Ffetch_bytecode):
3729 * doc.c (store_function_docstring):
3730 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
3731 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
3732 * buffer.c (add_overlay_mod_hooklist): Use ASET.
3733
146b6e55
KH
37342008-02-07 Kenichi Handa <handa@m17n.org>
3735
3736 * ftxfont.c (ftxfont_open): Don't set
3737 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
3738
3739 * ftfont.c (ftfont_open): Fix previous change.
3740
46a923ac
JR
37412008-02-06 Jason Rumney <jasonr@gnu.org>
3742
3743 * w32font.c (w32font_text_extents): Fill in lbearing metric.
3744 Use cached metrics for ASCII characters.
3ae565b3
SM
3745 (w32font_open_internal): Don't set font's owning_frame.
3746 Cache metrics for ASCII characters.
46a923ac
JR
3747
3748 * w32font.h (struct w32font_info): Add ascii_metrics.
3749 Remove owning_frame.
3750
da7d7c21
KH
37512008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
3752
3753 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
3754 to negative value.
3755
3756 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
3757
3ae565b3 3758 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
3759
3760 * charset.c (syms_of_charset): Set QCtest and Qeq.
3761
c62c8ddb
SM
37622008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
3763
ca319910
SM
3764 * process.c (Fstart_process):
3765 * callproc.c (Fcall_process): Handle the case where
3766 Funhandled_file_name_directory returns nil.
3767
76860cbb
SM
3768 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
3769 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
3770 * font.c (check_gstring): Use them and AREF to access the vector before
3771 we know it's really a gstring.
3772 (Ffont_shape_text): Fix typo.
3773 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 3774
15139d67
SM
3775 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
3776 Declare.
3777
c62c8ddb
SM
3778 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
3779
04b65d2b
JR
37802008-02-05 Jason Rumney <jasonr@gnu.org>
3781
3782 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
3783 Set smallest_font_height and smallest_char_width in display info.
3784
fccaebfd
KH
37852008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
3786
3787 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
3788
e7d7fd8c
MB
37892008-02-05 Miles Bader <miles@gnu.org>
3790
3791 * xfaces.c (get_lface_attributes, merge_named_face)
3792 (lookup_named_face, lookup_derived_face, realize_named_face):
3793 Revert 2008-02-01 change by cyd@stupidchicken.com.
3794
3d4448a8
KH
37952008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
3796
3797 * fontset.c (Ffontset_info): Handle the case of inhibitting the
3798 fallback fonts.
15139d67 3799 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 3800
5ace1ec1
JR
38012008-02-04 Jason Rumney <jasonr@gnu.org>
3802
3803 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
3804 set full_name.
e3a77b22 3805 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 3806
ffe42183
JR
38072008-02-03 Jason Rumney <jasonr@gnu.org>
3808
3809 * makefile.w32-in (OBJ1): Include font.o here.
3810 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
3811
526dc3b3
JR
38122008-02-02 Jason Rumney <jasonr@gnu.org>
3813
a0fece35 3814 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 3815
af805c82
JR
38162008-02-01 Jason Rumney <jasonr@gnu.org>
3817
3818 * s/cygwin.h: Define VIRT_ADDR_VARIES.
3819
3820 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
3821
7f6519c5
AS
38222008-02-01 Andreas Schwab <schwab@suse.de>
3823
1f45f627 3824 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 3825 ../lisp/language/myanmar.el.
7f6519c5 3826
26f8aa27
CY
38272008-02-01 Chong Yidong <cyd@stupidchicken.com>
3828
1f45f627 3829 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
3830 (merge_named_face, lookup_named_face, lookup_derived_face)
3831 (realize_named_face): Call lface_from_face_name directly, and use
3832 the fact that merge_face_vectors does not alter its FROM argument.
3833
73acf815 38342008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3835
3836 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 3837 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 3838
73acf815 38392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3840
3841 * fontset.c (reorder_font_vector): Exclude nil elements from the
3842 font group. Don't try multiple fonts.
15139d67 3843 (fontset_font): Adjust for the above change.
aca7a3d2
MB
3844 (Finternal_char_font): Return nil if the found font doesn't
3845 contain the character ch.
3846
4c4475a8 3847 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 3848
73acf815 38492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3850
3851 * font.h (FONTP): Make it return 1 also for a font-object.
3852
3853 * .gdbinit (xfontset): New function.
3854
3855 * font.c (font_find_for_lface): Check if the character C is
3856 supported or not only for the first font.
3857
3858 * fontset.c (reorder_font_vector): Fix typo.
3859 (fontset_find_font): Don't add a font-spec specifying a script.
3860 Use 0 (not Qt) for the indication of empty font-group. Change the
3861 format of RFONT-DEF. Return Qt if no font in the font-group
3862 support the character.
15139d67 3863 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 3864 found the character, remember that.
15139d67 3865 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
3866 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
3867 no font for the target.
15139d67 3868 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 3869
73acf815 38702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3871
3872 * font.c (font_load_for_face): Handle the case that the font in
3873 face->lface is a string.
3874
73acf815 38752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3876
1f45f627 3877 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 3878
73acf815 38792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3880
3881 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
3882 Fix previous change. If the frame is not on a window system,
3883 signal an error.
3884
73acf815 38852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3886
4c4475a8
GM
3887 * coding.c (decode_coding_object, encode_coding_object): Adjust
3888 marker positions after conversion.
aca7a3d2
MB
3889
3890 * lisp.h (struct Lisp_Marker): New member need_adjustment.
3891
73acf815 38922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3893
3894 * font.c (font_find_for_lface): Fix the handling of the return
3895 value of font_has_char.
3896 (Ffont_shape_text): Fix previous change.
3897
3898 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
3899 (fontset_ref_and_range): Delete it.
3900 (fontset_find_font): Call char_table_ref_and_range instead of
3901 FONTSET_REF_AND_RANGE.
3902 (make_fontset): Don't setup font groups of Latin here.
3903 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
3904 (new_fontset_from_font): Make the specified font the default for
3905 all Latin characters.
3906
73acf815 39072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3908
3909 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
3910 is on a window system before accessing the fontset of the frame.
3911
73acf815 39122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3913
1f45f627 3914 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
3915
3916 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
3917 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
3918
3919 * font.c (Ffont_shape_text): If the font driver doesn't have a
3920 shaper function, make zero-width glyphs to have at least one-pixel
3921 width. Fix setting of `to' field of glyphs.
3922
73acf815 39232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3924
3925 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
3926 glyphs.
3927
1f45f627 3928 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 3929
73acf815 39302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3931
3932 * composite.c (syms_of_composite): Fix docstring of
3933 auto-composition-function.
3934
3935 * font.h (LGLYPH_SIZE): New macro.
3936
3937 * font.c (Ffont_fill_gstring): Stop filling when a character not
3938 supported by the font is found.
3939 (Ffont_shape_text): When a shape callback function returns nil,
3940 try at most two more times with larger gstring.
15139d67 3941 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
3942
3943 * xdisp.c (handle_auto_composed_prop): Change the argument to
3944 auto-composition-function.
3945
3946 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
3947 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
3948 Lispy glyph and store it in the lgstring.
3949
3950 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
3951
3952 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
3953
73acf815 39542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3955
3956 * font.c (Ffont_shape_text): Avoid unnecessary composition.
3957
3958 * fontset.c (Vfont_encoding_charset_alist): New variable.
3959 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
3960 (reorder_font_vector, fontset_find_font): Optimize for the case of
3961 no need of reordering.
aca7a3d2
MB
3962 (face_for_char): Map the charset property by
3963 Vfont_encoding_charset_alist.
3964
73acf815 39652008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3966
3967 * w32font.c (logfonts_match): Don't check adstyle here.
3968 (font_matches_spec): Check here against physical font instead.
3969 (add_font_entity_to_list): Avoid some substitutions.
3970
3971 * font.c (font_parse_fcname): Default weight and slant to normal.
3972 (font_score): Prefer normal fonts if weight or slant unspecified.
3973 (font_score) [WINDOWSNT]: Scale weight difference down to closer
3974 match freetype scores.
3975
73acf815 39762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3977
3978 * w32font.c (w32font_text_extents): Don't use the frame stored in the
3979 font, as it may have been deleted.
3980 (w32_enumfont_pattern_entity): Map generic family to adstyle using
3981 most common hyphenless variation.
3982 (logfonts_match): Check generic family.
3983 (font_matches_spec): Don't check generic family here.
3984 (fill_in_logfont): Set generic family based on adstyle.
3985
3986 * w32font.h (w32font_get_cache): Update declaration.
3987
73acf815 39882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3989
3990 * ftfont.c (ftfont_get_cache): Adjust the argument type.
3991
15139d67 3992 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 3993 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
3994 with the old drivers.
3995
3996 * w32font.c (w32font_get_cache): Adjust the argument type.
3997
3998 * xfont.c (xfont_get_cache): Adjust the argument type.
3999
4000 * font.h (struct font_driver): Change argument type of get_cache.
4001
4002 * xftfont.c (xftfont_start_for_frame): Delete prototype.
4003
4004 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 4005 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 4006 (font_clear_cache): New function.
4c4475a8 4007 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 4008 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
4009
4010 * fontset.c (fontset_find_font): Fix previous change.
4011
73acf815 40122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4013
4014 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
4015 dpyinfo->font_table.
4016 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 4017 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
4018
4019 * font.c (font_at): Handle the case that the arg C is negative.
4020 Handle the unibyte case.
4021 (Ffont_at): Call font_at with the arg C -1.
4022
4023 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
4024 the position here, and call font_at with the arg C -1.
4025 Don't check the range of the existing composition at the point.
aca7a3d2 4026
73acf815 40272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4028
15139d67 4029 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 4030 Change caller.
4c4475a8
GM
4031 (load_font_get_repertory, fontset_find_font): Assume that
4032 font_spec is always a font-spec object.
aca7a3d2
MB
4033 (Fset_fontset_font): Always store a font-spec object in a fontset.
4034
4035 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
4036 instead of get_property_and_range.
4037
73acf815 40382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4039
4040 * xftfont.c (struct xftfont_info): Delete the member ft_face.
4041 (xftfont_open): Don't keep locking face.
4042 (xftfont_close): Don't unlock face.
4c4475a8 4043 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
4044
4045 * fontset.c (fontset_find_font): Don't prefer a font of
4046 supplementary charset.
4047
73acf815 40482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4049
1f45f627
GM
4050 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
4051 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
4052 (OTF_TAG_STR): Terminate by '\0'.
4053 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
4054 listing to the script specified in that property. Fix arg to
4055 OTF_check_features.
4056
73acf815 40572008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4058
4059 * w32font.h: New file.
4060
4061 * w32font.c: Include it.
4062 (struct w32font_info): Add owning_frame field. Move to w32font.h.
4063 (w32font_open): Set owning_frame.
4064 (w32font_text_extents): Use owning_frame.
4065 (struct font_callback_data): Add opentype_only field.
4066 (add_font_entity_to_list): Use it to filter fonts.
4067 Don't check against full name.
4068 (w32font_list_internal): New function.
4069 (w32font_list): Use it.
4070 (w32font_match_internal): New function.
4071 (w32font_match): Use it.
4072 (w32font_open_internal): New function.
4073 (w32font_open): Use it.
4074 (w32font_get_cache, w32font_close, w32font_has_char)
4075 (w32font_encode_char, w32font_text_extents, w32font_draw):
4076 Make non-static.
4077
4078 * makefile.w32-in (w32font.o): Depend on w32font.h.
4079
73acf815 40802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4081
4082 * charset.c (Fdefine_charset_internal): Record a supplementary
4083 charset at the tail of Vcharset_order_list.
4084
4085 * font.c (Ffont_shape_text): Fix the return value.
4086
4087 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
4088
4089 * xdisp.c (handle_auto_composed_prop): Fix previous change.
4090
73acf815 40912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4092
4093 * ftfont.c (struct OpenTypeSpec): New struct.
4094 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
4095 (ftfont_get_open_type_spec): New function.
4096 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
4097
15139d67 4098 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 4099
73acf815 41002008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4101
4102 * w32font.c (add_font_entity_to_list): Compare only the beginning
4103 of full name.
4104
73acf815 41052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4106
15139d67
SM
4107 * xdisp.c (handle_auto_composed_prop): Simplify the code.
4108 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 4109
73acf815 41102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4111
4112 * font.c (font_gstring_produce): Delete it.
4113
15139d67
SM
4114 * composite.h (COMPOSITION_METHOD):
4115 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 4116
73acf815 41172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4118
15139d67 4119 * xfont.c (Qx): Delete.
aca7a3d2
MB
4120 (syms_of_xfont): Don't initialize Qx.
4121
15139d67
SM
4122 * composite.h (enum composition_method):
4123 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 4124
73acf815 41252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4126
4127 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
4128 (choose_face_font): Accept new form of font-spec.
4129
4130 * frame.h (font_driver_list): Declare it unconditionally.
4131 (struct frame): Define members font_driver_list and font_data_list
4132 unconditionally.
4133
4134 * fontset.c: Include "font.h" unconditionally.
15139d67 4135 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
4136 (Fset_fontset_font): Accept a font-spec object.
4137
4138 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
4139 PIXEL_SIZE part a wild card.
4140
4141 * dispextern.h (struct glyph_string): Define members clip and
4142 num_clips unconditionally.
4143 (struct face): Define members font_info and extra unconditionally.
4144
4145 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
4146 ftfont_info only when HAVE_LIBOTF is defined.
4147
73acf815 41482008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4149
4150 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
4151 and end.
4152
73acf815 41532008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4154
4155 * w32font.c (w32font_driver): Add new fields.
4156
73acf815 41572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 4158
aca7a3d2
MB
4159 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
4160 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
4161 (LIBES): Add @M17N_FLT_CFLAGS@.
4162
4163 * composite.c (compose_text): Don't treat the new style
4164 composition specially.
4165
4166 * emacs.c (main): Call syms_of_font unconditionally.
4167
4168 * font.h (FONT_ENTITY_NOT_LOADABLE)
4169 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 4170 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 4171 (struct font_driver): New member shape.
1f45f627 4172 (font_registry_charsets): Extern it.
4c4475a8 4173 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
4174 (font_otf_capability, font_drive_otf): Delete their externs.
4175
4176 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
4177 (font_charset_alist, font_registry_charsets): Move from xfont.c
4178 and rename.
aca7a3d2
MB
4179 (font_prop_validate_otf): New function.
4180 (font_property_table): Register it for QCotf.
4181 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 4182 (font_drive_otf): Delete.
1f45f627 4183 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
4184 lispy gstring.
4185 (font_find_for_lface): New arg C.
15139d67 4186 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
4187 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
4188 lispy gstring.
aca7a3d2
MB
4189 (Ffont_shape_text): New function.
4190 (Fopen_font): If the font size is not given, use 12-pixel.
4191 (Ffont_at): New arg STRING.
15139d67
SM
4192 (syms_of_font): Initalize font_charset_alist.
4193 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
4194 conditionally.
4195
4196 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
4197 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
4198 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
4199 Adjust for the change of RFONT-DEF.
15139d67 4200 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
4201
4202 * ftfont.h: New file.
4203
4204 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
4205 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
4206 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4207 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
4208 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 4209 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
4210 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
4211 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
4212 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 4213 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
4214 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
4215 (otf_gstring, gstring, m17n_flt_initialized): New variables.
4216
15139d67
SM
4217 * w32term.c (x_draw_composite_glyph_string_foreground):
4218 Adjust for the change of lispy gstring.
aca7a3d2 4219
15139d67 4220 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 4221 lispy gstring. Call a function for auto-composition with the
15139d67
SM
4222 third arg it->window.
4223 (fill_composite_glyph_string): Adjust for the change of lispy string.
4224 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 4225
15139d67 4226 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4227 font_find_for_lface.
4228
1f45f627
GM
4229 * xfont.c (x_font_charset_alist): Move to font.c and rename.
4230 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
4231 (syms_of_xfont): Don't handle x_font_charset_alist.
4232
4233 * xftfont.c: Include "ftfont.h".
15139d67 4234 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
4235 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4236 (xftfont_close) [HAVE_LIBOTF]: Close otf.
4237 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
4238 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
4239 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 4240
15139d67 4241 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4242 the change of lispy gstring.
4243
73acf815 42442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4245
4246 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
4247
73acf815 42482008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4249
4250 * w32font.c (w32font_draw): Fill background manually.
4251
73acf815 42522008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4253
4254 * font.c (Qfontp): Remove unused symbol.
4255 (QCantialias): New symbol.
4256 (syms_of_font): Define it.
4257 (font_property_table): Set a validator for QCantialias.
4258
15139d67
SM
4259 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
4260 Define if not already.
aca7a3d2
MB
4261 (QCfamily): Share with xfaces.c.
4262 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 4263 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
4264 (w32_antialias_type, lispy_antialias_type): New functions.
4265 (w32_enumfont_pattern_entity): New arg requested_font.
4266 Set antialias parameter if non-default was requested.
4267 (fill_in_logfont): Fill in lfQuality if :antialias specified.
4268
73acf815 42692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4270
4271 * lread.c (read1): Undo the previous change.
4272
73acf815 42732008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
4274
4275 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 4276 USE_FONT_BACKEND is defined.
aca7a3d2 4277
73acf815 42782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4279
4280 * font.h (struct font_bitmap): New member bits_per_pixel.
4281 (struct font_driver): New members start_for_frame and end_for_frame.
4282 (struct font_data_list): New struct.
4283 (font_put_frame_data, font_get_frame_data): Extern them.
4284
4285 * frame.h (struct frame): New member font_data_list.
4286
4287 * font.c (font_update_drivers): Call driver->start_for_frame and
4288 driver->end_for_frame at proper timings.
4289 (font_put_frame_data, font_get_frame_data): New functions.
4290 (Ffont_spec): Add usage in the docstring.
4291
4292 * frame.c (make_frame): Initialize f->font_data_list to NULL.
4293 (Fdelete_frame): Call font_update_drivers.
4294
4295 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 4296 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
4297 (xftfont_get_xft_draw): New function.
4298 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4299 (xftfont_end_for_frame): New function.
4300 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4301
15139d67 4302 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 4303 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
4304 (struct ftxfont_frame_data): New struct.
4305 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4306 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 4307 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
4308 (ftxfont_end_for_frame): New function.
4309 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4310
4311 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4312
73acf815 43132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4314
4315 * xselect.c (Vselection_coding_system)
4316 (Vnext_selection_coding_system): Delete them.
4317 (syms_of_xselect): Don't declare selection-coding-system and
4318 next-selection-coding-system. They are declared in select.el.
4319
73acf815 43202008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4321
4322 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4323
4324 * w32fns.c: Include imm.h.
4325 (get_composition_string_fn, get_ime_context_fn): New optional
4326 system functions.
4327 (globals_of_w32fns): Load them from imm32.dll.
4328 (ignore_ime_char): New flag.
4329 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4330 WM_IME_ENDCOMPOSITION messages.
4331
4332 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4333 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4334
73acf815 43352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4336
4337 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4338 (READCHAR_REPORT_MULTIBYTE): New macro.
4339 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
4340 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4341 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
4342 source.
4343
73acf815 43442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4345
4346 * xfaces.c (face_for_overlay_string): Call lookup_face with
4347 correct arguments (fix of synching with the trunk).
4348
73acf815 43492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4350
4c4475a8
GM
4351 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4352 (font_prop_validate_non_neg, font_prop_validate_spacing):
4353 Delete argument prop_index.
15139d67
SM
4354 (font_property_table): Change arguments to validater. Change Callers.
4355 (font_lispy_object): Delete.
aca7a3d2
MB
4356 (font_at): Use font_find_object instead fo font_lispy_object.
4357
73acf815 43582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4359
4360 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4361 and file names.
4362
73acf815 43632008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4364
4365 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4366 (font_matches_spec): Remove debug output.
4367 (add_font_entity_to_list): Avoid using substituted fonts.
4368
73acf815 43692008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4370
4371 * doc.c (Fsnarf_documentation):
4372 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4373
73acf815 43742008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 4375
290afd83 4376 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
4377 HAVE_WINDOW_SYSTEM is defined.
4378
73acf815 43792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4380
4381 Fix up multi-tty merge.
4382
4383 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4384 and indentation.
4385
4386 * xfaces.c (free_realized_face, clear_face_gcs):
4387 Include font_done_for_face in the input_blocked section, just in case.
4388
4389 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
4390 (get_char_face_and_encoding): Undo last change and remove the *other*
4391 duplicate definition (i.e. keep the one that's better scoped and that
4392 includes code for the font-backend).
4393
4394 * terminal.c (create_terminal): Default keyboard_coding to
4395 `no-conversion' and terminal_coding to `undecided'.
4396
4397 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
4398
4399 * fontset.c (free_realized_fontsets): Check that the table entry does
4400 contain a fontset before trying to compare it to `base'.
4401
4402 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
4403 syms_of_charset, and syms_of_coding earlier because init_window_once
4404 now needs Vcoding_system_hash_table to be setup.
4405
4406 * coding.h (default_buffer_file_coding): Remove.
4407
4408 * coding.c (default_buffer_file_coding): Remove.
4409 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
4410 than ->symbol, and use the terminal-local coding system.
4411 (syms_of_coding): Don't setup the coding-systems that are not
4412 terminal-local.
4413 (Fdefine_coding_system_internal): Use XCAR/XCDR.
4414
4415 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
4416 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
4417
4418 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
4419 in chartab.c and were re-added here by mistake.
4420 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
4421
4422 * doc.c (Fsnarf_documentation):
4423 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
4424 src to etc.
4425
4426 * ChangeLog.10: Add mistakenly removed entry.
4427
73acf815 44282008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
4429
4430 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
4431
73acf815 44322008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4433
4434 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
4435 Add extra args to FACE_FOR_CHAR.
4436
73acf815 44372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4438
4439 * keymap.c (where_is_internal_1): If key is a cons, store the copy
4440 in sequence.
4441
4c4475a8
GM
4442 * chartab.c (map_sub_char_table, map_char_table): If the range
4443 contains just one character, call the function with that character
4444 even if the depth is not 3.
aca7a3d2 4445
73acf815 44462008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4447
4448 * w32font.c (w32font_text_extents): Calculate metrics for the
4449 whole string.
4450
73acf815 44512008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4452
4453 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
4454
73acf815 44552008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4456
4457 * w32term.c (x_set_glyph_string_clipping): Use
4458 get_glyph_string_clip_rects.
4c4475a8
GM
4459 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4460 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4461
4462 * w32font.c (w32font_draw): Do clipping here.
4463
73acf815 44642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4465
1f45f627 4466 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
4467 glyph_string.
4468
4469 * xterm.c (x_set_glyph_string_clipping): Use
4470 get_glyph_string_clip_rects.
4c4475a8
GM
4471 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4472 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4473
4474 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
4475 the resulting clip(s}.
1f45f627 4476 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
4477 row->clip temporarily.
4478 (expose_window): Redraw rows overlapping the exposed area.
4479
4480 * dispextern.h (struct glyph_row): New member clip.
4481 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4482 clip_height, new member clip, and num_clips.
4483
73acf815 44842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4485
4486 * data.c (Fchar_or_string_p): Fix docstring.
4487
73acf815 44882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4489
4490 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4491 create a temporal XftDraw object.
4492
73acf815 44932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4494
4495 * font.c (Ffontp): Fix docstring.
4496
4497 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4498 strong evidence of ISO-2022.
4499
73acf815 45002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4501
4502 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4503 SYNTAX_ENTRY_FOLLOW_PARENT.
4504
73acf815 45052008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4506
4507 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4508 its type.
4509 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4510 Update to the new type of weak_hash_tables and next_weak.
4511
4512 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4513 a plain C pointer to Lisp_Hash_Table.
4514
4515 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4516 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4517 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4518 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4519 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4520 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4521 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4522 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4523 (GC_EQ): Remove since they've been identical to their non-GC_
4524 alter-egos ever since the markbit was eradicated.
4525
290afd83
JB
4526 * alloc.c:
4527 * buffer.c:
4528 * buffer.h:
4529 * data.c:
4530 * fileio.c:
4531 * filelock.c:
4532 * fns.c:
4533 * frame.h:
4534 * lisp.h:
4535 * macterm.c:
4536 * print.c:
4537 * process.c:
4538 * w32fns.c:
4539 * w32menu.c:
4540 * w32term.c:
4541 * xfns.c:
4542 * xmenu.c:
4543 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 4544
73acf815 45452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4546
4547 * chartab.c (map_sub_char_table): Make it work for the top-level
4548 char-table. Fix handling of parent char-table.
c5ad7a3d 4549 (map_char_table): Adjust for the above change.
aca7a3d2 4550
73acf815 45512008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4552
4553 * w32font.c (Qgdi): Rename from Qw32.
4554
73acf815 45552008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4556
4557 * w32bdf.c (get_quoted_string): Make function static.
4558
73acf815 45592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4560
4561 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4562 bigger ascent and descent than those of the font, use them as
4563 font's ascent and descent.
4564
73acf815 45652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4566
4567 * Makefile.in (${lispsource}international/charprop.el): Move this
4568 target within "#ifdef HAVE_UNIDATA" and "#endif".
4569
73acf815 45702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4571
4572 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4573 (shortlisp): Add ../lisp/language/tai-viet.el.
4574
1f45f627 45752008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
4576
4577 * Makefile.in (${lispsource}international/charprop.el): Depend on
4578 temacs${EXEEXT}.
4579
73acf815 45802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4581
4582 * w32font.c (w32font_close): Delete the GDI font object.
4583
6f69e89b 4584 * w32menu.c: Include character.h.
aca7a3d2
MB
4585
4586 * w32proc.c: Likewise.
4587
4588 * w32select.c: Likewise.
4589
6f69e89b 4590 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 4591
73acf815 45922008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4593
4594 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
4595
4596 * w32menu.c (syms_of_w32menu): Likewise.
4597
4598 * w32proc.c (syms_of_ntproc): Likewise.
4599
4600 * w32select.c (syms_of_w32select): Likewise.
4601
4602 * w32term.c (syms_of_w32term): Likewise.
4603
73acf815 46042008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4605
4606 * w32font.c (w32font_draw): Delete brush after using it.
4607
73acf815 46082008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4609
4610 * w32font.c (w32font_open): Don't set font_idx.
4611 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4612 to font settings.
4613 (w32font_draw): Fill background explicitly.
4614
73acf815 46152008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4616
4617 * w32term.c (w32_initialize): Don't call w32font_initialize.
4618
4619 * w32font.c (w32font_info): Remove subranges.
4620 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4621 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4622 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4623 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4624 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
4625 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
4626 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
4627 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
4628 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
4629 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
4630 New symbols.
4631 (font_callback_data): New struct.
4632 (w32font_list, w32font_match): Use it.
4633 (w32font_open): Don't populate subranges.
4634 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
4635 (w32font_encode_char): Always return unicode code-point as-is.
4636 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
4637 GetGlyphOutline. Never look up by glyph index. Avoid looping
4638 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 4639 glyph index version.
1f204af3 4640 (set_fonts_frame): Remove.
aca7a3d2 4641 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
4642 set frame parameter. Use backward compatible fake foundries.
4643 Save generic family in extra slot under QCfamily. Make width slot
4644 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
4645 binary subranges.
4646 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 4647 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
4648 unwanted fonts.
4649 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
4650 (w32_registry): Default to iso10646_1.
4651 (fill_in_logfont): Use dpi from extra slot. Don't bother with
4652 string font registries. Don't fill in font name if it is a generic
4653 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
4654 extra info to fill pitch, family and charset fields.
4655 (list_all_matching_fonts): Use font_callback_data struct.
4656 (unicode_range_for_char): Remove.
4657 (font_supported_scripts): New function.
4658 (w32font_initialize): Remove.
4659 (syms_of_w32font): Update which symbols are defined.
4660
73acf815 46612008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4662
4663 * font.c (font_pixel_size): Reverse assq_no_quit args.
4664
4665 * w32term.h (FONT_WIDTH): Report max width, not average.
4666 (FONT_MAX_WIDTH): Remove.
4667 (FONT_AVG_WIDTH): New macro.
4668
4669 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
4670 redefinition of FONT_WIDTH.
4671
4672 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
4673 (w32_cache_char_metrics): Use FONT_WIDTH.
4674
4675 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
4676
73acf815 46772008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4678
4679 * w32font.c (w32font_open): Make lfHeight negative.
4680
4681 * w32fns.c (x_default_font_parameter): Use new style font name.
4682 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
4683
73acf815 46842008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4685
4686 * w32font.c (QCsubranges): New symbol.
4687 (w32font_open, w32font_has_char): Get subranges from subproperty
4688 of extra.
4689 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
4690 (syms_of_w32font): Define :subranges symbol.
4691
4692 * font.c (font_put_extra): Expose externally.
4693
1f45f627 4694 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
4695
4696 * font.c (Ffont_get): Use font driver to determine otf capability.
4697 (adjust_anchor): Check if driver defines anchor_point before using.
4698
4699 * w32font.c (w32font_open): Handle size, height and pixel_size better.
4700 (w32font_draw): Use options.
4701 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
4702 Fix detection of truetype fonts.
4703 (registry_to_w32_charset): Handle charsets other than iso8859-1
4704 expressed as lisp symbols.
4705 (w32_registry): Express charset as lisp symbol.
4706 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 4707 Don't set width here. Set quality to default.
aca7a3d2
MB
4708
4709 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
4710 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
4711
4712 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4713 Remove redundant loop and allocation.
4714
4715 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 4716 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
4717 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
4718
4719 * xdisp.c (fill_composite_glyph_string): Make the first arg to
4720 STORE_XCHARB a valid l-value.
4721
4722 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
4723 calculations for non-Truetype fonts.
4724 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
4725 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4726 Remove redundant code.
aca7a3d2
MB
4727 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
4728
4729 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
4730 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
4731
4732 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
4733 (x_to_w32_charset, w32_to_x_charset): Expose externally.
4734
4735 * w32font.c: New file for w32 font backend.
4736
73acf815 47372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4738
4739 * term.c: Don't include "buffer.h" twice.
4740
73acf815 47412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4742
4743 * character.c (Funibyte_string): New function.
4744 (syms_of_character): Defsubr it.
4745
73acf815 47462008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4747
4748 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
4749 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
4750 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
4751 (x_draw_glyph_string, x_draw_glyph_string_foreground)
4752 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
4753 (x_free_frame_resources): Sync with xterm.c.
4754
73acf815 47552008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4756
4757 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
4758 char-table size.
4759
73acf815 47602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4761
c3f9fba8 4762 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 4763
73acf815 47642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4765
4766 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
4767 font_otf_gpos, add font_drive_otf.
4768
4769 * fontset.c (fontset_find_font): Pay attention to font size
4770 specified for a font.
4771 (reorder_font_vector): Check contents of font_def.
4772
4773 * font.c (struct otf_list): Delete it.
6f69e89b 4774 (otf_list): Make it a lisp variable.
aca7a3d2 4775 (otf_open): Use lispy otf_list.
1f45f627 4776 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 4777 (check_otf_features): New function.
c3f9fba8
JB
4778 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
4779 New functions.
aca7a3d2
MB
4780 (font_drive_otf): New function merging font_otf_gsub and
4781 font_otf_gpos.
4782 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 4783 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
4784 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
4785 Ffont_otf_gpos.
4786 (syms_of_font): Staticpro otf_list. Delete defsubr of
4787 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
4788
1f45f627 4789 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4790 font_open_for_lface.
4791
4792 * font.h (font_open_for_lface): Adjust prototype.
4793 (struct font_driver): Delete members otf_gsub and otf_gpos, add
4794 member otf_drive.
4795 (font_otf_gsub, font_otf_gpos): Delete externs.
4796 (font_drive_otf): Extern it.
4797
73acf815 47982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4799
4800 * font.c (font_at): If the window W is not on a window system,
4801 return Qnil.
4802
4c4475a8
GM
4803 * coding.c (produce_chars, encode_coding): Don't call
4804 insert_from_gap if no characters to produce.
aca7a3d2 4805
73acf815 48062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4807
4808 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
4809 Fclear_face_cache.
4810
4811 * xfaces.c (face_for_font): Check also face->font==font->font.font.
4812
73acf815 48132008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4814
4815 * emacs.c (main): Change default value of `enable_font_backend' to 1.
4816 Parse "--disable-font-backend" option.
4817 (standard_args): Add "--disable-font-backend" option.
4818
73acf815 48192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4820
4821 * fontset.c (fontset_find_font): New function.
4822 (fontset_font): Use fontset_find_font.
4823 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
4824 Register the specified font for all Latin characters.
4825 (new_fontset_from_font): Register the specified font for all Latin
4826 characters.
4827 (dump_fontset): For a realized fontset, include the base fontset
4828 name in the returned vector.
4829
73acf815 48302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4831
4832 * character.h (CHAR_STRING): Cast C to unsigned on calling
4833 char_string.
4834
4835 * character.c (char_string): Type of arg C changed to unsigned.
4836 Signal an error if C is an invalid character code.
4837
4c4475a8
GM
4838 * editfns.c (general_insert_function, Fchar_to_string):
4839 Use CHARACTERP, not INTEGERP.
aca7a3d2 4840
73acf815 48412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4842
4843 * character.h (MIN_MULTIBYTE_LEADING_CODE)
4844 (MAX_MULTIBYTE_LEADING_CODE): New macros.
4845
4846 * regex.c (analyse_first): Fix for multibyte characters in "case
4847 charset:" and "case categoryspec:".
4848
73acf815 48492008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4850
4851 * Makefile.in (LIBES): Move standard libraries to the end.
4852
73acf815 48532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4854
4855 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
4856 nonzero, don't shrink the buffer nextb.
4857
4858 * buffer.h (struct buffer_text): New member inhibit_shrinking.
4859
4860 * coding.c (coding_alloc_by_making_gap): New arg offset.
4861 (alloc_destination): Call coding_alloc_by_making_gap with the arg
4862 offset.
4863 (decode_coding_iso_2022): Update coding->safe_charsets.
4864 (decode_coding_gap): Temporarily set
4865 current_buffer->text->inhibit_shrinking to 1.
4866
73acf815 48672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4868
4869 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
4870 indexing into elements of s->cmp and s->char2b.
4871
73acf815 48722008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
4873
4874 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
4875
73acf815 48762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4877
4878 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
4879 target_multibyte instead of multibyte.
4880 (re_match_2_internal): Call bcmp_translate with target_multibyte.
4881 (bcmp_translate): Change the argument name from multibyte to
4882 target_multibyte.
4883
73acf815 48842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4885
4886 These changes are to compile a regexp into a pattern that can be
4887 used both for multibyte and unibyte targets.
4888
4889 * Makefile.in (search.o): Depend on charset.h.
4890
4891 * character.c (multibyte_char_to_unibyte_safe): New function.
4892
4893 * search.c: Include "charset.h".
4894 (compile_pattern_1): Delete argument multibyte. Don't set
4895 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
4896 (compile_pattern): Don't compare cp->buf.target_multibyte.
4897 Compare cp->buf.charset_unibyte.
4898 (compile_pattern): Set cp->buf.target_multibyte.
4899
4900 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
4901
4902 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
4903
4904 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 4905 multibyte. Change callers.
aca7a3d2 4906 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
4907 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
4908 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
4909 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
4910 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
4911 (regex_compile): Make the compiled pattern usable both for
4912 multibyte and unibyte targets.
4913 (analyse_first): Make the fastmap usable both for multibyte and
4914 unibyte targets.
1f45f627 4915 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
4916 (re_match_2_internal): Pay attention to the case that the
4917 multibyteness of bufp and target may be different.
4918
73acf815 49192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4920
4921 * xdisp.c (x_produce_glyphs): When a font is not found, make the
4922 empty box occupy at least one column width.
4923
73acf815 49242008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4925
4926 * Makefile.in: Remove redundant HAVE_XFT clause.
4927
73acf815 49282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4929
4930 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
4931
73acf815 49322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4933
4934 * fontset.c (Finternal_char_font): Fix for the case of POSITION
4935 being nil.
4936
73acf815 49372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4938
4939 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
4940
73acf815 49412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4942
4943 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
4944
73acf815 49452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4946
4947 * search.c (simple_search): Fix previous change.
4948
73acf815 49492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4950
4951 * xftfont.c (ftfont_font_format): Extern declaration.
4952
4953 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
4954
4955 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
4956 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
4957
4958 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
4959 (ftfont_font_format): Fix previous change.
4960
4961 * font.h (Ffont_xlfd_name): EXFUN it.
4962
4963 * font.c (font_parse_xlfd): Fix the array size of `f'.
4964 (register_font_driver): Use EQ to compare driver->type.
4965
4966 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
4967 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
4968 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
4969
73acf815 49702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4971
4c4475a8
GM
4972 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
4973 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 4974
73acf815 49752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4976
4977 * xfont.c (xfont_open): Set font->format.
4978
4979 * xftfont.c (xftfont_open): Set font->format.
4980
4981 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
4982 (ftfont_list): Include FC_FONTFORMAT in FcObject.
4983 (ftfont_open): Set font->format.
4984 (ftfont_font_format): New function.
4985
4986 * font.h (struct font): New memeber format.
4987
4988 * font.c (Qopentype): New variable.
4989 (syms_of_font): Defsym it.
4990 (Fquery_font): Change the format of the last element of the return
4991 value.
4992
73acf815 49932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4994
4995 * xfns.c (xic_create_xfontset): Try the default fontset name as a
4996 last resort.
4997
73acf815 49982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4999
5000 * coding.c (detect_coding_charset): Fix detection of multi-byte
5001 charset.
5002
73acf815 50032008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
5004
5005 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
5006
73acf815 50072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5008
5009 * xdisp.c (get_next_display_element): Set it->face_id for the
5010 first component of a composition.
1f45f627 5011 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 5012
73acf815 50132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5014
5015 * fontset.c (Qlatin): New variable.
5016 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 5017 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 5018
73acf815 50192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5020
5021 * font.c (font_unparse_fcname): Pay attention to the case that
5022 some of font property is a null string.
5023
73acf815 50242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5025
5026 * term.c: Include "composite.h".
5027 (encode_terminal_code): Output all components of composition.
5028 Check the size of encode_terminal_src.
424c157f 5029 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
5030 (append_composite_glyph, produce_composite_glyph): New functions.
5031
5032 * xdisp.c (x_produce_glyphs): In handling composition, if a font
5033 is not found, get font_info from the current ascii face.
5034
73acf815 50352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5036
5037 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
5038 buffer-file-name to Qnil before calling insert_from_buffer.
5039
5040 * font.c (font_unparse_fcname): Pay attention to the case that
5041 foundry is a null string.
5042
73acf815 50432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5044
5045 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
5046
5047 * font.c (Qunicode_sip): New variable.
5048 (syms_of_font): Declare it as a Lisp symbol.
5049
5050 * font.h (Qunicode_sip): Extern it.
5051
73acf815 50522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5053
1f45f627 5054 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
5055
5056 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 5057 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
5058 the first elememnt of allocated memory.
5059
1f45f627 5060 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
5061
5062 * xdisp.c (handle_composition_prop): Set it->c to the first
5063 non-TAB component.
1f45f627
GM
5064 (fill_composite_glyph_string): Change argument.
5065 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
5066 (x_produce_glyphs): Fix handling of left/right padding.
5067
73acf815 50682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5069
5070 * coding.c (detect_coding_system): Fix for handling off
5071 inhibit_iso_escape_detection. Fix for the case that no coding
5072 system is defined for a specific coding category.
5073
73acf815 50742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5075
1f45f627 5076 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
5077
5078 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
5079 opening a font.
5080
5081 * fileio.c (Finsert_file_contents): On recovering a file, assume
5082 Unix-like eol.
5083 (choose_write_coding_system): On auto-saving a file, force
5084 Unix-like eol.
5085
5086 * coding.c (setup_coding_system): Fix setting of
5087 coding->common_flags based on eol_type.
5088 (coding_inherit_eol_type): If PARENT is not nil, be sure to
5089 inherit from it.
5090
73acf815 50912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5092
1f45f627 5093 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 5094
73acf815 50952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5096
1f45f627 5097 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
5098 (ftfont_list): Don't check :name property.
5099 (ftfont_match): New function.
5100 (ftfont_pattern_entity): If the pattern doesn't contain
5101 FC_SPACING, don't assuce FC_MONO.
5102
5103 * font.h (struct font_driver): New member `match'.
1f45f627 5104 (font_update_drivers): Adjust prototype.
aca7a3d2 5105
4c4475a8
GM
5106 * font.c (font_parse_fcname, font_parse_name): Don't change :name
5107 property of FONT.
aca7a3d2
MB
5108 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
5109 them unconditionally.
5110 (font_matching_entity): New function.
5111 (font_open_by_name): Try font_matching_entity if exact match is
5112 not found.
5113 (font_update_drivers): Delete the arg FONT. Return a list of
5114 actually used backends. Don't free faces, font caches here.
5115 Don't store data in frame parameters. Don't call x_set_font.
5116 (Ffont_spec): Store :name property as is.
5117 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
5118 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
5119 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
5120 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
5121 Call font->driver->otf_gsub instead of font_otf_gsub.
5122
5123 * frame.c (x_set_font_backend): Do more works that were done in
5124 font_update_drivers before.
5125
5126 * xfont.c (xfont_match): New function.
5127 (xfont_driver): Set xfont_driver.match to xfont_match.
5128 (xfont_draw): Set font in GC if necessary.
5129
5130 * ftxfont.c (ftxfont_match): New function.
5131 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
5132
5133 * xftfont.c (xftfont_match): New function.
5134 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
5135
73acf815 51362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5137
5138 * font.h (struct font): New member scalable.
5139 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 5140 (font_otf_gsub): Adjust prototype.
aca7a3d2 5141
1f45f627
GM
5142 * font.c (font_otf_capability): Fix handling of the default langsys.
5143 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
5144 Check the contents of SPEC.
5145 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
5146 (check_gstring): New function.
5147 (REPLACEMENT_CHARACTER): New macro.
5148 (font_otf_gsub): New arg alternate_subst. Be sure to set all
5149 glyph codes of GSTRING.
5150 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
5151 (font_prepare_composition): Set cmp->glyph_len.
5152 (font_open_entity): Set font->scalable.
5153 (Ffont_get): Handle :otf property.
5154 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
5155 functions.
5156 (Fquery_font): Use font->font.full_name.
5157 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
5158 Sfont_otf_alternates.
5159
5160 * ftfont.c (ftfont_open): Set font->font.full_name and
5161 font->font.name properly. Fix calculation of font->font.height
5162 and font->min_width.
5163
5164 * ftxfont.c (ftxfont_create_gcs): New function.
5165 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
5166 (ftxfont_draw_backgrond): Fix filling region.
5167 (ftxfont_default_fid): New function.
5168 (ftxfont_open): Set xfotn->fid to the return value of
5169 ftxfont_default_fid.
5170 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
5171 (ftxfont_done_face): Free only GCs that are created by
5172 ftxfont_create_gcs.
5173 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
5174
5175 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
5176 Clip to src->width, etc (not src->clip_XXX).
5177
5178 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
5179 FontBackend frame parameter.
5180
73acf815 51812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5182
5183 * font.h (struct font_driver_list): New member `on'.
5184 (Fclear_font_cache): EXFUN it.
5185 (font_update_drivers): Extern it.
5186
5187 * font.c (font_unparse_fcname): Fix typo (swidth->width).
5188 (font_list_entities): Check driver_list->on.
5189 (register_font_driver): Initalize `on' member to 0.
5190 (font_update_drivers): New function.
5191 (Fclear_font_cache): Check driver_list->on.
5192
5193 * frame.h (Qfont_backend): Extern it.
5194 (x_set_font_backend): Extern it.
5195
5196 * frame.c (Qfont_backend): New variable.
5197 (frame_parms): New element for font-backend.
5198 (x_set_font_backend): New function.
5199
5200 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
5201 FontBackend frame parameter.
5202 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
5203 x_set_font_backend.
5204
5205 * xfont.c (xfont_list): Don't try listing by :name property if the
5206 name is not for XLFD.
5207
73acf815 52082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5209
5210 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
5211 (LGLYPH_SET_TO): New macros.
5212 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
5213 element of G is vector or not.
5214 (font_at): Extern it.
5215
5216 * font.c: Include window.h.
5217 (font_lispy_object): New function.
5218 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
5219 end of valid glyph.
5220 (font_close_object): Fix getting (struct font *).
5221 (font_at): New function.
5222 (Ffont_get): If FONT is a font-object, get entity from it.
5223 (Ffont_make_gstring): Initialize elements of glyphs with nil.
5224 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
5225 range check.
5226 (Ffont_at): New function.
5227 (syms_of_font): Defsubr Sfont_at.
5228
5229 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 5230 before the entry for Qcomposition.
1f45f627 5231 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
5232 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
5233 the font in gstring.
5234 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
5235 LGLYPH_FORM (g) to detect the end of valid glyph.
5236 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
5237 we are composing with gstring.
5238
5239 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
5240 Check if adjustment is vector or not.
5241
5242 * Makefile.in (font.o): Make it depends on window.h.
5243
73acf815 52442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5245
5246 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
5247 adjustment is vector or not.
5248
73acf815 52492008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5250
5251 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
5252
73acf815 52532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5254
5255 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
5256 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
5257 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
5258
1f45f627 5259 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 5260 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
5261 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
5262 LGLYPH format.
aca7a3d2 5263
1f45f627 5264 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
5265 the change of LGLYPH format.
5266
73acf815 52672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5268
5269 * ftfont.c (ftfont_list): Fix typo.
1f45f627 5270 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 5271
880820fe 52722008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5273
5274 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
5275
5276 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
5277 xftface_info is non-NULL.
5278
880820fe 52792008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 5280
1f45f627 5281 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 5282
73acf815 52832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5284
5285 * ftfont.c (ftfont_list): Pay attention to the case that
5286 FC_CAPABILITY is not defined.
5287
73acf815 52882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5289
5290 * xftfont.c (xftfont_open): Set charset related members to -1.
5291
1f45f627
GM
5292 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
5293 QCname.
aca7a3d2
MB
5294 (ftfont_open): Set charset related members to -1.
5295
5296 * fontset.c (Votf_script_alist): New variable.
5297 (syms_of_fontset): Initialize it.
5298 (fontset_font): Delete unused variable.
5299
5300 * fontset.h (Votf_script_alist): Extern it.
5301
1f45f627 5302 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
5303
5304 * font.h (font_close_object, font_merge_old_spec): Extern them.
5305
73acf815 53062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5307
5308 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5309 (syms_of_font): Initialize them.
5310 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
5311 (font_prop_validate_type): Delete.
5312 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5313 Change caller.
5314 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5315 (font_prop_validate_extra): Delete.
aca7a3d2
MB
5316 (font_prop_validate_spacing): New function.
5317 (font_property_table): Add elements for all known properties.
1f45f627
GM
5318 (get_font_prop_index): Rename from check_font_prop_name. New
5319 argument FROM. Change caller.
aca7a3d2 5320 (font_prop_validate): Validate all known properties.
1f45f627 5321 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
5322 (font_expand_wildcards): Make it static. Fix the way of shrinking
5323 the possible range.
1f45f627 5324 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 5325 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 5326 Change caller.
aca7a3d2 5327 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
5328 (font_parse_fcname): Delete argument merge. Fix parsing of point
5329 size. Don't validate properties values here. Change caller.
5330 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
5331 (font_open_by_name): Delete unused variable.
5332 (Ffont_spec): Likewise. Validate property values.
5333 (Ffont_match_p): New function.
5334
5335 * font.h (QCscalable): Extern it.
1f45f627 5336 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 5337
1f45f627 5338 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 5339
1f45f627 5340 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
5341 (xfont_list_pattern): New function.
5342 (xfont_list): Use xfont_list_pattern.
5343
73acf815 53442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5345
5346 * font.h (Flist_fonts): EXFUN it.
5347
73acf815 53482008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5349
5350 * w32term.c (w32_initialize): Add back smoothing_type and
5351 smoothing_enabled definitions.
5352
73acf815 53532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5354
5355 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5356 s->face->font on determining underline position.
5357
73acf815 53582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5359
5360 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5361 (font_has_char): Accept font-object too.
5362 (font_find_for_lface): Try at first with a size specified in face.
5363
73acf815 53642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5365
5366 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5367 font_open_by_name.
5368
73acf815 53692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5370
5371 * font.h (QCspacing, QCdpi): Extern them.
5372 (enum font_spacing): New enum.
5373 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5374
5375 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5376 (QCspacing, QCdpi): New variables.
5377 (syms_of_font): Initialize them.
5378 (font_pixel_size): New function.
5379 (font_put_extra): New function.
5380 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5381 in FONT_EXTRA.
e9184ccb
JB
5382 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5383 Fix handling font size. Add QCname property that contains only
aca7a3d2 5384 unknown properties.
1f45f627 5385 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 5386 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
5387 (font_sort_entites, font_list_entities, font_find_for_lface)
5388 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 5389 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
5390
5391 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
5392 include weight in listing pattern, instead check weight of each
5393 listed font. Don't include scalable in pattern. Pay attention to
5394 FONT_PIXEL_SIZE_QUANTUM.
5395
73acf815 53962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5397
aca7a3d2 5398 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 5399 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
5400 (font_list_entities): Handle float size correctly.
5401 (font_open_by_name): Prefer `normal' property values if the name
5402 doesn't specify them.
5403
5404 * fontset.c (Finternal_char_font): Use font_get_name, not
5405 Ffont_xlfd_name.
5406
5407 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
5408 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
5409 pattern. Don't force scalable.
5410
5411 * xftfont.c (xftfont_open): For generating a name, start from
5412 96-byte buffer.
5413
880820fe 54142008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5415
5416 * frame.h (x_new_fontset2): Fix prototype.
5417
73acf815 54182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5419
1f45f627 5420 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
5421 (font_match_p, font_get_spec, font_parse_fcname)
5422 (font_unparse_fcname): Extern them.
1f45f627 5423 (font_get_name): Adjust prototype.
aca7a3d2
MB
5424
5425 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
5426 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
5427 (font_expand_wildcards): Fix handling ENCODING field. Avoid
5428 unnecessary checks for weight, slant, and swidth.
5429 (font_parse_fcname): New function.
5430 (font_unparse_fcname): New function.
5431 (font_parse_name): New function.
5432 (font_match_p): New function.
1f45f627 5433 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
5434 (font_get_spec): New function.
5435 (Qunspecified, Qignore_defface): Don't extern them.
5436 (font_find_for_lface): Assume that LFACE is fully specified.
5437 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
5438 object, use it for FACE.
5439 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
5440 driver->parse_name.
5441 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
5442
1f45f627
GM
5443 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
5444 prototype.
aca7a3d2 5445
1f45f627
GM
5446 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
5447 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
5448 make_fontset.
5449
1f45f627 5450 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 5451
1f45f627 5452 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
5453 of x_new_fontset2.
5454
5455 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
5456 (Qsans__serif): New variables.
5457 (ftfont_generic_family_list): New variable.
5458 (syms_of_ftfont): Initialize the above variables.
1f45f627 5459 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
5460 (ftfont_list_generic_family): New function.
5461 (ftfont_parse_name): Delete this function.
1f45f627 5462 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
5463 (ftfont_list_family): Fix args to FcObjectSetBuild.
5464
5465 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
5466 object in attrs[LFACE_FONT_INDEX].
5467 (set_lface_from_font_name): Cancel all changes for font-backend.
5468 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
5469 function.
5470 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5471 font object in QCfont attribute.
5472 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5473 (realize_default_face) [USE_FONT_BACKEND]: Call
5474 set_lface_from_font_and_fontset.
5475
5476 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5477 "fixed", and signal error here if no suitable font was found.
5478
5479 * xfont.c (xfont_parse_name): Delete this function.
5480
5481 * xftfont.c (xftfont_open): Change coding style of error
5482 handling. Generate fontconfig's fontname pattern.
5483
5484 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5485 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5486
5487 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5488 Both args FONTSET and FONT_OBJECT must be existing ones.
5489
73acf815 54902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5491
5492 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5493
73acf815 54942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5495
5496 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5497
5498 * font.h (struct font): Fix typo.
5499
5500 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5501 XLFD_XXX_INDEX.
5502 (enum xlfd_field_mask): New enum.
1f45f627 5503 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
5504 are followed by non-digits, return a symbol.
5505 (font_expand_wildcards): New function.
5506 (font_parse_xlfd): Fix wildcard handling.
5507 (Ffont_spec): If :name is specified, reflect the info in the other
5508 properties.
5509
5510 * ftfont.c (ftfont_pattern_entity): Fix typo.
5511 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5512 locale.
5513
73acf815 55142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5515
5516 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5517
1f45f627 5518 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
5519 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5520 registry doesn't specify encoding part.
5521 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5522 (font_open_by_name): At first try parsing the name.
5523 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5524 as Lisp symbols.
5525
5526 * fontset.c (reorder_font_vector): Pay attention to the case that
5527 the 3rd element of font_def is nil.
5528 (fontset_font): For the default fontset, append one more fontset
5529 elements for a script-based font specification. Don't add script
5530 attribute on finding a font.
5531 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5532 font name.
5533 (fontset_ascii_font): If a font can't be opened, return nil.
5534
1f45f627 5535 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
5536 (ftfont_pattern_entity): New function.
5537 (ftfont_get_cache): Assume that freetype_font_cache is already
5538 initialized.
5539 (ftfont_list): Handle the case that a file is specified in font
5540 name. Use ftfont_pattern_entity to generate entities.
5541 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5542 (syms_of_ftfont): Initialize freetype_font_cache.
5543
5544 * xftfont.c (xftfont_open): Make the font name fontconfig's
5545 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5546 (xftfont_close): Free font->font.name if not NULL.
5547
5548 * xfont.c (xfont_list): If script is specified for a font, return
5549 null_vector.
5550 (xfont_list_family): Declare argument type.
5551
5552 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5553 name, set LFACE_FONT (lface) to nil.
5554
5555 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5556 return Qnil.
5557
73acf815 55582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5559
1f45f627 5560 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
5561 (standard_args): Add "-enable-font-backend".
5562
73acf815 55632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5564
5565 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5566 (struct xftdraw_list, xftdraw_list): Delete them.
5567 (register_xftdraw, check_xftdraw): Delete them.
5568 (xftfont_prepare_face): Don't call register_xftdraw.
5569 (xftfont_done_face): Don't call check_xftdraw.
5570 (xftfont_draw): Get backroudn color only when with_background is
5571 nonzero.
5572
5573 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5574
73acf815 55752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5576
5577 These changes are for the new font handling codes.
5578
5579 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
5580 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
5581 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
5582 (FONTSRC, FONTOBJ): New variables.
5583 (obj): Add $(FONTOBJ).
5584 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
5585 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
5586 @LIBOTF_LIBS@.
5587 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 5588 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 5589
1f45f627 5590 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
5591
5592 * character.h (Vscript_representative_chars): Extern it.
5593
5594 * character.c (Vscript_representative_chars): New variable.
5595 (syms_of_character): Declare it as a Lisp variable.
5596
5597 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
5598 enable_font_backend is nonzero, accept the composition method
5599 COMPOSITION_WITH_GLYPH_STRING.
5600
5601 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
5602 enumeration COMPOSITION_WITH_GLYPH_STRING.
5603
aca7a3d2
MB
5604 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5605 members clip_x, clip_y, clip_width, and clip_height.
5606 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5607
5608 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5609 --enable-font-backend. Call syms_of_font.
5610
5611 * fns.c (assoc_no_quit): New function.
5612
5613 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5614 (face_for_font, new_fontset_from_font)
5615 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5616
5617 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5618 (fontset_font, fontset_ascii, face_for_char)
5619 (make_fontset_for_ascii_face, Ffont_info)
5620 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5621 is nonzero, use font-backend mechanism.
5622 (find_font_encoding): Make it non-static.
5623 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5624 New functions.
5625
5626 * frame.h (struct frame): New members resx and resy.
5627 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
5628 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
5629
5630 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 5631 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
5632
5633 * lisp.h (assoc_no_quit): Extern it.
5634
5635 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
5636 Through out the file, use FONT_INFO_FROM_FACE instead of
5637 FONT_INFO_FROM_ID, use get_per_char_metric instead of
5638 rif->per_char_metric.
5639 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
5640 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
5641 (get_glyph_face_and_encoding, fill_composite_glyph_string)
5642 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5643 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
5644 nonzero, use font-backend mechanism.
5645 (get_per_char_metric): New function.
5646
5647 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
5648 (set_lface_from_font_name)
5649 (set_font_frame_param, free_realized_face)
5650 (prepare_face_for_display, clear_face_gcs)
5651 (Finternal_set_font_selection_order, realize_x_face)
5652 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
5653 font-backend mechanism.
1f45f627 5654 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
5655 (load_face_font) [USE_FONT_BACKEND]: Abort.
5656 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 5657 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
5658
5659 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
5660 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
5661 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
5662 nonzero, register all available font drivers. Call
5663 x_default_font_parameter for deciding a font.
5664 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
5665
5666 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
5667 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
5668 (x_set_glyph_string_clipping_exactly)
5669 (x_compute_glyph_string_overhangs)
5670 (x_draw_glyph_string_foreground)
5671 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
5672 (x_free_frame_resources) [USE_FONT_BACKEND]: If
5673 enable_font_backend is nonzero, use font-backend mechanism.
5674 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
5675
73acf815 56762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5677
fcb314b2 5678 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
5679 system_eol_type.
5680 (syms_of_coding): Initialize system_eol_type.
5681
fcb314b2
GM
5682 * process.c (Fset_process_coding_system): Inherit system's eol
5683 format if necessary.
aca7a3d2 5684
73acf815 56852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5686
5687 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
5688
73acf815 56892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5690
5691 * coding.c (decode_eol): Pay attention to buffer relocation in
5692 del_range_2.
5693 (decode_coding): Call decode_eol before restoring undo_list.
5694
73acf815 56952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5696
5697 * charset.c (Fdefine_charset_internal): Fix setting of
5698 emacs_mule_bytes.
5699
73acf815 57002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5701
5702 * keyboard.c (read_char): Check if C is a character or not before
5703 looking up Vkeyboard_translate_table.
5704
73acf815 57052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5706
5707 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
5708 condition to terminate the loop.
5709
73acf815 57102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5711
5712 * coding.c (produce_composition): Compare charbuf[i] instead of
5713 args[i] against 0.
5714 (Fterminal_coding_system): Use EQ to compare Lisp objects.
5715
73acf815 57162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5717
5718 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
5719 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
5720 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
5721 detect_coding.
5722 (emacs_mule_char): Handle old style (Emacs 20) component character
5723 of a composition.
4c4475a8
GM
5724 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
5725 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
5726 composition rule.
aca7a3d2
MB
5727 (decode_coding_emacs_mule): Handle invalid bytes correctly.
5728
73acf815 57292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5730
5731 * coding.c (encode_coding_ccl): Allocate destination dynamically
5732 when necessary.
5733
73acf815 57342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5735
5736 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
5737 the loop. When quitted, show a proper error message.
5738
73acf815 57392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5740
aca7a3d2
MB
5741 * xterm.c (x_set_glyph_string_clipping_exactly): Set
5742 src->clip_head and src->clip_tail temporarily instead of src->hl.
5743
5744 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
5745 character sequence.
5746 (Fccl_execute_on_string): Use ASET, not XSET.
5747
73acf815 57482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5749
1f45f627 5750 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 5751
73acf815 57522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5753
5754 * coding.c (decode_coding): Fix the condition of terminating the
5755 decoding loop.
5756
73acf815 57572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5758
5759 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 5760 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 5761
73acf815 57622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5763
5764 * charset.c (map_charset_chars): Fix for ascii-compatible charset
5765 made by a mapping table.
5766
73acf815 57672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5768
5769 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
5770 not.
5771 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
5772 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
5773
5774 * xterm.c (x_draw_composite_glyph_string_foreground): Check
5775 s->face is NULL or not.
5776
73acf815 57772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5778
5779 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
5780 (x_draw_glyph_string): Fix drawing of right_overhang and
5781 left_overhang around/on cursor.
5782
1f45f627 5783 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 5784
73acf815 57852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5786
5787 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
5788
73acf815 57892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5790
4c4475a8
GM
5791 * coding.c (Fdefine_coding_system_internal)
5792 (Fdefine_coding_system_alias): Avoid a duplicated element in
5793 Vcoding_system_alist.
aca7a3d2 5794
73acf815 57952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5796
5797 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5798
fcb314b2 5799 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
5800 (syms_of_coding): Intern and staticpro it.
5801 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 5802 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
5803
5804 * coding.h (CODING_SYSTEM_P): If ID is not available, call
5805 Fcoding_system_p.
5806 (CHECK_CODING_SYSTEM): If ID is not available, call
5807 Fcheck_coding_system.
4c4475a8
GM
5808 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
5809 Try also Fcheck_coding_system.
aca7a3d2 5810
73acf815 58112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5812
aca7a3d2
MB
5813 * coding.c (code_conversion_restore): GCPRO arg.
5814
73acf815 58152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5816
5817 * character.c (lisp_string_width): Check multibyteness of STRING.
5818
73acf815 58192008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5820
5821 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
5822 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
5823 (decode_mac_font_name): Use decode_coding_c_string instead of
5824 decode_coding.
5825 (x_load_font): Initialize fontp->fontset to -1. Set
5826 fontp->encoding_type.
5827
73acf815 58282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5829
5830 * search.c (search_buffer): Give up BM search on case-fold-search
5831 if one of a target character has a case-equivalence of different
5832 byte length even if that target charcter is an ASCII.
1f45f627
GM
5833 (simple_search): Fix calculation of byte length of matched text.
5834 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 5835
73acf815 58362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5837
5838 * coding.c (decode_coding): Fix handling of invalid bytes.
5839
73acf815 58402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5841
5842 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5843 Unicode characters.
5844
73acf815 58452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5846
5847 * coding.c (encode_coding_object): If a pre-write-conversion
5848 function makes a new buffer, kill it.
5849
73acf815 58502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5851
5852 * coding.c (QCascii_compatible_p): New variable.
5853 (syms_of_coding): Initialize it.
4c4475a8
GM
5854 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
5855 calling string_char.
aca7a3d2
MB
5856 (record_conversion_result): Add `default:' case.
5857 (coding_charset_list): Delete unused variable `coding_type'.
5858 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
5859 property in the plist of the coding system.
5860 (Fcoding_system_put): Check QCascii_compatible_p.
5861
73acf815 58622008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5863
5864 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
5865 removed calculation of frame `f', as it's now used.
5866
73acf815 58672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5868
1f45f627 5869 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
5870 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
5871 (UNIDATA): New variable.
5872 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
5873 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
5874 $(RUN_TEMACS) unconditionally.
5875
73acf815 58762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5877
1f45f627 5878 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
5879 (admindir): New variable.
5880 ($(lispsource)international/charprop.el): New target.
5881
73acf815 58822008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5883
1f45f627 5884 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
5885 (syms_of_character): Remove its initialization.
5886
73acf815 58872008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
5888
5889 * w32select.c (validate_coding_system)
5890 (setup_windows_coding_system): New functions.
5891 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
5892 setup_windows_coding_system.
5893 (setup_config, Fw32_get_clipboard_data): Use
5894 validate_coding_system.
5895 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 5896 where signals are allowed.
aca7a3d2
MB
5897
5898 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
5899 (Fcheck_coding_system): Add declarations.
5900
73acf815 59012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5902
1f45f627 5903 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 5904
73acf815 59052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5906
5907 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
5908 string as the second argument for x_new_fontset.
5909
73acf815 59102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5911
5912 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
5913 (encode_coding_object): Use safe_call instead of call2.
5914
73acf815 59152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5916
1f45f627 5917 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
5918
5919 * Makefile.in (lisp): Include charprop.el.
5920
73acf815 59212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5922
5923 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
5924 Not sure if it's unnecessary.
5925
73acf815 59262008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5927
5928 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
5929 some possibly unnecessary fontset checking code that crashed
1f45f627 5930 when creating a new frame.
aca7a3d2 5931
73acf815 59322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5933
5934 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
5935 lookup_face.
5936
5937 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
5938
1f45f627 5939 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 5940
73acf815 59412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5942
73acf815 5943 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
5944 (coding_charset_list): New function.
5945
5946 * coding.h (coding_charset_list): Extern it.
5947
73acf815 59482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5949
5950 * fontset.c (Fset_fontset_font): Call find_font_encoding with
5951 concatenation of family and registry.
5952
73acf815 59532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5954
5955 * character.h (BYTE8_STRING): Fix typo.
5956
5957 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
5958 string to multibyte (sync to HEAD).
5959
5960 * casefiddle.c (casify_region): Handle changes in byte-length
5961 using replace_range_2 (sync to HEAD).
5962
73acf815 59632008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5964
5965 * chartab.c (map_char_table): GCPRO table and arg.
5966
73acf815 59672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5968
5969 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
5970 already at limit.
5971
73acf815 59722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5973
5974 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
5975 instead of fast_c_string_match_ignore_case.
1f45f627 5976 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 5977 fast_string_match_ignore_case instead of
1f45f627 5978 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 5979
73acf815 59802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5981
5982 * xdisp.c (get_next_display_element): In unibyte case, decide to
5983 display in octal form by checking a chacter by
5984 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
5985
1f45f627 5986 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
5987
5988 * character.c (unibyte_has_multibyte_table): New variable.
5989
5990 * character.h (unibyte_has_multibyte_table): Extern it.
5991 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
5992
73acf815 59932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5994
5995 * coding.c (encode_coding_iso_2022): Fix handling of charset
5996 annotation.
5997
73acf815 59982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5999
6000 * coding.c (setup_coding_system): If coding_system is nil, use
6001 Qundecided.
6002 (Fterminal_coding_system): Return nil if terminal coding system is
6003 `undecided'.
6004 (syms_of_coding): Define coding-system `undecided' here. Setup
6005 terminal_coding as `undecided'.
6006
73acf815 60072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6008
6009 * xdisp.c (message_dolog, set_message_1): Call
6010 unibyte_char_to_multibyte with arg type int.
6011
aca7a3d2
MB
6012 * lread.c (read1): Fix reading of a char-table.
6013
6014 * print.c (print_object): Include sub char-table in cicularities
6015 detection.
6016
73acf815 60172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6018
6019 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 6020 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 6021
73acf815 60222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6023
6024 * fileio.c (report_file_error): Make a unibyte string from
6025 strerror (errorno).
6026 (Fsubstitute_in_file_name): Fix the arg to
6027 unibyte_char_to_multibyte. It is evaluated twice.
6028
73acf815 60292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6030
6031 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
6032
73acf815 60332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6034
6035 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
6036 BOM is not found.
4c4475a8
GM
6037 (detect_coding, detect_coding_system): Optimization for ISO-2022
6038 when no 8-bit data is found.
aca7a3d2 6039
73acf815 60402008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6041
6042 * w32fns.c (x_to_w32_font): Update to use new coding struct.
6043
73acf815 60442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6045
4c4475a8
GM
6046 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
6047 CHARS.
aca7a3d2 6048
73acf815 60492008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
6050
6051 * macterm.c (mac_encode_char): Add charset argument and update
6052 to use encoding_type.
2a2e8de7 6053 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
6054 switch to pure fontset.
6055 (decode_mac_font_name): Temporarily remove decoding.
6056 (x_font_name_to_mac_font_name): Temporarily remove encoding.
6057 (x_load_font): Temporarily remove encoding.
aca7a3d2 6058
73acf815 60592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6060
6061 * xfaces.c (Fface_font): If frame is not on a window system,
6062 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
6063 refer to face->font.
6064 (split_font_name_into_vector, build_font_name_from_vector)
6065 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
6066 whne HAVE_WINDOW_SYSTEM is defined.
6067
73acf815 60682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6069
6070 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
6071 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 6072 cmp->glyph_len is zero.
aca7a3d2 6073
1f45f627 6074 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
6075 (Ffontset_info): Make it backward compatible. New arg ALL.
6076
73acf815 60772008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
6078
6079 * process.c (read_process_output): Grow decoding_buf when needed;
6080 this could cause a crash in allocate_string and compact_small_strings.
6081
73acf815 60822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6083
1f45f627 6084 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 6085
73acf815 60862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6087
6088 * coding.c (setup_coding_system): Set coding->common_flags
6089 correctly for raw-text.
6090 (consume_chars): On encoding unibyte text by raw-text, don't check
6091 multibyte form.
1f45f627 6092 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
6093
6094 * fileio.c (e_write): Short cut for the case of no encoding.
6095
73acf815 60962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6097
4c4475a8
GM
6098 * coding.c (detect_coding, detect_coding_system): Delete unused
6099 variables.
aca7a3d2 6100
73acf815 61012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6102
6103 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
6104 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
6105
73acf815 61062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6107
6108 * coding.c (Ffind_coding_systems_region_internal): Include
6109 raw-text and no-conversion in the result.
6110
73acf815 61112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6112
1f45f627 6113 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
6114 (load_font_get_repertory): Delete unnecessary check of ENCODING of
6115 FONT_DEF.
6116 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 6117 (set_fontset_font): Change argument.
aca7a3d2
MB
6118 (Fset_fontset_font): Fix for the case that TARGET is a script
6119 name and charset name.
6120 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
6121
73acf815 61222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6123
1f45f627
GM
6124 * fontset.c (fontset_font): Rename from fontset_face. Change return
6125 value.
4c4475a8
GM
6126 (face_suitable_for_char_p, face_for_char): Adjust for the change
6127 of fontset_font.
aca7a3d2
MB
6128 (make_fontset_for_ascii_face): Fix setting of the fontset element
6129 for ASCII.
6130 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
6131 to get a font name.
1f45f627 6132 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 6133
fcb314b2 6134 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
6135
6136 * character.h (LEADING_CODE_LATIN_1_MIN)
6137 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
6138
73acf815 61392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6140
fcb314b2 6141 * editfns.c (check_translation): New function.
aca7a3d2
MB
6142 (Ftranslate_region_internal): Handle M:N mapping.
6143
73acf815 61442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6145
6146 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
6147
73acf815 61482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6149
6150 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
6151 goto invalid_code.
6152 (decode_coding_iso_2022): Fix handling of invalid designation.
6153
6154 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
6155 after calling code_conversion_save.
6156
73acf815 61572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6158
6159 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
6160
6161 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
6162
6163 * fontset.c: Include "intervals.h".
6164 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
6165 (free_face_fontset, new_fontset_from_font_name): Fix
6166 Lisp_Object/int mixup.
aca7a3d2
MB
6167
6168 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
6169
6170 * coding.c: Add many prototypes for static functions.
6171 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 6172 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
6173 (Funencodable_char_position, Fcheck_coding_systems_region): Call
6174 get_translation_table with max_lookup NULL.
aca7a3d2 6175
73acf815 61762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6177
6178 * coding.c (get_translation_table): Declare it as Lisp_Object.
6179 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
6180 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
6181 instead of CHAR_TABLE_REF.
aca7a3d2 6182
73acf815 61832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6184
1f45f627 6185 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
6186 annotation data format.
6187 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 6188 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 6189 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 6190 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
6191 (decode_coding_ccl, decode_coding_charset): Pay attention to
6192 coding->charbuf_used.
aca7a3d2
MB
6193 (get_translation): New function.
6194 (produce_chars): New arguments translation_table and last_block.
6195 Translate characters here. Return number of carryover chars.
1f45f627
GM
6196 Change caller.
6197 (produce_composition): New argument pos. Change caller.
6198 Adjust for the change of annotation data format.
aca7a3d2
MB
6199 (produce_charset, produce_annotation): Likewise.
6200 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
6201 (consume_chars): New arg translation_table. Change caller.
6202 (translate_chars): Delete.
6203 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 6204
73acf815 62052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6206
6207 * search.c (simple_search): Fix setting this_pos_byte in backward
6208 search.
6209
6210 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
6211 byte sequence.
6212 (detect_coding_ccl): Fix setting of the variable valids.
6213
73acf815 62142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6215
6216 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
6217
6218 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
6219
1f45f627 6220 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
6221 Ftranslate_region. Accept a char-table in TABLE.
6222 (syms_of_editfns): Defsubr Stranslate_region_internal.
6223
6224 * xfaces.c (set_lface_from_font_name): If a font is specified for
6225 a frame, generate a fontset from the font.
6226 (build_scalable_font_name): If the scalable font is requested for
6227 a specific size, don't change that size.
6228 (try_font_list): Try a scalable font also in the case that a
1f45f627 6229 pattern string is specified.
aca7a3d2 6230
73acf815 62312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6232
6233 * xfaces.c (Fface_font): New optional arg CHARACTER.
6234
73acf815 62352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6236
6237 * charset.h (CHARSET_OFFSET): New macro.
6238
73acf815 62392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6240
6241 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
6242
6243 * fontset.c (fontset_face): Handle the case that repertory is a
6244 char-table.
6245 (find_font_encoding): Return nil for unknown encoding.
6246 (Fset_fontset_font): Ignore a font of unknown encoding.
6247
73acf815 62482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6249
1f45f627 6250 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
6251
6252 * fontset.c (fontset_face): Handle fallback fonts correctly.
6253 (Ffontset_info): Return infomation about fallback fonts.
6254
73acf815 62552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6256
6257 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 6258 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
6259 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
6260 the case that it is nil.
6261 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 6262 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
6263
6264 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
6265 subset or superset.
6266
73acf815 62672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6268
6269 * emacs.c (main): Call init_charset after syms_of_XXX.
6270
1f45f627 6271 * charset.c (Vcharset_map_directory): Delete.
1f204af3 6272 (Vcharset_map_path): New variable.
aca7a3d2
MB
6273 (load_charset_map_from_file): Use Vcharset_map_path instead.
6274 (init_charset): Initialize Vcharset_map_path.
6275 (syms_of_charset): Delete declaration of "charset-map-directory",
6276 add declaration of "charset-map-path".
6277
73acf815 62782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6279
4c4475a8
GM
6280 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
6281 ASCII only string.
aca7a3d2
MB
6282
6283 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
6284
6285 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 6286 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 6287
73acf815 62882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6289
6290 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
6291
6292 * coding.c (QCmnemonic, QCdefalut_char)
6293 (QCdecode_translation_table, QCencode_translation_table)
6294 (QCpost_read_conversion, QCpre_write_conversion): New variables.
6295 (get_translation_table): Return a list of translation tables if
6296 necessary.
6297 (decode_coding): Call get_translation_table with ENCODEP 0.
6298 (char_encodable_p): If translation_table is non-nil, always call
6299 translate_char.
6300 (Fdefine_coding_system_internal): Accept list of translation
6301 tables as :encode-translation-table and :decode-translation-table.
6302 (Fcoding_system_put): New function.
6303 (syms_of_coding): Declare new symbols. Defsubr
6304 Scoding_system_put.
4c4475a8
GM
6305 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6306 typically JISX0212.
aca7a3d2
MB
6307
6308 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6309 when the charset is superset type.
6310
6311 * character.c (translate_char): Accept list of translation tables.
6312
73acf815 63132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6314
1f45f627 6315 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
6316 (CODING_ATTR_TRANS_TBL): New macro.
6317
6318 * coding.c (get_translation_table): New function.
6319 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
6320 (decode_coding, encode_coding): Utilize get_translation_table.
6321 (char_encodable_p, Funencodable_char_position): Translate char if
6322 necessary.
6323 (Ffind_coding_systems_region_internal)
6324 (Fcheck_coding_systems_region): Setup translation table for encode
6325 in a coding system attribute vector in advance.
aca7a3d2
MB
6326 (Fdefine_coding_system_internal): Allow a symbol as translation
6327 table. For shift-jis type coding system, allow 4th charset.
6328
73acf815 63292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6330
6331 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6332
6333 * xdisp.c (get_next_display_element): Pass -1 as POS to
6334 FACE_FOR_CHAR if displaying a C-string.
6335
73acf815 63362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6337
6338 * composite.c (get_composition_id): Handle xoff and yoff in a
6339 composition rule.
6340
6341 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6342 (struct composition): New member lbearing and rbearing.
6343
6344 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6345 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 6346 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
6347
6348 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6349 composition glyph.
6350
73acf815 63512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6352
6353 * print.c: Include charset.h.
6354 (Vprint_charset_text_property): New variable.
6355 (Qdefault): Extern it.
6356 (PRINT_STRING_NON_CHARSET_FOUND)
6357 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6358 (print_check_string_result): New variable.
6359 (print_check_string_charset_prop): New function.
6360 (print_prune_charset_plist): New variable.
6361 (print_prune_string_charset): New function.
6362 (print_object): Call print_prune_string_charset if
6363 Vprint_charset_text_property is not t.
6364 (print_interval): Print nothing if itnerval->plist is nil.
6365 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6366 variable. Init and staticpro print_prune_charset_plist.
6367
73acf815 63682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6369
6370 * fontset.c (new_fontset_from_font_name): Use the specified font
6371 for all characters in the new fontset.
6372
6373 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6374 OBJECT args.
6375
6376 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6377 OBJECT args for composition too.
6378
6379 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6380 OBJECT args.
6381
73acf815 63822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6383
6384 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6385
1f45f627 6386 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 6387 FONT_DEF format.
1f45f627 6388 (fontset_face): New arg id. Change caller.
aca7a3d2 6389 (face_for_char): New args pos and object.
1f204af3 6390 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
6391 (fs_query_fontset): Check NAME by Fassoc too.
6392 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 6393 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 6394
1f45f627 6395 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 6396
4c4475a8
GM
6397 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
6398 (append_space, extend_face_to_end_of_line)
6399 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6400 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
6401
6402 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
6403 POS and OBJECT args.
6404
6405 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
6406 POS and OBJECT args.
6407
73acf815 64082008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6409
6410 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
6411 of GlobalAlloc'ed memory.
6412
73acf815 64132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6414
6415 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
6416
6417 * charset.h (charset_table_used): Delete extern.
6418
6419 * charset.c (charset_table_used): Make it static.
6420 (map_charset_chars): Fix args to c_function with.
6421
6422 * chartab.c (map_sub_char_table_for_charset): Fix args to
6423 c_function with.
6424
6425 * coding.h (enum coding_result_code): Delete
6426 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
6427
6428 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 6429 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
6430 (Vlast_code_conversion_error): New variables.
6431 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
6432 (ONE_MORE_BYTE): Record error if any instead of signaling an
6433 error. If non-ASCII multibyte char is found, return the negative
6434 value of the code. All callers changed to check it.
6435 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
6436 (record_conversion_result): New function. Change all codes setting
6437 coding->result to call this function.
4c4475a8
GM
6438 (detect_coding_utf_8, decode_coding_utf_8)
6439 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
6440 Don't use the local variable incomplete.
aca7a3d2 6441 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
6442 (decode_coding): Fix of flushing out unprocessed data.
6443 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 6444 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
6445
6446 * fontset.c (set_fontset_font): Fix args.
6447
6448 * lisp.h (CHARACTERBITS): Define as 22.
6449
6450 * process.c (send_process): Be sure to set coding->src_multibyte.
6451
6452 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
6453
73acf815 64542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6455
6456 * xdisp.c (handle_auto_composed_prop): Give limit to
6457 Fnext_single_char_property_change.
6458
73acf815 64592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6460
424c157f 6461 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 6462 table weak.
aca7a3d2
MB
6463
6464 * fontset.c (Fset_fontset_font): Fix docstring.
6465
6466 * lisp.h (detect_coding_system): Adjust prototype.
6467
6468 * fileio.c (kill_workbuf_unwind): Delete this function.
6469 (Finsert_file_contents): Adjust the call of detect_coding_system.
6470 Get conversion_buffer by code_conversion_save. Use the macor
6471 CODING_MAY_REQUIRE_DECODING. After decoding, update
6472 coding_system.
6473
6474 * coding.h (make_conversion_work_buffer): Delete extern.
6475 (code_conversion_save): Extern it.
6476
6477 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 6478 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
6479 (decode_coding_utf_8): Don't do eol converion.
6480 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 6481 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
6482 (decode_coding_emacs_mule, decode_coding_iso_2022)
6483 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6484 Don't do eol converion.
aca7a3d2
MB
6485 (adjust_coding_eol_type): Return a new coding system.
6486 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6487 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6488 each change.
6489 (decode_coding): Pay attention to undo_list. Do eol convesion for
6490 all types of coding-systems (if necessary).
6491 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 6492 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
6493 Vcode_conversion_reused_work_buf.
6494 (Vcode_conversion_workbuf_name): New variable.
6495 (reused_workbuf_in_use): New variable.
6496 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 6497 (code_conversion_restore): Change argument to cons.
1f45f627
GM
6498 (code_conversion_save): Delete the argument BUFFER. Change callers.
6499 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
6500 Fix for utf-16 detection.
6501 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 6502 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
6503 reused_workbuf_in_use.
6504
73acf815 65052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6506
6507 * keymap.c (store_in_keymap): Pay attention to the case that idx
6508 is a cons specifying a character range.
6509
73acf815 65102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6511
6512 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6513 HANDLED_RECOMPUTE_PROPS.
6514
6515 * coding.c (Fdefine_coding_system_internal): Fix checking of
6516 ascii compatibility.
6517
73acf815 65182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6519
1f45f627 6520 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
6521 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6522
6523 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6524 Resync charset_list to Vemacs_mule_charset_list.
6525
6526 * keymap.c (store_in_keymap): Pay attention to the case that idx
6527 is a cons specifying a character range.
6528
73acf815 65292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6530
6531 * composite.c (update_compositions): Bind inhibit-read-only, etc
6532 to t before calling remove-list-of-text-properties.
6533
6534 * print.c (print_object): Always print ASCII chars as is.
6535
73acf815 65362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6537
1f45f627 6538 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 6539
4c4475a8
GM
6540 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6541 is a char table.
aca7a3d2 6542
73acf815 65432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6544
1f45f627 6545 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 6546
73acf815 65472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6548
6549 * xfaces.c (set_lface_from_font_name): Fix for the case that
6550 FONTNAME is not fontset name.
6551
73acf815 65522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6553
6554 * fns.c (base64_encode_1): Fix previous change.
6555
73acf815 65562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6557
6558 * fontset.c (set_fontset_font): New function.
6559 (Fset_fontset_font): If a font is specified for a charset, use
6560 map_charset_chars to store the font spec in a fontset.
6561
73acf815 65622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6563
1f204af3 6564 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
6565 (make_fontset): Don't create a fallback fontset here.
6566 (free_face_fontset): Free a fallback fontset (if any) too.
6567 (n_auto_fontsets): Delete this variable.
6568 (auto_fontset_alist): New variable.
6569 (new_fontset_from_font_name): Check auto_fontset_alist.
6570 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6571 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6572 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6573 Defsubr Sfontset_list_all.
6574
73acf815 65752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6576
6577 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6578
73acf815 65792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6580
6581 * fontset.c (Fnew_fontset): Check NAME more rigidly.
6582
73acf815 65832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6584
6585 * editfns.c (Fgoto_char): Fix docstring.
6586
73acf815 65872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6588
6589 * insdel.c (insert_from_gap): Adjust intervals correctly.
6590
73acf815 65912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6592
6593 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
6594 (pfnGetFontUnicodeRanges): New dynamically loaded function.
6595 (w32_initialize): Try to load it.
6596 (x_get_font_repertory): Use it if available.
6597 (w32_encode_char): Add shortcut for unicode output.
6598
6599 * w32fns.c (w32_load_system_font): Default charset to -1.
6600 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 6601 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
6602 or wildcard charsets.
6603 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6604 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6605 (w32_to_x_font): Match charset to real charset.
6606 (enum_font_cb2): Always list unicode versions.
6607
6608 * makefile.w32-in (temacs): Increase EMHEAP.
6609
73acf815 66102008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6611
6612 * w32term.c (w32_encode_char): New charset parameter.
6613 font_info.encoding becomes encoding_type.
1f45f627 6614 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
6615 (x_new_font): Return quickly if font already set.
6616 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
6617 Use new fs_query_fontset. Try new_fontset_from_font_name.
6618 Use fontset_name for return value.
aca7a3d2
MB
6619
6620 * w32term.h: Declare x_get_font_repertory.
6621
6622 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 6623 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
6624 of encode_coding.
6625 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
6626 decode_coding.
6627
6628 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
6629 of x_new_fontset.
6630 (w32_load_system_font): Initialize charset as unicode.
6631 font_info.encoding becomes encoding_type.
1f45f627
GM
6632 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
6633 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
6634 (syms_of_w32fns): Set get_font_repertory_func.
6635
1f45f627 6636 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 6637 from term.c.
1f45f627 6638 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
6639 encode_coding_object in place of encode_coding.
6640
6641 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
6642 encoding becomes encoding_type.
6643
6644 * term.c (terminal_encode_buffer): Make externally visible.
6645
6646 * makefile.w32-in: Add character.h dependancies.
6647 (character.o, chartab.o): New targets.
6648
73acf815 66492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6650
6651 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 6652 CODING_ID_EOL_TYPE.
aca7a3d2 6653
73acf815 66542008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6655
6656 * coding.c (produce_chars): Revert last change.
6657
73acf815 66582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6659
6660 * charset.h (charset_unicode): Extern it.
6661
6662 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 6663 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 6664 arg MULTIBYTE.
1f45f627 6665 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
6666 change of find_charsets_in_text.
6667 (Fsplit_char): Fix doc. Never return unknown.
6668
6669 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
6670
6671 * coding.c (Fdefine_coding_system_alias): Update
6672 Vcoding_system_list.
6673
6674 * fontset.c (load_font_get_repertory): Pay attention to the case
6675 that ENCODING of a font is specified by a char-table.
6676
6677 * xterm.c (x_get_font_repertory): Handle the case that the
6678 encoding of font is other than Unicode.
6679
73acf815 66802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6681
6682 * term.c (encode_terminal_code): Don't handle glyph-table. Check
6683 if a character is encodable by the terminal coding system. If
6684 not, produces proper number of `?'s. Update
6685 terminal_encode_buffer and terminal_encode_buf_size if necessary.
6686 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
6687
73acf815 66882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6689
6690 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
6691 variables.
1f45f627 6692 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
6693 characters at once. Store the result of encoding in
6694 terminal_encode_buffer.
4c4475a8
GM
6695 (write_glyphs, insert_glyphs): Adjust for the change of
6696 encode_terminal_code.
aca7a3d2
MB
6697 (term_init): Initialize terminal_encode_buffer and
6698 terminal_encode_buf_size.
6699
6700 * coding.c (consume_chars): If coding->src_object is nil, don't
6701 check annotation.
6702
73acf815 67032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6704
6705 * character.c (char_string): Use ASCII_CHAR_P instead of
6706 SINGLE_BYTE_CHAR_P.
6707
73acf815 67082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6709
6710 * xdisp.c (handle_auto_composed_prop): Check if the last
6711 characters of auto-composed region is newly composed with the
6712 following characters.
6713 (handle_composition_prop): Fix checking of point being inside
6714 composition.
6715
73acf815 67162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6717
6718 * fns.c (concat): Don't change multibyteness of the result by
6719 concatenating an 8-bit character.
6720
6721 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
6722 multibyteness of the result when newelt is an 8-bit character.
6723
73acf815 67242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6725
6726 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
6727 EMACS_INT.
6728
6729 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
6730
6731 * xfaces.c (face_numeric_value): Declare dim size_t.
6732 (Finternal_lisp_face_equal_p): Remove unused f.
6733
6734 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
6735 (MATRIX_ROW): Remove unused vars.
6736 (draw_glyphs, x_insert_glyphs, fast_find_position)
6737 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
6738 byte/char counts.
6739
6740 * regex.c (regex_compile): Remove unused var.
6741
6742 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6743
6744 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6745 (Faccessible_keymaps, where_is_internal): Remove unused vars.
6746
6747 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
6748
6749 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
6750
6751 * fileio.c (Fwrite_region): Remove unused var.
6752
6753 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
6754 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
6755
6756 * composite.c (Fremove_list_of_text_properties): Declare.
6757
1f45f627
GM
6758 * coding.c (inhibit_pre_post_conversion): Remove (unused).
6759 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
6760 (coding_inherit_eol_type): Remove unused attrs.
6761 (detect_coding): Cast arg of detect_eol.
6762
6763 * charset.c (syms_of_charset): Remove unused var p.
6764 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
6765 byte/char counts.
6766
6767 * casetab.c (set_case_table): Remove unused var.
6768
6769 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 6770 unused vars.
aca7a3d2 6771
73acf815 67722008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6773
6774 * xterm.c (x_bitmap_mask): Declare.
6775
73acf815 67762008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6777
6778 * xterm.c (x_term_init): Fix type error.
6779
6780 * lisp.h: Add Funibyte_char_to_multibyte.
6781
6782 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
6783 (Fset_coding_system_priority): Doc fix.
6784
aca7a3d2
MB
6785 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
6786
6787 * indent.c (check_composition): Make start and end EMACS_INT.
6788
6789 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
6790
6791 * xdisp.c (handle_composition_prop, check_point_in_composition):
6792 Make buffer positions EMACS_INT.
6793
6794 * composite.c (find_composition, run_composition_function)
6795 (update_compositions, Ffind_composition_internal): Make buffer
6796 positions EMACS_INT.
6797
6798 * composite.h (find_composition, update_compositions): Make
6799 position args EMACS_INT.
6800
1f45f627 6801 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
6802
6803 * intervals.c (get_property_and_range):
6804 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
6805
6806 * unexalpha.c: Don't include varargs.h.
6807
73acf815 68082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6809
6810 * coding.h (ENCODE_UTF_8): New.
6811
6812 * Makefile.in (gtkutil.o): Depend on coding.h.
6813
6814 * coding.c (Fset_coding_system_priority): Doc fix.
6815
73acf815 68162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6817
6818 * fileio.c (Finsert_file_contents): Call setup_coding_system in
6819 the case of auto saving.
6820
73acf815 68212008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 6822
4c4475a8
GM
6823 * chartab.c (map_char_table, map_char_table_for_charset): Protect
6824 `range' from GC.
aca7a3d2 6825
73acf815 68262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6827
6828 * coding.c (decode_coding_sjis): Check bytes more rigidly.
6829
73acf815 68302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6831
1f45f627 6832 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
6833 (Fwrite_region): Set Vlast_coding_system_used to the return value
6834 of choose_write_coding_system.
6835
73acf815 68362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6837
6838 * charset.c (Fset_charset_priority): Pay attention to duplicated
6839 arguments.
6840
6841 * coding.c (QCcategory): New variable.
6842 (syms_of_coding): Defsym it. Set all elements of
6843 Vcoding_category_table and their symbol values.
6844 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
6845 coding-category-XXX, and coding-category-list.
6846 (Fdefine_coding_system_internal): Add category in the plist.
6847
73acf815 68482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6849
6850 * callproc.c (Fcall_process): Handle carryover correctly.
6851
1f45f627 6852 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
6853 (raw_text_coding_system): Check NILP (coding_system).
6854 (coding_inherit_eol_type): Check NILP (coding_system) and
6855 NILP (parent).
6856 (consume_chars): Fix for the case of raw-text.
6857
6858 * process.c (read_process_output): Handle carryover correctly.
6859
73acf815 68602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6861
6862 * regex.c (re_search_2): Fix last change.
6863
73acf815 68642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6865
6866 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
6867 target_multibyte. Even in a unibyte case, return a converted
6868 multibyte char.
6869 (GET_CHAR_AFTER): New macro.
6870 (PATFETCH): Translate via multibyte char.
6871 (HANDLE_UNIBYTE_RANGE): Delete this macro.
6872 (SETUP_MULTIBYTE_RANGE): New macro.
6873 (regex_compile): Setup compiled code so that its multibyteness
6874 matches that of a target. Fix the handling of "[X-YZ]" using
6875 SETUP_MULTIBYTE_RANGE.
6876 (analyse_first) <charset>: For filling fastmap for all multibyte
6877 characters, don't check by BASE_LEADING_CODE_P.
6878 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
6879 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 6880 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
6881 (TARGET_CHAR_AND_LENGTH): Delete this macro.
6882 (TRANSLATE_VIA_MULTIBYTE): New macro.
6883 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
6884 It is the same as RE_MULTIBYTE_P (bufp) now.
6885 <exactn>: Translate via multibyte.
6886 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
6887 translate it.
6888 <charset, charset_not>: Fetch a character by
6889 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
6890 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
6891 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
6892 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
6893 by GET_CHAR_AFTER.
c5ad7a3d 6894 (bcmp_translate): Likewise.
aca7a3d2
MB
6895
6896 * search.c (compile_pattern): Check the member target_multibyte,
6897 not the member multibyte of buf.
6898
6899 * lread.c (read1): While reading a string, set force_singlebyte
6900 and force_multibyte correctly.
6901
4c4475a8
GM
6902 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
6903 up of unibyte_to_multibyte_table.
aca7a3d2 6904
73acf815 69052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6906
6907 * coding.c (setup_coding_system): If coding has
6908 post-read-conversion or pre-write-conversion, set
6909 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
6910 respectively.
6911 (decode_coding_gap): Run post-read-conversion if any.
6912
6913 * fileio.c (Finsert_file_contents): Even if we read into a
6914 unibyte buffer, check if we must decode the result or not.
6915
73acf815 69162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6917
6918 * coding.c (make_conversion_work_buffer): Change the work buffer
6919 name to the same one as that of Emacs 21.
6920
73acf815 69212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6922
1f45f627 6923 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
6924 (code_conversion_restore): Don't extern it.
6925
6926 * coding.c (detected_mask): Delete unused variable.
6927 (decode_coding_iso_2022): Pay attention to the byte sequence of
6928 CTEXT extended segment, and retain those bytes as is.
6929 (decode_coding_ccl): Delete unused variable `valids'.
6930 (setup_coding_system): Delete unused variable `category'.
6931 (consume_chars): Delete unused variable `category'. Make it work
6932 for non-multibyte case.
1f45f627 6933 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
6934 (saved_coding): Delete unused variable.
6935 (code_conversion_restore): Don't check saved_coding->destination.
6936 (code_conversion_save): New function.
6937 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
6938 instead of record_unwind_protect.
1f45f627 6939 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 6940 (detect_coding_system): Delete unused variable `mask'.
1f45f627 6941 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
6942
6943 * fileio.c (kill_workbuf_unwind): New function.
6944 (Finsert_file_contents): On replacing, call
6945 make_conversion_work_buffer with correct args, and call
6946 record_unwind_protect with the first arg kill_workbuf_unwind.
6947
6948 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
6949
73acf815 69502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6951
1f45f627 6952 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
6953 (fontset_add): Fix for the case that TO is less than TO1.
6954 (Ffontset_info): Don't use fallback fontset on checking the
6955 default fontset.
6956 (dump_fontset): New function for debugging.
6957
6958 * coding.c (Fdefine_coding_system_internal): Fix for the case that
6959 coding_type is Qcharset.
6960
73acf815 69612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6962
6963 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
6964 (map_char_table): Don't inherit the value from the parent on
1f45f627 6965 initializing VAL. Adjust for the above change.
aca7a3d2 6966
73acf815 69672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6968
6969 * coding.c (Qsignature, Qendian): Delete these variables.
6970 (syms_of_coding): Don't initialize them.
6971 (CATEGORY_MASK_UTF_16_AUTO): New macro.
6972 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
6973 detect_info->found.
6974 (decode_coding_utf_16): Don't detect BOM here.
6975 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
6976 is NOT utf_16_without_bom.
6977 (setup_coding_system): For a coding system of type utf-16, check
6978 if the attribute :endian is Qbig or not (not nil or not), and set
6979 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
6980 (detect_coding): If coding type is utf-16 and BOM detection is
6981 required, detect it.
6982 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 6983 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 6984
73acf815 69852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6986
6987 * coding.c (coding_set_source): Fix for the case that the current
6988 buffer is different from coding->src_object.
6989 (decode_coding_object): Don't use the conversion work buffer if
6990 DST_OBJECT is a buffer.
6991
73acf815 69922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6993
6994 * lread.c (read_emacs_mule_char) [len==2]: Index
6995 emacs_mule_charset correctly.
6996
73acf815 69972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6998
6999 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
7000 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 7001 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
7002 treated specially.)
7003 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
7004 (detected_mask): Remove Big5 bits.
7005
73acf815 70062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7007
7008 The following changes are to make the font rescaling facility
7009 compatible with Emacs 21.
7010
1f45f627 7011 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
7012 Vface_resizing_fonts.
7013 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 7014 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
7015 (split_font_name): Set font->rescale_ratio.
7016 (better_font_p): Pay attention to font->rescale_ratio.
7017 (build_scalable_font_name): Likewise. Change RESX, and RESY
7018 fields.
1f45f627 7019 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 7020
73acf815 70212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7022
7023 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
7024 (Qutf_16_le): Remove these variables.
7025 (syms_of_coding): Don't DEFSYM them.
7026 (decode_coding_utf_16): Fix handling of BOM.
7027 (encode_coding_utf_16): Fix handling of BOM.
7028
73acf815 70292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7030
7031 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 7032 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 7033
73acf815 70342008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7035
7036 * coding.c (Fcheck_coding_systems_region): Fix type errors.
7037
73acf815 70382008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7039
7040 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7041 and fix C types.
7042
73acf815 70432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7044
7045 * xdisp.c (SKIP_GLYPHS): New macro.
7046 (set_cursor_from_row): Pay attention to string display properties.
7047
7048 * category.c (copy_category_entry): Fix for the case that RANGE
7049 is an integer.
7050
7051 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
7052
1f45f627 7053 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 7054
73acf815 70552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7056
7057 * charset.c (Fcharset_id_internal): New function.
7058 (syms_of_charset): Defsubr it.
7059
7060 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
7061 with the last arg charset_list acquired from coding.
7062 (Fdefine_coding_system_internal): For ccl-based coding system, fix
7063 the attribute coding_attr_ccl_valids.
7064
7065 * coding.h (enum define_coding_ccl_arg_index): Set the first
7066 member coding_arg_ccl_decoder to coding_arg_max.
7067
1f45f627 7068 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
7069
7070 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
7071 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
7072 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
7073 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
7074 last arg Qnil.
aca7a3d2 7075
73acf815 70762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7077
7078 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
7079 call encode_char.
7080
1f45f627 7081 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 7082
73acf815 70832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7084
1f45f627 7085 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 7086
73acf815 70872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7088
7089 * dispextern.h (check_face_attributes, generate_ascii_font_name)
7090 (font_name_registry): Don't extern them.
1f45f627 7091 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
7092
7093 * fontset.h (Qfontset): Don't extern it.
7094 (new_fontset_from_font_name): Extern it.
7095
7096 * fontset.c: Give 8 extra slots to fontset objects.
7097 (Qfontset_info): New variable.
7098 (syms_of_fontset): Defsym it.
7099 (FONTSET_FALLBACK): New macro.
7100 (fontset_face): Try also the default fontset.
1f45f627
GM
7101 (make_fontset): Realize a fallback fontset from the default fontset.
7102 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
7103 using split_font_name_into_vector and build_font_name_from_vector.
7104 (Fset_fontset_font): Access the elements of font_spec by enum
7105 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
7106 name by using split_font_name_into_vector.
7107 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
7108 generate a proper font name from the fontset name. Update
7109 Vfontset_alias_alist.
7110 (n_auto_fontsets): New variable.
7111 (new_fontset_from_font_name): New function.
7112 (Ffont_info): Store the information about fonts generated from the
1f45f627 7113 default fontset in the first extra slot of the returned char-table.
aca7a3d2 7114
1f45f627
GM
7115 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
7116 (font_name_registry): Delete function.
aca7a3d2
MB
7117 (split_font_name_into_vector): New function.
7118 (build_font_name_from_vector): New function.
1f45f627 7119 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
7120 (choose_face_font): If we are choosing an ASCII font, and ATTRS
7121 specifies an explicit font name, return the name as is. Make a
7122 list of registy names.
7123
1f45f627 7124 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
7125 of x_new_fontset.
7126 (Fx_create_frame): Don't call x_new_fontset here. Just use
7127 x_list_fonts to check the existence of fonts.
7128
1f45f627 7129 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
7130
7131 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
7132 string. Use new_fontset_from_font_name to create a fontset from a
7133 font name.
7134
1c8658b9
GM
71352008-02-01 Kenichi Handa <handa@m17n.org>
7136
7137 * syntax.c (Vfind_word_boundary_function_table): New name for
7138 Vnext_word_boundary_function_table.
7139 (find-word-boundary-function-table): New name for
7140 next-word-boundary-function-table.
7141
73acf815 71422008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7143
7144 * Makefile.in: Fix some dependencies.
7145
7146 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
7147 set it to nil before returning.
7148
7149 * composite.c (update_compositions): Fix type error.
7150
7151 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
7152
73acf815 71532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7154
7155 * xterm.c (x_new_font): Optimize for the case that the font is
7156 already set for the frame.
7157
73acf815 71582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7159
7160 * chartab.c (char_table_ascii): Check if the char table contents
7161 is sub-char-table or not.
4c4475a8
GM
7162 (char_table_set, char_table_set_range): Fix argument to
7163 char_table_ascii.
aca7a3d2
MB
7164
7165 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
7166 (detect_coding_utf_8, detect_coding_utf_16)
7167 (detect_coding_emacs_mule, detect_coding_iso_2022)
7168 (detect_coding_sjis, detect_coding_big5)
7169 (detect_coding_ccl, detect_coding_charset): Change argument MASK
7170 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 7171 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
7172 (MAX_ANNOTATION_LENGTH): New macro.
7173 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
7174 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
7175 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 7176 (ADD_CHARSET_DATA): New macro.
1f45f627 7177 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
7178 (decode_coding_emacs_mule, decode_coding_iso_2022)
7179 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
7180 Produce charset annotation data in coding->charbuf.
7181 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
7182 to charset annotation data in coding->charbuf.
7183 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
7184 coding->common_flags if the coding system is iso-2022 based and
7185 uses designation.
1f45f627 7186 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
7187 (produce_charset): New function.
7188 (produce_annotation): Handle charset annotation.
7189 (handle_composition_annotation, handle_charset_annotation): New
7190 functions.
7191 (consume_chars): Handle charset annotation. Utilize the above two
7192 functions.
7193 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
7194 buffer, get the deleted text as a string and set
7195 coding->src_object to that string.
7196 (detect_coding, detect_coding_system): Use the new struct
7197 coding_detection_info.
7198
7199 * coding.h (struct coding_detection_info): New structure.
1f45f627 7200 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
7201 (CODING_ANNOTATE_CHARSET_MASK): New macro.
7202
73acf815 72032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7204
7205 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
7206
73acf815 72072008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7208
1f45f627 7209 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
7210 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
7211 to new local and nullify apropos_accumulate before returning.
7212 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
7213
73acf815 72142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7215
7216 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
7217 correctly.
7218
73acf815 72192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7220
7221 * fns.c (Flanginfo): Call synchronize_system_time_locale.
7222
73acf815 72232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7224
7225 The following changes are to make character composition happen
7226 automatically on displaying.
7227
2a2e8de7 7228 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 7229
1f45f627
GM
7230 * composite.h (Qauto_composed, Vauto_composition_function)
7231 (Qauto_composition_function): Extern them.
aca7a3d2 7232
1f45f627
GM
7233 * composite.c (Vcomposition_function_table)
7234 (Qcomposition_function_table): Delete variables.
7235 (Qauto_composed, Vauto_composition_function)
7236 (Qauto_composition_function): New variables.
aca7a3d2
MB
7237 (run_composition_function): Don't call
7238 compose-chars-after-function.
7239 (update_compositions): Clear `auto-composed' text property.
7240 (compose_chars_in_text): Delete this function.
7241 (syms_of_composite): Staticpro Qauto_composed and
7242 Qauto_composition_function. Declare Vauto_composition_function as
7243 a Lisp variable.
7244
7245 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
7246
7247 * xdisp.c (it_props): Add an entry for Qauto_composed.
7248 (handle_auto_composed_prop): New function.
7249
7250 * xselect.c (selection_data_to_lisp_data): Don't call
7251 compose_chars_in_text.
7252
73acf815 72532008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7254
7255 * keyboard.c (read_char): Modify checking around use of
7256 Vkeyboard_translate_table.
7257
7258 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7259 and fix C types.
7260
73acf815 72612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7262
4c4475a8
GM
7263 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
7264 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7265 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 7266 the case that the last byte is '\r' correctly.
1f45f627
GM
7267 (decode_coding): Flush out the unprocessed data correctly.
7268 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 7269
73acf815 72702008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7271
7272 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
7273 XK_ISO... case.
7274 (xaw_scroll_callback): Revert last change.
7275
73acf815 72762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7277
1f45f627 7278 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 7279
73acf815 72802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7281
7282 * xfaces.c (Vface_resizing_fonts): New variable.
7283 (struct font_name): New member `resizing_ratio'.
7284 (font_resizing_ratio): New function.
7285 (split_font_name): Set font->resizing_ratio.
7286 (better_font_p): Pay attention to font->resizing_ratio.
7287 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
7288 RESX, and RESY fields.
7289 (try_alternative_families): Try scalable fonts if
7290 Vscalable_fonts_allowed is not Qt.
7291 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
7292
73acf815 72932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7294
7295 * xterm.c (xaw_scroll_callback): Cast correctly.
7296
73acf815 72972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7298
7299 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7300 (lispy_kana_keys): Comment out.
7301 (make_lispy_event) [XK_kana_A]: Comment out.
7302
7303 * xterm.c (xaw_scroll_callback): Cast call_data.
7304 (XTread_socket): Deal with ASCII keysyms.
7305 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7306
73acf815 73072008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7308
7309 * xterm.c (Vx_keysym_table): New.
7310 (syms_of_xterm): Initialize it.
7311 (XTread_socket): Use it.
7312 From head: Eliminate incorrect optimization that tried to avoid
7313 decoding the output of X*LookupString.
7314 (x_get_font_repertory): Delete charset declaration.
7315
73acf815 73162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7317
1f45f627
GM
7318 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7319 return 0.
aca7a3d2
MB
7320 (Fdefine_coding_system_internal): Setup
7321 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7322
73acf815 73232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7324
7325 * coding.c (Fcheck_coding_system): Doc fix.
7326
7327 * editfns.c (Finsert_byte): Return a proper value.
7328
73acf815 73292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7330
7331 * coding.c (decode_coding): Fix args to translate_chars. Pay
7332 attention to Vstandard_translation_table_for_decode.
7333 (encode_coding): Fix args to translate_chars. Pay attention to
7334 Vstandard_translation_table_for_encode.
7335
7336 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7337 SINGLE_BYTE_CHAR_P.
7338
7339 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7340 not by SINGLE_BYTE_CHAR_P.
7341
7342 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7343 SINGLE_BYTE_CHAR_P.
7344
7345 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7346 SINGLE_BYTE_CHAR_P.
7347
7348 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7349 by SINGLE_BYTE_CHAR_P.
7350
7351 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7352 SINGLE_BYTE_CHAR_P.
7353
73acf815 73542008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7355
7356 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7357
73acf815 73582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7359
7360 * fns.c (Flanginfo): Fix typo.
7361
7362 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7363
73acf815 73642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7365
4c4475a8
GM
7366 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7367 (detect_coding_emacs_mule, detect_coding_iso_2022)
7368 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7369 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 7370 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 7371 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 7372 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 7373
73acf815 73742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7375
1f45f627
GM
7376 * character.c (char_string): Rename from
7377 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7378 (string_char): Rename from string_char.
aca7a3d2 7379
4c4475a8
GM
7380 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7381 if C is greater than MAX_3_BYTE_CHAR.
7382 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7383 string_char instead of string_char_with_unification.
aca7a3d2 7384
73acf815 73852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7386
7387 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
7388
73acf815 73892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7390
1f45f627 7391 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
7392
7393 * regex.c (re_search_2): Fix for the case of unibyte buffer.
7394
73acf815 73952008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7396
7397 * charset.c (define_charset_internal): Rename `supprementary'.
7398
7399 * Makefile.in (lisp, shortlisp): Remove latin-N.
7400
73acf815 74012008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7402
7403 * xfns.c (x_window, x_window): Use use_xim.
7404
7405 * xterm.c (use_xim): Initialize.
7406 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7407 (x_term_init): Maybe set use_xim.
7408
7409 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7410
73acf815 74112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7412
7413 * search.c (search_buffer): Fix case-fold-search of multibyte
7414 characters.
7415 (boyer_moore): Rename the last argument to char_high_bits.
7416
73acf815 74172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7418
7419 * xdisp.c (display_string): Fix for the case of zero width glyph.
7420
7421 * xfns.c (x_set_font): Change the error message of the case that
7422 x_new_fontset returns Qt.
7423
7424 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
7425 (Finternal_set_lisp_face_attribute): Use signal_error for the
7426 error of invalid fontset.
7427
7428 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
7429 fontset, return Qt.
7430
73acf815 74312008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7432
aca7a3d2
MB
7433 * unexelf.c (unexec): Make .got handling not SGI-specific.
7434
7435 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
7436
7437 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
7438
7439 * keyboard.c (read_key_sequence): Fix type error.
7440
7441 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
7442 type error.
7443
7444 * fontset.c (fontset_add): Return Lisp_Object.
7445
73acf815 74462008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7447
7448 * charset.h (charset_ordered_list_tick): Declare extern.
7449
73acf815 74502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7451
73acf815 7452 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
7453 for handling syntax, category, and case conversion for unibyte
7454 characters by converting them to multibyte on the fly. With these
7455 changes, we don't have to setup syntax and case tables for unibyte
7456 characters in each language environment.
7457
7458 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
7459 multibyte if necessary.
7460
7461 * bytecode.c (Fbyte_code): Likewise.
7462
7463 * character.h (LEADING_CODE_LATIN_1_MIN)
7464 (LEADING_CODE_LATIN_1_MAX): New macros.
7465 (unibyte_to_multibyte_table): Extern it.
7466 (unibyte_char_to_multibyte): New macro.
7467 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
7468 (CHAR_LEADING_CODE): New macro.
7469 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7470
7471 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 7472 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
7473 (multibyte_char_to_unibyte): If C is an eight-bit character,
7474 convert it to the corresponding byte value.
7475
7476 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7477 not 1, singals an error. Update the elements of
7478 unibyte_to_multibyte_table.
7479 (init_charset_once): Initialize unibyte_to_multibyte_table.
7480 (syms_of_charset): Define the charset `iso-8859-1'.
7481
aca7a3d2
MB
7482 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7483 as is without converting it to unibyte. In a unibyte buffer,
7484 convert C to multibyte before checking the syntax.
7485
1f45f627 7486 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
7487
7488 * minibuf.c (Fminibuffer_complete_word): Use the macro
7489 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7490
7491 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7492
7493 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7494 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7495 that is zero, convert an eight-bit char to multibyte.
7496 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7497 non-emacs case.
7498 (PATFETCH): Convert an eight-bit char to multibyte.
7499 (HANDLE_UNIBYTE_RANGE): New macro.
7500 (regex_compile): Setup the compiled pattern for multibyte chars
7501 even if the given regex string is unibyte. Use PATFETCH_RAW
7502 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 7503 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 7504 only for ASCII chars.
1f45f627 7505 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
7506 is multibyte.
7507 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7508 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 7509 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
7510 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7511 multibyte always 1.
7512 (re_search_2): In emacs, set the locale variable multibyte to 1,
7513 otherwise to 0. New local variable target_multibyte. Check it
7514 to decide the multibyteness of STR1 and STR2. If
7515 target_multibyte is zero, convert unibyte chars to multibyte
7516 before translating and checking fastmap.
7517 (TARGET_CHAR_AND_LENGTH): New macro.
7518 (re_match_2_internal): In emacs, set the locale variable multibyte
7519 to 1, otherwise to 0. New local variable target_multibyte. Check
7520 it to decide the multibyteness of STR1 and STR2. Use
7521 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7522 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 7523 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
7524 target_multibyte, not with multibyte.
7525 <begline>: Declare the local variable C as `unsigned'.
7526 (bcmp_translate): Change the last arg name to target_multibyte.
7527
7528 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7529 the regexp pattern and the matching target. Set cp->buf.multibyte
7530 to the multibyteness of the regexp pattern. Set
1f45f627 7531 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
7532 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7533 FETCH_STRING_CHAR_ADVANCE.
7534 (Freplace_match): Convert unibyte chars to multibyte.
7535
4c4475a8
GM
7536 * syntax.c (char_quoted, back_comment, scan_words)
7537 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7538 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 7539 unibyte chars to multibyte.
1f45f627
GM
7540 (skip_chars): Delete the arg syntaxp, and move the code for
7541 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
7542 Fix the case that the multibyteness of STRING and the current
7543 buffer doesn't match.
7544 (skip_syntaxes): New function.
7545 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7546 SINGLE_BYTE_CHAR_P.
aca7a3d2 7547
73acf815 75482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7549
7550 * xfaces.c (QCfontset): New variable.
7551 (LFACE_FONTSET): New macro.
7552 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7553 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
7554 (Finternal_set_lisp_face_attribute)
7555 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
7556 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7557 check also LFACE_FONTSET_INDEX.
7558 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7559 attrs[LFACE_FONT_INDEX].
7560 (syms_of_xfaces): Intern and staticpro QCfontset.
7561
7562 * dispextern.h (enum lface_attribute_index): New member
7563 LFACE_FONTSET_INDEX.
7564
7565 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7566
73acf815 75672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7568
7569 * coding.c (coding_set_destination): Fix coding->destination for
7570 the case converting a region.
7571 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7572 (encode_coding_object): Fix coding->dst_pos and
7573 coding->dst_pos_byte for the case converting a region.
7574
7575 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
7576
7577 * character.h (BYTE8_STRING): New macro.
7578
7579 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
7580
73acf815 75812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7582
7583 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
7584 characters by octal form.
7585
7586 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7587
1f45f627 7588 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
7589 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
7590 _fetch_multibyte_char_len.
aca7a3d2
MB
7591 (FETCH_CHAR_AS_MULTIBYTE): New macro.
7592
1f45f627 7593 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 7594
1f45f627 7595 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 7596 the case conversion change the byte length.
1f45f627 7597 (casify_region): Likewise.
aca7a3d2 7598
1f45f627 7599 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 7600
1f45f627 7601 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
7602 (syms_of_character): Setup Vprintable_chars.
7603
7604 * editfns.c (Fchar_equal): Fix for the unibyte case.
7605 (Finsert_byte): New function.
7606 (syms_of_editfns): Defsubr it.
7607
7608 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7609 of direct code 0x3ffff.
7610
7611 * search.c (Freplace_match): Fix for the unibyte case.
7612
73acf815 76132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7614
7615 * lread.c (safe_to_load_p): Fix the logic.
7616
7617 * syntax.c (scan_words): Don't treat characters belonging to
7618 different scripts as constituting a word.
7619
7620 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7621
1f45f627 7622 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
7623
7624 * emacs.c (main): In the case of --unibyte, instead of aborting on
7625 finding non-empty buffer, make it unibyte.
7626
73acf815 76272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7628
7629 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
7630 to create a fontset.
7631
73acf815 76322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7633
7634 * character.c (Funibyte_char_to_multibyte): Doc fix.
7635
7636 * xfns.c [HAVE_STDLIB_H]: Fix last change.
7637
73acf815 76382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7639
7640 * fontset.c (fontset_add): Make the type `int'.
7641 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
7642
4c4475a8
GM
7643 * character.c (unibyte_char_to_multibyte)
7644 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 7645 charset_unibyte, not charset_primary.
aca7a3d2 7646
1f45f627 7647 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 7648
1f45f627
GM
7649 * charset.c (charset_unibyte): Rename from charset_primary.
7650 (Funibyte_charset): Rename from Fprimary_charset.
7651 (Fset_unibyte_charset): Rename from Fset_primary_charset.
7652 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
7653
7654 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7655 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7656 it->multibyte_p is zero.
7657
7658 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 7659 Delete extern.
aca7a3d2 7660
73acf815 76612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7662
7663 * coding.c (Fdefine_coding_system_internal): Fix category setting
7664 for a coding system of type iso-2022.
7665
73acf815 76662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7667
1f45f627 7668 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 7669
73acf815 76702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7671
7672 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
7673 (next-word-boundary-function-table): Declare it as a Lisp variable
7674 in syms_of_syntax.
aca7a3d2
MB
7675 (scan_words): Call functions in Vnext_word_boundary_function_table
7676 if any.
7677
7678 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
7679
7680 * fontset.c (fs_load_font): If fontp->charset is not negative,
7681 return fontp without setting its members.
7682
73acf815 76832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7684
aca7a3d2
MB
7685 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
7686
7687 * m/sparc.h (HAVE_ALLOCA): Delete.
7688
7689 * s/irix6-5.h: Don't include strings.h.
7690 (bcopy, bzero, bcmp): Don't undef.
7691
7692 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
7693
7694 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
7695 (TIOCSIGSEND): Don't test IRIX6.
7696 (bcopy, bzero, bcmp): Define conditionally.
7697
73acf815 76982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7699
7700 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 7701 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
7702 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
7703
7704 * callproc.c (Fcall_process): Don't call insert_1_both directly if
7705 we are inserting a process output into a multibyte buffer.
7706
7707 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
7708 multibyte_char_to_unibyte.
7709
7710 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
7711 by the primary charset, make it eight-bit char.
7712 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
7713
1f45f627
GM
7714 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
7715 (charset_8_bit__control, charset_8_bit_graphic)
7716 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
7717 (define_charset_internal): New function.
7718 (syms_of_charset): Call define_charset_internal for pre-defined
7719 charsets.
7720
7721 * charset.h (charset_8_bit): Extern it.
7722
1f45f627 7723 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
7724 of Fset_buffer_multibyte.
7725 (encode_coding_raw_text): Increment p0 in the loop.
7726
1f45f627 7727 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 7728
1f45f627 7729 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
7730 for the change of Fset_buffer_multibyte.
7731
7732 * fns.c (Fstring_to_multibyte): New function.
7733 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
7734
73acf815 77352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7736
7737 * xfns.c (x_put_x_image): Declare args.
7738
1f45f627 7739 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
7740 (try_font_list): Declare an arg.
7741
7742 * xdisp.c (message2_nolog, set_message): Declare an arg.
7743
7744 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
7745
7746 * syntax.c (scan_sexps_forward): Declare an arg.
7747
7748 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7749 Declare an arg.
7750
7751 * lisp.h (Fnew_fontset): Declare.
7752
7753 * keymap.c (push_key_description): Call CHARACTERP correctly.
7754
1f45f627 7755 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
7756 (face_for_char): Delete unused vars.
7757 (Fset_fontset_font): Doc fix. Delete unused vars.
7758
7759 * doc.c (Fsubstitute_command_keys): Delete unused vars.
7760
7761 * composite.c (update_compositions): Declare arg.
7762
7763 * cm.c (calccost, cmgoto): Declare args.
7764
7765 * charset.c: Remove `emacs' conditional. Doc fixes.
7766 (map_char_table_for_charset): Declare.
7767
1f45f627 7768 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 7769
1f45f627 7770 * ccl.c: Remove `emacs' conditional.
aca7a3d2 7771
73acf815 77722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7773
7774 The following changes are to allow specifying multiple font
7775 patterns for a character range (specified by script or charset).
7776
7777 * Makefile.in (abbrev.o): Depend on syntax.h.
7778 (xfaces.o): Depend on charset.h.
7779
7780 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
7781 SINGLE_BYTE_CHAR_P.
7782
7783 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
7784
7785 * character.h (Vchar_script_table): Extern it.
7786
1f45f627 7787 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
7788 (Vchar_script_table, Qchar_script_table): New variable.
7789 (syms_of_character): Declare Vchar_script_table as a lisp variable
7790 and initialize it.
7791
1f45f627 7792 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
7793 have property char-table-extra-slots, make no extra slot.
7794
1f45f627 7795 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
7796 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
7797 SINGLE_BYTE_CHAR_P.
1f45f627
GM
7798 (choose_face_font, lookup_non_ascii_face, font_name_registry):
7799 Add prototypes.
7800 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
7801 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7802
7803 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 7804 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
7805 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
7806
7807 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 7808 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
7809 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
7810 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
7811 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
7812 (fontset_ref_and_range, fontset_add, reorder_font_vector)
7813 (load_font_get_repertory): New functions.
1f45f627 7814 (fontset_set): Delete.
aca7a3d2 7815 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 7816 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
7817 (free_face_fontset): Use ASET istead of AREF (X) = Y.
7818 (face_for_char): Don't call lookup_face.
7819 (make_fontset_for_ascii_face): New arg FACE.
7820 (fs_load_font): New arg CHARSET_ID. Don't check
7821 Vfont_encoding_alist here.
7822 (find_font_encoding): New function.
7823 (list_fontsets): Use STRINGP, not ! NILP.
7824 (accumulate_script_ranges): New function.
7825 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
7826 re-written to handle new fontset structure.
7827 (Ffontset_font): Return a copy of element.
7828 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
7829 docstring of font-encoding-alist.
7830
7831 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
7832 (Fset_fotset_font): Fix arguments to 5.
7833
1f45f627 7834 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
7835
7836 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
7837 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 7838 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
7839 lookup_named_face.
7840
7841 * xfaces.c: Include charset.h.
1f45f627
GM
7842 (load_face_font): Delete argument C. Change caller.
7843 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7844 (font_name_registry): New function.
7845 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 7846 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
7847 Lookup only ascii faces.
7848 (lookup_non_ascii_face): New function.
1f45f627
GM
7849 (lookup_named_face): Delete argument C. Change caller.
7850 (lookup_derived_face): Delete argument C. Change caller.
7851 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 7852 a string, just call font_list with it.
1f45f627
GM
7853 (choose_face_font): Delete arguments FACE and C. New arg
7854 FONT_SPEC. Change caller.
4c4475a8
GM
7855 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
7856 Change caller.
aca7a3d2
MB
7857 (realize_non_ascii_face): New function.
7858 (realize_x_face): Call load_face_font here.
1f45f627 7859 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
7860 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
7861 get a face ID.
7862 (dump_realized_face): Don't print charset of FACE.
7863
7864 * xfns.c (x_set_font): Always call x_new_fontset and
7865 store_frame_parameter.
7866 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 7867 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
7868
7869 * xterm.h (x_get_font_repertory): Extern it.
7870
7871 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7872 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7873 it->multibyte_p is zero.
7874 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7875 (x_new_fontset): If FONTSETNAME doesn't match any existing
7876 fontsets, create a new one.
7877 (x_get_font_repertory): New function.
7878
73acf815 78792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7880
7881 * coding.c (Ffind_coding_systems_region_internal): Detect an
7882 ASCII only string correctly.
7883
7884 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
7885 version is 0.
7886
73acf815 78872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7888
7889 * lread.c: Include "coding.h".
1f45f627
GM
7890 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
7891 (load_each_byte, unread_char): New variables.
7892 (readchar_backlog): Delete.
aca7a3d2
MB
7893 (readchar): Return a character unless load_each_byte is nonzero.
7894 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
7895 cons. If unread_char is not -1, simply return it.
7896 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
7897 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
7898 (read_multibyte): Delete.
aca7a3d2
MB
7899 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
7900 (read_emacs_mule_char): New functions.
7901 (Fload): Even if the file doesn't have the extention ".elc", if
7902 safe_to_load_p returns a positive version number, assume that the
7903 file contains bytecompiled code. If the version is less than 22,
7904 load the file while decoding multibyte sequences by emacs-mule.
7905 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
7906 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
7907 (Fread_from_string): Pay attention to the case that STREAM is a cons.
7908 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
7909 (read1): Set load_each_byte to 1 temporarily while handling
7910 #@NUMBER. Don't call read_multibyte.
7911 (read_vector): Call Fread with a cons. If readcharfun is
7912 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 7913 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
7914 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
7915 and Qload_force_doc_strings.
7916
73acf815 79172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7918
7919 * xdisp.c (face_before_or_after_it_pos): Call
7920 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
7921
73acf815 79222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7923
7924 * character.h (TRAILING_CODE_P): New macro.
1f45f627 7925 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
7926 (string_char_with_unification): Fix prototype.
7927 (Vscript_alist): Extern it.
7928
7929 * character.c (Vscript_alist): New variable.
4c4475a8
GM
7930 (string_char_with_unification, str_as_unibyte)
7931 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
7932 (syms_of_character): Declare script-alist as a Lisp variable.
7933
7934 * charset.h (Vcharset_ordered_list): Extern it.
7935 (charset_ordered_list_tick): Extern it.
7936 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
7937 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
7938 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 7939 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 7940 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
7941
7942 * charset.c (charset_ordered_list_tick): New variable.
7943 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
7944 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
7945 deunify intead of unify a charset.
7946 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
7947 (find_charsets_in_text): Add `const' to arguemnts and local variables.
7948 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
7949 detecting of invalid code.
7950 (Fset_charset_priority): Increment charset_ordered_list_tick.
7951 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
7952 and TO_CODE.
7953
7954 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
7955 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
7956 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
7957 (decode_coding_ccl, consume_chars)
7958 (Ffind_coding_systems_region_internal)
7959 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
7960
7961 * print.c (print_object): Use octal form for printing the
7962 contents of a bool vector.
7963
73acf815 79642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7965
7966 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
7967 <version == 20>: Refuse to load.
7968
73acf815 79692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7970
7971 * fns.c: Move coding.h.
7972 (Qcodeset, Qdays, Qmonths): New.
7973 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 7974 (Flocale_codeset): Delete.
aca7a3d2 7975 (Flanginfo): New function.
1f45f627 7976 (syms_of_fns): Change accordingly.
aca7a3d2
MB
7977
7978 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
7979
73acf815 79802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7981
7982 * casetab.c (init_casetab_once, init_casetab_once): Fix
7983 CHAR_TABLE_SET call.
7984
7985 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
7986
7987 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
7988
7989 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
7990 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
7991 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
7992
7993 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
7994
7995 * coding.c (ENCODE_DESIGNATION, decode_eol)
7996 (make_conversion_work_buffer, code_conversion_restore)
7997 (Fdefine_coding_system_internal): Convert Lisp types.
7998 (code_conversion_restore): Use EQ, not ==.
7999 (Fencode_coding_string): Fix code_convert_string call.
8000
8001 * coding.h (code_convert_region): Fix prototype.
8002
1f45f627 8003 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
8004
8005 * fontset.c (fontset_ref, fontset_set, fs_load_font)
8006 (Ffontset_info): Convert Lisp types.
8007
8008 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
8009
8010 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
8011
8012 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
8013
8014 * chartab.c: Include "...h", not <...h> in some cases.
8015
8016 * callproc.c (Fcall_process): Remove unused variables.
8017
73acf815 80182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8019
8020 * coding.c (Fset_coding_system_priority): Allow null arg list.
8021
73acf815 80222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8023
8024 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8025 (Fself_insert_and_exit): Use CHARACTERP.
8026
8027 * callproc.c (Fcall_process): Remove unused vars.
8028
8029 * xterm.c (XTread_socket): Add extra dead keysyms.
8030
8031 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
8032
8033 * dispextern.h: Remove prototypes for redraw_frame,
8034 redraw_garbaged_frames.
8035
8036 * cmds.c (Fself_insert_command): Use CHARACTERP.
8037
8038 * chartab.c (make_sub_char_table): Remove unused var.
8039 (Fset_char_table_default, Fmap_char_table): Doc fix.
8040
8041 * keymap.c (access_keymap): Remove generic char code.
8042 (push_key_description): Use CHARACTERP.
8043
73acf815 80442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8045
8046 * charset.c: Doc fixes.
8047 (Funify_charset): Extra checking.
8048
73acf815 80492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8050
8051 * lread.c: Remove some unused variables.
8052 (safe_to_load_p): If safe, return the magic number version byte.
8053 (Fload): Maybe use load-with-code-conversion.
8054
73acf815 80552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8056
8057 * category.c (Fmodify_category_entry): Don't modify the contents
8058 of category_set for characters out of the range. Avoid
8059 unnecessary modification.
8060
1f45f627 8061 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
8062 Vchar_unify_table. The default value of the table is now nil.
8063
8064 * character.c (syms_of_character): Setup Vchar_width_table for
8065 eight-bit-control and raw-byte chars.
8066
8067 * charset.h (enum define_charset_arg_index): Delete
8068 charset_arg_parents and add charset_arg_subset and
8069 charset_arg_superset.
8070 (enum charset_attr_index): Delete charset_parents and add
8071 charset_subset and charset_superset.
8072 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
8073 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 8074 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
8075 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
8076 (CHARSET_SUPERSET): New macros.
8077 (charset_work): Extern it.
8078 (ENCODE_CHAR): Use charset_work.
1f45f627 8079 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
8080 (map_charset_chars): Extern it.
8081
8082 * charset.c (load_charset_map): Set the default value of encoder
8083 and deunifier char-tables to nil.
1f45f627 8084 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
8085 map_char_table_for_charset instead of map_char_table.
8086 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 8087 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
8088 `define-charset' (:parents -> :subset or :superset).
8089 (charset_work): New variable.
4c4475a8
GM
8090 (encode_char, syms_of_charset): Adjust for the change of
8091 Fdefine_charset_internal.
aca7a3d2
MB
8092 (Ffind_charset_string): Setup the vector `charsets' correctly.
8093
1f45f627 8094 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 8095 the previous change.
1f45f627 8096 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
8097 (map_sub_char_table_for_charset): New function.
8098 (map_char_table_for_charset): New function.
8099
8100 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 8101 (describe_char_table): Delete.
aca7a3d2 8102
1f45f627 8103 * lisp.h (map_charset_chars): Delete.
aca7a3d2 8104
73acf815 81052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8106
8107 * fns.c (count_combining): Comment out (unused).
8108 (Flocale_codeset): New.
8109 (syms_of_fns): Defsubr it.
8110
8111 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 8112 (size_t): Remove.
aca7a3d2 8113
73acf815 81142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 8115
6f69e89b 8116 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 8117
73acf815 81182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8119
8120 * character.c (syms_of_character): Set the default value of
8121 Vprintable_chars to Qnil.
8122
73acf815 81232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8124
8125 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
8126
73acf815 81272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8128
8129 * charset.c (load_charset_map): Handle the case that from < to
8130 correctly.
8131
4c4475a8
GM
8132 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
8133 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
8134 Pay attention to raw-8-bit chars.
aca7a3d2 8135
73acf815 81362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8137
4c4475a8
GM
8138 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
8139 It is not bytecompiled now.
aca7a3d2
MB
8140
8141 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
8142 (charset_jisx0208): New variables.
8143 (Fdefine_charset_internal): Setup them if appropriate.
8144 (init_charset_once): Initialize them to -1.
8145
1f45f627
GM
8146 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
8147 (charset_jisx0208): Extern them.
aca7a3d2 8148
1f204af3 8149 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 8150 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
8151 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
8152 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
8153 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
8154 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
8155 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
8156 (encode_coding_iso_2022): Change the 1st arg to
8157 ENCODE_ISO_CHARACTER to a variable.
8158
73acf815 81592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8160
8161 * charset.h (enum define_charset_arg_index): New enums
8162 charset_arg_min_code and charset_arg_max_code.
8163 (struct charset): New member char_index_offset.
8164
4c4475a8
GM
8165 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
8166 Take charset->char_index_offset into account.
aca7a3d2
MB
8167 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
8168 args[charset_arg_max_code]. Setup charset.char_index_offset.
8169 (syms_of_charset): Fix args to Fdefine_charset_internal.
8170
73acf815 81712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8172
8173 * coding.c (decode_coding_utf_8): Reject overlong sequences.
8174
73acf815 81752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8176
8177 * coding.c: Doc fixes.
8178 (Fcoding_system_aliases): Fix return value.
8179 (Qmac): Remove (duplicated) definition.
8180
73acf815 81812008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8182
8183 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
8184 functions.
8185
8186 * character.c (Fstring): Doc fix.
8187
8188 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
8189
8190 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
8191 ids.
8192 (font-encoding-alist): Doc fix.
8193
73acf815 81942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8195
8196 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 8197 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
8198
8199 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8200 for K&R.
8201
8202 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
8203
8204 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 8205 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 8206
1f45f627 8207 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
8208
8209 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
8210
73acf815 82112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8212
8213 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
8214
1f45f627 8215 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 8216
2a2e8de7 82172008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
8218
8219 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
8220
1f45f627 8221 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 8222
73acf815 82232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8224
4c4475a8 8225 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 8226 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 8227
73acf815 82282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8229
1f45f627 8230 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
8231 Fdefine_coding_system_internal.
8232 (Fdefine_coding_system_internal): For a coding system of
8233 `charset' type, store a list of charset IDs in
8234 `charset_attr_charset_valids' element of coding attributes.
8235
73acf815 82362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8237
8238 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
8239 (emacs_mule_char): New arg src. Delete arg `composition'. Change
8240 caller. Handle 2-byte and 3-byte charsets correctly.
8241 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
8242 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
8243 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
8244 (DECODE_EMACS_MULE_21_COMPOSITION): Call
8245 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
8246 sequence.
8247 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 8248 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
8249 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
8250 and alt&rule composition.
8251 (decode_coding_iso_2022): Handle composition correctly.
8252 (init_coding_once): Setup emacs_mule_bytes for private charsets.
8253
8254 * charset.c (Fdefine_charset_internal): Fix bug for the case of
8255 re-defining a charset. If the charset has :emacs-mule-id, setup
8256 emacs_mule_bytes.
1f45f627 8257 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 8258
73acf815 82592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8260
4c4475a8
GM
8261 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
8262 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
8263 encoding, produce a character specified by
8264 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 8265
73acf815 82662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8267
8268 * xterm.c (XSetIMValues): Declare.
8269
8270 * process.c: Conditionally include sys/wait.h, pty.h.
8271
1f45f627 8272 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 8273
1f45f627 8274 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
8275
8276 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
8277
8278 * fontset.c (Fclear_face_cache): Declare.
1f45f627 8279 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
8280 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
8281 variables.
8282
8283 * character.h (string_escape_byte8): Declare.
8284
8285 * charset.c (load_charset_map, load_charset_map_from_file): Remove
8286 unused vars.
8287 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
8288 (Fmap_charset_chars): Doc fix.
8289
1f45f627 8290 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
8291 (Fset_coding_system_priority, Fset_coding_system_priority)
8292 (Fdefine_coding_system_internal): Doc fix.
8293
73acf815 82942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8295
8296 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8297
73acf815 82982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8299
8300 * character.c (string_escape_byte8): Make multibyte string with
8301 correct size.
8302
8303 * charset.c (Fmake_char): Delete unnecessary code.
8304
73acf815 83052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8306
8307 * xfns.c (x_encode_text): Allocate coding.destination here, and
8308 call encode_coding_object with dst_object Qnil.
8309
8310 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8311 multibyte form correctly.
8312
8313 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8314 against Vfont_encoding_alist.
8315
8316 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8317 handling of charset list.
8318 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8319 (decode_coding_object): Move point to coding->dst_pos before
8320 calling post-read-conversion function.
8321 (encode_coding_object): Give correct arguments to
8322 pre-write-conversion. Ignore the return value of
8323 pre-write-conversion function. Pay attention to the case that
8324 pre-write-conversion changes the current buffer. If dst_object is
8325 Qt, even if coding->src_bytes is zero, allocate at least one byte
8326 to coding->destination.
8327
8328 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8329
8330 * charset.c (Fmake_char): Make it more backward compatible.
8331 (Fmap_charset_chars): Fix docstring.
8332
73acf815 83332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8334
8335 * coding.c: Doc fixes.
8336 (Fdefine_coding_system_alias): Use names, not symbols, in
8337 coding-system-alist.
8338
73acf815 83392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8340
8341 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8342 of calling free_realized_face.
8343
2a2e8de7 83442008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 8345
1f45f627
GM
8346 * charset.c (read_hex): Don't treat SPC as a comment starter.
8347 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
8348 (Fdecode_char): Fix typo.
8349
73acf815 83502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8351
8352 * charset.h (struct charset): New member `code_space_mask'.
8353
1f45f627 8354 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
8355 (encode_coding_charset, Fdefine_coding_system_internal):
8356 Delete the local variable charset.
aca7a3d2
MB
8357 (Fdefine_coding_system_internal): Setup
8358 attrs[coding_attr_charset_valids] correctly.
8359
8360 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8361 member to check if CODE is valid or not.
8362 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8363 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8364 is within the range of charset->min_code and carset->max_code.
8365
73acf815 83662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8367
8368 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8369
8370 * dispextern.h (generate_ascii_font): Fix return type.
8371
8372 * xfaces.c (generate_ascii_font): Fix arg declaration.
8373
8374 * coding.c (coding_inherit_eol_type)
8375 (Fset_terminal_coding_system_internal)
8376 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8377
73acf815 83782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8379
8380 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8381 multiple charsets correctly.
8382
73acf815 83832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8384
8385 * search.c (boyer_moore): Fix handling of mulitbyte character
8386 translation.
8387
8388 * xdisp.c (display_mode_element): When the variable `elt' is
8389 changed, update `this' and `lisp_string'.
8390
73acf815 83912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8392
8393 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
8394
8395 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 8396 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
8397
8398 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
8399 (load_charset_map): Rename from parse_charset_map. New args
8400 entries and n_entries. Change caller.
8401 (load_charset_map_from_file): Rename from load_charset_map.
8402 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
8403 the tail.
8404 (load_charset_map_from_vector): New function.
8405 (Fdefine_charset_internal): Setup charset.compact_codes_p.
8406 (encode_char): If the charset is compact, change a character index
8407 to a code point.
8408
8409 * coding.c (coding_alloc_by_making_gap): Check the case that the
8410 source and destination are the same correctly.
8411 (decode_coding_raw_text): Set coding->consumed_char and
8412 coding->consumed to 0.
8413 (produce_chars): If coding->chars_at_source is nonzero, update
8414 coding->consumed_char and coding->consumed before calling
8415 alloc_destination.
8416 (Fdefine_coding_system_alias): Register ALIAS in
8417 Vcoding_system_alist.
8418 (syms_of_coding): Define `no-convesion' coding system at the tail.
8419
8420 * fileio.c (Finsert_file_contents): Set coding_system instead of
8421 val. If the current buffer is multibyte, always call
8422 decode_coding_gap.
8423
8424 * xfaces.c (try_font_list): Give higher priority to fontset's
8425 family than face's family.
8426
73acf815 84272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8428
8429 * callproc.c (Fcall_process): Be sure to give the current buffer
8430 to decode_coding_c_string.
8431
8432 * xfaces.c (try_font_list): Give a family specified in a fontset
8433 higher priority than a family specified in a face.
8434
73acf815 84352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8436
8437 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
8438 Fix arguments to insert_from_buffer.
8439
8440 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
8441
73acf815 84422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8443
8444 * coding.c (produce_chars): Set the variable `multibytep' correctly.
8445 (decode_coding_gap): Set coding->dst_multibyte correctly.
8446
73acf815 84472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8448
8449 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 8450 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
8451 (encode_coding_utf_16): Substitute coding->default_char for
8452 non-Unicode characters.
8453 (decode_coding): Don't call record_insert here.
8454 (setup_coding_system): Initialize `surrogate' of
8455 coding->spec.utf_16 to 0.
8456 (EMIT_ONE_BYTE): Fix for multibyte case.
8457
8458 * insdel.c (insert_from_gap): Call record_insert.
8459
73acf815 84602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8461
8462 * casefiddle.c (casify_region): Fix multibyte case.
8463
8464 * character.c (c_string_width): Add return type `int'.
1f45f627 8465 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
8466
8467 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 8468 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
8469 (CHAR_STRING_ADVANCE): Make it do-while statement.
8470
1f45f627 8471 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
8472 DEPTH == 3. Add workaround code for a GCC optimization bug.
8473
8474 * charset.c (parse_charset_map): Remove an unused variable.
8475
8476 * coding.c: Delete unused variables.
8477
8478 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8479 earlier. If inserted is zero and the coding system doesn't
8480 require flushing, don't call decode_coding_gap.
8481
8482 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8483
73acf815 84842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8485
8486 The following changes are for using Unicode as an internal
8487 character model, and use UTF-8 format for buffer/string
8488 representation.
8489
1f45f627 8490 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
8491 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8492
8493 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 8494 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
8495 (*.o): For many files, change dependency on charset.h to
8496 character.h, and add dependency on character.h.
8497 (character.o, chartab.o): New targets.
8498
1f45f627
GM
8499 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8500 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8501 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
8502 of "charset.h".
8503
8504 * dired.c, filelock.c: Include "character.h".
8505
8506 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 8507 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8508 (syms_of_alloc): Remove defsubr for Smake_char_table.
8509
8510 * buffer.c: Include "character.h" instead of "charset.h", don't
8511 include "coding.h".
1f45f627 8512 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
8513
8514 * buffer.h: EXFUN Fbuffer_live_p.
8515
8516 * callproc.c: Include "character.h" instead of "charset.h".
8517 (Fcall_process): Big change for the new code-conversion APIs.
8518
8519 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 8520 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
8521 map_char_table spec.
8522 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8523 accessing the char table structure.
8524
8525 * chartab.c: New file that implements char table.
8526
8527 * category.c: Include "character.h".
8528 (copy_category_entry): New function.
8529 (copy_category_table): Call map_char_table and copy_category_entry.
8530 (Fmake_category_table): Initialize all top-vel slots.
8531 (char_category_set): New function.
1f45f627 8532 (modify_lower_category_set): Delete.
aca7a3d2
MB
8533 (Fmodify_category_entry): Call char_table_ref_and_range.
8534
8535 * category.h (CATEGORY_SET): Just call char_category_set.
8536
8537 * ccl.c: Include "character.h".
8538 (Qccl, Qcclp): New variables.
8539 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8540 it's less than 256.
1f45f627
GM
8541 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8542 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 8543 and DST type.
1f45f627
GM
8544 (ccl_driver): Change types of argument, adjust code accordingly.
8545 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
8546 ccl_driver.
8547 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8548
1f45f627
GM
8549 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8550 New members src_multibyte, dst_multibyte, consumed, and produced.
8551 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 8552 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 8553 (ccl_driver): Update prototype.
aca7a3d2
MB
8554 (Qccl, Qcclp, Fccl_program_p): Extern them.
8555 (CHECK_CCL_PROGRAM): New macro.
8556
8557 * character.c, character.h, chartab.c: New files.
8558
1f45f627
GM
8559 * charset.c: Mostly re-written. Move character and multibyte sequence
8560 handling codes to character.c.
aca7a3d2 8561
1f45f627
GM
8562 * charset.h: Mostly re-written. Move character and multibyte sequence
8563 handling codes to character.h.
aca7a3d2
MB
8564
8565 * coding.c, coding.h: Mostly re-written.
8566
8567 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8568 (CHAR_WIDTH): Move to character.h.
8569 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 8570
1f45f627
GM
8571 * composite.h (enum composition_method): Change order of enumeration
8572 symbols.
aca7a3d2
MB
8573
8574 * data.c: Include "character.h" instead of "charset.h".
8575 (Faref): Call CHAR_TABLE_REF for a char table.
8576 (Faset): Call CHAR_TABLE_SET for a char table.
8577
1f45f627
GM
8578 * dispextern.h (free_realized_face, check_face_attribytes)
8579 (generate_ascii_font): Extern them.
8580 (free_realized_multibyte_face): Delete extern.
aca7a3d2 8581
1f45f627 8582 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
8583 table structure.
8584
8585 * editfns.c: Include "character.h" instead of "charset.h".
8586 (Fchar_to_string): Always call CHAR_STRING.
8587
8588 * emacs.c (main): Call init_charset_once, init_charset,
8589 syms_of_chartab, and syms_of_character.
8590
8591 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 8592 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 8593 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 8594 (build_annotations_2): Delete.
aca7a3d2
MB
8595 (e_write): Big change for the new code-conversion API.
8596
8597 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 8598 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8599 (Fcopy_sequence): Call copy_char_table for a char table.
8600 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
8601 (string_char_to_byte, string_byte_to_char): Adjust for the new
8602 multibyte form.
1f45f627
GM
8603 (internal_equal): Adjust for the change of char table structure.
8604 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8605 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8606 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8607 (char_table_translate, optimize_sub_char_table)
8608 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 8609 chartab.c.
1f45f627
GM
8610 (char_table_ref_and_index): Delete.
8611 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 8612 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
8613 Vcoding_category_list. Adjust for the new code-conversion API.
8614 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
8615 chartab.c.
8616
8617 * fontset.c: Mostly re-written.
8618
1f45f627 8619 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 8620 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
8621 (fontset_font_pattern, fs_load_font): Update prototype.
8622 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
8623
8624 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 8625 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
8626
8627 * insdel.c: Include "character.h" instead of "charset.h".
8628 (copy_text): Don't refer to Vnonascii_translation_table.
8629 (insert_from_gap): New function.
8630
8631 * keyboard.c: Include "character.h" instead of "charset.h".
8632 (command_loop_1): Never call direct_output_forward_char before
8633 a non-ASCII character.
8634 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 8635 translate a character.
aca7a3d2
MB
8636
8637 * keymap.c: Include "character.h".
8638 (store_in_keymap): Handle the case that IDX is a cons.
8639 (Fdefine_key): Handle the case that KEY is a cons and the car part
8640 is also a cons (range).
1f45f627 8641 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
8642 (describe_vector): Call describe_char_table for a char table.
8643 (describe_char_table): New function.
8644
8645 * keymap.h (describe_char_table): Extern it.
8646
8647 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
8648 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
8649 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
8650 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
8651 Delete.
8652 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
8653 structure.
8654 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
8655 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
8656 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 8657 (chartab_size): Extern it.
1f45f627 8658 (struct Lisp_Char_Table): Re-design.
aca7a3d2 8659 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
8660 (HASH_KEY, HASH_VALUE): Move from fns.c.
8661 (CHARACTERBITS): Define as 22.
8662 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
8663 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
8664 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
8665 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
8666 (code_convert_string_norecord): Deleted extern.
8667 (init_character_once, syms_of_character, init_charset)
8668 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
8669
8670 * lread.c: Include "character.h".
8671 (read_multibyte): New arg NBYTES.
1f45f627
GM
8672 (read_escape): Change the meaning of returned *BYTEREP.
8673 (to_multibyte): Delete.
8674 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
8675
8676 * print.c: Include "character.h" instead of "charset.h".
8677 (print_string): Convert 8-bit raw bytes to octal form by
8678 string_escape_byte8.
1f45f627 8679 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
8680 raw bytes always in octal form. Handle sub char table correctly.
8681
8682 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
8683 (read_process_output, send_process): Adjust for the new
8684 code-conversion API.
aca7a3d2 8685
1f45f627 8686 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
8687
8688 * regex.c: Include "character.h" instead of "charset.h".
8689 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
8690 (regex_compile): Accept a range whose starting and ending
8691 character have different leading bytes.
1f45f627 8692 (analyse_first): Adjust for the above change.
aca7a3d2
MB
8693
8694 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8695 (search_buffer, boyer_moore): Adjust for the new multibyte form.
8696 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
8697
8698 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 8699 (syntax_parent_lookup): Delete.
aca7a3d2 8700 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 8701 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
8702 (init_syntax_once): Call char_table_set_range instead of directly
8703 accessing the structure of a char table.
8704
8705 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 8706 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
8707 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
8708 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
8709
8710 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
8711 (encode_terminal_code, write_glyphs): Adjust for the new
8712 code-conversion API.
aca7a3d2
MB
8713 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
8714
1f45f627 8715 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
8716
8717 * xdisp.c: Include "character.h".
1f45f627
GM
8718 (get_next_display_element): Adjust for the new multibyte form.
8719 (disp_char_vector): Adjust for the new char table structure.
8720 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 8721 coding system.
1f45f627 8722 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
8723
8724 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 8725 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
8726 FS_LOAD_FONT.
8727 (generate_ascii_font): New function.
1f45f627
GM
8728 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
8729 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 8730 (free_realized_face): Make it public.
1f45f627 8731 (free_realized_faces_for_fontset): Rename from
aca7a3d2 8732 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 8733 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
8734 fontset_font_pattern and FS_LOAD_FONT.
8735
8736 * xfns.c: Include "character.h".
1f45f627 8737 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
8738
8739 * xselect.c: Don't include "charset.h".
1f45f627 8740 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
8741
8742 * xterm.c: Include "character.h".
1f45f627 8743 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
8744 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
8745 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
8746 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
8747 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
8748 (XTread_socket): Adjust for the new code-conversion API.
8749 (x_new_font): Adjust for the change of FS_LOAD_FONT.
8750 (x_load_font): Adjust for the change of struct font.
aca7a3d2 8751
d6abfc14
SM
87522008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8753
8754 * xfaces.c (face_at_buffer_position): Remove unused vars.
8755
0acdaf8d
KH
87562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8757
4c4475a8
GM
8758 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
8759 Fix overflow checking.
0acdaf8d 8760
6c8a0ebf
GM
87612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8762
8763 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
8764 Cancel previous change.
8765
87662008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8767
8768 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
8769 ccl->eight_bit_control. Fix check for buffer overflow.
8770 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
8771 (ccl_driver): Initialize extra_bytes to 0.
8772
a32aad64
KH
87732008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8774
8775 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
8776 return it ORed with ctrl_modifier.
8777
8b329dba
MB
87782008-01-29 Miles Bader <miles@gnu.org>
8779
8780 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
8781
548667aa
JR
87822008-01-28 Jason Rumney <jasonr@gnu.org>
8783
8784 * w32.c (stat): Don't double check for networked drive.
8785
0975aa24
SM
87862008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8787
ef264c42
SM
8788 * window.c (run_window_configuration_change_hook): New function.
8789 Code extracted from set_window_buffer. Set the selected frame.
8790 (set_window_buffer): Use it.
8791 * window.h (run_window_configuration_change_hook): Declare.
8792 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
8793
0975aa24
SM
8794 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
8795
9c28b587
DN
87962008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
8797
8798 * Makefile.in: Remove references to unused macros.
8799
c617afce
EZ
88002008-01-26 Eli Zaretskii <eliz@gnu.org>
8801
8802 * w32.c (g_b_init_get_sid_sub_authority)
8803 (g_b_init_get_sid_sub_authority_count): New static variables.
8804 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
8805 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
8806 (init_user_info): Use them to retrieve uid and gid.
8807 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
8808 (fstat): Use pw_uid and pw_gid from the_passwd structure for
8809 st_uid and st_gid of the file.
c617afce 8810
302d7d54
JR
88112008-01-26 Jason Rumney <jasonr@gnu.org>
8812
8813 * w32.c (logon_network_drive): New function.
8814 (stat): Use it.
8815
3ac7a21e
CY
88162008-01-26 Chong Yidong <cyd@stupidchicken.com>
8817
8818 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
8819 invisible text covered with an ellipsis.
8820
bbb9fc1f
RS
88212008-01-25 Richard Stallman <rms@gnu.org>
8822
8823 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
8824 jump back to beginning. Move some other initializations after that.
8825 (Qwindow_text_change_functions, Vwindow_text_change_functions):
8826 New variables.
8827 (syms_of_xdisp): Init them.
8828
8829 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
8830
0975aa24
SM
8831 * buffer.c (reset_buffer_local_variables):
8832 Implement `permanent-local-hook'.
bbb9fc1f 8833 (Qpermanent_local_hook): New variable.
0975aa24 8834 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 8835
79235cbe
MA
88362008-01-25 Michael Albinus <michael.albinus@gmx.de>
8837
8838 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
8839
ccd8f7fe
TTN
88402008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
8841
8842 * fns.c (Fclrhash): Return TABLE.
8843
dfbe40f2 88442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
8845
8846 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
8847 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
8848 is set even without positional changes.
8849 (x_scroll_bar_clear): Set bar->redraw_needed_p.
8850
8851 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
8852
dfbe40f2 88532008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 8854
d6169680
JR
8855 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
8856
602e142f
JR
8857 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
8858 the unicode range available in MULE by locale-coding-system.
c041e2d1 8859 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
8860 earlier.
8861
dfbe40f2 88622008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
8863
8864 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
8865 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 8866 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
8867 when used on child processes.
8868
8c7a4ac5
MA
88692008-01-21 Michael Albinus <michael.albinus@gmx.de>
8870
e0df1b73 8871 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 8872 Fdbus_method_return.
e0df1b73 8873 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 8874 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 8875 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 8876
8abe0f97
MR
88772008-01-20 Martin Rudalics <rudalics@gmx.at>
8878
8879 * undo.c (undo_inhibit_record_point): New variable.
8880 (syms_of_undo): Initialize it.
8881 (record_point): Don't record point when undo_inhibit_record_point
8882 is set.
8883
c3b232e4
SM
88842008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
8885
e69c4cae
SM
8886 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
8887
823e0ebb
SM
8888 * xdisp.c (Qauto_hscroll_mode): New var.
8889 (syms_of_xdisp): Initialize it.
8890 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
8891 window's buffer.
8892 (hscroll_windows): Don't check automatic_hscrolling_p here.
8893
c3b232e4
SM
8894 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
8895 vscroll if we're setting window-buffer to the value it already has.
8896
76ed5e01
DN
88972008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
8898
8899 * m/intel386.h: Remove references to XENIX.
8900
55e6d9b2
AS
89012008-01-17 Andreas Schwab <schwab@suse.de>
8902
8903 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
8904 instead of HAVE_X86_64_LIB64_DIR.
8905 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
8906
b16ed52d
GM
89072008-01-17 Glenn Morris <rgm@gnu.org>
8908
8909 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
8910 to HAVE_X86_64_LIB64_DIR.
8911
6bed5c4a
DN
89122008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
8913
8914 * s/irix3-3.h:
8915 * s/irix4-0.h:
8916 * s/386-ix.h:
8917 * s/domain.h:
8918 * s/hpux9-x11r4.h:
8919 * s/hpux9shxr4.h: Remove files for systems no longer supported.
8920
8921 * sysdep.c: Remove code containing references to symbols defined
8922 by unsupported systems.
8923
fdecf907
GM
89242008-01-16 Glenn Morris <rgm@gnu.org>
8925
8926 * coding.c (select-safe-coding-system-function): Doc fix.
8927
9292328f
GM
89282008-01-15 Glenn Morris <rgm@gnu.org>
8929
8930 * config.in: Revert 2008-01-13 change: this is a generated file.
8931
944df511
MO
89322008-01-13 Tom Tromey <tromey@redhat.com>
8933
8934 * lisp.h: Fix typo.
8935
8111ec05
DN
89362008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8937
f40f5dc3
DN
8938 * m/sequent-ptx.h:
8939 * m/sequent.h:
8940 * s/ptx.h:
8941 * s/ptx4-2.h:
8942 * s/ptx4.h: Remove files for systems no longer supported.
8943
ce20b664 8944 * callproc.c (Fcall_process): Fix previous change.
8111ec05 8945
e39a993c
DN
89462008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8947
052e457f 8948 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 8949
290afd83
JB
8950 * m/mips.h:
8951 * m/intel386.h:
e39a993c
DN
8952 * callproc.c:
8953 * config.in:
8954 * ecrt0.c:
8955 * emacs.c:
8956 * fileio.c:
8957 * frame.c:
8958 * getpagesize.h:
8959 * keyboard.c:
8960 * lread.c:
8961 * process.c:
8962 * puresize.h:
8963 * sysdep.c:
8964 * systty.h:
8965 * syswait.h:
8966 * unexec.c:
8967 * xdisp.c:
8968 * alloc.c: Remove code containing references to symbols defined by
8969 unsupported systems.
8970
81cd7687
KH
89712008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
8972
8973 * coding.c (detect_coding_mask): Fix previous change.
8974
218b3b76
KH
89752008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
8976
8977 * coding.c (detect_coding_iso2022): New arg
8978 latin_extra_code_state. Allow Latin extra codes only
8979 when *latin_extra_code_state is nonzero.
8980 (detect_coding_mask): If there is a NULL byte, detect the encoding
8981 as UTF-16 or binary. If Latin extra codes exist, detect the
8982 encoding as ISO-2022 only when there's no other proper encoding is
8983 found.
8984
59ce725a 89852008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 8986
59ce725a
MB
8987 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
8988 #ifdef MAC_OS.
048addec 8989
59ce725a 89902008-01-08 Richard Stallman <rms@gnu.org>
048addec 8991
59ce725a 8992 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 8993
8290574e
NR
89942008-01-06 Nick Roberts <nickrob@snap.net.nz>
8995
a0a3805c 8996 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
8997 menu bar in parentheses.
8998
f3041af1
DN
89992008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
9000
9001 * m/7300.h:
9002 * m/acorn.h:
9003 * m/alliant-2800.h:
9004 * m/alliant.h:
9005 * m/alliant1.h:
9006 * m/alliant4.h:
9007 * m/altos.h:
9008 * m/amdahl.h:
9009 * m/apollo.h:
9010 * m/att3b.h:
9011 * m/aviion-intel.h:
9012 * m/aviion.h:
9013 * m/celerity.h:
9014 * m/clipper.h:
9015 * m/cnvrgnt.h:
9016 * m/convex.h:
9017 * m/cydra5.h:
9018 * m/delta88k.h:
9019 * m/dpx2.h:
9020 * m/dual.h:
9021 * m/elxsi.h:
9022 * m/f301.h:
9023 * m/gould-np1.h:
9024 * m/gould.h:
9025 * m/i860.h:
9026 * m/ibmps2-aix.h:
9027 * m/ibmrt-aix.h:
9028 * m/ibmrt.h:
9029 * m/irist.h:
9030 * m/is386.h:
9031 * m/isi-ov.h:
9032 * m/mega68.h:
9033 * m/mg1.h:
9034 * m/news-r6.h:
9035 * m/news-risc.h:
9036 * m/news.h:
9037 * m/nh3000.h:
9038 * m/nh4000.h:
9039 * m/ns16000.h:
9040 * m/ns32000.h:
9041 * m/nu.h:
9042 * m/orion.h:
9043 * m/orion105.h:
9044 * m/paragon.h:
9045 * m/pfa50.h:
9046 * m/plexus.h:
9047 * m/pyramid.h:
9048 * m/pyrmips.h:
9049 * m/sh3el.h:
9050 * m/sps7.h:
9051 * m/sr2k.h:
9052 * m/stride.h:
9053 * m/sun1.h:
9054 * m/sun2.h:
9055 * m/sun3-68881.h:
9056 * m/sun3-fpa.h:
9057 * m/sun3-soft.h:
9058 * m/sun3.h:
9059 * m/sun386.h:
9060 * m/symmetry.h:
9061 * m/tad68k.h:
9062 * m/tahoe.h:
9063 * m/targon31.h:
9064 * m/tek4300.h:
9065 * m/tekxd88.h:
9066 * m/tower32.h:
9067 * m/tower32v3.h:
9068 * m/ustation.h:
9069 * m/wicat.h:
9070 * m/xps100.h:
9071 * s/cxux.h:
9072 * s/cxux7.h:
9073 * s/dgux.h:
9074 * s/dgux4.h:
9075 * s/dgux5-4-3.h:
9076 * s/dgux5-4r2.h:
9077 * s/esix.h:
9078 * s/esix5r4.h:
9079 * s/hiuxmpp.h:
9080 * s/hiuxwe2.h:
9081 * s/iris3-5.h:
9082 * s/iris3-6.h:
9083 * s/isc2-2.h:
9084 * s/isc3-0.h:
9085 * s/isc4-0.h:
9086 * s/isc4-1.h:
9087 * s/newsos5.h:
9088 * s/newsos6.h:
9089 * s/osf1.h:
9090 * s/osf5-0.h:
9091 * s/riscix1-1.h:
9092 * s/riscix12.h:
9093 * s/sco4.h:
9094 * s/sco5.h:
9095 * s/sunos4-0.h:
9096 * s/sunos4-1.h:
9097 * s/sunos413.h:
9098 * s/sunos4shr.h:
9099 * s/umax.h:
9100 * s/unipl5-2.h:
9101 * s/xenix.h:
9102 * cxux-crt0.s:
9103 * unexapollo.c:
9104 * unexconvex.c:
9105 * unexenix.c:
9106 * unexsni.c: Remove files for systems no longer supported.
9107
9108 * m/intel386.h: Remove references to unsupported systems.
9109
9110 * w32.c (get_emacs_configuration): Remove reference to i860.
9111
9112 * sysdep.c: Remove dead code.
9113
d35e1cd7
DN
91142008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
9115
9116 * s/rtu.h:
a0a3805c 9117 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 9118
abe136ee
MA
91192008-01-04 Michael Albinus <michael.albinus@gmx.de>
9120
9121 * dbusbind.c (Fdbus_method_return): New function.
9122 (xd_read_message): Add the serial number to the event.
9123 (Fdbus_register_method): Activate the function.
9124
87df3c32
SM
91252008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
9126
9127 * keyboard.c (read_key_sequence): Fix typo.
9128
5125905e
MA
91292008-01-03 Michael Albinus <michael.albinus@gmx.de>
9130
9131 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
9132 (xd_signature, xd_append_arg): Handle element type detection for
9133 empty arrays.
9134 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
9135 SDATA () calls; this must be solved more general.
9136 (Fdbus_register_signal): Use SBYTES instead of strlen.
9137
8bba1b5c
MH
91382008-01-03 Magnus Henoch <magnus@zemdatav>
9139
9140 * dbusbind.c (xd_append_arg): Use unsigned char instead of
9141 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 9142 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 9143
a0a3805c 91442007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
9145
9146 * dbusbind.c (xd_read_message): Use non-static input_event struct.
9147
a271e124
MH
91482007-12-31 Magnus Henoch <mange@freemail.hu>
9149
9150 * dbusbind.c (xd_signature): Signature of variant is just "v".
9151
17bc8f94
MA
91522007-12-30 Michael Albinus <michael.albinus@gmx.de>
9153
87df3c32 9154 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 9155 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
9156 (XD_ERROR, XD_DEBUG_MESSAGE)
9157 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
9158 (xd_append_arg): Part for basic D-Bus types rewitten.
9159 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
9160 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
9161 appropriate.
9162 (xd_read_message): Return Qnil. Don't signal an error; it is not
9163 useful during event reading.
9164 (Fdbus_register_signal): Signal an error if the check for
9165 FUNCTIONP fails.
9166 (Fdbus_register_method): New function. The implementation is not
9167 complete, the call of the function signals an error therefore.
9168 (Fdbus_unregister_object): New function, renamed from
9169 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 9170 the object is not well formed.
17bc8f94 9171
dd6f2802
RS
91722007-12-30 Richard Stallman <rms@gnu.org>
9173
9174 * textprop.c (get_char_property_and_overlay):
9175 Signal error if POSITION is out of range in a buffer.
9176
1da8a031
MR
91772007-12-29 Martin Rudalics <rudalics@gmx.at>
9178
9179 * w32fns.c (Fx_create_frame): Make copy of frame parameters
9180 because the original parameters are in pure storage now.
9181
5742be86
YM
91822007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9183
9184 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
9185
b014713c
EZ
91862007-12-22 Eli Zaretskii <eliz@gnu.org>
9187
b17f53ab
MB
9188 * callint.c (syms_of_callint) <command-history>: Add reference to
9189 history-length in the doc string.
048addec 9190
b17f53ab 91912007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 9192
b17f53ab
MB
9193 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
9194 before passing as wParam.
048addec 9195
9af5078b
MA
91962007-12-22 Michael Albinus <michael.albinus@gmx.de>
9197
9198 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
9199 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
9200 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
9201 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
9202 as number.
9203 (Fdbus_call_method): Fix docstring.
9204
87cf1a39
MA
92052007-12-21 Michael Albinus <michael.albinus@gmx.de>
9206
9207 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
9208 New macros.
87df3c32 9209 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
9210 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
9211 Simplify.
87cf1a39
MA
9212 (xd_signature): New function.
9213 (xd_append_arg): Compute also signatures. Major rewrite.
9214 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
9215 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
9216 Check for signatures of arguments.
87cf1a39 9217
54371585
MA
92182007-12-19 Michael Albinus <michael.albinus@gmx.de>
9219
9220 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
9221 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
9222 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
9223 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
9224 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 9225 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
9226 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
9227 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 9228 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
9229 (xd_append_arg): New function.
9230 (Fdbus_call_method, Fdbus_send_signal): Apply it.
9231
f5306ca3
MA
92322007-12-16 Michael Albinus <michael.albinus@gmx.de>
9233
9234 * dbusbind.c (top): Include <stdio.h>.
9235 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
9236 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
9237 (Fdbus_register_signal): Rename unique_name to uname.
9238 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
9239 non-existing unique name. Fix typos in matching rule. Return an
9240 object which is useful in Fdbus_unregister_signal.
9241 (Fdbus_unregister_signal): Reimplementation, in order to remove
9242 only the corresponding entry.
9243 (Vdbus_registered_functions_table): Change the order of entries.
9244 Apply these changes in xd_read_message and Fdbus_register_signal.
9245
77a28bbf
AS
92462007-12-16 Andreas Schwab <schwab@suse.de>
9247
9248 * fileio.c (Finsert_file_contents): Fix overflow check to not
9249 depend on undefined integer overflow.
9250
2e3566d8
JR
92512007-12-14 Jason Rumney <jasonr@gnu.org>
9252
9253 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9254 for characters above 127.
9255
bf254037
JR
92562007-12-13 Jason Rumney <jasonr@gnu.org>
9257
9258 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
9259 before dereferencing array.
9260 (lookup_vk_code): Remove zero comparison.
9261
eb7c7bf5
MA
92622007-12-14 Michael Albinus <michael.albinus@gmx.de>
9263
9264 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
9265 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
9266 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
9267 (xd_read_message, Fdbus_register_signal): Split expressions into
9268 multiple lines before operators "&&" and "||", according to the
9269 GNU Coding Standards.
9270
34fb0fc9
EZ
92712007-12-14 Eli Zaretskii <eliz@gnu.org>
9272
9273 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
9274
c7d97628
JL
92752007-12-12 Juri Linkov <juri@jurta.org>
9276
9277 * buffer.c (Frename_buffer): In interactive spec replace
9278 `read-buffer' with `read-string' that uses `buffer-name-history'
9279 as history, and the current buffer's name as default.
9280
3709505e
SM
92812007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
9282
9283 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
9284 manipulating the backtrace manually.
9285 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
9286 (struct backtrace, backtrace_list): Remove.
9287 (command_loop_1): Remove dead var `no_direct'.
9288
9289 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
9290 preserve non-built-in buffer-local variables.
9291 (Fkill_all_local_variables): Don't re-create&re-set permanent
9292 buffer-local variables.
9293
e2bec886
JL
92942007-12-09 Juri Linkov <juri@jurta.org>
9295
9296 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9297 Lisp code that uses `read-buffer' with current buffer as default.
9298
a31d47c7
MA
92992007-12-08 Michael Albinus <michael.albinus@gmx.de>
9300
9301 * dbusbind.c (xd_read_message): Generate an event for every
9302 registered handler. There might be several handlers registered
9303 for the same signal.
9304 (Fdbus_register_signal): Don't overwrite a registration for the
9305 same signal. Add a new registration if handlers are different.
9306 (Vdbus_registered_functions_table): Rework doc string.
9307
52da95fa
MA
93082007-12-07 Michael Albinus <michael.albinus@gmx.de>
9309
9310 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9311 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9312 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9313 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9314 Unify argument lists.
a0a3805c 9315 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
9316 arguments and hash table keys. Use unique name for service.
9317 (Fdbus_unregister_signal): Remove checks.
9318 (Vdbus_registered_functions_table): Fix doc string.
9319
e5e76c04 93202007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
9321
9322 * process.c (make_process): Initialize pty_flag to 0.
9323
e5e76c04 93242007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
9325
9326 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9327 specified XBMs.
9328
e5e76c04 93292007-12-05 Richard Stallman <rms@gnu.org>
048addec 9330
e5e76c04 9331 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 9332
e5e76c04 93332007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9334
e5e76c04
MB
9335 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9336 New variable.
9337 (mac_try_close_socket) [MAC_OSX]: New function.
9338 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9339 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 9340
e5e76c04
MB
9341 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9342 Use mac_try_close_socket.
048addec 9343
e5e76c04 93442007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9345
e5e76c04
MB
9346 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9347 reloc_base.
9348 (copy_dysymtab): Compute relocation base here.
9349 (rebase_reloc_address) [__ppc64__]: New function.
9350 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9351 changed.
048addec 9352
e5e76c04 93532007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 9354
e5e76c04 9355 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 9356
e5e76c04 93572007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9358
e5e76c04
MB
9359 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9360 __objc_* sections.
9361 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 9362
96faeb40
MA
93632007-12-05 Michael Albinus <michael.albinus@gmx.de>
9364
9365 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9366 Move check for Vdbus_registered_functions_table to
9367 xd_read_queued_messages.
9368 (xd_read_queued_messages): Protect xd_read_message calls by
9369 internal_condition_case_1.
9370
39abdd4a
MA
93712007-12-04 Michael Albinus <michael.albinus@gmx.de>
9372
87df3c32 9373 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 9374 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 9375 (Vdbus_intern_symbols): Remove.
39abdd4a 9376 (Vdbus_registered_functions_table): New hash table.
87df3c32 9377 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 9378 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 9379 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
9380 Vdbus_registered_functions_table.
9381
880820fe 93822007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
9383
9384 * xterm.c: Update URL to Window Manager Specification in comment.
9385
033b73e2
MA
93862007-12-02 Michael Albinus <michael.albinus@gmx.de>
9387
9388 * config.in (HAVE_DBUS): Add.
9389
a0a3805c 9390 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
9391 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
9392 (obj): Add $(DBUS_OBJ).
9393 (LIBES): Add $(DBUS_LIBS).
9394 (dbusbind.o): New target.
9395
9396 * dbusbind.c: New file.
9397
9398 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
9399
9400 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 9401 (Qdbus_event): New Lisp symbol.
033b73e2 9402 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 9403 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
9404 (keys_of_keyboard ): Define dbus-event.
9405
9406 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
9407
39d0bf74
RS
94082007-12-01 Richard Stallman <rms@gnu.org>
9409
9410 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
9411
f3157c65
JR
94122007-11-30 Jason Rumney <jasonr@gnu.org>
9413
9414 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
9415 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
9416 (w32_face_attributes): Don't use color indexes that are out of range.
9417 Only reverse the default colors.
f3157c65
JR
9418
9419 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
9420 WINDOWSNT.
9421
9422 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
9423
b510360c
JR
94242007-11-29 Jason Rumney <jasonr@gnu.org>
9425
9426 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
9427 (w32_face_attributes): Use Vtty_defined_color_alist to determine
9428 if the terminal colors are initialized.
9429 (unspecified_fg, unspecified_bg): Remove unused declarations.
9430
4b7ab1c4
AS
94312007-11-29 Andreas Schwab <schwab@suse.de>
9432
9433 * keyboard.c (apply_modifiers): Fix typo.
9434
4bb6c266
RS
94352007-11-29 Richard Stallman <rms@gnu.org>
9436
9437 * keymap.c (Fcurrent_local_map): Doc fix.
9438
aa44cd84
GM
94392007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
9440
9441 * s/gnu-kfreebsd.h: New file.
9442
21ec2c43
SM
94432007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
9444
cc648cef
SM
9445 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
9446 Don't cast redundantly.
9447
21ec2c43
SM
9448 * keyboard.c (KEY_TO_CHAR): New macro.
9449 (parse_modifiers, apply_modifiers): Accept integer arguments.
9450 (read_key_sequence): Use them to unify the "shift->unshift" mapping
9451 for chars and symbol keys.
9452 After doing such remapping, apply function-key-map again.
9453
73e72da4
DN
94542007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
9455
9456 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
9457 compiled anymore.
9458
254693ff
AS
94592007-11-26 Andreas Schwab <schwab@suse.de>
9460
9461 * process.c (list_processes_1): Fix indentation level of the
9462 command column.
9463
ff6e6ac8
AS
94642007-11-23 Andreas Schwab <schwab@suse.de>
9465
9466 * editfns.c (Fformat): Handle %c specially since it requires the
9467 argument to be of type int.
9468
f7cf8b20
SM
94692007-11-23 Markus Triska <markus.triska@gmx.at>
9470
9471 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 9472 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 9473
569c11e3
SM
94742007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9475
8787dd73
SM
9476 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9477 (find_symbol_value): Use do_symval_forwarding.
9478
569c11e3
SM
9479 * data.c (set_internal): Set the value in the `cons-cell' (for
9480 Buffer_Local_values) not only for frame-local variables.
9481
6af1696d
AS
94822007-11-22 Andreas Schwab <schwab@suse.de>
9483
9484 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9485 values to sprintf.
9486 * keymap.c (Fsingle_key_description): Likewise.
9487 * print.c (print_object): Likewise.
9488
880820fe 94892007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
9490
9491 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9492 file for image is nil.
9493
7c401d15
DN
94942007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9495
9496 * term.c: Include stdarg.h.
569c11e3 9497 (fatal): Implement using varargs.
a0a3805c 9498 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 9499
64e16c3c
SM
95002007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9501
9502 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9503 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9504 Update call to buffer_slot_type_mismatch.
9505 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9506 (buffer_slot_type_mismatch): Update.
9507 * buffer.c (buffer_local_types): Remove.
9508 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9509 (defvar_per_buffer): Set the type in the buffer_objfwd.
9510
d4aa48db 95112007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 9512
64e16c3c
SM
9513 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9514 CreateFileMapping returns NULL on failure.
5f42a7eb 9515
d4aa48db 95162007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 9517
d4aa48db
MB
9518 * search.c (Fset_match_data): Remove the `evaporate' feature.
9519 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 9520
bdae0540
JR
95212007-11-21 Jason Rumney <jasonr@gnu.org>
9522
9523 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9524
9525 * w32console.c (w32con_write_glyphs): Remove unused variables.
9526
202c09a8
DN
95272007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9528
b951420f
DN
9529 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9530
202c09a8
DN
9531 * s/darwin.h (MULTI_KBOARD): Remove.
9532
9533 * macfns.c (x_create_tip_frame, Fx_create_frame)
9534 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9535
bae72c12
SM
95362007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9537
e7c10f83
SM
9538 * buffer.c (Fbuffer_local_value): Remove redundant test.
9539 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9540 than in `current-buffer' to match the comment.
9541 Do the swap using swap_in_global_binding.
9542
136eb6ed
SM
9543 * data.c (store_symval_forwarding, set_internal):
9544 * eval.c (specbind): Remove dead code.
9545
bae72c12
SM
9546 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9547 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9548 Since we do not want to see internal Lisp_*fwd objects here.
9549
880820fe 95502007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 9551
3d66b985
JD
9552 * sysdep.c (init_system_name): Use getaddrinfo if available.
9553
95fbaefc
JD
9554 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9555 (x_scroll_bar_note_movement): start, end, with, height in struct
9556 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9557
6c1d8cb6
DN
95582007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9559
9560 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9561
30f95089
SM
95622007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9563
66b04bd4
SM
9564 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9565 This undoes Richard's change of 14-Oct-2002.
9566
6d3f2bb2
SM
9567 * alloc.c (allocate_other_vector):
9568 * lisp.h (allocate_other_vector): Remove.
9569
b05b4e27
SM
9570 * window.c (struct save_window_data): Move non-lisp data to the end
9571 and make it `int' rather than Lisp_Object.
9572 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9573 Done wrap/unwrap integer values.
9574 (Fset_window_configuration, compare_window_configurations):
9575 Update use of fields to their new types.
9576
056ce195
SM
9577 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
9578 Turn integer fields into `int'. Merge x_window_low and x_window_high.
9579 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
9580 (SET_SCROLL_BAR_X_WINDOW): Remove.
9581 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
9582 Access the new x_window field directly.
9583 * xterm.c (x_scroll_bar_create): Use a pseudovector.
9584 Don't wrap/unwrap integers into Lisp_Objects.
9585 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
9586 (x_scroll_bar_report_motion):
9587 Don't wrap/unwrap integers into Lisp_Objects.
9588 (x_term_init): Use SDATA.
9589 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
9590 (x_scroll_bar_set_handle, x_scroll_bar_remove)
9591 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
9592 (x_scroll_bar_report_motion, x_scroll_bar_clear):
9593 * xfns.c (x_set_background_color):
9594 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
9595 Access the new x_window field directly.
9596
30f95089
SM
9597 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
9598 (allocate_pseudovector): Make non-static.
6d3f2bb2 9599
30f95089
SM
9600 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
9601 (allocate_pseudovector): Declare.
6f69e89b 9602 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 9603
9b6112e8
AS
96042007-11-15 Andreas Schwab <schwab@suse.de>
9605
30f95089
SM
9606 * editfns.c (Fformat): Correctly format EMACS_INT values.
9607 Also take precision into account when formatting an integer.
0f860bd7 9608
9b6112e8
AS
9609 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9610
262fcd41
SM
96112007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9612
58da34c7
SM
9613 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9614 (syms_of_keyboard): Defsubr it.
9615
262fcd41
SM
9616 * data.c (swap_in_global_binding): Fix longstanding bug where
9617 store_symval_forwarding was not called with the right second argument,
9618 thus causing objfwd-ing from being dropped.
9619
d29a9848
JB
96202007-11-14 Juanma Barranquero <lekktu@gmail.com>
9621
9622 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9623 (Fx_display_pixel_height, Fx_display_planes)
9624 (Fx_display_color_cells, Fx_server_max_request_size)
9625 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9626 (Fx_display_visual_class, Fx_display_save_under):
9627 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
9628 (Fx_display_pixel_height, Fx_display_planes)
9629 (Fx_display_color_cells, Fx_server_max_request_size)
9630 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9631 (Fx_display_mm_height, Fx_display_mm_width)
9632 (Fx_display_backing_store, Fx_display_visual_class)
9633 (Fw32_select_font, Fx_display_save_under):
9634 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
9635 (Fx_display_pixel_height, Fx_display_planes)
9636 (Fx_display_color_cells, Fx_server_max_request_size)
9637 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9638 (Fx_display_save_under): Fix typos in docstrings.
9639
74084731
JB
96402007-11-14 Juanma Barranquero <lekktu@gmail.com>
9641
9642 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
9643 corresponding to deleted entries; they are an implementation detail.
9644 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
9645 Remove variables.
9646 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
9647 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
9648 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
9649 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
9650 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 9651 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 9652 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
9653 Fix typos in docstrings.
9654 (Fx_server_version): Reflow docstring.
9655 (Fw32_shell_execute): Doc fixes.
74084731 9656
fb053a1f
JB
96572007-11-13 Juanma Barranquero <lekktu@gmail.com>
9658
9659 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
9660 if w32_parse_hot_key returned nil.
9661
a457417e 96622007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 9663
a457417e 9664 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 9665
4b219faa
JR
96662007-11-09 Jason Rumney <jasonr@gnu.org>
9667
9668 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
9669
9670 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
9671
9672 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
9673 Remove W32_SCROLL_BAR_CLICK_EVENT.
9674
9675 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
9676 Add MULTIMEDIA_KEY_EVENT.
9677
9678 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
9679 (lispy_multimedia_keys) [WINDOWSNT]: New array.
9680 (make_lispy_event) [WINDOWSNT]: Use it to translate
9681 MULTIMEDIA_KEY_EVENT.
9682
9683 * w32term.h (WM_APPCOMMAND): Define if not already.
9684 (GET_APPCOMMAND_LPARAM): Likewise.
9685
9686 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
9687 WM_APPCOMMAND.
9688
9689 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
9690 (syms_of_w32fns): Export and initialize it.
9691 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
9692
c12ecb0a 96932007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
9694
9695 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
9696 twice.
9697
9698 * xdisp.c (handle_face_prop): Fix last change.
9699
c12ecb0a 97002007-11-09 Richard Stallman <rms@gnu.org>
048addec 9701
c12ecb0a
MB
9702 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
9703 not just for after-strings and before-strings.
9704 Call face_for_overlay_string and pass the overlay to it.
9705 (handle_display_prop): Determine whether property came from an overlay.
9706 Pass OVERLAY arg to handle_single_display_spec.
9707 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
9708 (load_overlay_strings): Fill in it->string_overlays.
9709 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 9710
c12ecb0a
MB
9711 * xfaces.c (face_for_overlay_string): Function renamed from
9712 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 9713
c12ecb0a
MB
9714 * dispextern.h (struct it): New elt string_overlays.
9715 New elt from_overlay, also in stack.
9716 Rearrange a few elements.
9717 (face_for_overlay_string): Decl renamed from
9718 face_at_buffer_position_no_overlays, and add argument.
15fff01d 9719
c12ecb0a 97202007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 9721
c12ecb0a
MB
9722 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
9723 to get the base face for an overlay string.
0d8466cc 9724
c12ecb0a 9725 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 9726
c12ecb0a 9727 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 9728
c12ecb0a 9729 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 9730
c12ecb0a 97312007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 9732
c12ecb0a
MB
9733 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
9734 Fix conversion from Lisp object to ATSUFontID.
07025a55 9735
c12ecb0a 97362007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 9737
c12ecb0a 9738 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 9739
c12ecb0a 97402007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 9741
c12ecb0a
MB
9742 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
9743 Don't assume regions are aligned to page boundary.
9744 (print_load_command_name): Add LC_UUID if defined.
3a232704 9745
c12ecb0a 97462007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 9747
c12ecb0a 9748 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 9749
b8ddfbcc
JR
97502007-11-07 Jason Rumney <jasonr@gnu.org>
9751
9752 * s/windows95.h: Remove.
9753
880820fe 97542007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
9755
9756 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
9757 abort with a message on unhandled store_type values.
9758
880820fe 97592007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
9760
9761 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
9762 Remove HAVE_X11R5 and HAVE_X11R4.
9763
04a697fe
DN
97642007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9765
9766 * Makefile.in: Remove references to sunfns.c and sunfns.o.
9767
880820fe 97682007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
9769
9770 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 9771 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
9772 x_set_glyph_string_gc from x_draw_glyph_string.
9773
07e5c0b0
DN
97742007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9775
2a2e8de7 9776 * sunfns.c: Remove file.
07e5c0b0
DN
9777
9778 * m/sun386.h:
9779 * m/sun2.h:
9780 * m/sparc.h: Remove Sun windows code.
9781
1bc973c2
SM
97822007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
9783
9784 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
9785 (init_keyboard): Set current_kboard's window-system to nil.
9786 (tty_read_avail_input): Typo.
9787 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
9788
c22140f6
DN
97892007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
9790
9791 * s/usg5-4.h:
9792 * s/usg5-3.h:
9793 * s/ptx.h:
9794 * m/is386.h:
9795 * m/ibmps2-aix.h:
2a2e8de7 9796 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
9797
9798 * dispnew.c (syms_of_display): Don't mention version 10.
9799
660a8219
JB
98002007-10-28 Juanma Barranquero <lekktu@gmail.com>
9801
9802 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
9803 ($(BLD)/abbrev.$(O)): Remove.
9804
e047f448
SM
98052007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9806
9807 Rewrite abbrev.c in Elisp.
9808 * image.c (Qcount): Don't declare as extern.
9809 (syms_of_image): Initialize and staticpro `Qcount'.
9810 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
9811 * emacs.c (main): Don't call syms_of_abbrev.
9812 * Makefile.in (obj): Remove abbrev.o.
9813 (abbrev.o): Remove.
9814 * abbrev.c: Remove.
9815
67b73e3a
MR
98162007-10-26 Martin Rudalics <rudalics@gmx.at>
9817
9818 * window.c (window_min_size_2): Don't count header-line.
9819
e3d7bd83
DN
98202007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
9821
9822 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 9823 field to take advantage of the available space. Group all the
e3d7bd83
DN
9824 chars together to reduce wasted space due to padding.
9825
a3547743
JB
98262007-10-26 Juanma Barranquero <lekktu@gmail.com>
9827
e298936f
JB
9828 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
9829
d3d47262
JB
9830 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
9831 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
9832 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
9833 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
9834 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
9835 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
9836 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
9837 (last_marked, mark_object_loop_halt): Make static.
9838
a3547743
JB
9839 * frame.c (syms_of_frame) <delete-frame-functions>:
9840 Fix typo in docstring.
9841
14c71d8b
JB
98422007-10-25 Juanma Barranquero <lekktu@gmail.com>
9843
9844 * w32.c (init_environment): Fix tiny memory leak.
66199f74 9845 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 9846
70b8d0a4
SM
98472007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
9848
9849 Make `window-system' into a keyboard-local variable (rather than
9850 frame-local as done originally by multi-tty).
9851
9852 * keyboard.h (struct kboard): Add Vwindow_system.
9853 * keyboard.c (init_kboard): Set a default for Vwindow_system.
9854 (mark_kboards): Mark Vwindow_system.
9855
9856 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
9857 (init_display): Don't set the obsolete `window-system' frame-param.
9858
9859 * xterm.c (x_term_init):
9860 * w32term.c (w32_create_terminal):
9861 * term.c (init_tty): Set Vwindow_system.
9862 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
9863 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
9864
9865 * xfns.c (Fx_create_frame, x_create_tip_frame):
9866 * w32fns.c (Fx_create_frame, x_create_tip_frame):
9867 * macfns.c (Fx_create_frame):
9868 Don't set the obsolete `window-system' frame-param.
9869
9870 * frame.h (Qwindow_system): Remove.
9871 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
9872 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
9873
fdc90613 98742007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 9875
fdc90613
MB
9876 * frame.c (x_figure_window_size): For fullscreen case,
9877 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 9878
fdc90613 9879 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 9880
fdc90613 9881 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 9882
7357cb04
SM
98832007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9884
98228e72
SM
9885 * process.c (unwind_request_sigio): Only define if __ultrix__.
9886
1baf6db9
SM
9887 * callproc.c (child_setup): Remove spurious *.
9888
4d0ac3d7
SM
9889 * lisp.h (Fget_text_property): Declare.
9890 (have_menus_p): Declare it here rather than in sys-dep header files.
9891 * macterm.h (have_menus_p):
9892 * msdos.h (have_menus_p):
9893 * xterm.h (have_menus_p): Remove.
9894
7357cb04
SM
9895 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9896 (Fmake_variable_frame_local): Just check the variable's const-ness
9897 rather than checking nil or t.
9898
866e6dd6
JR
98992007-10-22 Jason Rumney <jasonr@gnu.org>
9900
b00afeae
JR
9901 * w32fns.c: Include math.h.
9902 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 9903
c8f7c76b
JR
9904 * s/ms-w32.h (HAVE_STDLIB_H): Define.
9905 (abort): Redefinition moved to nt/config.nt.
9906
866e6dd6
JR
9907 * m/windowsnt.h: Remove.
9908
e79beb56
JB
99092007-10-22 Juanma Barranquero <lekktu@gmail.com>
9910
9911 * emacs.c (Fdump_emacs): Fix typo in message.
9912 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
9913 <installation-directory>: Reflow docstring.
9914
fb30dfd2
JL
99152007-10-22 Juri Linkov <juri@jurta.org>
9916
9917 * minibuf.c: Allow minibuffer default to be a list of default values.
9918 With empty input use the first element of this list as returned default.
e79beb56 9919 (string_to_object)
0f7f11b7 9920 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
9921 (read_minibuf): If defalt is cons, set histstring to its car.
9922 (Fread_string): If default_value is cons, set val to its car.
9923 (Fread_buffer): If def is cons, use its car.
9924 (Fcompleting_read): If defalt is cons, set val to its car.
9925
1f163f28
MA
99262007-10-21 Michael Albinus <michael.albinus@gmx.de>
9927
9928 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
9929
db3534c3
JB
99302007-10-20 Juanma Barranquero <lekktu@gmail.com>
9931
9932 * doc.c (Fdocumentation): Check for advice in all cases.
9933
c6f18a07
CY
99342007-10-19 Chong Yidong <cyd@stupidchicken.com>
9935
9936 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
9937
2a1534d3
RS
99382007-10-19 Richard Stallman <rms@gnu.org>
9939
9940 * doc.c (Fdocumentation): Check for and handle an advised function.
9941
7b82c3b6
JB
99422007-10-19 Juanma Barranquero <lekktu@gmail.com>
9943
9944 * process.c (Fset_process_filter): Doc fix.
9945
3278f20e
SM
99462007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
9947
9948 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
9949 which caused key-translation-map to applied repeatedly (thus breaking
9950 double-mode).
9951
99784d63
SM
99522007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9953
9954 * xselect.c (x_own_selection, x_handle_selection_clear)
9955 (x_clear_frame_selections):
9956 * w32menu.c (list_of_panes, list_of_items):
9957 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
9958 * textprop.c (validate_plist, interval_has_all_properties)
9959 (interval_has_some_properties, interval_has_some_properties_list)
9960 (add_properties, text_property_list):
9961 * process.c (Fget_buffer_process, list_processes_1, status_notify):
9962 * minibuf.c (Fassoc_string):
9963 * macselect.c (x_own_selection, x_clear_frame_selections)
9964 (Fx_disown_selection_internal):
9965 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
9966 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
9967
44bb704d
CY
99682007-10-17 Chong Yidong <cyd@stupidchicken.com>
9969
9970 * process.c: Link to libs for calling res_init() if available.
9971 (Fmake_network_process): Call res_init() before getaddrinfo or
9972 gethostbyname, if possible.
9973
d314756e
SM
99742007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9975
2504022a
SM
9976 * lread.c (read1): Set pvectype for char_tables.
9977
19fa82b9
SM
9978 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
9979 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
9980 Add type checks.
9981 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
9982
d314756e
SM
9983 * alloc.c (free_misc): Use XMISCTYPE.
9984 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
9985
94b9aaa2
GM
99862007-10-17 Glenn Morris <rgm@gnu.org>
9987
9988 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
9989 (syms_of_minibuf): Add Qcompletion_ignore_case.
9990 * dired.c (Qcompletion_ignore_case): Change to external.
9991 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
9992 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
9993 (Fread_file_name): Use it rather than intern'ing.
9994
9995 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
9996 (Fread_coding_system): Ignore case of user input.
9997
da6658e8
YM
99982007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9999
10000 * xdisp.c (handle_display_prop): Ignore display specs after
10001 replacing one when string text is being replaced.
10002 (handle_single_display_spec): Pretend as if characters with display
10003 property haven't been consumed only when buffer text is being replaced.
10004
11fb4bdb
SM
100052007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
10006
9beb8baa
SM
10007 * xfns.c (Fx_create_frame, Fx_display_list):
10008 * window.c (window_fixed_size_p, enlarge_window)
10009 (shrink_window_lowest_first):
10010 * macterm.c (init_font_name_table):
10011 * macfns.c (Fx_create_frame, Fx_display_list):
10012 * lread.c (close_load_descs):
10013 * keyboard.c (read_char_x_menu_prompt):
10014 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
10015 * coding.c (code_convert_region_unwind): Test the type of an object
10016 rather than just !NILP before extracting data from it.
10017
d3f41ff5
SM
10018 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
10019
67ee9f6e
SM
10020 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
10021 (XMISCANY): New macro.
10022 (XMISCTYPE): Use it.
10023 (struct Lisp_Misc_Any): New type.
10024 (union Lisp_Misc): Use it.
10025 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
10026 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
10027 (find_symbol_value, set_internal, default_value, Fset_default)
10028 (Fmake_variable_buffer_local, Fmake_local_variable)
10029 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
10030 (Flocal_variable_if_set_p, Fvariable_binding_locus):
10031 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
10032 * alloc.c (allocate_buffer): Set the size and tag.
10033 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
10034 Use XMISCANY.
10035 (die): Follow the GNU convention for error messages.
10036 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
10037 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
10038 tag any more.
10039 (set_buffer_internal_1):
10040 * frame.c (store_frame_param):
10041 * eval.c (specbind):
10042 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
10043
11fb4bdb
SM
10044 * doc.c (Fsnarf_documentation): Simplify.
10045
decb374a
JB
100462007-10-14 Juanma Barranquero <lekktu@gmail.com>
10047
10048 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
10049 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
10050
b5a40ee7
SM
100512007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
10052
10053 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
10054
35277b03
JB
100552007-10-14 Juanma Barranquero <lekktu@gmail.com>
10056
10057 * eval.c (do_autoload): Don't save autoloads.
10058
10059 * data.c (Ffset): Save autoload of the function being set.
10060
35fdaa62
GM
100612007-10-07 John Paul Wallington <jpw@pobox.com>
10062
10063 * xfns.c (x_create_tip_frame): Set the `display-type' frame
10064 parameter before setting up faces.
10065
1ea40aa2
EZ
100662007-10-13 Eli Zaretskii <eliz@gnu.org>
10067
35fdaa62 10068 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
10069 * keyboard.c (append_tool_bar_item): Reformat last change.
10070
1ea40aa2
EZ
10071 * lisp.h (eabs): Rename from `abs'. All callers changed.
10072
35277b03 100732007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
10074
10075 * buffer.c (add_overlay_mod_hooklist):
10076 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
10077 * fontset.c (make_fontset):
10078 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
10079 (append_tool_bar_item):
10080 * macmenu.c (grow_menu_items):
35fdaa62 10081 * w32menu.c (grow_menu_items):
71d00ce4 10082 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 10083
bc82f120
EZ
100842007-10-13 Eli Zaretskii <eliz@gnu.org>
10085
10086 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
10087 selected frame'' on MSDOS).
10088
d57d5a78
MR
100892007-10-12 Martin Rudalics <rudalics@gmx.at>
10090
10091 * frame.c (Qexplicit_name): New variable.
10092 (x_report_frame_params): Report it in parameter alist.
10093 (syms_of_frame): Intern and staticpro it.
10094
35277b03 100952007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
10096
10097 * macfns.c (x_create_tip_frame): Set terminal for frame.
10098
c7a4b95b
SM
100992007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
10100
26f9c7b7
SM
10101 * frame.c (Qenvironment): Remove.
10102 (syms_of_frame) <Qenvironment>: Don't initialize.
10103 (Fdelete_frame): Don't treat the `environment' param specially.
10104 * frame.h (Qenvironment): Don't declare.
10105 * callproc.c (set_initial_environment): Don't set unused frame param.
10106
c7a4b95b
SM
10107 * frame.c (Fframe_with_environment): Remove.
10108 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 10109
c7a4b95b
SM
10110 * lisp.h (Fframe_with_environment): Don't declare.
10111
c86f7377
JB
101122007-10-10 Juanma Barranquero <lekktu@gmail.com>
10113
10114 * indent.c (indent_tabs_mode, last_known_column)
10115 (last_known_column_modified): Make static.
10116 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
10117
d1b3a122
KY
101182007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
10119
10120 * puresize.h (BASE_PURESIZE): Increase to 1170000.
10121
d57d5a78
MR
101222007-10-09 Jason Rumney <jasonr@gnu.org>
10123
10124 * w32term.c (x_set_window_size): Disable code that attempts to tell
10125 Lisp code about a size change before it actually happens.
10126
81d3d428 101272007-10-09 Richard Stallman <rms@gnu.org>
91175673 10128
81d3d428
MB
10129 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
10130 return HANDLED_RETURN.
91175673 10131
1af74d06 101322007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 10133
1af74d06
MB
10134 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
10135 when there's an unread command event.
e0fead5d 10136
c7a4b95b 10137 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
10138 window autoselection act appropriately when leaving selected frame.
10139 (syms_of_frame): Initialize focus_follows_mouse.
10140 * frame.h (focus_follows_mouse): Extern it.
10141 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 10142 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
10143 * msdos.c (dos_rawgetc): Likewise.
10144 * w32term.c (w32_read_socket): Likewise.
10145 * xterm.c (handle_one_xevent): Likewise.
10146 * xdisp.c (syms_of_xdisp): In doc-string of
10147 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 10148
1af74d06 101492007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 10150
1af74d06
MB
10151 * macterm.c (mac_load_query_font): Fix missing return value.
10152 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
10153 Add BLOCK_INPUT.
c186cdb3 10154
1af74d06 101552007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 10156
1af74d06
MB
10157 * xdisp.c (get_window_cursor_type): Implement documented behavior
10158 for cursor-in-non-selected-windows = t.
c186cdb3 10159
1af74d06 101602007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 10161
1af74d06 10162 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 10163
1af74d06 101642007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 10165
1af74d06 10166 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 10167
1af74d06 10168 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 10169
1af74d06 101702007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 10171
c7a4b95b 10172 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 10173
1af74d06 101742007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 10175
1af74d06 10176 * buffer.c (Foverlays_at): Doc fix.
036e218d 10177
1af74d06 101782007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 10179
1af74d06 10180 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 10181
1af74d06 101822007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 10183
1af74d06 10184 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 10185
1af74d06 10186 * frame.h (enum): Remove trailing comma.
90647b07 10187
8993ad2e 101882007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 10189
1af74d06 10190 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 10191
1af74d06 101922007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 10193
1af74d06 10194 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 10195
1af74d06
MB
10196 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
10197 last-repeatable-command.
10198 (init_kboard): Initialize Vlast_repeatable_command.
10199 (command_loop_1): Set it to real_this_command unless that was
10200 bound to an input event.
10201 (mark_kboards): Mark it.
9fbc32aa 10202
1af74d06 102032007-10-08 Richard Stallman <rms@gnu.org>
036e218d 10204
1af74d06 10205 * eval.c (condition-case): Doc fix.
9fbc32aa 10206
1af74d06 102072007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 10208
1af74d06
MB
10209 * xfaces.c (tty_supports_face_attributes_p): Fix code
10210 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
10211 was copied and not edited.
9fbc32aa 10212
beb9f745
SM
102132007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
10214
c86f7377 10215 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
10216 escape sequences.
10217 * keyboard.h (struct kboard): Add Vinput_decode_map.
10218 Remove Vlocal_key_translation_map.
10219 * keyboard.c (read_key_sequence): Add support for input-decode-map.
10220 (init_kboard): Init input-decode-map.
10221 Replace local-key-translation-map back with key-translation-map.
10222 (syms_of_keyboard): Declare input-decode-map.
10223 Remove local-key-translation-map. Update docstrings.
10224 (mark_kboards): Mark Vinput_decode_map.
10225 Don't mark Vlocal_key_translation_map.
10226 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
10227 Replace local-key-translation-map back with key-translation-map.
10228 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
10229 Bind in input-decode-map rather than function-key-map.
10230
beb9f745
SM
10231 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
10232 This was made redundant by the previous introduction of XSETPVECTYPE.
10233
65342ae3
RS
102342007-10-09 Richard Stallman <rms@gnu.org>
10235
beb9f745 10236 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
10237
102382007-09-29 Richard Stallman <rms@gnu.org>
10239
10240 * eval.c (internal_condition_case_2, internal_condition_case_1)
10241 (internal_condition_case): Reenable abort if x_catching_errors ()
10242 to see if that really happens and why.
10243
6cff77fd
AS
102442007-10-06 Andreas Schwab <schwab@suse.de>
10245
10246 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
10247
bbe6f2aa
JB
102482007-10-04 Juanma Barranquero <lekktu@gmail.com>
10249
10250 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
10251
a390930c
SM
102522007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
10253
10254 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
10255
d6aa1876
SM
102562007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
10257
d0fdb6da
SM
10258 * window.h (struct window):
10259 * window.c (struct save_window_data, struct saved_window):
10260 * termhooks.h (struct terminal):
10261 * process.h (struct Lisp_Process):
10262 * frame.h (struct frame):
10263 * buffer.h (struct buffer):
10264 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
10265 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
10266 The size field of (pseudo)vectors is now unsigned.
10267 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
10268
878f97ff
SM
10269 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
10270 Turn `count' into an integer.
d0fdb6da 10271
878f97ff
SM
10272 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
10273 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
10274 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
10275 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
10276 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
10277
d2029e5b
SM
10278 * alloc.c (allocate_pseudovector): New fun.
10279 (ALLOCATE_PSEUDOVECTOR): New macro.
10280 (allocate_window, allocate_terminal, allocate_frame)
10281 (allocate_process): Use it.
10282 (mark_vectorlike): New function.
10283 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
10284 (mark_terminals): Use it.
10285 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
10286 (Fmake_byte_code): Use XSETPVECTYPE.
10287
10288 * frame.c (Fframe_parameters): Minor simplification.
10289
10290 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
10291
10292 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
10293
10294 * buffer.c (Fget_buffer_create, init_buffer_once):
10295 * lread.c (defsubr):
10296 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10297
10298 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10299 defined differently in the m/*.h files.
10300 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10301 (XSETPVECTYPE): New macro.
10302 (XSETPSEUDOVECTOR): Use it.
10303
d6aa1876
SM
10304 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10305 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 10306
d6aa1876
SM
10307 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10308 * lread.c (defvar_per_buffer):
10309 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10310
10311 * window.c (candidate_window_p): Only consider as visible frames that
10312 are on the same terminal.
10313
10314 * m/ibms390x.h (MARKBIT): Remove unused macro.
10315
88852d45
JB
103162007-10-01 Juanma Barranquero <lekktu@gmail.com>
10317
10318 * lread.c (Fload): Fix typo in docstring.
10319
880820fe 103202007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
10321
10322 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10323 of a non-zero value can't yield zero.
10324
ed0c79c6
SM
103252007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10326
b870aa61
SM
10327 * term.c (term_clear_mouse_face, term_mouse_highlight)
10328 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10329
4c37a414
SM
10330 * print.c (safe_debug_print): Use XHASH.
10331
b9466edb
SM
10332 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10333 Lisp elements such as tags.
10334 (XHASH): New macro.
10335 (EQ): Use it.
10336 (SREF, SSET, STRING_COPYIN): Use SDATA.
10337 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10338
9c545a55
SM
10339 * alloc.c (mark_terminal): Remove left-over declaration.
10340 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10341 (allocate_vectorlike): Remove type argument. Adjust callers.
10342 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10343 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10344
dafc79fa
SM
10345 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10346 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10347 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10348 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10349 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10350 Use them.
10351
ed0c79c6
SM
10352 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10353 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10354 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10355
3c81afd4
DN
103562007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10357
10358 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10359 loaded by default.
10360
6178ce5e
SM
103612007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10362
4ce5ab77
SM
10363 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10364 on this tty.
10365 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10366
6178ce5e
SM
10367 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10368 Update all users.
10369 (handle_one_term_event): Use Gpm_DrawPointer.
10370 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10371 Signal errors instead of returning nil. Always return nil.
10372 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10373 Make it a noop if gpm-mouse was not activated.
10374 (syms_of_term): Update names.
10375
bdf5f8ef
SM
103762007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10377
75a8734b
SM
10378 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10379 (init_sys_modes): Check that gpm_tty is the current tty.
10380
13559ee0
SM
10381 * alloc.c (allocate_terminal): Set the vector size to only count the
10382 lisp fields. Initialize those to nil.
10383 (mark_object): Don't treat terminals specially.
10384 (mark_terminal): Remove.
10385 (mark_terminals): Use mark_object instead.
10386
ff16b875
SM
10387 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
10388 the GC to the beginning.
10389
83155776
SM
10390 * indent.h:
10391 * indent.c: Use EMACS_INT for ints coming from Elisp data.
10392
bdf5f8ef
SM
10393 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
10394
ec8705b6
JR
103952007-09-25 Jason Rumney <jasonr@gnu.org>
10396
10397 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
10398
10399 * w32console.c (create_w32cons_output): Remove.
10400
10401 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
10402
10403 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
10404 (reset_sys_modes): Use reset_terminal_modes_hook.
10405
7351b242
SM
104062007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
10407
10408 * eval.c (do_autoload): Don't output any message.
10409
16706228
JL
104102007-09-24 Juri Linkov <juri@jurta.org>
10411
10412 * emacs.c (standard_args): Change priority of "--no-splash"
10413 from 40 to 3. Add "--no-desktop" with the same priority.
10414
3ae2e3a3
RS
104152007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
10416
10417 * alloc.c (gc_sweep): Check cons cell mark bits word by word
10418 and optimize the case where they are all 1.
10419
7a58fb43
GM
104202007-09-23 Johannes Weiner <hannes@saeurebad.de>
10421
3ae2e3a3
RS
10422 * lisp.h (abs): Define if not defined.
10423 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
10424 Don't define `abs', since it's defined in lisp.h.
7a58fb43 10425
78048085
EZ
104262007-09-22 Eli Zaretskii <eliz@gnu.org>
10427
c7a4b95b 10428 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
10429 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
10430 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
10431 (init_tty): Use DEV_TTY instead of "/dev/tty".
10432 [WINDOWSNT]: No need to protect from NAME arg being null.
10433
23d4cba5
DN
104342007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10435
10436 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
10437 up the tty state.
10438
71f44e7a
SM
104392007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10440
10441 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
10442 (gpm_tty): Change its type.
10443 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
10444 (gpm_tty): Change its type and initialize it.
10445 (Fterm_open_connection): Check the frame is indeed a tty.
10446 Use the new gpm_tty.
10447 (Fterm_close_connection): Use the new gpm_tty.
10448 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
10449 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
10450
def7fa34
JB
104512007-09-21 Juanma Barranquero <lekktu@gmail.com>
10452
10453 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
10454 underline_color, to draw strike-through.
10455
d2bb6598
SM
104562007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10457
273f164c
SM
10458 * lisp.h (allocate_terminal): Declare.
10459
ca2d5566
SM
10460 * window.c (candidate_window_p): Consider frames that are being placed
10461 by the user as somewhere between visible and iconified.
10462 (window_loop): Prefer windows on the current frame.
10463 (Fselect_window): Move the use of select-frame to the beginning so we
10464 can just delegate all the work (it'll call us back anyway).
10465
6168122d
SM
10466 * frame.c (Qdisplay_environment_variable):
10467 * frame.h (Qdisplay_environment_variable): Delete.
10468
c51842ec
SM
10469 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10470 of the first arg, since that value may be a union.
10471
d2bb6598
SM
10472 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10473 parameter rather than Qdisplay_environment_variable. If all else
10474 fails, look for DISPLAY in initial-environment.
10475
6f022c19
GM
104762007-09-21 Glenn Morris <rgm@gnu.org>
10477
10478 * Makefile.in (emacstool): Remove target.
f466320b 10479 (lisp, shortlisp): Remove termdev.elc.
6f022c19 10480
ea1bf8c7
GM
104812007-09-21 Markus Triska <markus.triska@gmx.at>
10482
d2bb6598 10483 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 10484
d30a25b3
SM
104852007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10486
db699fc6
SM
10487 * callproc.c (getenv_internal_1): New function.
10488 (getenv_internal): Use it.
10489 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10490
d2bb6598 10491 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
10492 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10493 (Fset_terminal_parameter): Work with dead terminals as well.
10494 (Fmodify_terminal_parameters): Remove.
10495
d30a25b3
SM
10496 * terminal.c (get_terminal): Handle terminals.
10497 Make sure the terminal returned is live.
10498 (create_terminal): Use allocate_terminal.
10499 (mark_terminals): Move to alloc.c.
10500 (delete_terminal): Use terminal->name as liveness status.
10501 NULL out fields after freeing their contents.
10502 Don't deallocate the object.
10503 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10504 rather than an int.
10505 (Fterminal_live_p): Accept non-integer arguments.
10506 (Fterminal_list): Return terminal objects rather than an ints.
10507
10508 * alloc.c (enum mem_type): New member for `terminal' objects.
10509 (allocate_terminal): New function.
d2bb6598
SM
10510 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10511 Handle terminals.
d30a25b3
SM
10512 (mark_terminal): New fun.
10513 (mark_terminals): Move from terminal.c.
10514
10515 * term.c (get_tty_terminal): Don't treat output_initial specially.
10516 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10517 (delete_tty): Use terminal->name as liveness status.
10518
10519 * termhooks.h (struct terminal): Make it into a pseudovector.
10520 Remove `deleted' replaced by checking `name's nullness.
10521
10522 * print.c (print_object): Handle terminals.
10523
10524 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10525 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10526
10527 * frame.c (make_terminal_frame):
10528 * keyboard.c (tty_read_avail_input):
10529 * w32term.c (x_delete_terminal):
10530 * xfns.c (Fx_create_frame, x_create_tip_frame):
10531 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10532
eba25e7c
GM
105332007-09-20 Glenn Morris <rgm@gnu.org>
10534
10535 * process.c (Fmake_network_process): Doc fix.
10536
2a29c3c1
JR
105372007-09-19 Jason Rumney <jasonr@gnu.org>
10538
10539 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10540
880820fe 105412007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
10542
10543 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10544 Fix a C warning regarding variable constness.
10545
10546 * xterm.c (handle_one_xevent): Fix a C warning.
10547
334a1195
JR
105482007-09-18 Jason Rumney <jasonr@gnu.org>
10549
10550 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10551
880820fe 105522007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
10553
10554 * gtkutil.c (gdpy_def): New variable.
10555 (xg_initialize): Initialize gdpy_def.
10556 (xg_display_close): If no other display exists, set gdpy_def to a
10557 new connection.
10558
880820fe 105592007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
10560
10561 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10562 when we have no file name for the icon.
10563 (xg_tool_bar_expose_callback): Remove.
10564 (xg_create_tool_bar): Don't connect expose signal to
10565 xg_tool_bar_expose_callback.
10566 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10567
4d580af2
AS
105682007-09-16 Andreas Schwab <schwab@suse.de>
10569
10570 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10571 values instead of zapping them.
10572
aca946f3
GM
105732007-09-14 Glenn Morris <rgm@gnu.org>
10574
10575 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
10576 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
10577 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
10578 scope and rename to omfib_buffer for clarity.
10579 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
10580
25c460e5
KH
105812007-09-14 Kenichi Handa <handa@m17n.org>
10582
10583 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
10584
09b69f01
JR
105852007-09-13 Jason Rumney <jasonr@gnu.org>
10586
10587 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
10588
10589 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
10590
10591 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
10592 (mac_term_init): Call here instead, passing rif.
10593
442218db
GM
105942007-09-13 Glenn Morris <rgm@gnu.org>
10595
10596 * s/hpux.h: No longer define `static' as nothing.
10597
880820fe 105982007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
10599
10600 * callint.c (Fcall_interactively): Remove unused var `fun'.
10601
1971a872
RF
106022007-09-12 Romain Francoise <romain@orebokech.com>
10603
10604 * window.c (prefer_window_split_horizontally, display_buffer):
10605 Revert 2007-09-08 change.
10606
2d33f506
GM
106072007-09-12 Glenn Morris <rgm@gnu.org>
10608
585474ae 10609 * alloca.c: Remove file.
ca7af97a
GM
10610 * Makefile.in (alloca): Do not undef.
10611 (allocaobj, alloca.o): Remove.
10612 (otherobj): Remove allocaobj.
10613 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10614 * regex.c (C_ALLOCA): Remove all references and code that was only
10615 used when this was defined.
10616 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10617 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
10618 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10619
2d33f506 10620 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
10621
10622 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10623 (menu_grab_callback): All uses changed.
10624
10625 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
10626 (x_reply_selection_request): All uses changed.
2d33f506 10627
18a4a65e
SM
106282007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10629
10630 * lread.c (load_warn_old_style_backquotes): Change message to look
10631 better when it appears in the middle of byte-compiler messages.
10632
47cc8819
DN
106332007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
10634
b7ea0894
DN
10635 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
10636
47cc8819
DN
10637 * xterm.c (x_create_terminal): Add comment.
10638
10639 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
10640
5632bd0f
RS
106412007-09-10 Richard Stallman <rms@gnu.org>
10642
10643 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
10644
880820fe 106452007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 10646
4bca9161
MC
10647 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
10648 (DEFUN): Document `intspec', use it instead of `prompt'.
10649
04724b69
MC
10650 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
10651
8a6d230a
MC
10652 * data.c (Finteractive_form): If the interactive specification starts
10653 with a `(', use it as a Lisp form.
10654
09fbdf6c
MC
10655 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
10656 name and file modes.
10657
ccb5c14f
MC
10658 * callint.c (Fcall_interactively): Comment fixes.
10659
023accd6
SM
106602007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10661
10662 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
10663 and compiled functions.
10664
f26b9544
EZ
106652007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
10666
10667 * window.c (prefer_window_split_horizontally): New variable.
10668 (display_buffer): Consider splitting window horizontally depending
10669 on prefer_window_split_horizontally.
10670
4d395425
EZ
106712007-09-08 Eli Zaretskii <eliz@gnu.org>
10672
97ddc760 10673 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 10674
08c1d235
SM
106752007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10676
179cef48
SM
10677 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
10678
08c1d235
SM
10679 * frame.c (x_set_frame_parameters): Check number is positive before
10680 using XFASTINT.
10681
10682 * window.c (freeze_window_start): Don't presume selected_window holds
10683 a window object.
92f94a12 10684 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 10685
97ddc760 106862007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
10687
10688 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
10689
90ab5c62
SM
106902007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10691
10692 * window.c (Vsplit_window_preferred_function): New var.
10693 (Fdisplay_buffer): Use it.
10694 (syms_of_window): Export, and initialize it.
10695
1ab2cd43
TTN
106962007-09-06 Pixel <pixel@mandriva.com> (tiny change)
10697
10698 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
10699
0b0515bc
GM
107002007-09-06 Glenn Morris <rgm@gnu.org>
10701
57fd5c55 10702 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
10703 * xselect.c (x_reply_selection_request) <cnt>: Move static
10704 variable to file scope.
10705
98594580
SM
107062007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
10707
10708 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
10709 consistent values of selected_frame and selected_window.
10710
0f4c7aef
JR
107112007-09-04 Jason Rumney <jasonr@gnu.org>
10712
10713 * w32console.c (initialize_w32_display): Zero unused hooks.
10714
e4019195
DN
107152007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10716
10717 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
10718 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
10719
bce179b5
JR
107202007-09-04 Jason Rumney <jasonr@gnu.org>
10721
a0236551
JR
10722 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
10723 in w32console.c. Set up input. Remove XXX comments that have been
10724 confirmed as correct.
10725
a4926668
JR
10726 * s/ms-w32.h (MULTI_KBOARD): Define.
10727
953bf0dc
JR
10728 * w32console.c (one_and_only_w32cons): Remove.
10729 (initialize_w32_display): Take terminal argument.
10730
10731 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
10732 initialize_w32_display.
10733 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
10734
bce179b5
JR
10735 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
10736
10737 * keyboard.c (discard_mouse_events): Discard it.
10738 (make_lispy_event): Translate it to a lisp event.
10739 (lispy_wheel_names): Add wheel-left and right events.
10740 (syms_of_keyboard): Enlarge wheel_syms.
10741
10742 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
10743 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
10744
10745 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
10746
10747 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
10748 from WM_MOUSEHWHEEL.
10749 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
10750
10751 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
10752 terminal.
10753
10754 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
10755 keyboard for the terminal.
10756
92cd6a7c
DN
107572007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10758
10759 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
10760 (Vresume_tty_hook): Rename from Vresume_tty_functions.
10761 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
10762 and resume-tty-function to resume-tty-hook.
10763 (Fsuspend_tty, Fresume_tty): Use new names.
10764
880820fe 107652007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
10766
10767 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
10768 if it starts with "n:".
10769
880820fe 107702007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
10771
10772 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
10773
6b8e474c
SM
107742007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10775
92d9c1d4
SM
10776 * frame.h:
10777 * frame.c (Qterm_environment_variable): Remove.
10778 (syms_of_frame): Don't init and staticpro it.
10779
92d9c1d4
SM
10780 * callproc.c (getenv_internal): Remove special case for $TERM.
10781
6b8e474c
SM
10782 * callproc.c (Vinitial_environment): New variable.
10783 (set_initial_environment): Initialize it.
10784 (syms_of_callproc): Declare it.
10785 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
10786 TERM under which a process runs is never related to the TERM in which
10787 Emacs is running.
10788
0f1444e1
DN
107892007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10790
10791 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
10792 * s/darwin.h: ... do it here.
10793
b8866860
SM
107942007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10795
10796 * lisp.h (set_initial_environment): Rename from set_global_environment.
10797
10798 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
10799 removed by mistake on the multi-tty branch.
10800
10801 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
10802 (Fmodify_frame_parameters): Return a value.
10803
10804 * image.c (png_load): Comment-out var only used in commented-out code.
10805
10806 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
10807 before passing it to mark_object.
10808
10809 * xfaces.c (internal_resolve_face_name): Return a value.
10810 (internal_resolve_face_name, resolve_face_name_error): Comment out.
10811
10812 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
10813 (x_icon): Comment-out var only used in commented-out code.
10814
0a42be6d
RF
108152007-08-29 Romain Francoise <romain@orebokech.com>
10816
10817 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
10818 QUIT hasn't been provided.
10819
8d9cc0b7
MB
108202007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10821
10822 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 10823 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
10824 (set_initial_environment): Initialise Vprocess_environment.
10825
10826 * config.in: Disable multi-keyboard support on a mac.
10827
10828 * frame.c (Qterm_environment_variable)
10829 (Qdisplay_environment_variable): New variables.
10830 (syms_of_frame): Intern and staticpro them.
10831 (Fmake_terminal_frame): Disable output method test.
10832
10833 * frame.h: Declare them here.
10834
10835 * macfns.c (x_set_mouse_color): Get rif from the frame.
10836 (x_set_tool_bar_lines): Don't use updating_frame.
10837 (mac_window): Add 2 new parameters for consistency with other systems.
10838 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
10839 frame parameters following what is done in X11 and w32. Don't use
10840 FRAME_MAC_DISPLAY_INFO.
10841 (Fx_open_connection, start_hourglass): Remove window-system check.
10842 (x_create_tip_frame): Get the keyboard from the terminal.
10843
10844 * macmenu.c: Reorder includes.
10845 (Fx_popup_menu): Use terminal specific mouse_position_hook.
10846
10847 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
10848 terminal parameter.
10849 (x_clear_frame): Add a frame parameter.
10850 (note_mouse_movement): Get rif from the frame.
10851 (mac_term_init): Initialize the terminal.
10852 (mac_initialize): Make static and move terminal initialization ...
10853 (mac_create_terminal): ... to this new function.
10854
10855 * macterm.h (struct mac_display_info): Add terminal.
7196c970 10856 (mac_initialize): Delete declaration.
8d9cc0b7 10857
381864b2 10858 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
10859
10860 * sysdep.c: Comment out text after #endif.
10861
10862 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
10863 is defined. Better initialize ttys in windows. Use terminal
10864 specific mouse_position_hook.
10865
10866 * termhooks.h (union display_info): Add mac_display_info.
10867
b8866860
SM
10868 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
10869 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
10870 frame parameters following what is done in X11.
10871
10872 * w32term.c (w32_initialize): Make static.
10873
10874 * xselect.c (x_handle_selection_clear): Only access
10875 terminal->kboard when MULTI_KBOARD is defined.
10876
10877 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
10878 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
10879
108802007-08-29 Jason Rumney <jasonr@gnu.org>
10881
10882 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
10883 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
10884
10885 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
10886 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
10887
10888 * keyboard.c (restore_kboard_configuration): Only define when
10889 MULTI_KBOARD defined.
10890
35277b03 10891 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
10892 (OBJ1): Add terminal.$(O)
10893
b8866860
SM
10894 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
10895 Don't define function body.
8d9cc0b7
MB
10896 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
10897
10898 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
10899
10900 * w32.c (request_sigio, unrequest_sigio): Remove.
10901
10902 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
10903 (w32con_clear_frame, w32con_clear_end_of_line)
10904 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
10905 (w32con_delete_glyphs, w32con_set_terminal_window)
10906 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
10907 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
10908 Add terminal arg.
8d9cc0b7
MB
10909 (PICK_FRAME): Remove.
10910 (w32con_write_glyphs): Use frame specific terminal coding.
10911 (one_and_only_w32cons): New global variable.
10912 (initialize_w32_display): Use it for storing hooks.
10913 (create_w32cons_output): New function.
10914
10915 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
10916 arg a frame.
10917
b8866860
SM
10918 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
10919 Set window_system.
8d9cc0b7
MB
10920 (x_set_tool_bar_lines): Don't use updating_frame.
10921 (Fx_create_frame): Set terminal and ref count.
10922 (Fx_open_connection): Remove window-system check.
10923
10924 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
10925
10926 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
10927 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
10928 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
10929 Add frame arg.
10930 (x_delete_terminal, w32_create_terminal): New functions.
10931 (w32_term_init): Create a terminal.
10932 (w32_initialize): Move terminal specific initialization to
10933 w32_create_terminal.
10934
b8866860 10935 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
10936 (w32_clear_rect, w32_clear_area): Use background from frame.
10937 (w32_display_info): Add terminal.
10938 (w32_sys_ring_bell, x_delete_display): Declare here.
10939
10940 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
10941
10942 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
10943
109442007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
10945
10946 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
10947 Fix get_named_tty calls for the controlling tty.
10948
109492007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
10950
10951 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
10952
109532007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
10954
10955 * term.c (tty_insert_glyphs): Add missing first parameter.
10956
880820fe 109572007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 10958
b8866860
SM
10959 * buffer.c (Fbuffer_list, Fbury_buffer):
10960 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
10961
10962 * cm.c (current_tty): New variable, for cmputc().
10963 (cmputc): Use it.
10964 (cmcheckmagic): Add tty parameter, look up terminal streams there.
10965 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
10966 (cmgoto): Add tty parameter. Pass it on to calccost().
10967 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
10968
10969 * cm.h (emacs_tputs): New macro to set current_tty, and then call
10970 tputs().
10971 (current_tty): New variable, for cmputc().
10972 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
10973
10974 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
10975 (internal_condition_case, internal_condition_case_1)
10976 (internal_condition_case_2): Don't abort when x_catching_errors.
10977
10978 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
10979 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
10980 prevent crashes caused by bogus longjmps in read_char.
10981
10982 * keymap.h (Fset_keymap_parent): Add EXFUN.
10983
10984 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
10985 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10986 Remove redundant definition.
10987
b8866860
SM
10988 * macfns.c (x_set_mouse_color, x_make_gc):
10989 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 10990
b8866860
SM
10991 * w32term.c (x_free_frame_resources):
10992 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10993 (w32_initialize): Use the accessor macros for terminal characteristics.
10994
10995 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
10996 Use the accessor macros for terminal characteristics.
10997 * msdos.c (internal_terminal_init): Use the accessor macros for
10998 terminal characteristics.
b8866860
SM
10999 (ScreenVisualBell, internal_terminal_init):
11000 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11001
11002 * termopts.h (no_redraw_on_reenter): Declare.
11003
11004 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 11005 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 11006 (Fgarbage_collect): Call them.
03f06e5c 11007 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
11008
11009 * prefix-args.c: Include stdlib.h for exit.
11010
11011 * syssignal.h: Add comment.
11012
11013 * indent.c: Include stdio.h.
11014
11015 * window.h (Vinitial_window_system): Declare.
11016 (Vwindow_system): Delete declaration.
11017
11018 * fontset.c (Finternal_char_font): Use FRAME_RIF.
11019
11020 * image.c (lookup_image): Don't initialize `c' until the xasserts
11021 have been run.
11022
11023 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
11024 FRAME_FOREGROUND_PIXEL.
11025
11026 * print.c (print_preprocess): Don't lose print_depth levels while
11027 iterating.
11028
b8866860
SM
11029 * widget.c (update_from_various_frame_slots):
11030 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11031
11032 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
11033 frames.
11034 (window_internal_height): Remove bogus make_number call.
b8866860 11035 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
11036
11037 * fileio.c (Fread_file_name): Update comment.
11038
b8866860
SM
11039 * callint.c (Fcall_interactively):
11040 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
11041 Make sure it is correctly unwound.
11042
11043 * xsmfns.c (x_session_close): New function.
11044
03f06e5c 11045 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
11046 Delete declarations.
11047
11048 * xterm.h: Remove declaration for x_fully_uncatch_errors.
11049 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 11050 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 11051 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
11052
11053 * lread.c: Include setjmp.h. Update declaration of `read_char'.
11054 (read_filtered_event): Call `read_char' with a local
11055 `wrong_kboard_jmpbuf'.
11056
b8866860
SM
11057 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
11058 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
11059
11060 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
11061 systems.
11062
b8866860 11063 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 11064 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 11065 (Fset_quit_char): EXFUN.
03f06e5c 11066 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
11067 (init_sys_modes, reset_sys_modes): Update prototypes.
11068 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
11069
b8866860
SM
11070 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
11071 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 11072 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 11073 Delete declarations.
03f06e5c
JB
11074 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
11075 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
11076 New declarations.
11077
11078 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
11079 already does that during init_display(). Call syms_of_keymap
b8866860
SM
11080 before syms_of_keyboard. Call `syms_of_terminal'.
11081 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
11082 (shut_down_emacs): Call reset_all_sys_modes() instead of
11083 reset_sys_modes().
11084
11085 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
11086 (internal_resolve_face_name, resolve_face_name_error): New functions.
11087 (resolve_face_name): Protect against loops and errors thrown by Fget.
11088 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
11089 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
11090
11091 * scroll.c: Replace CURTTY() with local variables throughout the
11092 file (where applicable).
11093 (calculate_scrolling, calculate_direct_scrolling)
11094 (scrolling_1, scroll_cost): Use the accessor macros for terminal
11095 characteristics.
11096
11097 * keymap.c (Vfunction_key_map): Remove.
b8866860 11098 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
11099 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
11100 (Vkey_translation_map): Remove.
11101 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 11102 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
11103 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
11104 Update for terminal-local key-translation-map.
11105
11106 * Makefile.in (callproc.o): Update dependencies.
11107 (lisp, shortlisp): Add termdev.elc.
11108 (obj): Add terminal.o.
11109 (terminal.o): Add dependencies.
11110 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
11111 (data.o, fns.o): Add termhooks.h dependency.
11112 (SOME_MACHINE_LISP): Add dnd.elc.
11113 (minibuf.o): Fix typo.
11114 Update dependencies.
11115
11116 * data.c (do_symval_forwarding, store_symval_forwarding)
11117 (find_symbol_value): Use the selected frame's keyboard, not
11118 current_kboard.
11119
11120 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
11121 Vwindow_system.
11122
11123 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
11124 Fmenu_bar_open.
11125 (syms_of_xmenu): Update defsubr.
11126 (mouse_position_for_popup, Fx_popup_menu)
11127 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
11128 (set_frame_menubar, free_frame_menubar)
11129 (create_and_show_popup_menu, xmenu_show, )
11130 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
11131 an X frame.
11132
11133 * xselect.c (x_own_selection): Abort if not an X frame.
11134 (some_frame_on_display): Check if it is an X frame.
11135 (x_handle_selection_clear): Deal with MULTI_KBOARD.
11136
11137 * coding.c: Include frame.h and termhooks.h.
03f06e5c 11138 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
11139 (Fset_terminal_coding_system_internal)
11140 (Fset_keyboard_coding_system_internal)
11141 (Fkeyboard_coding_system)
03f06e5c
JB
11142 (Fterminal_coding_system): Add a terminal parameter.
11143 Get terminal_coding from the terminal.
8d9cc0b7
MB
11144 (init_coding_once): Don't call setup_coding_system here.
11145
11146 * dispextern.h (set_scroll_region, turn_off_insert)
11147 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
11148 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 11149 (delete_tty, updating_frame)
8d9cc0b7
MB
11150 (produce_special_glyphs, produce_glyphs, write_glyphs)
11151 (insert_glyphs): Remove.
11152 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 11153 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 11154 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
11155
11156 * frame.h (enum output_method): Add output_initial.
11157 (struct x_output): Delete.
b8866860
SM
11158 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
11159 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
11160 (tty_display): Delete.
11161 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 11162 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
11163 (union output_data): Add tty.
11164 (FRAME_KBOARD): Get the kboard from the terminal.
11165 (FRAME_INITIAL_P): New macro.
11166 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
11167 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
11168 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
11169 New declarations.
8d9cc0b7
MB
11170
11171 * termchar.h (tty_output, tty_display_info): New structures.
11172 (tty_list): Declare.
11173 (FRAME_TTY, CURTTY): New macros.
11174 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
11175 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
11176 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
11177 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
11178
11179 * callproc.c: Include frame.h and termhooks.h, for terminal
11180 parameters.
11181 (add_env): New function.
11182 (child_setup): Use it.
b8866860 11183 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
11184 (getenv_internal): Fix get_terminal_param call.
11185 (Fgetenv_internal, egetenv): Update doc.
11186 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 11187 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
11188 strings.
11189 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
11190 (getenv_internal): Add terminal parameter.
11191 Handle Vlocal_environment_variables.
8d9cc0b7
MB
11192 (Fgetenv_internal): Add terminal parameter.
11193 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 11194 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
11195 (set_initial_environment): Rename from set_global_environment.
11196 Store Emacs environment in initial frame parameter.
11197
11198 * xdisp.c (redisplay_internal): Update references to
11199 `previous_terminal_frame'.
11200 (display_mode_line, Fformat_mode_line): Replace calls to
11201 `push_frame_kboard' with `push_kboard'.
11202 (get_glyph_string_clip_rects): Add extra parentheses and
11203 braces to prevent compiler warnings.
11204 (calc_pixel_width_or_height): Add xassert to check that the
11205 frame is alive. Don't call `lookup_image' on a termcap frame.
11206 (message2_nolog, message3_nolog, redisplay_internal)
11207 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
11208 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
11209 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
11210 (Fx_display_pixel_width, Fx_display_pixel_height)
11211 (Fx_display_planes, Fx_display_color_cells)
11212 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
11213 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
11214 (Fx_display_backing_store, Fx_display_visual_class)
11215 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 11216 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
11217
11218 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
11219 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
11220 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
11221 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
11222 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
11223 terminal that is being deleted.
11224 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 11225 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
11226 (Fx_close_connection, Fx_synchronize): Unify argument names with
11227 the rest of the DEFUNs.
11228
11229 * dispnew.c (Fsend_string_to_terminal): Update call to
11230 `get_tty_terminal'.
11231 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 11232 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
11233 FRAME_TERMCAP_P and FRAME_TTY.
11234 (window_change_signal): Don't believe width/height values that are
11235 impossibly small.
11236 (Vinitial_window_system): Rename from Vwindow_system.
11237 (termscript, Wcm, rif): Delete.
11238
11239 * termhooks.h (struct terminal): New struct containing the
11240 previously global text display hooks and new members NAME,
11241 DELETED and PARAM_ALIST.
11242 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
11243 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
11244 (FRAME_RIF): New macros.
11245 (get_terminal_param, get_device): New declarations.
11246 (termscript): Delete declaration.
11247
11248 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
11249 (XTflash, x_free_frame_resources, x_scroll_bar_create)
11250 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
11251 FRAME_FOREGROUND_PIXEL.
11252 (x_fully_uncatch_errors): Disable definition.
11253 (x_scroll_bar_expose): Fix reference to foreground pixel.
11254 (XTread_socket): Disable loop on all X displays.
11255 (x_delete_terminal): Don't set terminal->deleted and let
11256 delete_terminal delete the frames on the terminal.
11257 (x_delete_display): Doc update to reflect changes in
11258 delete_terminal.
11259 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
11260 (deleting_tty): Remove old variable.
11261 (Fsuspend_tty): Call clear_tty_hooks.
11262 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
11263 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
11264 errors on X frames.
11265 (x_catch_errors_unwind): Abort if x_error_message is NULL.
11266 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 11267 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
11268 (XTset_terminal_modes, XTreset_terminal_modes)
11269 (XTread_socket, x_connection_closed, x_term_init)
11270 (x_term_init, x_delete_display): Add terminal parameter.
11271 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
11272 X connections.
11273
bf380f53
GM
11274 * frame.c: Include termchar.h.
11275 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
11276 (Qwindow_system, Qenvironment, Qterm_environment_variable)
11277 (Qdisplay_environment_variable): New vars.
11278 (Fframep): Deal with output_initial.
11279 (Fframe-live-p): Doc fix.
11280 (Fwindow-system): New function.
8d9cc0b7
MB
11281 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
11282 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 11283 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 11284 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
11285 (Fmake_terminal_frame): Handle NULL tty names correctly.
11286 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
11287 (Fdelete_frame): Remove unused variable `count'. Don't allow other
11288 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 11289 (Fframe_with_environment): New function.
b8866860 11290 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
11291 (get_future_frame_param): New function.
11292 (Fmake_terminal_frame): Use it.
2d33f506 11293 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
11294
11295 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11296 * sysdep.c (reset_sys_modes): Update for renames.
11297
11298 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 11299 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
11300 (syms_of_keyboard): Defsubr them.
11301 (Fset_input_meta_mode, Fset_quit_char): New functions.
11302 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
11303 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11304 parameter. Use it in call to `read_char'.
b8866860
SM
11305 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11306 Set wrong_kboard_jmpbuf correctly in recursive calls.
11307 Use current_kboard to access Vkeyboard_translate_table.
11308 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11309 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11310 Update longjmp invocations. Remember the original current_kboard,
11311 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11312 changes it. Comment out unnecessary calls to
11313 `record_single_kboard_state' and `any_kboard_state'.
11314 Update recursive calls.
8d9cc0b7
MB
11315 (wrong_kboard_jmpbuf): Remove global variable.
11316 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11317 Handle deleted interrupted_kboards correctly; that is a legal
11318 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 11319 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
11320 (any_kboard_state, single_kboard_state)
11321 (push_frame_kboard): Remove function.
11322 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
11323 been deleted. Remove unused variable. Help debugging by not
11324 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
11325 kboard of the selected frame when the stored kboard object has
11326 been deleted before pop_kboard.
11327 (temporarily_switch_to_single_kboard): Change first parameter to a
11328 frame pointer. Throw an error when caller wants to change kboards
11329 while in single_kboard mode. Don't push_kboard if we weren't in
11330 single kboard state. Don't pop_kboard if we popped into any
11331 kboard state.
11332 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 11333 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
11334 up single_kboard mode.
11335 (Frecursive_edit): Switch to single_kboard mode only in nested
11336 command loops.
b8866860
SM
11337 (cmd_error, command_loop, command_loop_1, timer_check):
11338 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
11339 `record_single_kboard_state'.
11340 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 11341 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
11342 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11343 `fatal_error_signal'.
11344 (record_single_kboard_state): Don't push_kboard if we weren't in
11345 single kboard state. Don't pop_kboard if we popped into any
11346 kboard state.
11347 (push_frame_kboard): Rename to push_kboard.
11348 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11349 (read_avail_input): Read input from all terminals.
11350 (mark_kboards): Also mark Vkeyboard_translate_table.
11351 (kbd_buffer_store_event_hold): Simplify condition.
11352 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11353 (Vkeyboard_translate_table): Move to struct kboard.
11354 (init_kboard): Initialize Vkeyboard_translate_table.
11355 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11356 Vkeyboard_translate_table. Update doc strings. Update docs of
11357 local-function-key-map and function-key-map.
11358
11359 * terminal.c: New file.
11360
11361 * term.c: Include errno.h.
11362 (Vring_bell_function, device_list, initial_device)
11363 (next_device_id, ring_bell, update_begin, update_end)
11364 (set_terminal_window, cursor_to, raw_cursor_to)
11365 (clear_to_end, clear_frame, clear_end_of_line)
11366 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11367 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11368 (syms_of_term): Move their initialization to terminal.c.
11369 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11370 (Ftty_display_color_cells)
11371 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 11372 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
11373 (init_tty, maybe_fatal): New functions.
11374 (Ftty_type): Return nil if terminal is not on a tty instead of
11375 throwing an error. Doc update.
11376 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 11377 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
11378 (delete_tty): Use terminal->deleted.
11379 (tty_set_terminal_modes): Rename from set_terminal_modes.
11380 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11381 (set_scroll_region): Rename to `tty_set_scroll_region'.
11382 (turn_on_insert): Rename to `tty_turn_on_insert'.
11383 (turn_off_insert): Rename to `tty_turn_off_insert'.
11384 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11385 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11386 (toggle_highligh): Rename to `tty_toggle_highlight'.
11387 (background_highlight): Rename to `tty_background_highlight'.
11388 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
11389 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
11390 (tty_set_scroll_region, tty_background_highlight)
11391 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
11392 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
11393 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
11394 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
11395 Add static modifier.
11396 (tty_reset_terminal_modes, tty_set_terminal_window)
11397 (tty_set_scroll_region, tty_background_highlight)
11398 (tty_highlight_if_desired, tty_cursor_to)
11399 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
11400 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
11401 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
11402 renames.
11403
880820fe 114042007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
11405
11406 * keyboard.c: Qrtl is new.
11407 (parse_tool_bar_item): Handle :rtl keyword.
11408 (syms_of_keyboard): Intern :rtl keyword.
11409
11410 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
11411
11412 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
11413 so no Lisp code is executed.
11414 (file_for_image, find_rtl_image): New functions.
1f204af3 11415 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
11416 (update_frame_tool_bar): If direction is RTL, use RTL image if
11417 defined. Use Gtk stock images if defined.
11418
83cc8d35
YM
114192007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11420
11421 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
11422 for nonexistent or zero-width glyph in composition glyph.
11423
e60c4e15
SM
114242007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
11425
d7e2a28f
SM
11426 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
11427
e60c4e15
SM
11428 * xdisp.c (Finvisible_p): New function.
11429 (syms_of_xdisp): defsubr it.
11430
ee163e6d
JB
114312007-08-24 Juanma Barranquero <lekktu@gmail.com>
11432
11433 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
11434 Doc fixes.
11435
90fa408d
YM
114362007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11437
35277b03 11438 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 11439
cac4219c
MR
114402007-08-24 Martin Rudalics <rudalics@gmx.at>
11441
11442 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
11443 whether decoding has modified buffer contents.
11444
5fc9fdeb
JR
114452007-08-24 Jason Rumney <jasonr@gnu.org>
11446
11447 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
11448 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
11449 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
11450 (init_svg_functions) [HAVE_NTGUI]: New function.
11451 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
11452 (svg_load_image): Use them.
11453 (svg_load_image) [HAVE_NTGUI]: Implement background.
11454
93b23406
YM
114552007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11456
11457 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
11458 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
11459 (LIBX): Remove @RSVG_LIBS@.
11460 (LIBES): Add $(RSVG_LIBS).
11461
11462 * image.c (svg_load_image): Blend with specified background if exists.
11463 Use IMAGE_BACKGROUND. Add Mac OS Support.
11464
11465 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
11466 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
11467 Remove macros.
11468 [MAC_OSX] (socket_callback): Do nothing.
11469 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11470 ReceiveNextEvent.
11471 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11472 socket_callback.
11473 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11474
2467875c
GM
114752007-08-22 Glenn Morris <rgm@gnu.org>
11476
ff8da443 11477 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 11478
4ab27a43
GM
114792007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11480
11481 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 11482
666e0eda
GM
11483 * image.c: Add support for SVG images. Some additional comments
11484 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11485 (svg_image_p): New function to test for SVG image.
11486 (svg_load): New function to load SVG image.
11487 (svg_load_image): New function, helper for svg_load.
11488 (Qsvg): New Lisp_object.
11489 (svg_keyword_index): New enum.
11490 (svg_format): New static `image_keyword' struct.
11491 (svg_type): New static `image_type' struct.
11492 (librsvg/rsvg.h): Include it.
4ab27a43 11493
b636b4c1
SM
114942007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11495
11496 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11497
9ecb827b
SM
114982007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11499
1d064697
SM
11500 * lread.c (Qold_style_backquotes): New var.
11501 (syms_of_lread): Init and staticpro it.
11502 (load_warn_old_style_backquotes): New fun.
11503 (Fload): Use them to warn about old style backquotes.
11504 (end_of_file_error, Fload): Remove unused vars.
11505
5772ed4b
SM
11506 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11507
9ecb827b 11508 * lread.c (Vold_style_backquotes): New var.
5aa273b0 11509 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
11510 (read1): Set it when we find an old-style (back)quote.
11511
32e1c7b1
JR
115122007-08-22 Jason Rumney <jasonr@gnu.org>
11513
11514 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11515
b8fa755b
KY
115162007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11517
11518 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11519
1283140e
RS
115202007-08-19 Richard Stallman <rms@gnu.org>
11521
11522 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11523
2c4685ee
AS
115242007-08-19 Andreas Schwab <schwab@suse.de>
11525
11526 * alloc.c (pure): Round PURESIZE up.
11527
880820fe 115282007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
11529
11530 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11531 active frame.
11532
6e33efc4
RS
115332007-08-16 Richard Stallman <rms@gnu.org>
11534
11535 * eval.c (Fcommandp): Add parens to clarify.
11536
11537 * minibuf.c (Fall_completions): Use enum for type of table.
11538
11539 * emacs.c (USAGE2): Improve text.
11540
fcf8ff2e
GM
115412007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11542
5205ee62
GM
11543 * term.c (tty_default_color_capabilities): Declare static
11544 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 11545
880820fe 115462007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
11547
11548 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11549 to gtk_toolbar_insert.
11550
4a181359
SM
115512007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11552
1bc99c9c
SM
11553 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11554
4a181359
SM
11555 * insdel.c (reset_var_on_error): New fun.
11556 (signal_before_change, signal_after_change):
11557 Use it to reset (after|before)-change-functions to nil in case of error.
11558 Bind inhibit-modification-hooks to t.
11559 Don't bind (after|before)-change-functions to nil while they run.
11560
6c28435c
YM
115612007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11562
11563 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11564 filling pixmap with stippled background.
11565
ad3b3e02
YM
115662007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11567
11568 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11569 Don't use invisible frame as parent window for repositioning.
11570
a22dec27
SM
115712007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11572
11573 * print.c (new_backquote_output): Rename from old_backquote_output.
11574 (print): Inverse its logic (according to its name) so as to match the
11575 behavior of new_backquote_flag in lread.c.
11576
7b7d07bb
YM
115772007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11578
11579 * gmalloc.c (posix_memalign): New function.
11580
11581 * macterm.c (frame_highlight, frame_unhighlight): Don't call
11582 ActivateControl/DeactivateControl here.
11583 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
11584 frame-notice-user-settings is non-nil.
11585 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
11586 for kEventParamFMFontStyle.
11587 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
11588 mac_pass_command_to_system and mac_pass_control_to_system here.
11589 (XTread_socket): Call ActivateControl/DeactivateControl here.
11590 (XTread_socket) [TARGET_API_MAC_CARBON]:
11591 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
11592 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
11593 for window repositioning.
7b7d07bb 11594
22e9fe24
GM
115952007-08-08 Glenn Morris <rgm@gnu.org>
11596
11597 * Replace `iff' in doc-strings and comments.
11598
ae494350
CY
115992007-08-07 Chong Yidong <cyd@stupidchicken.com>
11600
11601 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11602
6f2528d8
MR
116032007-08-07 Martin Rudalics <rudalics@gmx.at>
11604
11605 * fileio.c (Finsert_file_contents): Run format-decode and
11606 after_insert_file_functions on entire buffer when REPLACE is
11607 non-nil and inhibit modification_hooks and point_motion_hooks.
11608 For consistency, run after_insert_file_functions iff something
11609 got inserted. Move signal_after_change and update_compositions
11610 after code running after_insert_file_functions. Make sure that
6b8e474c 11611 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 11612
3ceeb306
YM
116132007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11614
11615 * emacs.c (main)
11616 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11617 Call malloc_enable_thread on interactive startup.
11618
11619 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
11620 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11621 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
11622 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11623 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11624 New functions.
11625
ca5e6fd5
CY
116262007-08-06 Chong Yidong <cyd@stupidchicken.com>
11627
32bfce5d
CY
11628 * xdisp.c (redisplay_window): When restoring original buffer
11629 position, make sure it is still valid.
11630
ca5e6fd5
CY
11631 * image.c (png_load): Ignore png-supplied background color.
11632
a5b11587
YM
116332007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11634
11635 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
11636 Use kCFAbsoluteTimeIntervalSince1970.
11637
11638 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
11639 New variable.
11640 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
11641 event loop should be quit.
11642 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
11643 Quit dialog event loop if quit_dialog_event_loop is set.
11644
11645 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
11646 (Selection): New typedef. Use instead of ScrapRef.
11647 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
11648 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
11649 (mac_clear_selection): Rename from clear_scrap.
11650 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 11651 scrap_has_target_type. All uses changed.
a5b11587
YM
11652 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11653 (mac_selection_has_target_p): New functions.
11654 (mac_put_selection_value): Rename from put_scrap_string.
11655 (mac_get_selection_value): Rename from get_scrap_string.
11656 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
11657 (put_scrap_private_timestamp, scrap_has_target_type)
11658 (get_scrap_private_timestamp): Remove functions.
11659 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
11660 (x_own_selection, x_get_local_selection):
11661 Use mac_valid_selection_value_p.
11662 (x_own_selection): Don't use put_scrap_private_timestamp.
11663 Record OWNERSHIP-INFO into Vselection_alist instead.
11664 (x_get_local_selection): Don't check type if request is local.
11665 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
11666 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
11667
880820fe 116682007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
11669
11670 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
11671 add comment explaining why.
11672
73ff9d42
RS
116732007-08-03 Richard Stallman <rms@gnu.org>
11674
11675 * fileio.c (Fvisited_file_modtime): Use make_time.
11676
54ed9a2d 116772007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
11678
11679 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
11680 build.
11681
65a9c8e2
SM
116822007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
11683
11684 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
11685
c5925799
KY
116862007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
11687
11688 * puresize.h (BASE_PURESIZE): Increase to 1130000.
11689
adef3de7
RS
116902007-07-30 Richard Stallman <rms@gnu.org>
11691
11692 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
11693
880820fe 116942007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
11695
11696 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
11697
a10421a1
NR
116982007-07-28 Nick Roberts <nickrob@snap.net.nz>
11699
11700 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
11701 remote default-directory.
11702
11703 * buffer.c (mode-line-format): Update doc string.
11704
0cb1ae20
YM
117052007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11706
11707 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
11708 scroll bar gap.
11709 (x_scroll_bar_create): Set bar->fringe_extended_p.
11710 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
11711 on frame edge. Check fringe background extension. Don't clear
11712 extended fringe background area.
11713
11714 * w32term.h (struct scroll_bar): New member fringe_extended_p.
11715 (w32_fill_area): Enclose multiple statements with do ... while (0).
11716
11717 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
11718 Extend fringe background to scroll bar gap.
11719 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
11720 Set bar->fringe_extended_p.
11721 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11722 Put leftmost/rightmost scroll bars on frame edge. Check fringe
11723 background extension. Don't clear extended fringe background area.
11724
11725 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11726 New member fringe_extended_p.
11727
cacc7b51
GM
117282007-07-25 Glenn Morris <rgm@gnu.org>
11729
11730 * Relicense all FSF files to GPLv3 or later.
11731
11732 * COPYING: Switch to GPLv3.
11733
89835619
SM
117342007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
11735
c4f46926
SM
11736 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
11737
11738 * data.c (Finteractive_form): Check for the presence of an
11739 `interactive-form' symbol property more thoroughly.
11740
11741 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
11742 present, analogous to the function-documentation property.
11743
ee04257d
JR
117442007-07-24 Jason Rumney <jasonr@gnu.org>
11745
11746 * w32fns.c (x_real_positions): Get real position from OS instead of
11747 calculating it.
11748
50624218
JR
117492007-07-23 Jason Rumney <jasonr@gnu.org>
11750
11751 * filelock.c (current_lock_owner): Allow for @ sign in username.
11752
3650f60e
NR
117532007-07-22 Nick Roberts <nickrob@snap.net.nz>
11754
11755 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
11756 remote default-directory.
11757
11758 * buffer.c (mode-line-format): Describe above case in doc string.
11759
1e899515 117602007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 11761
75be5258
EZ
11762 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
11763 Define if not defined.
11764
2b6e2f4d
JR
117652007-07-18 Jason Rumney <jasonr@gnu.org>
11766
11767 * w32proc.c (w32_executable_type): Handle 64 bit executables.
11768
23dacf80
JB
117692007-07-18 Richard Stallman <rms@gnu.org>
11770
11771 * data.c (Fsetq_default): Doc fix.
11772
11773 * eval.c (Fsetq): Doc fix.
11774
117752007-07-18 Juanma Barranquero <lekktu@gmail.com>
11776
11777 * coding.c (Ffind_operation_coding_system):
11778 * eval.c (For, Fand): Doc fixes.
880820fe 11779 Reported by Johan Bockgård.
23dacf80 11780
880820fe 117812007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 11782
23dacf80 11783 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 11784
23dacf80 11785 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
11786
11787 * xterm.c (x_ewmh_activate_frame): New function.
11788 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
11789
71ec17e6
MR
117902007-07-17 Martin Rudalics <rudalics@gmx.at>
11791
11792 * window.c (Fdisplay_buffer): If largest or LRU window is the
11793 only window, split it even if it is not eligible for splitting.
11794 This restores the original behavior broken by the 2007-07-15
11795 change.
11796
e9818042
GM
117972007-07-17 Glenn Morris <rgm@gnu.org>
11798
11799 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
11800 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11801 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
11802 constituents. Doc fix.
11803
e6fca843
SM
118042007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11805
11806 * process.c (Fstart_process, Fmake_network_process)
11807 (read_process_output): Fix up last changes.
11808
b5d2b4ab
EZ
118092007-07-16 Eli Zaretskii <eliz@gnu.org>
11810
11811 * makefile.w32-in (clean): Don't delete *~.
11812
413a79ad
AS
118132007-07-16 Andreas Schwab <schwab@suse.de>
11814
11815 * window.c (Fdisplay_buffer): Use NILP.
11816 (Fset_window_scroll_bars): Likewise.
11817
f1de8c77
MR
118182007-07-15 Martin Rudalics <rudalics@gmx.at>
11819
11820 * window.c (window_min_size_2): New function.
11821 (window_min_size_1, size_window, Fdisplay_buffer)
11822 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
11823 windows without mode- or header-lines when window-min-height is
11824 too small.
11825 (size_window): Reset nodelete_p after testing it, following an
11826 earlier note by Kim F. Storm.
11827 (display_buffer): Do not set split_height_threshold to twice the
11828 value of window_min_height to avoid changing the value of a
11829 customizable variable. Rather explicitly check whether the
11830 height of the window that shall be splitted is at least as large
11831 as split_height_threshold.
1af74d06
MB
11832 (Fwindow_full_width_p): New defun.
11833 (syms_of_window): Defsubr it.
d31053f9 11834
1af74d06 11835 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 11836
5e1ab613
JR
118372007-07-14 Jason Rumney <jasonr@gnu.org>
11838
11839 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
11840
f01cbfdd
RS
118412007-07-14 Richard Stallman <rms@gnu.org>
11842
11843 * eval.c (maybe_call_debugger): New function.
11844 (find_handler_clause): Use maybe_call_debugger.
11845 Call it when the handler says `debug'.
11846 Eliminate DEBUGGER_VALUE_PTR.
11847 (Fsignal): Eliminate debugger_value.
11848 (Qdebug): New variable.
11849 (syms_of_eval): Initialize it.
11850
1bab435a
JB
118512007-07-14 Juanma Barranquero <lekktu@gmail.com>
11852
11853 * eval.c (Fprogn):
11854 * keyboard.c (Ftrack_mouse):
11855 * print.c (Fwith_output_to_temp_buffer):
11856 * window.c (Fsave_window_excursion): Doc fix.
11857
be436d23
SM
118582007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
11859
11860 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
11861
60f0fb11
SM
118622007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
11863
11864 * process.h (struct Lisp_Process): Turn slots infd, outfd,
11865 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
11866 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
11867 read_output_delay, and read_output_skip from Lisp_Objects to ints.
11868 Remove unused encoding_carryover.
11869 * process.c: Adjust all functions accordingly.
11870
d8b18043
RS
118712007-07-12 Richard Stallman <rms@gnu.org>
11872
11873 * term.c: Include unistd.h only if HAVE_UNISTD_H.
11874
d5781bb6
JR
118752007-07-11 Jason Rumney <jasonr@gnu.org>
11876
11877 * makefile.w32-in (LIBS): Include OLE32.
11878
11879 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
11880 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
11881
5bb7dfee
SM
118822007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
11883
11884 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
11885 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
11886 from a Lisp_Object into a bare pointer.
11887 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11888 Adjust the code correspondingly.
11889
11890 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
11891
11892 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
11893 (term_show_mouse_face): Remove unused var `j'.
11894 (handle_one_term_event): Remove unused vars `i' and `j'.
11895 Don't cast return value of ttyname since it's not necessary.
11896
a1be1ce8
SM
118972007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
11898
5045e68e
SM
11899 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
11900 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
11901
8071c00f
SM
11902 * fns.c (map_char_table): Use an array of int for `indices' rather than
11903 an array of Lisp_Objects (which are only ever integers anyway).
11904 (Fmap_char_table): Update caller.
11905 * lisp.h: Update prototype.
11906 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
11907 * fontset.c (Ffontset_info):
11908 * casetab.c (set_case_table): Update callers.
11909
11910 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
11911
fab84e3c
SM
11912 * keymap.c (struct accessible_keymaps_data)
11913 (struct where_is_internal_data): New structures.
11914 (accessible_keymaps_1, where_is_internal_1): Use them to change
11915 interface to adhere to the one used by map_keymap.
11916 (Faccessible_keymaps, where_is_internal): Use map_keymap.
11917 (accessible_keymaps_char_table, where_is_internal_2): Remove.
11918
a1be1ce8
SM
11919 * keymap.h (map_keymap_function_t): More informative prototype.
11920
ef887810
RS
119212007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
11922
11923 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
11924 (looking_at_1): Don't change search_regs and last_thing_searched
11925 if `inhibit-changing-match-data' is non-nil.
11926 (string_match_1, search_buffer, set_search_regs): Likewise.
11927 (syms_of_search): Add Lisp level definition for
11928 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
11929 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
11930 start and end of the match, instead of using values in search_regs.
ef887810 11931
4d02fc25
SM
119322007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
11933
11934 * minibuf.c (Fcompleting_read): New value `confirm-only'
11935 for `require-match'.
11936
fe45b81f
SM
119372007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
11938
11939 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
11940 part of the 2007-06-27 change to syms_of_fileio.
11941
a56dd283
YM
119422007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11943
11944 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
11945 Check WINDOWP before using XWINDOW. Consolidate return statements.
11946
0cf9f5b5
RS
119472007-06-27 Richard Stallman <rms@gnu.org>
11948
11949 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
11950
a66f285a
JB
119512007-06-27 Juanma Barranquero <lekktu@gmail.com>
11952
11953 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
11954
8d0d84d2
YM
119552007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11956
11957 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
11958 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
11959 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
11960 (_free_internal, memalign): Use them.
11961 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
11962 Initialize to PTHREAD_MUTEX_INITIALIZER.
11963 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
11964 (morecore_nolock): Rename from morecore. All uses changed.
11965 Use only nolock versions of internal allocation functions.
11966 (_malloc_internal_nolock, _realloc_internal_nolock)
11967 (_free_internal_nolock): New functions created from
11968 _malloc_internal, _realloc_internal, and _free_internal.
11969 (_malloc_internal, _realloc_internal, _free_internal): Use them.
11970 Copy hook value to automatic variable before its use.
11971 (memalign): Copy hook value to automatic variable before its use.
11972
5a0bbd9a
KH
119732007-06-26 Kenichi Handa <handa@m17n.org>
11974
11975 * coding.c (Ffind_operation_coding_system): Docstring improved.
11976 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
11977
9a51747b
DK
119782007-06-25 David Kastrup <dak@gnu.org>
11979
11980 * keymap.c (Fcurrent_active_maps): Add `position' argument.
11981 (Fwhere_is_internal): Adjust call to `current-active-maps' to
11982 cater for additional parameter.
11983
11984 * keymap.h: Adjust number of parameters to `current-active-maps'.
11985
11986 * doc.c (Fsubstitute_command_keys): Adjust call of
11987 `current-active-maps'.
11988
e4305426
DK
119892007-06-25 David Kastrup <dak@gnu.org>
11990
11991 * callint.c (Fcall_interactively): Make the parsing of interactive
11992 specs somewhat more readable.
11993
511a18d9
YM
119942007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11995
11996 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
11997 to scroll bar gap also when bitmap fills fringe. Draw only foreground
11998 if extended background has already been filled.
11999
512eb161
YM
120002007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12001
12002 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
12003 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
12004
12005 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
12006 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
12007 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
12008 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
12009 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
12010 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
12011 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
12012 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
12013 Run timers during dialog popup.
12014 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
12015
2386b1f1
JR
120162007-06-21 Jason Rumney <jasonr@gnu.org>
12017
12018 * image.c (convert_mono_to_color_image): Swap fore and background.
12019
fab8b787
JR
120202007-06-20 Jason Rumney <jasonr@gnu.org>
12021
12022 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
12023 (w32_free_bdf_font): Unmap memory not handle.
12024
15bdd7a0 120252007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
12026
12027 * gmalloc.c (__morecore): Fix the declaration to comply with the
12028 definition.
12029
1bb8a291
JB
120302007-06-20 Juanma Barranquero <lekktu@gmail.com>
12031
12032 * w32term.c (w32_delete_display): Remove leftover declaration.
12033 (w32_define_cursor, w32_initialize): Make static.
12034
12035 * w32.c (_wsa_errlist): Fix typo in error message.
12036 (init_environment): Ignore any environment variable from the
12037 registry having a null value.
12038
92648dea
GM
120392007-06-20 Glenn Morris <rgm@gnu.org>
12040
12041 * Makefile.in (LIBGIF): Default to -lgif.
12042
ff25d115
JR
120432007-06-17 Jason Rumney <jasonr@gnu.org>
12044
12045 * w32menu.c (add_menu_item): Don't use multibyte string functions on
12046 unicode strings.
12047
a1a578a5
JB
120482007-06-16 Juanma Barranquero <lekktu@gmail.com>
12049
12050 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
12051 Fix typo in docstring.
12052
af41f8a8
EZ
120532007-06-16 Eli Zaretskii <eliz@gnu.org>
12054
12055 * w32menu.c (add_menu_item): Escape `&' characters in menu items
12056 and their keybindings.
12057
8b29cab9
CY
120582007-06-15 Chong Yidong <cyd@stupidchicken.com>
12059
12060 * composite.c (update_compositions): Fix last fix.
12061
c433c134
JR
120622007-06-14 Jason Rumney <jasonr@gnu.org>
12063
12064 * w32.c (get_process_times_fn): New function pointer.
12065 (globals_of_w32): Intialize it if present in kernel32.dll.
12066 (w32_get_internal_run_time): New function.
12067
12068 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
12069
553d3164
KH
120702007-06-14 Kenichi Handa <handa@etlken.m17n.org>
12071
12072 * composite.c (update_compositions): Check the validness of
12073 compositions.
12074
446ba96f
YM
120752007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12076
12077 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
12078 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
12079
12080 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
12081 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
12082
12083 * macgui.h (USE_MAC_TOOLBAR): New define.
12084
12085 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12086 Return immediately unless popup is activated.
12087
12088 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
12089 background to scroll bar gap.
12090 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
12091 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
12092 scroll bars on frame edge. Check fringe background extension.
12093 Don't clear extended fringe background area.
12094 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
12095 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
12096 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
12097 [USE_MAC_TOOLBAR]: New macros.
12098 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
12099 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
12100 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
12101 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
12102 [USE_MAC_TOOLBAR]: New functions.
12103 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
12104 manually if previous repositioning has failed.
12105 (mac_handle_keyboard_event): Use precomputed event kind.
12106 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
12107 as tool bar item click. Handle mouse movement over tool bar items.
12108
12109 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
12110 toolbar_win_gravity.
12111 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
12112 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
12113 Add externs.
12114
12115 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
12116 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
12117
9720173f
CY
121182007-06-14 Chong Yidong <cyd@stupidchicken.com>
12119
12120 * image.c (search_image_cache): Remove unused variable.
12121
1217dd00
CY
121222007-06-13 Chong Yidong <cyd@stupidchicken.com>
12123
12124 * xfns.c, xmenu.c: Link to xaw3d if available.
12125
c5b8e0ea
YM
121262007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12127
12128 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
12129 frame_foreground and frame_background.
12130
12131 * image.c (lookup_image): Save frame foreground and background colors.
12132 (search_image_cache): Check if saved and current frame colors match.
12133
c69b0314
SM
121342007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12135
12136 * regex.c (regex_compile): Remove the `regnum' counter.
12137 Use bufp->re_nsub instead. Add support for \(?N:RE\).
12138
c9612b8e
SM
121392007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12140
12141 * term.c: Include intervals.h to declare Fget_text_property.
12142
843d2458
JR
121432007-06-10 Jason Rumney <jasonr@gnu.org>
12144
12145 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
12146
1e0d2d60 121472007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
12148
12149 * callint.c (Fcall_interactively):
12150 * editfns.c (Fdelete_and_extract_region):
12151 * fileio.c (Fread_file_name):
12152 * fns.c (Fmapconcat):
12153 * keyboard.c (cmd_error_internal):
12154 * keymap.c (Fkey_description):
12155 * lread.c (openp):
12156 * minibuf.c (read_minibuf):
12157 * search.c (wordify):
12158 * sunfns.c (sel_read):
12159 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
12160 * xfns.c (x_default_scroll_bar_color_parameter):
12161 * xmenu.c (menu_help_callback):
12162 * xselect.c (Fx_get_atom_name):
12163 * xterm.c (x_term_init): Use empty_unibyte_string.
12164
15bdd7a0 121652007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
12166
12167 * alloc.c (init_strings): Initialize canonical empty strings.
12168 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
12169 canonical empty string when the requested size is 0.
12170
12171 * emacs.c (empty_unibyte_string): Rename from empty_string.
12172 (empty_multibyte_string): New canonical empty string.
12173 (syms_of_emacs): Don't initialize empty_string.
12174
12175 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
12176 string, if appropriate.
12177 (empty_unibyte_string, empty_multibyte_string): New externs.
12178 (empty_string): Remove extern.
12179
12180 * lread.c (syms_of_lread): Use empty_unibyte_string.
12181
42c4c67a
JR
121822007-06-07 Jason Rumney <jasonr@gnu.org>
12183
12184 * s/ms-w32.h: Don't define HAVE_TZNAME.
12185
12186 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
12187
aa8280d3
YM
121882007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12189
12190 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
12191
12192 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
12193 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
12194
12195 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
12196 Don't call next handler.
12197 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
12198 Remove argument. Install handler to application.
12199 (set_frame_menubar): Don't change deep_p.
1e0d2d60 12200 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
12201 FRAME_OUTER_TO_INNER_DIFF_Y.
12202 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12203 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12204 [HAVE_DIALOGS]: New macros.
12205 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
12206 Use them.
12207 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
12208
12209 * macselect.c [MAC_OSX] (install_service_handler): Rename from
12210 init_service_handler. All callers changed. Return OSStatus value.
12211
12212 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
12213 All callers changed so as not to call SetPortWindowPort.
12214 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
12215 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
12216 mac_draw_string_common.
12217 (mac_draw_image_string_qd): Likewise.
12218 (mac_draw_string_common): Use them. Add INLINE.
12219 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
12220 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
12221 GetGlobalMouse.
12222 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
12223 and FRAME_OUTER_TO_INNER_DIFF_Y.
12224 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
12225 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
12226 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
12227 repositioning window to mac_handle_window_event.
12228 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
12229 saving window location to mac_handle_window_event
12230 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
12231 (install_menu_target_item_handler): Remove argument in extern.
12232 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
12233 Also accept command events.
12234 (do_keystroke): New function created from XTread_socket.
12235 (init_command_handler): Remove functions.
12236 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
12237 and save window location by kEventWindowShowing and kEventWindowHiding
12238 handlers here. Don't call next handler for window state change and
12239 focus events.
12240 (mac_handle_application_event, mac_handle_keyboard_event)
12241 [TARGET_API_MAC_CARBON]: New functions.
12242 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
12243 kEventWindowShowing and kEventWindowHiding events. Move installation
12244 of mouse, font, text input and menu target item handlers to
12245 install_application_handler.
12246 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
12247 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12248 New function.
12249 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12250 Register it.
c9612b8e
SM
12251 (XTread_socket) [TARGET_API_MAC_CARBON]:
12252 Consolidate SendEventToEventTarget calls.
12253 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
12254 Move application activation handler to mac_handle_application_event.
12255 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
12256 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
12257 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12258 init_command_handler. Call install_application_handler.
12259
12260 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
12261 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
12262
6926c954
GM
122632007-06-07 Glenn Morris <rgm@gnu.org>
12264
12265 * emacs.c (main): Use `emacs-copyright' in --version output.
12266
6fe04c89
CY
122672007-06-06 Chong Yidong <cyd@stupidchicken.com>
12268
c9612b8e 12269 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 12270
7eb0d727
YM
122712007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12272
12273 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
12274
12275 * macgui.h: Replace WindowPtr with WindowRef.
12276
12277 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12278 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12279 Replace ControlHandle with ControlRef.
12280 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
12281
12282 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12283 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12284 Replace ControlHandle with ControlRef.
12285 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
12286 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
12287
12288 * macterm.h (struct scroll_bar): Rename member control_handle_low
12289 and control_handle_high to control_ref_low and control_ref_high.
12290 All uses changed.
12291 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
12292 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
12293 respectively. All uses changed.
12294 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
12295 (install_window_handler, remove_window_handler): Replace WindowPtr
12296 with WindowRef in externs.
12297
65fddb74
JB
122982007-06-05 Juanma Barranquero <lekktu@gmail.com>
12299
12300 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12301
db1213a9
NR
123022007-06-03 Nick Roberts <nickrob@snap.net.nz>
12303
12304 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12305
65fddb74 12306 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
12307 Condition on HAVE_GPM too.
12308
12309 * term.c (term_mouse_highlight): Remove unused variables.
12310 (Fterm_open_connection): Set gpm_zerobased to 1.
12311 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12312 Use zero based co-ordinates.
12313 (handle_one_term_event): Report a drag as mouse movement too.
12314
12315 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12316
d94df25b
CY
123172007-06-03 Chong Yidong <cyd@stupidchicken.com>
12318
12319 * image.c (search_image_cache): New function. Require background
12320 color match if background color is unspecified in the image spec.
12321 (uncache_image, lookup_image): Use it.
12322
4797b6d9
JB
123232007-06-01 Juanma Barranquero <lekktu@gmail.com>
12324
12325 * window.c (Fshrink_window): Reflow docstring.
12326
1ffe7343
NR
123272007-06-02 Chong Yidong <cyd@stupidchicken.com>
12328
12329 * Version 22.1 released.
12330
123312007-06-01 Richard Stallman <rms@gnu.org>
12332
12333 * xfns.c (x_encode_text): Add GCPRO.
12334
123352007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12336
12337 * xfns.c (x_set_name_internal): Save encoded name before
12338 x_encode_text in case string data is relocated.
12339
123402007-05-31 Richard Stallman <rms@gnu.org>
12341
12342 * buffer.c (syms_of_buffer): Doc fix.
12343
123442007-05-30 Nick Roberts <nickrob@snap.net.nz>
12345
12346 * sysdep.c (init_sys_modes): Add rather than replace with
12347 O_NONBLOCK.
12348
12349 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12350 term_mouse_moveto.
12351
12352 * termhooks.h (term_mouse_moveto): New extern.
12353
12354 * term.c (mouse_face_window): Rename...
12355 (Qmouse_face_window): ...to this.
12356 (term_show_mouse_face, term_clear_mouse_face)
12357 (term_mouse_highlight): Use Qmouse_face_window.
12358 (term_mouse_moveto): New function.
12359 (term_mouse_position): Make it work.
12360 (syms_of_term): Uncomment assignment to mouse_position_hook.
12361 Staticpro Qmouse_face_window.
12362
123632007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12364
12365 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12366 around current_column call.
12367
123682007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12369
12370 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12371 * xdisp.c (next_element_from_buffer):
12372 * window.c (delete_window):
12373 * term.c (term_mouse_highlight):
12374 * msdos.c (getdefdir):
12375 * macterm.c (mac_create_bitmap_from_bitmap_data)
12376 (init_font_name_table):
12377 * fns.c (Fsxhash):
12378 * data.c (Fmake_local_variable):
12379 * ccl.c (ccl_driver): Likewise.
12380
123812007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12382
12383 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12384 Call mac_wakeup_from_rne on window size change.
12385
123862007-05-25 Chong Yidong <cyd@stupidchicken.com>
12387
12388 * image.c (uncache_image): Fix typo.
12389
123902007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
12391
12392 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
12393
123942007-05-22 Richard Stallman <rms@gnu.org>
12395
12396 * xterm.c (x_connection_closed): Remove NO_RETURN.
12397
123982007-05-22 Martin Rudalics <rudalics@gmx.at>
12399
12400 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
12401
124022007-05-21 Chong Yidong <cyd@stupidchicken.com>
12403
12404 * image.c (uncache_image): New function.
12405 (Fimage_refresh): New function.
12406
880820fe 124072007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12408
12409 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
12410
124112007-05-20 Nick Roberts <nickrob@snap.net.nz>
12412
12413 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
12414 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
12415
124162007-05-20 Nick Roberts <nickrob@snap.net.nz>
12417
12418 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
12419 conditional on [HAVE_GPM_H].
12420
124212007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12422
12423 * syntax.c (skip_chars): Update syntax-table only after we checked that
12424 the new location is valid.
12425
124262007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12427
12428 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
12429 mac_get_window_bounds.
12430
124312007-05-20 Nick Roberts <nickrob@snap.net.nz>
12432
12433 * Makefile.in (LIBGPM): Allow it to be set from configure.
12434 If set then link Emacs with it.
12435
12436 * config.in: Regenerate.
12437
12438 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
12439 New externs.
12440
12441 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
12442 Include gpm.h.
12443 (handle_one_term_event, term_gpm): New externs.
12444
12445 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
12446 and allow it to be interrupted by SIGIO.
12447
12448 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
12449 (wait_reading_process_output): Wait on gpm_fd too.
12450 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
12451 (add_gpm_wait_descriptor_called_flag): New variable.
12452 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
12453
12454 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
12455 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
12456 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
12457 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
12458 (make_lispy_event): Add case GPM_CLICK_EVENT.
12459 (read_avail_input): Handle mouse input.
12460
12461 * term.c (write_glyphs_with_face): New function.
12462 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
12463 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
12464 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
12465 (mouse_face_face_id, term_gpm, pos_x, pos_y)
12466 (last_mouse_x, last_mouse_y): New variables.
12467 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12468 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12469 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12470 (Fterm_close_connection): New functions.
12471 (term_init): Initialise mouse_face_window.
12472
124732007-05-19 Chong Yidong <cyd@stupidchicken.com>
12474
12475 * xdisp.c (redisplay_window): If first window line is a
12476 continuation line, recompute the new window start instead of
12477 recentering.
12478
124792007-05-18 Glenn Morris <rgm@gnu.org>
12480
12481 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12482 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12483
124842007-05-17 Glenn Morris <rgm@gnu.org>
12485
12486 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12487
124882007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12489
12490 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12491 dead key repeat and up events.
12492
124932007-05-14 Chong Yidong <cyd@stupidchicken.com>
12494
12495 * image.c (pbm_load): Check image size for monochrome pbm.
12496
124972007-05-13 Chong Yidong <cyd@stupidchicken.com>
12498
12499 * xterm.c (XTread_socket): Revert last change.
12500
125012007-05-12 Chong Yidong <cyd@stupidchicken.com>
12502
12503 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12504
12505 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12506
125072007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12508
12509 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12510 mixup (YAILOM).
12511
125122007-05-07 Andreas Schwab <schwab@suse.de>
12513
12514 * keymap.c (Flookup_key): Fix typo in last change.
12515
125162007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12517
12518 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12519 mapping for unibyte strings.
12520
125212007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12522
12523 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12524 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12525
125262007-04-29 Richard Stallman <rms@gnu.org>
12527
12528 * insdel.c (replace_range): For undo, record insertion first.
12529
125302007-04-29 Andreas Schwab <schwab@suse.de>
12531
12532 * lisp.h (VECSIZE): Use OFFSETOF.
12533
125342007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12535
12536 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12537 disabled lines.
12538
125392007-04-28 Richard Stallman <rms@gnu.org>
12540
12541 * lread.c (read_escape): In a string, \s is always space.
12542
880820fe 125432007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12544
12545 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12546
12547 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12548 submenu for menu bar items.
12549
382c648d 12550See ChangeLog.10 for earlier changes.
6922b018
KH
12551
12552;; Local Variables:
880820fe 12553;; coding: utf-8
33462dfa 12554;; add-log-time-zone-rule: t
6922b018 12555;; End:
2a34a036 12556
59ce725a 12557 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
12558
12559 This file is part of GNU Emacs.
12560
5a1dde61 12561 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 12562 it under the terms of the GNU General Public License as published by
5a1dde61
GM
12563 the Free Software Foundation, either version 3 of the License, or
12564 (at your option) any later version.
7f6d64f8
GM
12565
12566 GNU Emacs is distributed in the hope that it will be useful,
12567 but WITHOUT ANY WARRANTY; without even the implied warranty of
12568 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12569 GNU General Public License for more details.
12570
12571 You should have received a copy of the GNU General Public License
5a1dde61 12572 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 12573
28f60c3d 12574;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40