(Fcomposition_get_gstring, Fcompose_region_internal, Fcompose_string_internal)
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9d751859
EZ
12008-09-27 Eli Zaretskii <eliz@gnu.org>
2
3 * composite.c (Fcomposition_get_gstring)
4 (Fcompose_region_internal, Fcompose_string_internal)
5 (Ffind_composition_internal): Doc fix.
6 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7 (syms_of_composite) <auto-composition-function>: Doc fix.
8 (syms_of_composite) <composition-function-table>: Doc fix.
9
8f23793d
CY
102008-09-25 Chong Yidong <cyd@stupidchicken.com>
11
12 * search.c (wordify): New argument for lax word-ends.
13 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14
73fee522
DN
152008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16
17 * lisp.h (is_daemon): Declare.
18 * dispnew.c (init_display): Do not try to initialize the terminal
19 when running as a daemon.
20
6cb3af4a
CY
212008-09-22 Chong Yidong <cyd@stupidchicken.com>
22
23 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
24 x_display_pixel_height.
25
3ecc1163
MR
262008-09-22 Martin Rudalics <rudalics@gmx.at>
27
28 * undo.c (record_point): Don't call Fundo_boundary for first
29 change. (Bug#731)
30
9d0a6e42
JB
312008-09-22 Juanma Barranquero <lekktu@gmail.com>
32
33 * emacs.c (Fdaemonp): Doc fix.
34
9d29095c
DN
352008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
36
9d0a6e42 37 * emacs.c (main): Place #ifdef in the proper place.
9d29095c 38
eab2ee89
DN
392008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
40
41 * emacs.c (standard_args): Add --daemon.
42 (main): Disconnect from the terminal when --daemon is passed.
43 (is_daemon): New variable.
44 (Fdaemonp): New function.
45 (syms_of_emacs): Defsubr it.
46
a9f0145a
CY
472008-09-20 Chong Yidong <cyd@stupidchicken.com>
48
49 * xdisp.c (get_next_display_element): Handle string display
50 correctly when checking for the end of a box run.
51
6bddfc97
GM
522008-09-20 Glenn Morris <rgm@gnu.org>
53
d2b66acf
GM
54 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
55 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
56 (Frename_file): Avoid copying to trash if a rename involves
6bddfc97
GM
57 a delete. (Bug#964).
58
d44004c0
EZ
592008-09-20 Eli Zaretskii <eliz@gnu.org>
60
61 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
62 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
63 frames as well as termcap frames.
64 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
65 get_named_tty.
66
3e7600a6
EZ
672008-09-19 Eli Zaretskii <eliz@gnu.org>
68
a1e422f3
EZ
69 * process.c (procfs_system_process_attributes): Fix cmdline in
70 case /proc/PID/cmdline is empty.
71
3e7600a6
EZ
72 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
73 x_display_pixel_height.
74
05eb7cdc
JB
752008-09-19 Juanma Barranquero <lekktu@gmail.com>
76
77 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
78
79 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
80 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
81
85c66abe
DN
822008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
83
84 * dispextern.h (struct it): Move line_wrap away from the middle of
85 bitfields. Move voffset in struct iterator_stack_entry after the
86 bitfields. Move tab_width near after another short.
87
91a47a68
DN
882008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
89
90 * frame.h (struct frame): Move alpha from the middle of bitfields.
91
92 * window.h (struct window): Move frozen_window_start_p after the
93 rest of the bitfields to reduce padding.
94
f172b808
CY
952008-09-18 Chong Yidong <cyd@stupidchicken.com>
96
97 * xterm.h (x_display_info): Remove `height' and `width' members.
98
99 * nsterm.h (ns_display_info): Remove `height' and `width' members.
100
101 * w32term.h (w32_display_info): Remove `height', `width',
102 `height_in', and `width_in' members.
103
104 * xterm.c (x_display_pixel_height, x_display_pixel_width): New
105 functions.
106 (x_calc_absolute_position): Use them.
107 (x_term_init): Omit removed `height' and `width' members.
108
109 * w32term.c (x_display_pixel_height, x_display_pixel_width): New
110 functions.
111 (w32_read_socket, x_calc_absolute_position): Use them.
112 (w32_initialize_display_info, w32_term_init): Omit removed members
113 of w32_display_info.
114
115 * nsterm.m (x_display_pixel_height, x_display_pixel_width): New
116 functions.
117 (ns_initialize_display_info): Omit removed members of
118 ns_display_info.
119
120 * xterm.c (x_display_pixel_height, x_display_pixel_width): New
121 functions.
122 (x_calc_absolute_position): Use them.
123 (x_term_init): Omit removed `height' and `width' members.
124
125 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
126 (compute_tip_xy): Use x_display_pixel_height and
127 x_display_pixel_width.
128
129 * frame.c (x_fullscreen_adjust): Use x_display_pixel_height and
130 x_display_pixel_width.
131
132 * xmenu.c (menu_position_func): Use x_display_pixel_height and
133 x_display_pixel_width.
134
ea8ba975
KH
1352008-09-18 Kenichi Handa <handa@m17n.org>
136
137 * composite.c (fill_gstring_header): Don't check FROM and TO here.
138 (composition_compute_stop_pos): Fix handling of static composition.
139 (Fcomposition_get_gstring): Check FROM and TO at first.
140
46f905e1
SM
1412008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
142
143 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
144 mixup (YAILOM).
145
3bd4d0e1
CY
1462008-09-17 Chong Yidong <cyd@stupidchicken.com>
147
148 * indent.c (Fvertical_motion): Use position reported by iterator
149 instead of PT for determining screen motion (bug#943).
150
939c679e
RF
1512008-09-17 Romain Francoise <romain@orebokech.com>
152
153 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
154
5a8d5504
KH
1552008-09-17 Kenichi Handa <handa@m17n.org>
156
fdf90679
KH
157 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
158
5a8d5504
KH
159 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
160 if necessary.
161
91e97ba8
KH
1622008-09-16 Kenichi Handa <handa@m17n.org>
163
164 * coding.c (make_conversion_work_buffer): Avoid calling
165 Fget_buffer_create if it is not necessary.
166
4e822bdc
MR
1672008-09-15 Martin Rudalics <rudalics@gmx.at>
168
169 * window.c (Fselect_window): Don't update window_select_count and
170 use_time when norecord is not nil.
171
c3702194
KH
1722008-09-14 Kenichi Handa <handa@m17n.org>
173
174 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
175 specpdl_ptr.
176
ce82d57e
KH
1772008-09-12 Kenichi Handa <handa@m17n.org>
178
179 * indent.c (scan_for_column): Don't handle automatic composition
180 if the current buffer is not associated with a window.
181
182 * composite.c (composition_reseat_it): If the current buffer is
183 not associated with a window, ignore the automatic composition.
184 (find_automatic_composition): Likewise.
185
da39107c
SM
1862008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
187
ed5ff21d
SM
188 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
189 (Fgpm_mouse_stop): Use it.
190 * termhooks.h (close_gpm): Declare.
191 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
192 connection if Gpm_GetEvent fails.
193
da39107c
SM
194 * window.c (set_window_buffer): Always preserve current-buffer.
195
c8f94403
GM
1962008-09-12 Glenn Morris <rgm@gnu.org>
197
198 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
199
6f3122a7
GM
2002008-09-11 Glenn Morris <rgm@gnu.org>
201
202 * charset.c (charset-map-path): Doc fix.
203
fc3a285e
KH
2042008-09-10 Kenichi Handa <handa@m17n.org>
205
f83ef653
KH
206 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
207
fc3a285e
KH
208 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
209 compose a grapheme cluster with the preceding base glyph.
210
211 * composite.c (composition_compute_stop_pos): Fix previous change.
053ca52b 212 Reset cmp_it->id to -1 at first.
fc3a285e 213
fa2dda14
GM
2142008-09-10 Glenn Morris <rgm@gnu.org>
215
216 * Makefile.in (character.o, chartab.o): Fix config.h typo.
217
daf85753
CY
2182008-09-09 Chong Yidong <cyd@stupidchicken.com>
219
220 * keyboard.c (read_key_sequence): Reapply translation maps when
221 switching keyboards.
222
d45a49e3
KH
2232008-09-09 Kenichi Handa <handa@m17n.org>
224
da2cf488
KH
225 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
226 characters.
227
d45a49e3
KH
228 * composite.c (FORWARD_CHAR): Fix calculation
229 of (POSITION).pos_byte.
6450412d
KH
230 (composition_compute_stop_pos): Limit the search of composition to
231 at most 500 characters ahead. If we reach the limit or find a
232 newline, set cmp_it->ch to -2 and return 0.
233 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
d45a49e3
KH
234
2352008-09-08 Kenichi Handa <handa@m17n.org>
236
237 * indent.c (Fvertical_motion): Be sure to set
238 it_overshoot_expected if it.cmp_it.id is non-nengative.
239
1aa83b22
AS
2402008-09-07 Andreas Schwab <schwab@suse.de>
241
242 * callproc.c (Fcall_process): Don't hold references to string data
243 across garbage collection. Move initialisation of new_argv down
244 to avoid compiler bug.
245
a7713d66
RW
2462008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
247
248 * process.c (Fsystem_process_attributes): Doc fix.
249
0f6c7c7e
CY
2502008-09-07 Chong Yidong <cyd@stupidchicken.com>
251
39fc455f
CY
252 * callproc.c (Fcall_process): Canonicalize current directory name.
253
0f6c7c7e
CY
254 * xdisp.c (move_it_to): When moving by vpos, ensure that the
255 iterator advances to the next line if the current line ends in a
256 continued tab.
257
93c7fcf8
TZ
2582008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
259
260 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
261 member to point to cmp_from.
262
263 * xdisp.c: Doc fix for references to gidx data member.
264
126f1fc1
SM
2652008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
266
267 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
268
c3702194
KH
2692008-09-07 Kenichi Handa <handa@m17n.org>
270
271 * composite.c (FORWARD_CHAR): Check STOP after
272 incrementing (POSITION).pos.
273
ea92add1
RW
2742008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
275
276 * process.c (Fsystem_process_attributes): Doc fix.
277
58bba807
CY
2782008-09-06 Chong Yidong <cyd@stupidchicken.com>
279
280 * keyboard.c (Ftop_level): Doc fix.
281
e779d630
EZ
2822008-09-06 Eli Zaretskii <eliz@gnu.org>
283
2de7397f
EZ
284 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
285 minibuffer, don't let lower part of menu invade the echo area.
286
e779d630
EZ
287 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
288 "char *q" to access menu text and advance through it. Revert the
289 change that displayed ">" instead of ASCII character 0x10.
290
dda86321
EZ
2912008-09-05 Eli Zaretskii <eliz@gnu.org>
292
293 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
294 toggle boxes and radio buttons on MS-DOS as well.
295
90b3fe91
KH
2962008-09-05 Kenichi Handa <handa@m17n.org>
297
298 * composite.c (autocmp_chars): Check lookback count.
299 (composition_compute_stop_pos): Set cmp_it->lookback.
300 (composition_reseat_it): Check lookback count.
301 (struct position_record): New struct.
302 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
303 (find_automatic_composition): New function.
304 (composition_adjust_point): Use find_automatic_composition.
305
306 * dispextern.h (struct composition_it): New member lookback.
307
efa09d5d
CY
3082008-09-02 Chong Yidong <cyd@stupidchicken.com>
309
310 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
311 if moving by a single line.
312
7a3cddef
AS
3132008-09-02 Andreas Schwab <schwab@suse.de>
314
afed2584
AS
315 * xterm.c (x_delete_display): Fix merge error.
316
7a3cddef
AS
317 * fileio.c (Fexpand_file_name): Remove unused variables.
318
9850eff5 3192008-09-02 Eli Zaretskii <eliz@gnu.org>
669fa600 320
9850eff5
MB
321 * fileio.c (Fexpand_file_name): Copy argument `name' into local
322 storage on all platforms, not just on DOS_NT.
2bde1dd8 323
9850eff5 3242008-09-02 Jason Rumney <jasonr@gnu.org>
2bde1dd8 325
9850eff5
MB
326 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show): Ensure
327 mouse is not grabbed after menu is finished.
a267ab4d 328
d7642a18
CY
3292008-09-01 Chong Yidong <cyd@stupidchicken.com>
330
331 * xfaces.c (Finternal_set_alternative_font_family_alist)
332 (Finternal_set_alternative_font_registry_alist): Properly copy
333 entire alist structure.
334
fc41e69b
KH
3352008-09-01 Kenichi Handa <handa@m17n.org>
336
337 * ftfont.c (ftfont_spec_pattern): Don't create a charset of the
338 representative chars of the script is a vector.
339 (ftfont_list): Handle the case the representative chars of the
340 script is a vector.
341
342 * character.c (syms_of_character): Docstring of
343 script-representative-chars fixed.
344
e52ab6c9
EZ
3452008-08-31 Eli Zaretskii <eliz@gnu.org>
346
347 * msdos.c (BUILD_CHAR_GLYPH): New macro.
348 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
349 the menu. Allocate larger buffer for `text', to account for
350 possible ^C characters.
351
cc12456a
MR
3522008-08-31 Martin Rudalics <rudalics@gmx.at>
353
354 * xdisp.c (prepare_menu_bars): Don't call
355 Vwindow_size_change_functions with arg Qt.
356
c7c7a80c
SM
3572008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
358
359 * font.h (font_range):
360 * fileio.c (report_file_error):
361 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
362
af3e2be6
GM
3632008-08-30 Glenn Morris <rgm@gnu.org>
364
e3139144
GM
365 * data.c (Fmake_variable_frame_local): Doc fix.
366
af3e2be6
GM
367 * frame.c (Fmodify_frame_parameters): Doc fix.
368
657ceaa0
EZ
3692008-08-30 Eli Zaretskii <eliz@gnu.org>
370
32cef06e
EZ
371 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
372 needed by GetTokenInformation.
373 (w32_system_process_attributes): Check return values of all system
374 APIs.
375
b04021eb
EZ
376 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
377 only when the state changes.
7ccd1daf 378 (IT_update_begin, IT_update_end): Add termscript trace.
b04021eb 379
1b912a3b
EZ
380 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
381 clipboard is unavailable. Set dst to NULL if it doesn't point to
382 malloc'ed data.
383 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
384 passing random values to xfree.
385
657ceaa0
EZ
386 * dispnew.c (init_display): Set `tty's association in frame's
387 parameters alist to the name of the terminal device, if that is
388 known.
389
595f1870
JR
3902008-08-29 Jason Rumney <jasonr@gnu.org>
391
392 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
393
4bf84f7d
EZ
3942008-08-29 Eli Zaretskii <eliz@gnu.org>
395
77fa4db2
EZ
396 * composite.c (fill_gstring_body): Avoid compiler warnings.
397
398 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
399 LGLYPH_SET_CODE to avoid compiler warnings.
400
4bf84f7d
EZ
401 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h
402
403 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
404
405 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
406 LGLYPH_SET_CODE.
407
94baaf4f
KH
4082008-08-29 Kenichi Handa <handa@m17n.org>
409
410 * fileio.c (report_file_error): Don't downcase the first character
411 of errstring if it is still unibyte.
412
24553805
KH
4132008-08-29 Kenichi Handa <handa@m17n.org>
414
415 These changes are to re-implement the automatic composition so
416 that it doesn't use text properties.
417
418 * Makefile.in (ftfont.o): Depend on composite.h.
419 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
420
421 * character.h (Vunicode_category_table): Extern it.
422
423 * character.c (Vunicode_category_table): New variable.
424 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
425
426 * chartab.c (optimize_sub_char_table): Perform more greedy
427 optimization.
428
429 * composite.h (enum composition_method): Delete
430 COMPOSITION_WITH_GLYPH_STRING.
10d1d0af 431 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
24553805
KH
432 (Vcomposition_function_table): Extern it.
433 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
434 (composition_gstring_put_cache, composition_gstring_from_id)
435 (composition_gstring_p, composition_gstring_width)
436 (composition_compute_stop_pos, composition_reseat_it)
437 (composition_update_it, composition_adjust_point): Extern them.
438 (Fcomposition_get_gstring): EXFUN it.
439
440 * composite.c: Include window.h, frame.h, dispextern.h font.h.
441 (Vcomposition_function_table)
442 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
443 (gstring_hash_table, gstring_work, gstring_work_headers): New
444 variables.
445 (gstring_lookup_cache, composition_gstring_put_cache)
446 (composition_gstring_from_id, composition_gstring_p)
447 (composition_gstring_width, fill_gstring_header)
448 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
449 (composition_reseat_it, composition_update_it)
450 (composition_adjust_point, Fcomposition_get_gstring): New
451 functions.
452 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
453 and gstring_work_headers. DEFVAR_LISP composition-function-table.
454 Defsubr compostion_get_gstring.
455
456 * dispextern.h (struct glyph): New union u.cmp. Delete the member
457 cmp_id.
458 (struct glyph_string): Delete the member gidx. New members
459 cmp_id, cmp_from, and cmp_to.
460 (enum it_method): Delete GET_FROM_COMPOSITION.
461 (struct composition_it): New struct.
462 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
463 Delete c, len, cmp_id, cmp_len in u.comp.
464
465 * font.h (enum lgstring_indices): Delete it.
466 (LGSTRING_XXX, LGLYPH_XXX): These macros moved to composite.h.
467 (enum lglyph_indices): Likewise.
468 (font_range): Extern adjusted.
469 (font_fill_lglyph_metrics): Extern it.
470
471 * font.c (QCf): New variable.
472 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
473 (font_prepare_composition): Delete this function.
474 (font_range): Type and arguments changed.
475 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
476 (font_fill_lglyph_metrics): New function.
477 (Ffont_shape_text): Renamed to Ffont_shape_gstring and arguments
478 changed.
479 (syms_of_font): DEFSYM QCf. Delete defsubr for
480 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text. Defsubr
481 Sfont_shape_gstring.
482
483 * fontset.h (font_for_char): Extern it.
484
485 * fontset.c (font_for_char): New function.
486
487 * ftfont.c: Include composite.h.
488 (ftfont_resolve_generic_family): Add langset "en" to pattern.
489 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not
490 LGSTRING_LENGTH.
491
492 * indent.c: Include composite.h and dispextern.h.
87e204a2 493 (check_composition): Delete this function.
24553805
KH
494 (scan_for_column): Handle composition by
495 composition_compute_stop_pos, composition_reseat_it, and
496 composition_update_it.
497 (compute_motion): Likewise.
498 (Fvertical_motion): Fix checking of composition.
499
500 * keyboard.c (adjust_point_for_property): Check composition by
501 composition_adjust_point.
502
503 * nsterm.m (ns_draw_glyph_string): Adjusted for the change of
504 struct glyph_string.
505
506 * term.c (encode_terminal_code): Adjusted for the change of struct
507 glyph.
508 (append_composite_glyph): Adjusted for the change of struct it and
509 struct glyph.
510 (produce_composite_glyph): Likewise.
511
512 * w32term.c (x_draw_composite_glyph_string_foreground): Adjusted
513 for the change of struct glyph_string.
514 (x_draw_glyph_string): Likewise.
515
516 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
517 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
518
519 * xdisp.c: Include font.h.
520 (it_props): Delete the entry for Qauto_composed.
521 (init_iterator): Initialize it->cmp_it.id to -1.
522 (compute_stop_pos): Call composition_compute_stop_pos.
523 (face_before_or_after_it_pos): Adjusted for the change of struct
524 it.
525 (handle_auto_composed_prop): Delete it.
526 (handle_composition_prop): Handle only static composition.
527 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
528 from xassert. Initialize it->cmp_it.stop_pos.
529 (push_it): Adjusted for the change of struct it.
530 (pop_it): Likewise.
531 (get_next_element): Delete next_element_from_composition.
532 (CHAR_COMPOSED_P): New macro.
533 (get_next_display_element): For automatic composition, get a face
534 from the font in the glyph-string.
535 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
536 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION
537 case.
538 (next_element_from_string): Check if the character at the current
539 position is composed by CHAR_COMPOSED_P.
540 (next_element_from_buffer): Likewise.
541 (next_element_from_composition): Adjusted for the change of struct
542 it. Update it->cmp_it.
543 (dump_glyph): Adjusted for the change of struct glyph.
544 (fill_composite_glyph_string): Adjusted for the change of struct
545 it and struct glyph. Don't handle automatic composition here.
546 (fill_gstring_glyph_string): New function.
547 (x_get_glyph_overhangs): Handle automatic composition.
548 (BUILD_COMPOSITE_GLYPH_STRING): Adjusted for the change of struct
549 glyph.
550 (BUILD_GSTRING_GLYPH_STRING): New macro.
551 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
552 automatic composition.
553 (append_composite_glyph): Adjusted for the change of struct it and
554 struct glyph.
555 (x_produce_glyphs): Adjusted for the change of struct it.
556
557 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for
558 the change of struct glyph_string.
559 (x_draw_glyph_string): Likewise.
560
05e10ad5
GM
5612008-08-29 Glenn Morris <rgm@gnu.org>
562
563 * buffer.c (word-wrap): Doc fix.
564 * xdisp.c (truncate-partial-width-windows): Doc fix.
565 Increase default to 50.
566
efe63a4b
CY
5672008-08-29 Chong Yidong <cyd@stupidchicken.com>
568
569 * xdisp.c (update_tool_bar_unwind): New function.
570 (update_tool_bar): Temporarily set selected frame before building
571 tool-bar items.
572
a8c95f1a
MA
5732008-08-28 Michael Albinus <michael.albinus@gmx.de>
574
575 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
576 snprintf, respectively.
577 (xd_append_arg): Convert strings with Fstring_make_unibyte.
578
558f81af
CY
5792008-08-28 Chong Yidong <cyd@stupidchicken.com>
580
581 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
582 LDFLAGS to GNUstep CC invocation.
583
48ce8ca7
CY
5842008-08-27 Chong Yidong <cyd@stupidchicken.com>
585
8fa97db1
CY
586 * indent.c (Fvertical_motion): Revert last change. Handle the
587 general case where we are moving forward, and PT spans multiple
588 screen lines.
589
48ce8ca7
CY
590 * eval.c (find_handler_clause): Temporarily increase
591 max-lisp-eval-depth while printing the backtrace buffer, to
592 guarantee that help-mode code can run.
593
f12dae2f
EZ
5942008-08-27 Eli Zaretskii <eliz@gnu.org>
595
596 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
597 colors under -rv.
598 (IT_set_frame_parameters): Don't swap foreground and background
599 colors if `(reverse . t)' is present in the frame properties.
fe9365b3
EZ
600 (internal_terminal_init): Call init_frame_faces only for the
601 initial frame.
f12dae2f 602
b9fb8cf0
CY
6032008-08-27 Andreas Schwab <schwab@suse.de>
604
605 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
606
dafaabd1
AS
6072008-08-27 Andreas Schwab <schwab@suse.de>
608
609 * search.c (search_buffer): Set char_base to zero only at the end.
610
6c0969ca
KH
6112008-08-27 Kenichi Handa <handa@m17n.org>
612
613 * fileio.c (report_file_error): Fix handling of multibyte error
614 string.
615
ffd1cd8a
CY
6162008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
617
618 * xterm.c (x_term_init): Temporarily hide the partially
619 initialized terminal while calling vendor-specific-keysyms.
620
2306a735
EZ
6212008-08-26 Eli Zaretskii <eliz@gnu.org>
622
623 * msdos.c (internal_terminal_init): Most initializations done only
624 once, especially initial_screen_colors[] and termscript open.
625
609849bc
CY
6262008-08-26 Chong Yidong <cyd@stupidchicken.com>
627
ba59c3a1
CY
628 * eval.c (Fcondition_case): Doc fix.
629
7d31058f
CY
630 * widgetprv.h (EmacsFramePart): Change font member to the new font
631 struct.
609849bc
CY
632
633 * widget.c: Include character.h and font.h for XSETFONT.
634 (setup_frame_gcs): Compute X font id from font struct, just once.
635
5cc67f65
EZ
6362008-08-26 Eli Zaretskii <eliz@gnu.org>
637
638 * term.c (get_named_tty): Fix last change.
639
ff73b461
CY
6402008-08-26 Chong Yidong <cyd@stupidchicken.com>
641
642 * indent.c (Fvertical_motion): If moving forward starting from a
643 multi-line string, move the iterator to the last line of that
644 string.
645
a4e628d4
EZ
6462008-08-25 Eli Zaretskii <eliz@gnu.org>
647
648 * frame.c (do_switch_frame): Mark previously displayed frame as
649 obscured for FRAME_MSDOS_P frames as well.
650
8a445f76
EZ
6512008-08-24 Eli Zaretskii <eliz@gnu.org>
652
1266f9ef
EZ
653 * frame.c (make_terminal_frame): Initialize f->terminal,
654 f->terminal->reference_count, and scroll bars on MS-DOS as well.
655 Set the top frame to newly created frame.
656 (Fmake_terminal_frame): Reuse the_only_display_info.
657
8a445f76
EZ
658 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
659 estimating available memory.
660
154c218f
CY
6612008-08-23 David Reitter <david.reitter@gmail.com>
662
54299c95
DR
663 * nsterm.m (ns_draw_window_cursor): Don't call
664 NSDisableScreenUpdates and NSEnableScreenUpdates on
665 non-NS_IMPL_COCOA systems.
666
8399d035
AS
6672008-08-23 Andreas Schwab <schwab@suse.de>
668
669 * process.c (procfs_system_process_attributes): Fix use of
670 uninitialized variables.
671
293a3986
EZ
6722008-08-23 Eli Zaretskii <eliz@gnu.org>
673
674 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
675
676 * dispnew.c (init_display): Remove MS-DOS specific conditions for
677 calling tty-set-up-initial-frame-faces.
678
679 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show): Allow
680 MSDOS frames along with X frames.
681
682 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
683 addition to output_termcap.
684
685 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
686
687 * termchar.h (FRAME_TTY): Support output_msdos_raw.
688 (struct tty_display_info) [MSDOS]: Add fields related to mouse
689 highlight.
690
691 * process.c [!subprocesses]: Define QCname.
692 (syms_of_process): Intern and staticpro it.
693
694 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
695 Adjust for changes in encoding/decoding routines. Use
696 encode_coding_object and decode_coding_object instead of
697 encode_coding and decode_coding.
698
699 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as
700 argument.
701
702 * dosfns.c: Include frame.h before termhooks.h.
703 (dos_cleanup): Use CURTTY ()->termscript instead of a global
704 variable termscript.
705
706 * s/msdos.h (USER_FULL_NAME): Define.
707 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
708
709 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
710 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
711 pw->pw_gecos.
712
713 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
714 SELECTED_FRAME as additional (1st) argument.
715 (tty_read_avail_input): Handle output_msdos_raw in
716 addition to output_termcap.
717
718 * msdos.c: Include frame.h before termhooks.h.
719 (mouse_on, mouse_off, mouse_moveto, mouse_init)
720 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
721 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
722 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
723 (IT_set_terminal_modes, IT_reset_terminal_modes)
724 (IT_set_frame_parameters): Use tty->termscript instead of a global
725 variable termscript.
726 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
727 global variable terminal_coding. Don't refer to
728 Vnonascii_translation_table.
729 (internal_terminal_init): Set Vwindow_system in current_kboard.
730 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
731 Announce date and time of session start, if termscript is open.
732 Don't zero out the_only_display_info (it is done in
733 term.c:init_tty). Open termscript only of not already open. Log
734 "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
735 here instead of dos_ttraw. Don't initialize display if this is an
736 initial tty. Don't set FRAME_FONT.
737 (Vwindow_system_version): Bump to 23.
738 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
739 is available, set up mouse_position_hook.
740 (dos_ttraw, IT_set_terminal_modes): If called with initial
741 terminal, do nothing.
742 (IT_set_frame_parameters): Handle the Qtty_type frame
743 parameter by calling internal_terminal_init.
744 (dos_set_window_size, show_mouse_face)
745 (clear_mouse_face, IT_note_mode_line_highlight)
746 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
747 (dos_rawgetc): Use tty_display_info instead of x_display_info.
748 (initialize_msdos_display): New function.
749 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
750 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
751 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
752 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
753 Accept additional argument: a pointer to a frame. All callers
754 changed.
755 (request_sigio, unrequest_sigio): Don't define, now defined on
756 sysdep.c.
757 (IT_write_glyphs): Rewrite to use encode_terminal_code.
758
759 * term.c [MSDOS]: Include msdos.h.
760 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
761 conditional to DOS_NT. Allow only one call to this function in a
762 session. Don't allocate a new struct tty_display_info; instead,
763 reuse the_only_display_info. Call get_tty_size to get screen
764 dimensions. Call init_baud_rate to set bad_rate.
765 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
766 (Fsuspend_tty) [MSDOS]: Don't close input and output.
767 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use
768 stdin/stdout.
769 (get_tty_terminal, get_named_tty, Ftty_type)
770 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
771 output_termcap.
772 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty): Call
773 add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
774 only when subprocesses are supported
775
776 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
777 f->output_data.x.
778 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
779 terminal devices.
780
781 * msdos.h Remove definition of struct x_display_info and struct
782 x_output.
783 (FRAME_FONT): Use output_data.tty.
784 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
785 (struct x_display_info): Renamed from display_info. All users in
786 msdos.c changed.
787 (struct x_output): Remove background_pixel and foreground_pixel.
788 (the_only_display_info): Renamed from the_only_x_display.
789 (dos_ttraw): Update prototype.
790
791 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
792 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
793
58279503
JR
7942008-08-23 Jason Rumney <jasonr@gnu.org>
795
796 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
797 (fn_TIFFSetDirectory): New library function used.
798 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
799 (tiff_load): Use :index to select among multiple images. Set count
800 property when multiple images exist.
801 (gif_format): Use :index, not :image.
802
4b7e0869
CY
8032008-08-23 Chong Yidong <cyd@stupidchicken.com>
804
805 * xdisp.c (try_scrolling): Check INT_MAX instead of
806 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
807 to obtain INT_MAX.
808
fe0a6f3b 8092008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
a3c8694a 810
fe0a6f3b 811 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
a3c8694a 812
e0ce7c50
CY
8132008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
814
815 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
816 GNUstep library location.
817
2984624d
CY
8182008-08-21 Chong Yidong <cyd@stupidchicken.com>
819
23888717
CY
820 * xfaces.c (x_update_menu_appearance): Check validity of menu font
821 before using it.
822
2984624d
CY
823 * puresize.h (BASE_PURESIZE): Increase to 1250000.
824
f2f7f42c
AR
8252008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
826
827 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
828 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
829 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
830 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
831 (EmacsApp-cursor_blink_handler): Remove declaration.
832 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
833 match 01 Feb 2008 changes in xterm.c.
834 (ns_read_socket): Add cast to avoid warning.
835 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
836 GNUstep.
837
1eff4ab3
CY
8382008-08-20 Chong Yidong <cyd@stupidchicken.com>
839
840 * xselect.c (x_get_foreign_selection): Return nil if desired
841 selection could not be obtained, instead of signalling an error.
842
fe0a6f3b 8432008-08-20 David Reitter <david.reitter@gmail.com>
b8c63ae9 844
fe0a6f3b 845 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
1eff4ab3
CY
846 * nsterm.m: Remove ns-specific code for cursor blinking.
847 (ns_draw_window_cursor): Clear cursor properly rather than
87e204a2 848 redrawing the area. Respect width of bar cursors.
1eff4ab3 849 These changes enable the use of generic blink-cursor-mode and
b8c63ae9
DR
850 generic cursor types in NS and support smooth cursor movements (do
851 not blink off after command).
1eff4ab3
CY
852 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
853 Nextstep, too.
b8c63ae9 854
86d21abc
KH
8552008-08-19 Kenichi Handa <handa@m17n.org>
856
857 * font.c (Vfont_log_deferred): New variable.
858 (font_add_log): Check Vfont_log_deferred.
10d1d0af 859 (font_deferred_log): New function.
86d21abc
KH
860
861 * font.h (font_deferred_log): Extern it.
862
863 * fontset.c (reorder_font_vector): Use encoding charset of fonts
864 for sorting.
865 (face_for_char): Use deferred log.
866
039d3b16
KH
8672008-08-18 Kenichi Handa <handa@m17n.org>
868
869 * fontset.c (face_for_char): Add font log.
870
871 * font.c (font_add_log): Add the font properties :script, :lang,
872 and :otf in the log.
873
e5ac2419
CY
8742008-08-17 Chong Yidong <cyd@stupidchicken.com>
875
876 * xdisp.c: Remove dead code.
877 (handle_invisible_prop, next_overlay_string): Defer call to
878 setup_for_ellipsis.
879 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
880
c2e9928d
CY
8812008-08-15 Chong Yidong <cyd@stupidchicken.com>
882
ef1fba80
CY
883 * xfaces.c (lookup_derived_face): Properly handle possible zero
884 return value of get_lface_attributes.
885 (merge_faces): Don't tell lookup_derived_face to signal an error
886 if face is not found.
887
1c319327
CY
888 * dired.c (Fdirectory_files): Doc fix.
889
c2e9928d
CY
890 * process.c (make_process): Initialize kill_without_query struct
891 member.
892
b8526f6e
EZ
8932008-08-15 Eli Zaretskii <eliz@gnu.org>
894
235661f6
EZ
895 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
896 Alternative calculation of totphys for Visual Studio 6.
897
8e764ce0
EZ
898 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
899
b8526f6e
EZ
900 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
901 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
902 All users changed.
a644b2e4
EZ
903 (stat): Only root directory passed to GetDriveType. Allow RAM
904 disk as well as local fixed disk when w32-get-true-file-attributes
905 is set to `local'.
f8b35b24
EZ
906 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
907 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
908 (w32_cached_id, w32_add_to_cache): New functions.
909 (get_name_and_id): Look account names in the cache before calling
910 lookup_account_sid.
911 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
912 New initialization flags.
913 (globals_of_w32): Initialize them to zero.
914 (w32_system_process_attributes): Use w32_cached_id and
915 w32_add_to_cache.
b8526f6e 916
f581fad6
CY
9172008-08-14 Lawrence Mitchell <wence@gmx.li>
918
919 * lread.c (Fread_char, Fread_char_exclusive): If no character
920 event is read before timeout is reached, return nil, rather than
921 converting to a number.
922
23c6bdbe
CY
9232008-08-14 Chong Yidong <cyd@stupidchicken.com>
924
6988207c 925 * fns.c (use_dialog_box): Doc fix.
97aec90a 926
23c6bdbe
CY
927 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
928 on OS X.
929
01623ee7
CY
9302008-08-13 Chong Yidong <cyd@stupidchicken.com>
931
932 * frame.c (Qns_parse_geometry): New var.
933 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
934
f00f8cb7
CY
9352008-08-11 Chong Yidong <cyd@stupidchicken.com>
936
937 * xdisp.c (x_produce_glyphs): Handle the case when font has no
938 space character in calculating tabs.
939
11d8ec4a
DN
9402008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
941
942 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
943
27bef0c8
GM
9442008-08-10 Glenn Morris <rgm@gnu.org>
945
946 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
947 silence gcc "limited range of data type" warnings in some
948 make_fixnum_or_float calls.
949
8f8b082a
EZ
9502008-08-09 Eli Zaretskii <eliz@gnu.org>
951
754a2d13
EZ
952 * w32.c (w32_system_process_attributes): If the process does not
953 exist, return nil.
954
8f8b082a
EZ
955 * w32.c: Include thelp32.h, psapi.h and coding.h.
956 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
957 declarations.
958 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
959 (Process32Next_Proc): New typedefs.
960 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
961 (g_b_init_process32_next, g_b_init_open_thread_token)
962 (g_b_init_impersonate_self, g_b_init_revert_to_self)
963 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
964 (g_b_init_get_process_working_set_size)
965 (g_b_init_global_memory_status_ex): New static variables.
966 (globals_of_w32): Initialize them.
967 (create_toolhelp32_snapshot, process32_first, process32_next)
968 (open_thread_token, impersonate_self, revert_to_self)
969 (get_process_memory_info, get_process_working_set_size)
970 (global_memory_status, global_memory_status_ex): New wrapper
971 functions.
972 (w32_list_system_processes, w32_system_process_attributes)
fe0a6f3b
JB
973 (enable_privilege, restore_privilege, ltime, process_times):
974 New functions.
8f8b082a
EZ
975 (convert_time_raw): New function.
976 (convert_time): Remove conversion of FILETIME into time in 100
977 nsec units, call convert_time_raw instead.
978
979 * process.h (w32_list_system_processes, w32_system_process_attributes):
980 Add prototypes.
981 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
982 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
983 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
984 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
985
986 * process.c (Fsystem_process_attributes): Doc fix.
987
97c98587
CY
9882008-08-08 Chong Yidong <cyd@stupidchicken.com>
989
fe0a6f3b
JB
990 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
991 a continued multi-char glyph; if so, advance to the actual glyph.
97c98587 992
48fad8e8
DN
9932008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
994
fe0a6f3b 995 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
48fad8e8
DN
996
997 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
998 (.m.o): Use it.
999 * config.in: Regenerate.
1000
709fc721
CY
10012008-08-07 Chong Yidong <cyd@stupidchicken.com>
1002
1003 * xdisp.c (redisplay_window): Revert last change.
1004 (try_window): Check bottom scroll margin too.
1005
b330336c
AR
10062008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1007
1008 * config.in: Regenerate.
1009
10d1d0af 1010 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
b330336c
AR
1011 -list-load-path-shadows'.
1012 (nsgui.h): Reduce number of things depending on it.
1013
b2c5015c
CY
10142008-08-06 Chong Yidong <cyd@stupidchicken.com>
1015
1016 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
1017 instead of window-end which does the wrong thing at eob.
1018 (try_cursor_movement): Minor optimization.
1019 (redisplay_window): If scroll margin is defined, don't assume
1020 window doesn't need scrolling.
1021
55737942
AR
10222008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1023
1024 * config.in: Regenerate.
1025
1026 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
1027 (mostlyclean): Don't delete *.d under NS.
1028
1029 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
1030
29428bb8
KH
10312008-08-06 Kenichi Handa <handa@m17n.org>
1032
fe0a6f3b 1033 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
29428bb8 1034
5c17fc1d
AS
10352008-08-06 Andreas Schwab <schwab@suse.de>
1036
1037 * config.in: Regenerate.
1038
cd7f53ca
CY
10392008-08-05 Chong Yidong <cyd@stupidchicken.com>
1040
012fd6f4
CY
1041 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
1042 forcing a window start.
1043
cd7f53ca
CY
1044 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
1045 (auto_save_1): Update modtime when auto-save-list-file-name is on.
1046
3d0a4431
AR
10472008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1048
95889848 1049 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3d0a4431
AR
1050 argument.
1051
d765e3a3
JB
10522008-08-05 Juanma Barranquero <lekktu@gmail.com>
1053
1054 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
1055 <scroll-down-aggressively, before-change-functions>:
1056 <after-change-functions>: Reflow docstrings.
1057
4e622592 10582008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8df8bcc9 1059 Ken Raeburn <raeburn@gnu.org>
4e622592
AR
1060
1061 Dock menu customization, based on a patch by Ken Raeburn, plus some
1062 other fixes.
1063 * nsmenu.m (dockMenu): New variable.
1064 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
1065
1066 * nsterm.h (dockMenu): Declare.
1067
1068 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
1069 (ns_term_init): Initialize dockMenu.
1070 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
1071 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
1072 left.
1073
1074 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
1075
108a6883
CY
10762008-08-04 Chong Yidong <cyd@stupidchicken.com>
1077
1078 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
1079
1080 * config.in: Regenerate.
1081
ae10f60c
SZ
10822008-08-04 Seiji Zenitani <zenitani@mac.com>
1083
d765e3a3 1084 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
ae10f60c 1085
b537b75b
CY
10862008-08-04 Chong Yidong <cyd@stupidchicken.com>
1087
1088 * nsterm.h (find_and_call_menu_selection): Fix prototype.
1089
14145fa3
AR
10902008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
1091
1092 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
1093
1094 * keyboard.h: Comment an #endif.
1095
07b87a10
AR
1096 * lisp.h (have_menus_p): Adjust comment.
1097
1098 * menu.c (find_and_return_menu_selection): Fix comparison with
1099 client_data.
1100
1101 * nsmenu.m (popup_activated_flag): New variable.
1102 (popup_activated): New function.
1103 (menu-or-popup-active-p): New exported lisp definition.
1104 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
1105 when popup done.
1106 (ns_popup_dialog): Set popup_activated_flag.
1107
4e622592 1108 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14145fa3
AR
1109 version for GNUstep (handled by conditional typedef in nsterm.m).
1110 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
1111 in rgb.txt).
1112
1113 * process.c (init_process): Use DARWIN_OS, not DARWIN.
1114
1115 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
1116
07b87a10
AR
1117 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
1118
1119 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
1120 shortcircuit if popup_activated like GTK and X toolkit.
1121
14145fa3
AR
1122 * m/inter386.h: Change DARWIN to DARWIN_OS.
1123
1124 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
1125 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
07b87a10
AR
1126 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
1127 comment on NO_SOCK_SIGIO.
14145fa3 1128
6e09bde1
CY
11292008-08-03 Chong Yidong <cyd@stupidchicken.com>
1130
14145fa3 1131 * nsterm.m (windowDidResize): Remove stopModal call.
6e09bde1 1132
a023b559
AS
11332008-08-03 Andreas Schwab <schwab@suse.de>
1134
51757187
AS
1135 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
1136 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
a023b559 1137
a2dec0e5
CY
11382008-08-02 Chong Yidong <cyd@stupidchicken.com>
1139
1140 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
1141 Don't use uninitialized pointer variable when using getrlimit.
1142
4ff1bf17
JR
11432008-08-02 Jason Rumney <jasonr@gnu.org>
1144
4342f814 1145 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4ff1bf17 1146
934e2a68
EZ
11472008-08-02 Eli Zaretskii <eliz@gnu.org>
1148
0078170f
EZ
1149 * alloc.c (NSTATICS): Bump to 0x640.
1150
934e2a68
EZ
1151 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
1152
1153 * lisp.h: Add prototype for directory_files_internal.
1154
1155 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
1156 New functions.
1157 (syms_of_process): Defsubr them. Add initializations for various
1158 Q* symbols used in procfs_system_process_attributes.
1159 (procfs_list_system_processes, procfs_system_process_attributes)
1160 [HAVE_PROCFS]: New functions.
1161 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
1162 (procfs_get_total_memory): New functions.
1163
dee8cd43
JB
11642008-08-01 Juanma Barranquero <lekktu@gmail.com>
1165
1166 * xfaces.c (Fx_load_color_file): Fix previous change;
1167 it is #ifdef WINDOWSNT, not WINDOWS_NT.
1168
367ea173
MA
11692008-08-01 Michael Albinus <michael.albinus@gmx.de>
1170
1171 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
1172
04f33e11
AR
11732008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1174
1175 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
1176
73592876
CY
11772008-08-01 Chong Yidong <cyd@stupidchicken.com>
1178
dee8cd43 1179 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6fcb12fd
CY
1180
1181 * nsterm.m (EmacsApp -application:openFiles:): GNUStep does not
1182 define NSApplicationDelegateReplySuccess.
1183 (EmacsView -converstationIdentifier): Use long instead of
1184 NSInteger for GNUStep, since it doesn't have NSInteger.
1185
61bf63e2
CY
1186 * xmenu.c: Revert last change.
1187
73592876
CY
1188 * keyboard.h: Fix last change.
1189
ebadbfa6
AR
11902008-08-01 Juanma Barranquero <lekktu@gmail.com>
1191
1192 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
1193 on Windows.
1194
15034960 11952008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
f78c2c97 1196
15034960 1197 Warning clearing and clean-up in NS port.
dee8cd43
JB
1198 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
1199 Add prototypes.
15034960
AR
1200 * nsgui.h (FACE_DEFAULT): Remove, unused.
1201 (XGCValues): Change colors to unsigned long.
1202 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
1203 nsterm.m.
1204 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
1205 (ns_list_fonts): Remove, unused.
1206 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
1207 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
1208 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
1209 (nsfont_draw): Compare face colors to 0, not nil.
1210 * nsmenu.m (struct widget_value): Drop unneeded declaration.
1211 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
1212 (-addSubmenuWithTitle:): Use NSMenuItem class.
1213 (ns_popup_menu): Use NO, not NULL, for enabled setting.
1214 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
1215 (ns_clip_to_row): Make gc arg a BOOL.
1216 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
1217 ns_clip_to_row() call.
1218 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
87e204a2 1219 used). Cast FRAME_FONT assignments.
15034960
AR
1220 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
1221 (ns_string_to_lispmod): Change arg to const char.
1222 (ns_term_init): Use NSMenuItem class.
1223 (EmacsApp -openFile:): Move to different section of file.
1224 (EmacsApp -application:openFiles:): Don't return a value, call
1225 -replyToOpenOrPrint:.
1226 (EmacsView -keyDown:): Fix up cast.
1227 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
1228 (EmacsView -menuDown:): Cast tag in call to
1229 find_and_call_menu_selection().
1230 (ns_list_fonts): Remove, unused.
1231 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
1232 (ns_fontname_to_xlfd): Make static.
dee8cd43
JB
1233 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
1234 Remove prototypes (now in keyboard.h).
15034960 1235 (next_menubar_widget_id): Remove, unused.
dee8cd43
JB
1236 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
1237 Remove prototypes (now in keyboard.h).
15034960
AR
1238 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
1239
27ec92c9
DN
12402008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
1241
f78c2c97
DN
1242 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
1243 (floatfns.o): Depend on syssignal.h.
1244 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
1245
dee8cd43
JB
1246 * systty.h: Fix previous change that removed BSD_TERMIOS.
1247 Add comments to #ifdefs.
27ec92c9 1248
7ded3383
AR
12492008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1250
1251 * w32fns.c (w32-load-color-file): Remove.
1252 (x-open-connection): Use renamed Fx_load_color_file.
1253 * xfaces.c (x-load-color-file): Add.
1254 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
1255 Emacs.clr.
7ded3383
AR
1256 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
1257
13ecc6dc
MA
12582008-07-31 Michael Albinus <michael.albinus@gmx.de>
1259
1260 * dbusbind.c (Fdbus_call_method_asynchronously)
1261 (Fdbus_method_error_internal): New defuns.
1262 (xd_read_message): Handle also reply messages.
1263 (Vdbus_registered_functions_table): Extend docstring.
1264
12063bc5
JB
12652008-07-31 Juanma Barranquero <lekktu@gmail.com>
1266
1267 * keyboard.c (gobble_input): Fix previous change.
1268
7c2fb837
DN
12692008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
1270
1271 * bitmaps/README:
1272 * xfns.c:
1273 * termcap.c:
1274 * term.c:
1275 * syswait.h:
1276 * systty.h:
1277 * systime.h:
1278 * syssignal.h:
1279 * sysdep.c:
1280 * process.h:
1281 * process.c:
1282 * print.c:
1283 * ndir.h:
1284 * lread.c:
1285 * keyboard.c:
1286 * getpagesize.h:
1287 * floatfns.c:
1288 * fileio.c:
1289 * emacs.c:
1290 * doc.c:
1291 * dispnew.c:
1292 * dired.c:
1293 * data.c:
1294 * callproc.c:
1295 * buffer.c:
1296 * README:
1297 * Makefile.in:
1298 * s/template.h:
1299 * s/msdos.h:
1300 * m/vax.h: Remove VMS support.
1301 * s/vms.h:
1302 * vlimit.h:
1303 * uaf.h:
1304 * temacs.opt:
1305 * param.h:
1306 * ioctl.h: Remove file.
1307
69ab3201
DN
13082008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
1309
1310 * s/ms-w32.h (MULTI_KBOARD): Remove.
1311 * xterm.c:
1312 * xselect.c:
1313 * xfns.c:
1314 * window.c:
1315 * w32term.c:
1316 * w32fns.c:
1317 * terminal.c:
1318 * termhooks.h:
1319 * term.c:
1320 * sysdep.c:
1321 * keyboard.h:
1322 * keyboard.c:
1323 * frame.h:
1324 * frame.c:
d765e3a3 1325 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
69ab3201
DN
1326 * config.in: Regenerate.
1327
bd187c49
JR
13282008-07-30 Jason Rumney <jasonr@gnu.org>
1329
12063bc5 1330 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
bd187c49 1331
12063bc5
JB
1332 * w32font.c (w32font_encode_char): Leave as unicode if in range.
1333 (w32font_open_internal): Get unicode version of textmetrics.
1334 Don't enable or disable glyph indices here.
1335 (w32font_open): Disable use of glyph indices.
bd187c49 1336
12063bc5 1337 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
bd187c49 1338
e3072df2
CY
13392008-07-30 Chong Yidong <cyd@stupidchicken.com>
1340
39dde873 1341 * minibuf.c (Vread_buffer_function): Doc fix.
e3072df2 1342
bc850333
CY
13432008-07-30 John Paul Wallington <jpw@pobox.com>
1344
1345 * minibuf.c (read_buffer_completion_ignore_case): New var.
1346 (Fread_buffer): Use it.
1347
9d9a7716
DN
13482008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1349
1350 * systty.h (sensemode): Remove empty #if. Remove reference to
1351 BSD_TERMIOS, unused.
1352
1353 * sysdep.c: Remove reference to DGUX.
1354 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
1355
1356 * config.in: Regenerate.
1357
0c34f98e
JR
13582008-07-30 Jason Rumney <jasonr@gnu.org>
1359
12063bc5 1360 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
0c34f98e 1361
c320e90a
JR
13622008-07-29 Jason Rumney <jasonr@gnu.org>
1363
12063bc5
JB
1364 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
1365 is populated.
1366 (uniscribe_encode_char): Always use uniscribe.
1367 Avoid using context if cache is populated.
c320e90a 1368
3f7ead30
JD
13692008-07-29 Jan Djärv <jan.h.d@swipnet.se>
1370
1371 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
1372 open menu.
1373
1374 * gtkutil.c (menu_nav_ended): Remove.
1375 (create_menus): Remove signal connect for menu_nav_ended.
1376
639eebe2
CY
13772008-07-28 Chong Yidong <cyd@stupidchicken.com>
1378
1379 * xdisp.c (redisplay_window): Check return value of
1380 compute_window_start_on_continuation_line before forcing a window
1381 start.
1382
d1f535d2
JR
13832008-07-28 Jason Rumney <jasonr@gnu.org>
1384
0e134ea0 1385 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9cac6313 1386
0e134ea0
JB
1387 * w32term.c (w32_enable_unicode_output, cleartype_active):
1388 Remove obsolete display options.
1389 (x_draw_glyph_string_background): Don't use old cleartype_active
1390 workaround.
1391 (w32_initialize): Remove cleartype_active initialization.
1392 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
d1f535d2 1393
ddaa36e1
AS
13942008-07-28 Andreas Schwab <schwab@suse.de>
1395
1396 * lisp.h (init_weak_hash_tables, syms_of_font)
1397 (xd_read_queued_messages, syms_of_dbusbind): Declare.
1398 (remove_hash_entry): Don't declare.
1399 * eval.c (maybe_call_debugger): Make static and move before use.
1400 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
1401 * xdisp.c: Include "gtkutil.h" if USE_GTK.
1402 * xterm.h (x_set_frame_alpha): Declare.
1403
42ffd097
JD
14042008-07-28 Jan Djärv <jan.h.d@swipnet.se>
1405
1406 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
1407 (create_menus): Connect selection-done to menu_nav_ended.
1408
bd6ce2ba
AR
14092008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1410
1411 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
1412 Set Vx_resource_name to a fallback. Replace read of 'buffered'
1413 parameter with read of 'alpha' one.
1414 (Qns_frame_parameter): Remove.
1415 * nsselection.m (selection-coding-system)
1416 (next-selection-coding-system, Vselection_coding_system)
1417 (Vnext_selection_coding_system): Drop.
1418
583ff3c3
AR
14192008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1420
1421 * nsfns.m (do-applescript, do_applescript): Rename to
1422 ns-do-applescript, ns_do_applescript, and move within file.
1423
9e2a2647
DN
14242008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1425
1426 Remove support for Mac Carbon.
1427 * mactoolbox.c:
1428 * macterm.h:
1429 * macterm.c:
1430 * macselect.c:
1431 * macmenu.c:
1432 * macgui.h:
1433 * macfns.c:
1434 * mac.c: Remove file.
1435 * s/darwin.h:
1436 * m/intel386.h:
1437 * xfaces.c:
1438 * xdisp.c:
1439 * window.c:
1440 * tparam.c:
1441 * termhooks.h:
1442 * termcap.c:
1443 * term.c:
1444 * syssignal.h:
1445 * sysselect.h:
1446 * sysdep.c:
1447 * process.c:
1448 * lread.c:
1449 * lisp.h:
1450 * keyboard.c:
1451 * image.c:
1452 * fringe.c:
1453 * frame.h:
1454 * frame.c:
1455 * fontset.c:
1456 * font.h:
1457 * font.c:
1458 * fns.c:
1459 * fileio.c:
1460 * emacs.c:
1461 * dispnew.c:
1462 * dispextern.h:
1463 * config.in:
1464 * atimer.c:
1465 * Makefile.in: Remove code for Carbon
1466
7ad8fe5e 14672008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4874e088 1468
7ad8fe5e 1469 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
69eff41f 1470
7ad8fe5e 14712008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
69eff41f 1472
7ad8fe5e
MB
1473 * macterm.h (kCGBitmapByteOrder32Host): New define for
1474 non-universal SDKs.
69eff41f 1475
7ad8fe5e
MB
1476 * image.c (mac_create_cg_image_from_image, image_load_image_io)
1477 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 1478
7ad8fe5e
MB
1479 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
1480 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 1481
7ad8fe5e 14822008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
09721b31 1483
0e134ea0 1484 * w32inevt.c: Include dispextern.h.
09721b31 1485
51dc79f8
AS
14862008-07-26 Andreas Schwab <schwab@suse.de>
1487
1488 * print.c (print_object): Fix off-by-one in last change.
1489
dea101f6
JB
14902008-07-25 Juanma Barranquero <lekktu@gmail.com>
1491
1492 * term.c (syms_of_term): Don't initialize default_orig_pair,
1493 default_set_foreground and default_set_background on Windows.
1494
11856d4d
JR
14952008-07-25 Jason Rumney <jasonr@gnu.org>
1496
0e134ea0
JB
1497 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
1498 ScriptItemize. Clean up return value checking. Remove unused
1499 variables.
1500 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
1501 shaping engine.
11856d4d 1502
0e134ea0
JB
1503 * w32font.c (w32font_has_char): Handle the case where we can't
1504 determine the script for a character.
11856d4d 1505
7bfc0e9e
CY
15062008-07-25 Chong Yidong <cyd@stupidchicken.com>
1507
acdadb15
CY
1508 * term.c (syms_of_term): Initialize default_orig_pair,
1509 default_set_foreground, and default_set_background.
1510
5efc6200
CY
1511 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
1512 clash (bug#86).
1513 (getloadavg): Callers changed.
1514
7bfc0e9e 1515 * image.c (svg_load_image): Fix last change.
c01c4e35
CY
1516 (svg_load_image): Use rsvg_handle_get_dimensions to check that
1517 image size is valid. Use g_object_unref instead of deprecated
1518 rsvg_handle_free to free rsvg handle.
9d7112ed 1519 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7bfc0e9e 1520
f31cf550
JR
15212008-07-25 Jason Rumney <jasonr@gnu.org>
1522
0e134ea0
JB
1523 * w32font.c (w32font_encode_char): Encode characters outside BMP as
1524 surrogates before looking up glyph index.
1525 (w32font_text_extents): Encode as surrogates if falling back to
1526 functions that need UTF-16 wide chars.
f31cf550 1527
0e134ea0
JB
1528 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
1529 BMP as surrogates before looking up glyph index.
f31cf550 1530
b293d659
CY
15312008-07-25 Chong Yidong <cyd@stupidchicken.com>
1532
1533 * image.c (svg_load_image): Check for failure in return value of
1534 rsvg_handle_get_pixbuf. Free rsvg handle when done.
1535
1ada3dab
JR
15362008-07-25 Jason Rumney <jasonr@gnu.org>
1537
0e134ea0 1538 * w32font.c (Fx_select_font): Reverse sense of second arg.
1ada3dab 1539
dbc812e0
SM
15402008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
1541
6449674e
SM
1542 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
1543 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
1544
dbc812e0
SM
1545 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
1546 (PURESIZE): Use it.
1547
67725bd8
DN
15482008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1549
340074e9
DN
1550 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
1551 * m/alpha.h (TEXT_END):
1552 * m/ibmrs6000.h (TEXT_END):
1553 * m/macppc.h (TEXT_END):
1554 * s/darwin.h (TEXT_END):
1555 * s/msdos.h (TEXT_END): Remove, unused.
1556 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
1557 * s/cygwin.h: Remove comment.
1558
a11af7f8
DN
1559 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
1560 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
1561 * m/intel386.h (DOT_GLOBAL_START):
1562 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
1563 (USG): Remove, file not used on USG platforms.
1564
67725bd8
DN
1565 * Makefile.in (HAVE_X11): Remove empty #else.
1566
6420e80c
AS
15672008-07-24 Andreas Schwab <schwab@suse.de>
1568
1569 * fileio.c (Finsert_file_contents): Properly adjust undo list
1570 after format conversion.
1571
d1c38b57
JD
15722008-07-24 Jan Djärv <jan.h.d@swipnet.se>
1573
1574 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
1575 (menu_nav_ended): Remove.
1576 (create_menus): Remove signal connect for menu_nav_ended.
1577 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
1578 create_menus.
1579 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
1580
597634cb
JR
15812008-07-23 Jason Rumney <jasonr@gnu.org>
1582
dbc812e0
SM
1583 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
1584 with opened font.
1585 (w32font_open): Set font type to gdi.
4b135503 1586
dbc812e0 1587 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
597634cb 1588
7c799cf5
DN
15892008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
1590
7a14f2a0
DN
1591 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
1592 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
1593 defines it.
1594 * unexec.c (ADDR_CORRECT): Define unconditionally.
1595
1596 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
1597
f914a6bf
DN
1598 * unexec.c: Remove code depending on !COFF and USG, the file is
1599 not used for such systems.
1600
268b24ee
DN
1601 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
1602 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
1603 (LD_SWITCH_SYSTEM_1): Remove, update users.
1604
911109b1
DN
1605 * s/darwin.h (DATA_END):
1606 * m/intel386.h (DATA_END):
1607 * m/ibmrs6000.h (DATA_END):
1608 * m/alpha.h (DATA_END): Remove, unused.
911109b1 1609
77ccee09
DN
1610 * config.in: Regenerate.
1611 * s/ms-w32.h (subprocesses): Define unconditionally.
1612 * s/template.h (subprocesses): Update comment.
1613 * s/vms.h (subprocesses):
1614 * s/usg5-4.h (subprocesses):
1615 * s/hpux10-20.h (subprocesses):
1616 * s/gnu-linux.h (subprocesses):
1617 * s/cygwin.h (subprocesses):
1618 * s/bsd-common.h (subprocesses):
1619 * s/aix4-2.h (subprocesses):
1620 * s/darwin.h (subprocesses): Do not define, defined by default now.
1621
1622 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
1623 Remove all references.
1624 (temacs): Add GNUStep specific ld flags.
1625
7c799cf5
DN
1626 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
1627 similarly to what X does.
1628
712b2de1
AR
16292008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1630
1631 * nsfns.m (x-list-fonts): Remove.
1632 (syms_of_nsfns): Drop the x-list-fonts declaration.
1633 * nsterm.m: Get rid of remaining "//" comments.
1634
0d4e1b5f
CY
16352008-07-22 Chong Yidong <cyd@stupidchicken.com>
1636
1637 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
1638
1639 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
1640 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
1641 (Fns_own_selection_internal, Fx_disown_selection_internal)
1642 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
1643
1644 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
1645 ... */' style of docstrings. Doc fixes.
1646
952913d4
DN
16472008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1648
0ecc3474 1649 * terminfo.c (UP, BC, PC): Undo previous change.
0d4e1b5f 1650
952913d4
DN
1651 * nsfns.m: Rename ns prefixed functions/variables to the
1652 corresponding x versions. Update references.
1653
02d8b017
SM
16542008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
1655
1656 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
1657
11b8fe14
DN
16582008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1659
02d8b017
SM
1660 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
1661 Remove forwarding functions.
cc98b6a0
DN
1662 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
1663 non-static.
1664 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
1665 non-static.
1666 (ns_frame_parm_handlers): Use the new names.
1667 (syms_of_nsfns): Move to the end of file.
1668
1baa6236
DN
1669 * nsterm.m (syms_of_nsterm): Move to the end of file.
1670
11b8fe14
DN
1671 * dispnew.c (init_display): Remove code for X10.
1672
8dcaeba2
JR
16732008-07-22 Jason Rumney <jasonr@gnu.org>
1674
02d8b017
SM
1675 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
1676 bare drive.
8dcaeba2 1677
365bac35
AR
16782008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1679
1680 * nsterm.m (syms_of_nsterm): Remove debugging println.
1681
6a0f0f86
DR
16822008-07-22 David Reitter <david.reitter@gmail.com>
1683
a3c83618 1684 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6a0f0f86
DR
1685 Carbon implementation of the same functionality: execute arbitrary
1686 AppleScript code.
1687
51d5ef9f
AR
16882008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1689
a3c83618 1690 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
51d5ef9f
AR
1691 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
1692 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1693 (Fx_display_mm_height, Fx_display_mm_width)
1694 (Fx_display_backing_store, Fx_display_visual_class)
1695 (Fx_display_save_under, Fx_open_connection)
1696 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
1697 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
1698 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1699 (Fx_display_pixel_width, Fx_display_pixel_height)
1700 (Fx_display_usable_bounds, Fx_display_planes)
1701 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
1702 ... */' style of docstrings.
1703
6efac844
DN
17042008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
1705
b8ff87cc
DN
1706 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
1707 on this platform.
1708 (mips):
1709 * m/iris4d.h (mips): Do not define.
1710 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
1711
92d1a7a3
DN
1712 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
1713
de08d1be
CY
1714 * image.c:
1715 * nsfns.m:
1716 * nsselect.m:
1717 * nsterm.h:
9e50ff0c
DN
1718 * nsterm.m: Rename ns prefixed functions/variables to the
1719 corresponding x versions. Update references.
1720
ff486501
DN
1721 * m/ibms390x.h (NO_REMAP): Do not undefine.
1722
6efac844
DN
1723 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
1724
ea9de876
CY
17252008-07-21 Chong Yidong <cyd@stupidchicken.com>
1726
1727 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
1728 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
1729 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
1730 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
1731 (Fns_display_mm_height, Fns_display_mm_width)
1732 (Fns_display_backing_store, Fns_display_visual_class)
1733 (Fns_display_save_under, Fns_open_connection)
1734 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
1735 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
1736 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1737 (Fns_display_pixel_width, Fns_display_pixel_height)
1738 (Fns_display_usable_bounds, Fx_display_planes)
1739 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
1740
b42f4115 17412008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3965adab
CY
1742
1743 * print.c (print_object): Check print_depth before searching for
1744 circularities.
1745
c0894fb9
MA
17462008-07-21 Michael Albinus <michael.albinus@gmx.de>
1747
1748 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
1749 only sprintf.
1750
d90bfd1c
KH
17512008-07-21 Kenichi Handa <handa@m17n.org>
1752
10d1d0af 1753 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
d90bfd1c 1754
8e2911c2
AS
17552008-07-20 Andreas Schwab <schwab@suse.de>
1756
1757 * syntax.c (find_start_pos, find_start_value)
1758 (find_start_value_byte, find_start_begv, find_defun_start)
dbc812e0 1759 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8e2911c2 1760
98a01702
DN
17612008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
1762
1763 * s/sol2-3.h: Insert contents of s/sol2.h.
1764 (LD_SWITCH_SYSTEM): Remove redundant definition.
1765 * s/sol2.h: Remove, unused.
1766
704a3a2d
AR
17672008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1768
dbc812e0 1769 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
704a3a2d
AR
1770
17712008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
e5e2baab
AR
1772
1773 * Makefile.in (ns_appdir): Fix typo in find command.
1774
89f1e540
DN
17752008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
1776
c788afce
DN
1777 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
1778
89f1e540
DN
1779 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
1780 added not supported anymore.
1781
e5e2baab 1782 * s/usg5-4-2.h (LIBS_SYSTEM):
89f1e540
DN
1783 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
1784
1785 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
1786 * s/lynxos.h (GETPGRP_NO_ARG):
1787 * s/hpux10-20.h (NO_SIOCTL_H):
1788 * s/gnu.h (GETPGRP_NO_ARG):
1789 * s/gnu-linux.h (NO_SIOCTL_H):
1790 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
1791 * s/cygwin.h (GETPGRP_NO_ARG):
1792 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
1793 (C_DEBUG_SWITCH): Remove duplicate definition.
1794
1795 * m/ibms390.h: Remove boilerplate comments.
1796
1797 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
1798
1799 * process.c (HAVE_SERIAL): Consolidate ifdefs.
1800 (wait_reading_process_output): Remove code for SunOS, platform not
1801 supported anymore. Use SOLARIS2 instead of sun.
1802
ed96cde8
AR
18032008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1804
1805 * font.c (font_open_by_name): Under NS, default lface height to zero.
1806 (font_open_for_lface): Under NS, set size based on frame fontsize.
1807 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
1808 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
1809
18102008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1811
1812 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
1813 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
1814 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
1815 YES/NO.
1816 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
1817 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
1818 * Makefile.in (clean): Clear out build destination dir.
1819
5a2d7ab6
AR
18202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1821
1822 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
1823 xterm, xselect.
1824 * lisp.h: Remove declaration of hash_remove.
1825 * nsgui.h: Remove redefinitions of hash_remove.
1826 * fns.c (hash_remove): Rename to hash_remove_from_table.
1827
8df8bcc9 18282008-07-19 Seiji Zenitani <zenitani@mac.com>
c0230162
AR
1829
1830 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8df8bcc9 1831 strdup() the family UTF8String before modifying it.
c0230162 1832
45d325c4
AR
18332008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1834
45d325c4
AR
1835 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
1836 NS_FACE_BACKGROUND with 0 instead of nil.
1837 * nsfont.m (nsfont_draw): Same.
1838
8df8bcc9
GM
18392008-07-19 Chong Yidong <cyd@stupidchicken.com>
1840
1841 * nsfns.m (ns_set_background_color): Fix crash.
1842
b83f1cd0
CY
18432008-07-18 Chong Yidong <cyd@stupidchicken.com>
1844
1845 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
1846
add4eecc
DN
18472008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
1848
1849 * puresize.h (BASE_PURESIZE): Increase to 1240000.
1850
69955d31
YM
18512008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1852
1853 * gtkutil.c: Include <config.h> instead of "config.h".
1854
1855 * lisp.h (Foverlay_buffer): Add EXFUN.
1856
1857 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
1858 child process to complete child_setup. Undo 2005-09-21 change.
1859
1860 * s/darwin.h: Mention setsid after vfork.
1861
08b3caa9 18622008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2d64e9bb
YM
1863
1864 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
1865 Depend on macgui.h.
1866
1867 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
1868 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
1869
1870 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
1871 and f19.
1872 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
1873
1874 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
1875 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
1876 Remove enumerators.
1877
1878 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
1879 Check if FACE_FROM_ID returns NULL.
1880
8d59c5ed
JR
18812008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
1882
ba60bd44
JB
1883 * w32inevt.c (change_frame_size): Remove extern declaration.
1884 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
1885 change_frame_size.
8d59c5ed 1886
ba60bd44 18872008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
db94bf9c
AR
1888
1889 * getloadavg.c: Revert last change (2008-07-15).
1890
ba60bd44 18912008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
06b62770
AR
1892
1893 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
1894 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
1895 from configure.
1896
2749d28e
DN
18972008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
1898
35ad0545
DN
1899 * s/sol2.h:
1900 * s/sol2-4.h: Reorganize conditionals.
1901
2749d28e
DN
1902 * ecrt0.c: Remove code depending on m68000, not used anymore.
1903
1904 * fns.c (hash_remove): Make static.
1905 * lisp.h (hash_remove): Don't prototype.
1906
1907 * m/ibmrs6000.h:
1908 * m/ibms390x.h:
1909 * m/macppc.h: Remove boilerplate comments.
1910
1911 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
1912 Solaris, which does not need them.
1913
1914 * m/vax.h: Remove comments about unsupported systems.
1915
1916 * s/darwin.h: Reorganize ifdefs.
1917
32cc3925
AS
19182008-07-17 Andreas Schwab <schwab@suse.de>
1919
1920 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
1921
facfbbbd
SM
19222008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1923
1924 Use SDATA. Follow coding convention of placing operators at
1925 beginning of next line rather than end of previous line, and placing
1926 spaces around infix operators.
1927
1928 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
1929 in case it was defined already.
1930 USE @GNUSTEP_MAKEFILES@ rather than envvars.
1931 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
1932 ns_default.
1933 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
1934 Lisp_Objects.
1935 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
1936 (ns_defined_color, ns_color_to_lisp): Declare.
1937 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
1938 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
1939 it's accepted even with USE_LISP_UNION_TYPE.
1940 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
1941 (update_frame_tool_bar): Remove apparently obsolete tests for
1942 non-integerness of f->tool_bar_lines.
1943 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
1944 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
1945 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
1946 (nsfont_open): Don't confuse NULL for Qnil.
1947 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
1948 * menu.h (find_and_call_menu_selection):
1949 * menu.c (find_and_call_menu_selection): Use just int for vector size.
1950 (find_and_return_menu_selection): Always return something.
1951 * frame.h: Include dispextern.h for Display_Info.
1952 (display_x_get_resource): Declare.
1953
ba60bd44 19542008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
122e9f8f
AR
1955
1956 * syntax.c: Remove stdio.h include accidentally introduced in
1957 Emacs.app commit.
1958 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
1959 NS_IMPL_COCOA.
1960 * keyboard.c (handle_async_input, input_available_signal): Remove
1961 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
1962
0bcfd7d7
SM
19632008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1964
6882361b
SM
1965 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
1966 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
1967 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
1968 Use SDATA.
1969
0bcfd7d7
SM
1970 * keymap.c: Remove all NS-specific code.
1971 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
1972 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
1973 where_is_preferred_modifier, return a different value depending on how
1974 preferred is the binding.
1975 (where_is_internal): Adjust accordingly.
1976 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
1977 Adjust to new preferred_sequence_p.
1978 (syms_of_keymap): Declare `where-is-preferred-modifier'.
1979 * keyboard.c (parse_solitary_modifier): Not static any more.
1980 * keyboard.h (parse_solitary_modifier): Declare.
1981
720f3147
AS
19822008-07-16 Andreas Schwab <schwab@suse.de>
1983
1984 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
1985 of easymenu.
1986
01e19fea
CY
19872008-07-16 Chong Yidong <cyd@stupidchicken.com>
1988
1989 * xdisp.c (move_it_in_display_line): Account for word wrap, so
1990 that we don't move off the line.
1991
4c89a3e0
SM
19922008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1993
1994 * keyboard.c (Qsuper): Remove.
1995 (parse_menu_item): Don't call where_is_internal specially for NS.
1996
586b975c
DN
19972008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1998
3ec8ef33
DN
1999 * s/gnu-linux.h: Remove boilerplate comments.
2000
d4d080b6
DN
2001 * m/alpha.h (__ELF__): Consolidate conditions.
2002
7ab56cc4
DN
2003 * m/m68k.h (linux): Use GNU_LINUX instead.
2004 Remove boilerplate comments.
2005
10d1d0af 2006 * m/intel386.h: Undo refactoring from previous change.
7ab56cc4
DN
2007 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
2008 too, remove dead code.
2009 (linux): Use GNU_LINUX instead.
586b975c 2010
5cc9d48a
JR
20112008-07-16 Jason Rumney <jasonr@gnu.org>
2012
4c89a3e0 2013 * w32gui.h: Repeat 26 June changes lost by last change.
5cc9d48a 2014
6b0273cd
DN
20152008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
2016
132d0475
DN
2017 * systty.h: Remove code for Aix on 386, unsupported platform.
2018
2019 * s/ms-w32.h: Remove boilerplate comments.
2020 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
2021
2022 * s/gnu-linux.h (TERM): Remove support.
2023 (HAVE_SYSVIPC): Remove, unused.
2024 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
2025 for this system.
2026
2027 * process.c: Remove support for IRIS, unused.
2028 Remove support for TERM, not relevant anymore.
2029
2030 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
2031 used with the definition.
2032
2033 * s/aix4-2.h (static): Do not undef.
2034
2035 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
2036 only used on Aix.
2037 (HAVE_SYSVIPC): Remove, unused.
2038
2039 * m/hp800.h (CANNOT_DUMP): Do not undef.
2040
2041 * m/alpha.h: Fix comment.
2042
8111c2d8
DN
2043 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
2044 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
2045 used by this configuration.
2046 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
2047 * unexec.c: Remove code depending on HPUX and
2048 USG_SHARED_LIBRARIES, not used with this file. Remove code
2049 depending on IRIS, unused. Remove if 0-ed code.
2050
e9a57a88
DN
2051 * s/template.h: Remove comments about static.
2052
4c89a3e0
SM
2053 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
2054 Remove if 0-ed code.
c7607b94
DN
2055 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
2056 were the same as the default.
2057 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
2058 Remove boilerplate comments.
2059 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
2060 (HAVE_SYSVIPC): Remove, unused.
2061 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
2062
ff841b30
DN
2063 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2064 Remove boilerplate comments.
2065 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2066 Remove boilerplate comments.
2067 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
2068 Remove boilerplate comments.
2069 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
2070
586b975c
DN
2071 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
2072 USG systems which do not use DATA_SEG_BITS.
2073 Refactor code. Remove boilerplate comments.
2074
dc89925b 2075 * m/ibms390.h:
dc89925b
DN
2076 * m/m68k.h:
2077 * s/bsd-common.h:
2078 * s/cygwin.h:
2079 * s/darwin.h:
2080 * s/freebsd.h:
2081 * s/gnu.h:
2082 * s/msdos.h: Remove boilerplate comments.
2083
96b72211
DN
2084 * m/iris4d.h: Remove boilerplate comments and code for systems that
2085 do not use this file.
2086 (IRIS_4D): Remove, unused.
2087
c3b5f109
DN
2088 * m/mips.h: Remove boilerplate comments and code for systems that
2089 do not use this file.
96b72211 2090 (SIGN_EXTEND_CHAR):
c3b5f109
DN
2091 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
2092 * unexmips.c: Remove file, unused.
2093
6b0273cd
DN
2094 * editfns.c (Fuser_full_name): Replace the only use of
2095 USER_FULL_NAME with its value.
2096 * config.in: Regenerate.
2097
ba60bd44 20982008-07-16 David Reitter <david.reitter@gmail.com>
6fbcfb6f 2099
ba60bd44
JB
2100 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
2101 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6fbcfb6f 2102
44ac2d3e
GM
21032008-07-16 Glenn Morris <rgm@gnu.org>
2104
2105 * emacs.c (system-type): Doc fix.
2106
0a170079
SM
21072008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
2108
2109 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
2110 If the cache doesn't work, let's fix it, rather than work around it.
2111
ba60bd44 21122008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
a68fda4a
AR
2113
2114 * Makefile.in: Correct additions for nsfont.o in last commit.
2115 * nsfont.m: New file (forgot last commit).
2116
8df8bcc9
GM
21172008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
2118
2119 * callproc.c (set_initial_environment): Initialize
2120 Vprocess_environment under CANNOT_DUMP (fixes crash when
2121 batch-compiling for bootstrap).
2122
21232008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
2124 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2125
2126 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
2127 fix crash due to different init order.
2128
ba60bd44 21292008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
edfda783
AR
2130
2131 Changes and additions for NeXTstep windowing system (Cocoa and
2132 GNUstep) support.
2133
ba60bd44 2134 * Makefile.in:
edfda783
AR
2135 * config.in: Support defines and build commands for NS port.
2136 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
2137 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
edfda783
AR
2138 * dispextern.h: Include nsgui.h and add needed typedefs under NS
2139 windowing.
2140 (struct face): Add synth_ital field.
2141 * dispnew.c: Include nsterm.h when compiling under NS windowing.
2142 (init_display): Initialize Vinitial_window_system to "ns" when so
2143 compiled.
2144 * emacs.c: Include GSConfig.h when compiling under GNUstep.
2145 (display_arg): Use under NS.
2146 (main): Under NS, allocate autorelease pool and handle command line
2147 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
2148 (standard_args): Add NS-specific args.
2149 (shut_down_emacs): Shut down NS terminal if compiled under NS.
2150 * font.c (DEFAULT_ENCODING): New variable.
2151 (font_find_for_lface): Use it.
2152 (syms_of_font): Load syms_of_nsfont under NS.
2153 * font.h: Declare nsfont_driver when compiled under NS.
2154 * fontset.c: When compiling under NS, include nsterm.h.
2155 (fontset_from_font): Autoconstruct fontset under NS.
2156 * frame.c (various): Under NS, include nsterm.h, add Qns window system
2157 symbol, document and use it.
edfda783
AR
2158 (do_switch_frame): When for_deletion under Cocoa, add
2159 Fraise_frame(Qnil).
2160 (x_set_frame_parameters): Ensure font attribute changes are picked up.
2161 (x_get_arg): Allow "yes" and "no" as boolean values.
2162 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
2163 Qright under Cocoa.
2164 (focus-follows-mouse): Default to 0 under NS.
2165 * frame.h (enum output_method): Add output_ns.
2166 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
2167 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
2168 (FRAME_WINDOW_P): NS-specific definition.
2169 * fringe.c (max_used_fringe_bitmap): Make public.
2170 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
2171 (getloadavg): Use NeXT code under descendant OS's.
2172 * image.c (includes and header section, x_create_bitmap_from_data)
2173 (x_create_bitmap_from_file, free_bitmap_record, image_background)
2174 (image_background_transparent, x_clear_image_1)
2175 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
2176 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
2177 (x_to_xcolors, x_from_xcolors, x_disable_image)
2178 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
2179 other GUIs, including XPM support using code originally written for
2180 Carbon GUI.
0a170079 2181 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
edfda783
AR
2182 using NS API.
2183 (image_ascent): Use font metrics macros instead of direct struct field
2184 access.
2185 * keyboard.c (includes): Add nsterm.h when compiling under NS.
2186 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
2187 Also, handle NS as GTK for menu bar purposes.
2188 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
2189 toolkit where they differ.
2190 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
2191 use cachelist, still needed under NS.
6ddc6cca 2192 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
edfda783
AR
2193 (struct widget_value): Define it here for menu.c.
2194 * keymap.c (includes): Include modifier internals.
2195 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
2196 NS.
2197 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
2198 support for preferring sequences using certain modifiers, specified by
2199 the FIRSTONLY argument.
2200 * lisp.h (hash_remove): Rename to avoid name clash when compiling
2201 under NS GNUstep implementation.
2202 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
2203 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
2204 * menu.c: Include nsterm.h under NS.
2205 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
2206 (free_menubar_widget_tree_value, update_submenu_strings)
2207 (find_and_call_menu_selection): Treat NS as X and NT.
2208 (find_and_return_menu_selection): New function, used for popup menus.
ba60bd44
JB
2209 * nsgui.h:
2210 * nsterm.h:
2211 * nsfns.m:
2212 * nsimage.m:
2213 * nsmenu.m:
2214 * nsselect.m:
edfda783
AR
2215 * nsterm.m: New files.
2216 * process.c (wait_reading_process_output): Under NS, call ns_select()
2217 instead of plain select().
2218 * syntax.c (char_quoted): Under NS, avoid a crash when called near
2219 beginning of buffer.
2220 * sysselect.h (init_process): Rename when compiling under Cocoa to
2221 avoid name conflict.
2222 * termhooks.h (display_info): Add ns_display_info to union.
2223 * terminal.c (Fterminal_live_p): Add ns to terminal types.
2224 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
2225 COCOA environment.
2226 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
2227 unexec() signature. (Note, this will dump, but the resulting file
2228 crashes; unexosx is used instead; keeping around for reference and
2229 possible aid in getting dump working under GNUstep.)
2230 * w32gui.h (button_type, widget_value): Remove definitions (now in
2231 keyboard.h).
2232 * window.c: Include nsterm.h when compiling under NS.
2233 * xdisp.c (includes): Include nsterm.h when compiling under NS.
2234 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
2235 other GUI windowing systems.
2236 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
2237 GTK.
2238 (x_consider_frame_title): Under NS, set icon type and frame
2239 modified-state indicator; use ns_set_name_as_filename() when using
2240 formatted title.
2241 (update_window_cursor): Make public when compiling under NS.
2242 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
2243 (hourglass_atimer, Vhourglass_delay
2244 * xfaces.c (header section, init_frame_faces, clear_font_table)
2245 (defined_color, unload_color, x_face_list_fonts)
6ddc6cca
SM
2246 (prepare_face_for_display): Add NS support parallel to other GUIs.
2247 Emulate GCs like other non-X GUIs.
edfda783
AR
2248 (split_font_name): Don't lowercase font name under NS.
2249 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
2250 under NS.
2251 * s/darwin.h: Add support for compilation under NS.
2252
1391cd54
JR
22532008-07-15 Jason Rumney <jasonr@gnu.org>
2254
6ddc6cca
SM
2255 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
2256 (w32_show_hourglass): Rename from show_hourglass.
2257 (w32_hide_hourglass): Rename from hide_hourglass.
2258 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
2259 (Vhourglass_delay): Declare extern.
2260 (hourglass_started): Remove.
1391cd54 2261
6ddc6cca
SM
2262 * xdisp.c (Vhourglass_delay): Remove static.
2263 (hourglass_started, start_hourglass, cancel_hourglass):
2264 Don't include these versions on WINDOWSNT.
1391cd54 2265
1885ab29
AR
22662008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2267
6ddc6cca 2268 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
20d6dc02 2269 variables (formerly in xfns.c).
1885ab29
AR
2270 (show_hourglass, hide_hourglass): New prototypes (same).
2271 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
2272 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
20d6dc02 2273 in xfns.c).
1885ab29
AR
2274 (syms_of_xdisp): Declare/initialize display-hourglass,
2275 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
2276 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
20d6dc02 2277 formerly in xfns.c.
1885ab29
AR
2278 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
2279 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
2280 (start_hourglass, cancel_hourglass): Remove.
2281 (show_hourglass, hide_hourglass): Remove prototypes and static
2282 modifiers.
2283 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
2284 hourglass_atimer, hourglass_shown_p declaration/initialization.
2285 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
2286 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
2287 (start_hourglass, cancel_hourglass): Remove.
2288 (show_hourglass, hide_hourglass): Remove prototypes and static
2289 modifiers.
2290 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
2291 hourglass_atimer, hourglass_shown_p declaration/initialization.
2292 * w32fns.c (display_hourglass_p, Vhourglass_delay)
2293 (DEFAULT_HOURGLASS_DELAY): Remove.
2294 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
2295 hourglass_shown_p declaration/initialization.
2296
3faa984f
JR
22972008-07-14 Jason Rumney <jasonr@gnu.org>
2298
6ddc6cca
SM
2299 * w32fns.c (w32_get_arg): Remove wrapper function.
2300 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
2301 directly.
2302 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3faa984f 2303
2f73901f
KH
23042008-07-14 Kenichi Handa <handa@m17n.org>
2305
2306 * xfont.c (xfont_open): Add workaround for X's bug.
2307
11da284d
KH
23082008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2309
2310 * fontset.c: Include <stdio.h> unconditionally.
2311
944cc4a8
MA
23122008-07-13 Michael Albinus <michael.albinus@gmx.de>
2313
2314 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
2315 for filtering.
2316
bdee2ef3
DN
23172008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2318
2319 * s/vms.h: Use __GNUC__ instead of _GNUC_.
2320
2321 * m/macppc.h:
2322 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
2323
2324 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
944cc4a8
MA
2325 (SPECIAL_EMACS_INT):
2326 * m/ia64.h (SPECIAL_EMACS_INT):
bdee2ef3
DN
2327 * m/amdx86-64.h (SPECIAL_EMACS_INT):
2328 * s/gnu.h (NLIST_STRUCT):
4342f814 2329 * s/aix4-2.h (X11R5_INHIBIT_I18N):
bdee2ef3
DN
2330 * s/gnu-linux.h (LINUX):
2331 * s/msdos.h (HAVE_FACES):
2332 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
2333
944cc4a8 2334 * systty.h:
bdee2ef3
DN
2335 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
2336 anymore.
2337
bba104c1
DN
23382008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2339
2340 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
2341 always defined as int.
2342
2343 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
2344 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
2345 * s/gnu-linux.h (HAVE_WAIT_HEADER):
2346 * s/freebsd.h (HAVE_WAIT_HEADER):
2347 * s/bsd-common.h (HAVE_UNION_WAIT):
2348 * s/aix4-2.h (HAVE_WAIT_HEADER):
2349 * m/mips.h (HAVE_UNION_WAIT):
2350 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
2351 (COFF, static): Do not define, they are undefined later in the file.
2352
2353 * process.c (update_status): Don't use a union.
2354 (status_convert):
2355 (sigchld_handler): Use int instead of WAITTYPE.
2356
e433031a
CY
23572008-07-12 Chong Yidong <cyd@stupidchicken.com>
2358
2359 * indent.c (Fvertical_motion): Restore hscroll before moving to
2360 goal column.
2361
3bfb4d48
DN
23622008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2363
2364 * lisp.h: Remove left over code.
2365
e7c9048f
AS
23662008-07-11 Andreas Schwab <schwab@suse.de>
2367
7e770c85
AS
2368 * lisp.h: Fix logic in last change.
2369
e7c9048f
AS
2370 * menu.h: New file.
2371 * menu.c: Include it.
2372 * xmenu.c: Likewise.
2373 * Makefile.in: Update dependencies.
2374
38aaf336
KH
23752008-07-11 Kenichi Handa <handa@m17n.org>
2376
2377 * fontset.c (fontset_from_font): Cancel the previous change.
2378
6e5cb96f
DN
23792008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2380
2381 * lisp.h:
2382 * w32heap.c:
2383 * emacs.c:
2384 * alloc.c: Replace all references of NO_UNION_TYPE with
2385 USE_LISP_UNION_TYPE.
2386
2387 * m/xtensa.h (NO_UNION_TYPE):
2388 * m/vax.h (NO_UNION_TYPE):
2389 * m/template.h (NO_UNION_TYPE):
2390 * m/sparc.h (NO_UNION_TYPE):
2391 * m/mips.h (NO_UNION_TYPE):
2392 * m/macppc.h (NO_UNION_TYPE):
2393 * m/m68k.h (NO_UNION_TYPE):
2394 * m/iris4d.h (NO_UNION_TYPE):
2395 * m/intel386.h (NO_UNION_TYPE):
2396 * m/ibms390x.h (NO_UNION_TYPE):
2397 * m/ibms390.h (NO_UNION_TYPE):
2398 * m/ibmrs6000.h (NO_UNION_TYPE):
2399 * m/ia64.h (NO_UNION_TYPE):
2400 * m/hp800.h (NO_UNION_TYPE):
2401 * m/arm.h (NO_UNION_TYPE):
2402 * m/amdx86-64.h (NO_UNION_TYPE):
2403 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
2404 defining it the same.
2405
e0f47a68
CY
24062008-07-10 Chong Yidong <cyd@stupidchicken.com>
2407
ba60bd44 2408 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
e0f47a68 2409
c5e7567d
DN
24102008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
2411
4342f814
JB
2412 * fileio.c:
2413 * sysdep.c
2414 * systty.h:
2415 * m/ibmrs6000.h:
2416 * m/iris4d.h:
2417 * s/aix4-2.h:
2418 * s/freebsd.h:
2419 * s/gnu-linux.h:
2420 * s/hpux10-20.h:
2421 * s/hpux11.h:
2422 * s/netbsd.h:
2423 * s/sol2-3.h:
2424 * s/sol2-4.h:
2425 * s/sol2.h:
2426 * s/usg5-4.h:
2427 * s/vms.h: Remove references to unused variables.
c5e7567d 2428
bb658864
AS
24292008-07-10 Andreas Schwab <schwab@suse.de>
2430
2431 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
2432 pattern before matching the generic family.
2433
3d3db608
DN
24342008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
2435
a0ce9ab7 2436 * unexec.c:
3460e0b9
DN
2437 * s/vms.h:
2438 * s/usg5-4-2.h:
2439 * s/sol2-5.h:
2440 * s/freebsd.h:
2441 * s/darwin.h: Remove dead code.
2442
ad76189a
DN
2443 * m/template.h:
2444 * m/sparc.h:
2445 * m/mips.h:
2446 * m/m68k.h:
2447 * m/iris4d.h:
2448 * m/intel386.h:
2449 * m/ibms390x.h:
2450 * m/ibms390.h:
2451 * m/ia64.h:
2452 * m/hp800.h:
2453 * m/arm.h:
2454 * m/amdx86-64.h: Remove dead code and references to unused
2455 and compiler defined symbols.
2456
d2b5bbda
DN
2457 * unexmips.c:
2458 * unexelf.c: Remove references to desupported systems.
2459
40dde9d1
DN
2460 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
2461
21133394
DN
2462 * m/powermac.h: Remove boilerplate comments.
2463 (NO_REMAP): Remove unused definition.
2464
3d3db608
DN
2465 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
2466 define them.
2467
c8e0e16d
KH
24682008-07-10 Kenichi Handa <handa@m17n.org>
2469
2470 * xfont.c (xfont_open): Log the reason of failure.
2471
3cba9369
SM
24722008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
2473
2474 * fontset.c (fontset_get_font_group):
2475 * font.c (font_check_otf): Specify argument types.
2476
73353585
KH
24772008-07-09 Kenichi Handa <handa@m17n.org>
2478
0e17387a
KH
2479 * coding.c (detect_coding_utf_8): Set detect_info->found only when
2480 non-ASCII char is found.
2481
73353585
KH
2482 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
2483 (reorder_font_vector): Change the arg preferred_family to font.
2484 Prefer the spec matching with font.
2485 (fontset_get_font_group): New function.
2486 (fontset_find_font): Change the format of an element of a realized
2487 fontset. Use fontset_get_font_group.
2488 (fontset_font): Try the current fontset, the default fontset, the
10d1d0af 2489 fallbacks of the current fontset, and the fallbacks of the default
73353585
KH
2490 fontset in this order.
2491 (face_for_char): Delete the shortcut to use the current font.
2492 (fontset_from_font): Don't set fonts for Latin in the fontset.
2493
2494 * font.h (font_make_object, font_match_p): Adjust prototypes.
2495
2496 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
2497
2498 * font.c (font_make_object): New arg entity and pixelsize.
2499 (font_check_otf_features, font_check_otf): New functions.
2500 (font_match_p): Check :lang, :script, and :otf properties.
2501
2502 * xfont.c (xfont_open): Adjust it for the change of
2503 font_make_object.
e5d05978 2504 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
2505
2506 * ftfont.c (struct ftfont_info): New member index, delete member
2507 fc_charset_idx. Make the member order compatible with struct
2508 xftfont_info.
2509 (fc_charset_table): Change charset names to registry names.
2510 (ftfont_pattern_entity): Delete the args registry and
2511 fc_charset_idx. Change the value of :font-entity property
2512 to (FONTNAME . INDEX). Always set :registry property to
2513 `iso10646-1'.
2514 (struct ftfont_cache_data): New struct.
2515 (ftfont_lookup_cache): New arg for_face.
2516 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
2517 (ftfont_driver): Set the member otf_capability.
2518 (ftfont_get_charset): Adjust it for the change of
2519 fc_charset_table.
2520 (OTF_TAG_SYM): New macro.
2521 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
2522 for the change of fc_charset_table.
2523 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
2524 ftfont_pattern_entity. Add FC_INDEX to objset.
2525 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
2526 and ftfont_pattern_entity.
2527 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
2528 font_make_object, struct ftfont_info.
2529 (ftfont_has_char): Use ftfont_get_fc_charset.
2530 (ftfont_otf_features, ftfont_otf_capability): New functions.
2531 (ftfont_shape): Use ftfont_get_otf.
e5d05978 2532 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
2533
2534 * xftfont.c (struct xftfont_info): New member ft_size. Make the
2535 member order compatible with struct ftfont_info.
2536 (xftfont_open): Add FC_CHARSET to the pattern. Set
2537 xftfont_info->ft_size. Don't unlock the face. Check BDF
2538 properties if appropriate.
2539 (xftfont_close): Unlock the face.
2540 (xftfont_anchor_point, xftfont_shape): Deleted.
2541 (syms_of_xftfont): Don't set members anchor_point and shape of
2542 xftfont_driver.
2543
2544 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
2545 font_make_object.
2546
2547 * w32font.c (w32font_open): Adjust it for the change of
2548 font_make_object.
2549 (w32font_open_internal): Don't set properties of font_object here.
2550
7f000038
CY
25512008-07-08 Chong Yidong <cyd@stupidchicken.com>
2552
830aab93
CY
2553 * macfns.c (x_create_tip_frame):
2554 * w32fns.c (x_create_tip_frame):
2555 * xfns.c (x_create_tip_frame): Pass parameter argument to
2556 face-set-after-frame-default.
2557
7f000038
CY
2558 * xfaces.c (Finternal_merge_in_global_face): Save merged
2559 attributes for the default face back into the face vector.
2560
85cf8992
AS
25612008-07-08 Andreas Schwab <schwab@suse.de>
2562
2563 * fontset.h: Declare fontset_from_font. Don't declare
2564 new_fontset_from_font and fontset_from_font_name.
2565 * xterm.c: Include "fontset.h".
2566 * Makefile.in (xterm.o): Update dependencies.
2567
4a00783e
GM
25682008-07-08 Glenn Morris <rgm@gnu.org>
2569
2570 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
2571 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
2572
4d2d5f5f
CY
25732008-07-07 Chong Yidong <cyd@stupidchicken.com>
2574
2575 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
2576 (x_set_frame_parameters): Don't bind it.
2577
dfe66c5b
JB
25782008-07-07 Juanma Barranquero <lekktu@gmail.com>
2579
2580 * w32fns.c (map_w32_filename): Declare extern.
2581
ec7e221c
JR
25822008-07-07 Jason Rumney <jasonr@gnu.org>
2583
dfe66c5b 2584 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 2585
fe5d61c4
CY
25862008-07-06 Chong Yidong <cyd@stupidchicken.com>
2587
2588 * xfaces.c (set_font_frame_param): Don't try to set the font
2589 parameter if it is still unspecified in the lface.
2590
9204cb8b
CY
25912008-07-05 Chong Yidong <cyd@stupidchicken.com>
2592
0a143d3a
CY
2593 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
2594 face if it didn't already exist.
2595
9204cb8b
CY
2596 * xdisp.c (try_window_id): Give up if word-wrapping is on.
2597
6c95e70d
AS
25982008-07-05 Andreas Schwab <schwab@suse.de>
2599
dfe66c5b 2600 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 2601
59230395
CY
26022008-07-05 Chong Yidong <cyd@stupidchicken.com>
2603
2604 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
2605 word-wrapping.
2606 (IT_DISPLAYING_WHITESPACE): New macro.
2607 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
2608 when word-wrapping. Simplify word-wrapping logic. Use correct
2609 pixel positions when saving copies of the iterator.
2610 (display_line): Use proper wrap point if the last character on a
2611 line was preceded by whitespace.
2612
d7c664f3
SM
26132008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
2614
2615 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
2616
9ffc8a3a
KH
26172008-07-04 Kenichi Handa <handa@m17n.org>
2618
2619 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
2620
2621 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
2622
946598bf
JR
26232008-07-02 Jason Rumney <jasonr@gnu.org>
2624
d7c664f3
SM
2625 * xfns.c (syms_of_xfns): Only define x-select-font when both
2626 HAVE_FREETYPE and USE_GTK
946598bf 2627
d7c664f3
SM
2628 * xdisp.c (next_element_from_display_vector): Move assignment out
2629 of if statement.
946598bf 2630
6cf29fe8
JR
26312008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
2632
d7c664f3 2633 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 2634
d7c664f3
SM
2635 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
2636 (syms_of_fileio): Initialize and export them.
2637 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 2638
d7c664f3
SM
2639 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
2640 (Fsystem_move_file_to_trash): New function.
2641 (syms_of_w32fns): Export it to lisp.
6cf29fe8 2642
79ca7db1
JR
26432008-07-01 Jason Rumney <jasonr@gnu.org>
2644
d7c664f3
SM
2645 * w32font.c (w32font_text_extents): Don't count overhang as part
2646 of width.
79ca7db1 2647
c2786a3d 26482008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
2649
2650 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
2651 Add `avoid_cursor_p' field.
2652
2653 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
2654 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
2655 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
2656 (append_stretch_glyph): Initialize avoid_cursor_p.
2657 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
2658 (x_produce_glyphs): Use get_it_property.
2659 (handle_line_prefix, push_display_prop): New functions.
2660 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
2661 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
2662 New variables.
c4f4682b
MB
2663 (syms_of_xdisp): Initialize them.
2664
7d7ad10e
KH
26652008-06-30 Kenichi Handa <handa@m17n.org>
2666
2667 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
2668 XftDefaultSubstitute (they are called in XftFontMatch).
2669 (xftfont_open): Fix args to ftfont_font_format.
2670
2671 * ftfont.c (fc_charset_table): New member lang.
2672 (ftfont_resolve_generic_family): New arg pattern.
2673 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
2674 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
2675 (ftfont_open): Fix args to ftfont_font_format.
2676 (ftfont_font_format): New arg filename.
2677
44b754c7
CY
26782008-06-30 Chong Yidong <cyd@stupidchicken.com>
2679
2680 * xfaces.c (Finternal_merge_in_global_face): If default face was
2681 modified, realize it again. Update the font face attribute.
2682
a4521b03
JR
26832008-06-29 Jason Rumney <jasonr@gnu.org>
2684
c2786a3d 2685 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 2686
fe44f009
KH
26872008-06-29 Kenichi Handa <handa@m17n.org>
2688
2689 * fontset.c (Finternal_char_font): Return font-object instead of
2690 font-name.
2691
c2786a3d 2692 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 2693
baed8445
SM
26942008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
2695
2696 * indent.c (Fvertical_motion): Properly handle float column arg.
2697
8b61a891
JR
26982008-06-28 Jason Rumney <jasonr@gnu.org>
2699
baed8445
SM
2700 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
2701 (pfnSetLayeredWindowAttributes): New function pointer.
2702 (w32_initialize): Initialize it when supported.
2703 (x_set_frame_alpha): New function.
8b61a891 2704
baed8445
SM
2705 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
2706 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 2707
baed8445 2708 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 2709
57016d37
JR
27102008-06-27 Jason Rumney <jasonr@gnu.org>
2711
baed8445
SM
2712 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
2713 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
2714 (w32_to_x_charset, x_to_w32_charset)
2715 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2716 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2717 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2718 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2719 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2720 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2721 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
2722 (Qw32_charset_unicode): Remove.
2723 (syms_of_w32fns): Update for above changes.
2724
2725 * w32font.c (w32_to_x_charset, x_to_w32_charset)
2726 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2727 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2728 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2729 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2730 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2731 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2732 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
2733 (syms_of_w32font): Update for above changes.
57016d37 2734
d6bf1bdb
DN
27352008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2736
2737 * s/usg5-4.h: Fix previous change: keep the correct branch of a
2738 removed #if.
9fa1c445 2739 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 2740
43db14bb
JB
27412008-06-26 Juanma Barranquero <lekktu@gmail.com>
2742 Eli Zaretskii <eliz@gnu.org>
2743
2744 * makefile.w32-in (LOCAL_FLAGS):
2745 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
2746
2747 * sysdep.c (_spawnlp, _getpid):
2748 Declare with explicit _cdecl instead of _CRTAPI1.
2749
2750 * editfns.c (Fget_internal_run_time):
2751 Check for WINDOWSNT with #ifdef, not #if.
2752
c35f9821
JR
27532008-06-26 Jason Rumney <jasonr@gnu.org>
2754
43db14bb 2755 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 2756
57016d37 2757 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
2758 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
2759 Use FONT_HANDLE macro.
2760 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 2761
57016d37 2762 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 2763 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 2764
43db14bb
JB
2765 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
2766 (w32font_text_extents): Use precast w32_font.
2767 (w32font_close): Free cached metrics.
2768 (w32font_open_internal): Allocate space for name on stack.
c35f9821 2769
1f8ad719
CY
27702008-06-26 Chong Yidong <cyd@stupidchicken.com>
2771
2772 * xdisp.c (extend_face_to_end_of_line): Fix last change.
2773
97e71655
JR
27742008-06-26 Jason Rumney <jasonr@gnu.org>
2775
43db14bb
JB
2776 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
2777 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 2778
c9fc02c7
JB
27792008-06-26 Juanma Barranquero <lekktu@gmail.com>
2780
2781 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
2782
1b5defe6
JR
27832008-06-26 Jason Rumney <jasonr@gnu.org>
2784
c9fc02c7 2785 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 2786
c9fc02c7 2787 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 2788
c9fc02c7
JB
2789 * w32gui.h: Don't include w32bdf.h.
2790 (XCharStruct, enum w32_char_font_type, W32FontStruct):
2791 Remove obsolete font support.
1b5defe6 2792
c9fc02c7
JB
2793 * w32font.h (struct w32font_info): Remove compat_w32_font.
2794 Add hfont member.
2795 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 2796
ba60bd44 2797 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
c9fc02c7 2798 (w32font_encode_char, w32font_text_extents): Use new hfont member.
ba60bd44 2799 (w32font_open_internal): Remove compat code. Set new hfont member.
c9fc02c7 2800 (Fx_select_font): Use new hfont member.
1b5defe6 2801
57016d37 2802 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 2803 (uniscribe_encode_char): Use new hfont member.
1b5defe6 2804
57016d37 2805 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
2806 (x_draw_composite_glyph_string_foreground): Use new hfont member.
2807 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 2808
1fc66bca
KH
28092008-06-26 Kenichi Handa <handa@m17n.org>
2810
2811 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
2812
f2a77c3a
DN
28132008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
2814
2815 * unexnext.c:
2816 * m/ews4800.h:
2817 * m/hp9000s300.h:
2818 * m/ibm370aix.h:
2819 * m/mips-siemens.h:
2820 * m/ncr386.h:
2821 * m/next.h:
2822 * m/pmax.h:
2823 * m/powerpcle.h:
2824 * m/tandem-s2.h:
2825 * s/386bsd.h:
2826 * s/bsd386.h:
2827 * s/bsd4-1.h:
2828 * s/bsd4-2.h:
2829 * s/bsdos2-1.h:
2830 * s/bsdos2.h:
2831 * s/bsdos3.h:
2832 * s/bsdos4.h:
2833 * s/nextstep.h:
2834 * s/ultrix4-3.h:
2835 * s/usg5-0.h:
2836 * s/usg5-2-2.h:
2837 * s/usg5-2.h:
2838 * s/usg5-4-3.h:
2839 * s/ux4800.h:
2840 * s/uxpds.h:
2841 * s/uxpv.h: Remove support for obsolete systems.
2842 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
4342f814 2843 Remove, insert contents in s/hpux-10.20.h.
f2a77c3a 2844 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4342f814 2845 Remove, insert contents in s/aix4-2.h.
f2a77c3a 2846 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4342f814 2847 * s/bsd4-3.h: Rename to ...
f2a77c3a 2848 * s/bsd-common.h: ... this.
4342f814
JB
2849 * data.c:
2850 * doc.c:
2851 * ecrt0.c:
2852 * emacs.c:
2853 * fileio.c:
2854 * floatfns.c:
2855 * keyboard.c:
2856 * mem-limits.h:
2857 * print.c:
2858 * process.c:
2859 * sysdep.c:
2860 * syssignal.h:
2861 * systty.h:
2862 * syswait.h:
2863 * term.c:
2864 * unexec.c:
2865 * unexelf.c:
2866 * unexhp9k800.c:
2867 * m/hp800.h:
2868 * m/ibmrs6000.h:
2869 * m/mips.h:
2870 * m/vax.h:
2871 * s/darwin.h:
2872 * s/freebsd.h:
2873 * s/gnu.h:
2874 * s/ms-w32.h:
2875 * s/msdos.h:
2876 * s/netbsd.h:
2877 * s/template.h: Remove references to obsolete variables.
f2a77c3a
DN
2878
2879 * Makefile.in: Add dependencies for all unexec files.
2880 (admindir): Remove unused variable.
2881 (UNEXEC_SRC): Remove references.
2882
bd02793a
CY
28832008-06-25 Chong Yidong <cyd@stupidchicken.com>
2884
2885 * xfns.c (x_default_font_parameter): If Xft is available, first
2886 try Monospace-12 for the default font.
2887
ccedd259
JR
28882008-06-25 Jason Rumney <jasonr@gnu.org>
2889
c9fc02c7 2890 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 2891
fbe062b7
SM
28922008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
2893
603a0937
SM
2894 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
2895
fbe062b7
SM
2896 * buffer.c (syms_of_buffer): Remove default-word-wrap.
2897
69785ad0
JB
28982008-06-25 Juanma Barranquero <lekktu@gmail.com>
2899
2900 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
2901 <scroll-conservatively>: Fix typo in docstring.
2902
2903 * xselect.c (Fx_send_client_event): Doc fix.
2904
249e6f76
KH
29052008-06-25 Kenichi Handa <handa@m17n.org>
2906
34e97272
KH
2907 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
2908
2909 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
2910 (font_sort_entites): Delete the arg SPEC. Caller changed.
2911 Fix for the case of ! best_only.
34e97272
KH
2912 (font_delete_unmatched): Check DPI and AVGWIDTH too.
2913
249e6f76
KH
2914 * lisp.h (Fstring_to_unibyte): EXFUN it.
2915
69785ad0 2916 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
2917
2918 * character.c (str_to_unibyte): New function.
2919
2920 * fns.c (Fstring_to_unibyte): New function.
2921 (syms_of_fns): Defsubr it.
2922
65c108e4
KH
29232008-06-24 Kenichi Handa <handa@m17n.org>
2924
2925 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
2926 DPI too.
2927 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
2928
4c3f18fe
AS
29292008-06-24 Andreas Schwab <schwab@suse.de>
2930
69785ad0 2931 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 2932 ../lisp/loaddefs.el.
fd13748d
AS
2933 (bootstrap-clean): Do what distclean does but don't remove
2934 Makefile.
2935 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 2936
faa6190f
CY
29372008-06-24 Chong Yidong <cyd@stupidchicken.com>
2938
2939 * buffer.h (struct buffer): New member word_wrap.
2940
2941 * buffer.c (syms_of_buffer): New variables default-word-wrap and
2942 word-wrap.
2943 (init_buffer_once): Initialize them.
2944
2945 * dispextern.h (struct it): Replace bool truncate_lines_p with a
2946 line_wrap enum possessing three possible values.
2947
2948 * termopts.h: Replace truncate_partial_width_windows with
2949 Vtruncate_partial_width_windows.
2950
2951 * dispnew.c (direct_output_for_insert): Avoid direct output when
2952 inserting a space with word wrap on.
2953
2954 * indent.c (compute_motion): Obey integer values of
2955 truncate-partial-width-windows.
2956
2957 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
2958 replacing truncate_partial_width_windows.
2959 (init_iterator): If Vtruncate_partial_width_windows is an integer,
2960 truncate only if the window width is below that integer.
ba60bd44 2961 (start_display, resize_mini_window, produce_stretch_glyph)
faa6190f
CY
2962 (display_string, move_it_in_display_line_to): Use line_wrap.
2963 (back_to_previous_visible_line_start, reseat_1): Reset
2964 string_from_display_prop_p.
2965 (display_line): Extend default face to end of line when wrapping.
2966
29672008-06-24 Kim F. Storm <storm@cua.dk>
2968
2969 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
2970 to wrap continued lines at word boundaries.
2971
c3bb5465
JR
29722008-06-24 Jason Rumney <jasonr@gnu.org>
2973
69785ad0
JB
2974 * font.c (Ffont_face_attributes): Multiply pixel size before point
2975 conversion to avoid multiplying rounding error.
c3bb5465 2976
0b07ad98
JR
29772008-06-23 Jason Rumney <jasonr@gnu.org>
2978
f245f2c6
JB
2979 * w32term.c (x_draw_glyph_string_background)
2980 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 2981
69785ad0 2982 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 2983
22459668
KH
29842008-06-22 Kenichi Handa <handa@m17n.org>
2985
2986 * font.c (font_find_for_lface): Try the adstyle specified in
2987 the property of LFACE_FONT of LFACE (if any).
2988
d925a426 29892008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 2990 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
2991
2992 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
2993
b4945b95
SM
29942008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
2995
2996 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
2997 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
2998 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
2999 (witness-emacs): Remove.
3000 (lisp, shortlisp): Move loaddefs.el earlier.
3001 (mostlyclean): Forget about witness-emacs.
3002
64124279
GM
30032008-06-22 Glenn Morris <rgm@gnu.org>
3004
3005 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 3006 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 3007
768efd84
SM
30082008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
3009
3010 * Makefile.in (PRECOMP): Remove.
3011 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
3012 (witness-emacs): Run `compile-first'.
3013 (.el.elc): Use the new compile-onefile target.
3014
808dd567
KH
30152008-06-21 Kenichi Handa <handa@m17n.org>
3016
3017 * xftfont.c (xftfont_open): Handle QCembolden only when
3018 FC_EMBOLDEN is defined.
3019
0de59eae
AS
30202008-06-21 Andreas Schwab <schwab@suse.de>
3021
3022 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 3023 (.el.elc): Likewise.
0de59eae 3024
fb38e9c9
MB
30252008-06-21 Miles Bader <miles@gnu.org>
3026
3027 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
3028 build dir, not the lisp source dir.
3029
fc46d219
SM
30302008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
3031
3032 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
3033 (bootstrapclean): Remove.
3034 (.el.elc): New rule.
3035 (PRECOMP): New var.
3036 (../lisp/subdirs.el): Remove.
3037 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
3038 (witness-emacs): New target.
3039 (mostlyclean): Remove witness-emacs as well.
3040 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
3041 Add witness-emacs dependency.
3042
eaf1f6e7
CY
30432008-06-20 Chong Yidong <cyd@stupidchicken.com>
3044
3045 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
3046 defined by the font.
3047
49f6eb95
SM
30482008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3049
3050 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
3051 (bootstrap-clean): New target that keeps TAGS around.
3052 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
3053 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
3054
4c100a01
JR
30552008-06-20 Jason Rumney <jasonr@gnu.org>
3056
49f6eb95
SM
3057 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
3058 Remove obsolete font code.
db61a7f8 3059
49f6eb95
SM
3060 * w32font.c (font_matches_spec): Use csb bitfield from font signature
3061 to determine language support.
4c100a01 3062
759d3f32
SM
30632008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3064
3065 * sysdep.c (cfsetspeed): New fun extracted from the code.
3066 (cfmakeraw): Move before first use.
3067
25241b4d
SM
30682008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
3069
3070 * sysdep.c (cfmakeraw): Provide fallback implementation.
3071 (serial_configure): Provide fallback implementation of cfsetspeed.
3072
d7afccca
KH
30732008-06-20 Kenichi Handa <handa@m17n.org>
3074
dc2226d0
KH
3075 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
3076 the pattern.
3077
9b9cd864
KH
3078 * fontset.c (fontset_from_font): Copy font_spec before changing
3079 the elements.
3080
d7afccca
KH
3081 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
3082
770e2e6e
SM
30832008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
3084
10d1d0af 3085 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
770e2e6e
SM
3086 for explicit `font' parameters.
3087
3088 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
3089
22e64f7c
KH
30902008-06-19 Kenichi Handa <handa@m17n.org>
3091
3092 * frame.c: Include <ctype.h>.
3093 (x_set_font_backend): Allow spacing characters in the X resource
3094 for FontBackend.
3095
27129af9
SM
30962008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
3097
3098 * w32fns.c, xfns.c (Qfont_param): New var.
3099 (syms_of_w32fns): Initialize it.
22e64f7c
KH
3100 (x_default_font_parameter): Record explicit `font' into
3101 `font-parameter'.
27129af9 3102
d26424c5
KH
31032008-06-18 Kenichi Handa <handa@m17n.org>
3104
3105 * font.c (font_parse_xlfd): Fix previous change.
3106 (font_parse_fcname): Don't use :fc-unknown-spec.
10d1d0af 3107 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
d26424c5
KH
3108 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
3109 (font_add_log): Prepend the driver name to the resulting fonts.
3110
3111 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
3112 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
3113 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
3114
3115 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
3116 (QCembolden): New variables.
3117 (syms_of_xftfont): DEFSYM them.
3118 (xftfont_open): Call XftFontMatch. Don't trust the result of
3119 XftTextExtents8 if the pixel_size is less than 5.
3120
51cf11be
AS
31212008-06-18 Andreas Schwab <schwab@suse.de>
3122
f245f2c6 3123 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
3124 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
3125
07d9ba9b
JR
31262008-06-18 Jason Rumney <jasonr@gnu.org>
3127
27129af9 3128 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 3129
4342f814 3130 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 3131
0c36bc4e
CY
31322008-06-17 Chong Yidong <cyd@stupidchicken.com>
3133
3134 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
3135 unknown-spec list. For known key symbols, intern using correct
3136 symbol name.
0c36bc4e 3137
70d6ecc6
KH
31382008-06-17 Kenichi Handa <handa@m17n.org>
3139
3140 * xfaces.c (realize_default_face): If the frame is not on window
3141 system, set the fontset of face to nil.
3142
821bc4db
KH
31432008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
3144
f245f2c6 3145 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 3146
3554e566
JB
31472008-06-16 Juanma Barranquero <lekktu@gmail.com>
3148
3149 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
3150 (build_font_name_from_vector): Delete externs.
3151
3152 * xfaces.c (struct font_name): Don't declare.
3153
93eed26b
SM
31542008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3155
3156 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
3157
d756bcd0
CY
31582008-06-16 Chong Yidong <cyd@stupidchicken.com>
3159
3160 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
3161
7a18a178
JB
31622008-06-16 Juanma Barranquero <lekktu@gmail.com>
3163
3164 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 3165 (Ffont_face_attributes): Doc fix.
7a18a178 3166
6f568955
AS
31672008-06-16 Andreas Schwab <schwab@suse.de>
3168
3169 * font.c (Ffont_face_attributes): Fix definition.
3170
3ef8c1b4
JR
31712008-06-16 Jason Rumney <jasonr@gnu.org>
3172
93eed26b 3173 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 3174
93eed26b
SM
3175 * font.c (font_style_symbolic_from_value): Remove.
3176 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 3177
93eed26b
SM
3178 * w32font.c (w32_to_fc_weight): New function.
3179 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 3180
5e634ec9
KH
31812008-06-16 Kenichi Handa <handa@m17n.org>
3182
3183 * font.c (font_check_object): Delete it.
3184 (font_clear_cache): Check if a font-object is alive.
3185 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
3186 font-object to nil.
3187 (font_close_object): Don't check FONT_CLOSE_OBJECT.
3188 (font_at): Don't call font_check_object.
2babb359 3189 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 3190
6409a955
KY
31912008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
3192
3193 * puresize.h (BASE_PURESIZE): Increase to 1230000.
3194
ce4eaddb
CY
31952008-06-16 Chong Yidong <cyd@stupidchicken.com>
3196
3197 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
3198
523dbe64
CY
31992008-06-15 Chong Yidong <cyd@stupidchicken.com>
3200
54b2ab27 3201 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
3202 (font_unparse_fcname): Handle data in family and foundry indices
3203 as symbols, not strings.
3204 (font_unparse_gtkname, Ffont_face_attributes): New functions.
3205
54b2ab27 3206 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
3207
3208 * font.h (font_unparse_gtkname): Add prototype.
3209
9f296082
KH
32102008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
3211
54b2ab27 3212 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 3213
3306c6dc
AS
32142008-06-15 Andreas Schwab <schwab@suse.de>
3215
3216 * font.c (font_update_drivers): Fix crash when no drivers match.
3217
a099c27a
SM
32182008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
3219
3220 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
3221 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
3222
a8aa344d
SM
32232008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
3224
3225 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
3226
a879ee6f
SM
32272008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
3228
3229 * process.c (Fserial_process_configure, Fprocess_send_eof):
3230 Use EQ to compare Lisp_Objects.
3231
6fe9826d
JR
32322008-06-13 Jason Rumney <jasonr@gnu.org>
3233
a879ee6f 3234 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 3235
a879ee6f
SM
3236 * w32font.c (logfont_to_fcname): New function.
3237 (Fx_select_font): New font dialog function compatible with
3238 GTK/fontconfig version.
6fe9826d 3239
a879ee6f
SM
3240 * font.c (font_style_symbolic_from_value): New function.
3241 (font_style_symbolic): Use it.
6fe9826d 3242
a879ee6f 3243 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 3244
17ab8f5d
JB
32452008-06-13 Juanma Barranquero <lekktu@gmail.com>
3246
3247 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
3248 <font-width-table>: Fix typos in docstrings.
3249
d888760c
GM
32502008-06-13 Daniel Engeler <engeler@gmail.com>
3251
3252 These changes add serial port access.
3253 * process.c: Add HAVE_SERIAL.
3254 (Fdelete_process, Fprocess_status, Fset_process_buffer)
3255 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
3256 (list_processes_1, select_wrapper, Fstop_process)
3257 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
3258 (status_notify): Modify to handle serial processes.
3259 [HAVE_SERIAL] (Fserial_process_configure)
3260 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
3261 New functions.
3262 * process.h (struct Lisp_Process): Add `type'.
3263 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
3264 New functions.
3265 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
3266 serial ports.
3267 (serial_open, serial_configure) New functions.
3268 * w32.h: Add FILE_SERIAL.
3269 (struct _child_process): Add ovl_read, ovl_write.
3270
f4cc0153
KH
32712008-06-13 Kenichi Handa <handa@m17n.org>
3272
3273 * dispextern.h (enum lface_attribute_index): New member
3274 LFACE_FOUNDRY_INDEX.
3275
3276 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 3277 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 3278 style symbols.
7a18e381 3279 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
3280 order of font-driver to scores.
3281 (font_list_entities): Don't check alternate_familes here.
3282 (font_clear_prop): Handle foundry.
3283 (font_update_lface): Don't parse "foundry-family" form here.
3284 Handle FONT_FOUNDRY_INDEX.
3285 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 3286 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 3287 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 3288 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
3289 (free_font_driver_list): Delete it.
3290 (font_update_drivers): Preserve the order of backends.
3291 (syms_of_font): Setting of sort_shift_bits adjusted for the change
3292 of font_score and font_sort_entites.
3293 (font_update_sort_order): Likewise.
3294
3295 * xfaces.c (LFACE_FOUNDRY): New macro.
3296 (check_lface_attrs): Check foundry.
7a18e381 3297 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
3298 (merge_face_vectors): Check foundry.
3299 (merge_face_ref): Likewise.
3300 (Finternal_set_lisp_face_attribute): Likewise.
3301 (x_update_menu_appearance): Likewise.
3302 (Finternal_get_lisp_face_attribute): Likewise.
3303 (lface_hash): Likewise.
3304 (lface_same_font_attributes_p): Likewise.
3305 (x_supports_face_attributes_p): Likewise.
3306 (tty_supports_face_attributes_p): Likewise.
3307 (Finternal_set_alternative_font_family_alist): Intern strings.
3308 (Finternal_set_alternative_font_registry_alist): Downcase strings.
3309 (realize_default_face): Set LFACE_FOUNDRY (lface).
3310
3311 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
3312 font-driver at first.
3313
3314 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
3315
d434fef5 33162008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
3317
3318 * lread.c (Fload): Use xfree, not free on saved_doc_string.
3319
9c5e177e
JM
33202008-06-12 Jim Meyering <meyering@redhat.com>
3321
d434fef5 3322 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
3323 * unexmacosx.c (unexec_free): Ignore a NULL argument.
3324
2afc21f5
SM
33252008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
3326
3327 * character.h (CHAR_TO_BYTE_SAFE): New macro.
3328 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
3329 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
3330 (WEAK_ALIAS): Simplify.
3331 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
3332 when searching a unibyte buffer.
3333
76c0de62
CY
33342008-06-12 Chong Yidong <cyd@stupidchicken.com>
3335
3336 * xfns.c (Fx_select_font): Rename from x-font-dialog.
3337
0500dcc9
JB
33382008-06-12 Juanma Barranquero <lekktu@gmail.com>
3339
3340 * w32font.c: Include ctype.h.
3341
f42adef6
JR
33422008-06-11 Jason Rumney <jasonr@gnu.org>
3343
2afc21f5
SM
3344 * w32font.c (w32font_encode_char): Detect missing glyphs that are
3345 misreported as space.
3346 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
3347 as aliases for registry iso10646-1.
f42adef6 3348
4b7cdc0e
SM
33492008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
3350
3351 * buffer.c (clone_per_buffer_values): Skip `name'.
3352
cc02ebe1
CY
33532008-06-11 Chong Yidong <cyd@stupidchicken.com>
3354
3355 * font.c (font_parse_fcname): Fix last change; accept decimal
3356 points in font size.
3357
351ccb76
JR
33582008-06-10 Jason Rumney <jasonr@gnu.org>
3359
0500dcc9
JB
3360 * w32uniscribe.c (add_opentype_font_name_to_list):
3361 Skip non unicode fonts.
351ccb76 3362
f473ed6f
CY
33632008-06-10 Chong Yidong <cyd@stupidchicken.com>
3364
3365 * xfns.c (Fx_font_dialog): New function.
3366
5d6333d5 3367 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
3368 xg_file_response_callback.
3369 (pop_down_dialog): Rename from pop_down_file_dialog.
3370 (xg_get_file_name): Callers changed.
3371 (xg_get_font_name): New function.
3372
5d6333d5 3373 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 3374
2a3bd2e1
SM
33752008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
3376
3377 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
3378 x_underline_minimum_display_offset.
3379 (syms_of_xdisp): Declare it here rather than in xterm.c.
3380 * dispextern.h (underline_minimum_offset): Declare it.
3381 * w32term.c (x_draw_glyph_string): Use it.
3382 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
3383 (syms_of_xterm): Don't declare it any more.
3384 (x_draw_glyph_string): Adjust to the new name.
3385
d5dc6163
SM
33862008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
3387
3388 * xterm.c (x_underline_minimum_display_offset): New var.
3389 (x_draw_glyph_string): Use it.
3390 (syms_of_xterm): Declare it.
3391
0abdd197
CY
33922008-06-10 Chong Yidong <cyd@stupidchicken.com>
3393
3394 * font.c (font_parse_fcname): Accept GTK-style font names too.
3395
a1562258
SM
33962008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
3397
928b5acc
SM
3398 * dired.c (file_name_completion): Don't return t if the match is exact
3399 but with different capitalization.
3400 * minibuf.c (Ftry_completion): Simplify.
3401
a1562258
SM
3402 * window.c (Vwindow_point_insertion_type): New var.
3403 (set_window_buffer): Use it.
3404 (syms_of_window): Init and export it to Lisp.
3405
9552dbd1
KH
34062008-06-10 Kenichi Handa <handa@m17n.org>
3407
3408 * font.h (font_intern_prop): Prototype adjusted.
3409
3410 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
3411 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
3412 Adjust for the change of font_intern_prop.
9552dbd1 3413
a1562258
SM
3414 * ftfont.c (ftfont_pattern_entity):
3415 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
3416 (w32_registry):
3417 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
3418 the change of font_intern_prop.
3419
8993ad2e
JB
34202008-06-09 Juanma Barranquero <lekktu@gmail.com>
3421
3422 * w32menu.c (digest_single_submenu): Declare extern.
3423
0c2258fc
JR
34242008-06-09 Jason Rumney <jasonr@gnu.org>
3425
a1562258 3426 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 3427
a1562258
SM
3428 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
3429 (parse_single_submenu): Remove.
3430 (digest_single_submenu): Remove.
3431 (syms_of_w32menu): Don't initialise variables that have moved
3432 to menu.c.
3433 (set_frame_menubar): Sync with version in xmenu.c.
3434 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 3435
8993ad2e
JB
3436 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
3437 Make static again.
0c2258fc 3438
02246cb8
JR
34392008-06-09 Jason Rumney <jasonr@gnu.org>
3440
8993ad2e
JB
3441 Changes to w32 files related to the move of common menu code
3442 to menu.c on 2008-06-08 by Chong Yidong.
3443
3444 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
3445 defs to w32gui.h.
3446 (single_keymap_panes, push_menu_item, push_menu_pane):
3447 Make globally visible.
3448
d434fef5
JB
3449 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
3450 (local_free, malloc_widget_value, free_widget_value)
3451 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
3452 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
3453 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 3454 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 3455 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
3456 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
3457 (init_menu_items, finish_menu_items, discard_menu_items)
3458 (grow_menu_items, push_submenu_start, push_submenu_end)
3459 (push_left_right_boundary, push_menu_pane, push_menu_item)
3460 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 3461 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
3462 (update_submenu_strings): Remove functions.
3463 (xmalloc_widget_value): Remove and declare extern.
3464
3465 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
3466 (OBJ1): Build it.
3467
3468 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
3469 (local_heap, local_alloc, local_free, malloc_widget_value)
3470 (free_widget_value): Define here.
02246cb8 3471
9e1bb909
KH
34722008-06-09 Kenichi Handa <handa@m17n.org>
3473
366664ad
KH
3474 * font.h (Qascii_0): Extern it.
3475
9e1bb909
KH
3476 * font.c (Qascii_0): New variable.
3477 (syms_of_font): DEFSYM it.
3478 (font_open_by_name): If the registry "iso8859-1" fails, try also
3479 "ascii-0".
3480
3481 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
3482
b2ee479e
KH
34832008-06-08 Kenichi Handa <handa@m17n.org>
3484
8f440b79 3485 * .gdbinit (xfont): New command.
b2ee479e 3486
01ef9d36
AS
34872008-06-08 Andreas Schwab <schwab@suse.de>
3488
a4240420
AS
3489 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
3490 * Makefile.in (menu.o): Update dependencies.
3491
0181bf66 3492 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
3493 * emacs.c (main): Always call syms_of_menu.
3494 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
3495
c07cbae6
CY
34962008-06-08 Chong Yidong <cyd@stupidchicken.com>
3497
3498 * Makefile.in: Compile menu.c.
3499
3500 * lisp.h: Declare syms_of_menu.
3501
3502 * emacs.c (main): Call syms_of_menu.
3503
3504 * keyboard.h: Relocate platform-independent menu definitions from
3505 xmenu.c.
3506
3507 * menu.c: New file. Relocate platform-independent menu
904d8c69 3508 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
3509
3510 * xmenu.c: Remove platform-independent menu definitions.
3511 (menu_items menu_items_inuse, menu_items_allocated)
3512 (menu_items_used, menu_items_n_panes)
3513 (menu_items_submenu_depth): Move to keyboard.h.
3514 (init_menu_items, finish_menu_items, unuse_menu_items)
3515 (discard_menu_items, restore_menu_items, save_menu_items)
3516 (grow_menu_items, push_submenu_start, push_submenu_end)
3517 (push_left_right_boundary, push_menu_pane, push_menu_item)
3518 (keymap_panes, single_keymap_panes, single_menu_item)
3519 (list_of_panes, list_of_items, find_and_call_menu_selection)
3520 (xmalloc_widget_value, free_menubar_widget_value_tree)
3521 (parse_single_submenu, digest_single_submenu)
3522 (update_submenu_strings): Move to menu.c.
3523
4958ed94
SM
35242008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
3525
3526 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
3527
408b8ab4
MB
35282008-06-06 Miles Bader <miles@gnu.org>
3529
3530 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
3531 face, not frame default.
3532
87478b52
SM
35332008-06-05 Martin Rudalics <rudalics@gmx.at>
3534
3535 * window.c (pop_up_windows, pop_up_frames)
3536 (display_buffer_reuse_frames, Vpop_up_frame_function)
3537 (Vdisplay_buffer_function, Veven_window_heights)
3538 (Vspecial_display_buffer_names, Vspecial_display_regexps)
3539 (Vspecial_display_function, Vsame_window_buffer_names)
3540 (Vsame_window_regexps, split_height_threshold)
3541 (Vsplit_window_preferred_function): Move those vars to window.el.
3542 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
3543 (Fdisplay_buffer): Move those functions to window.el.
3544 (syms_of_window): Remove corresponding declarations.
3545 (display_buffer): New function.
3546 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
3547 * dispnew.c (Flast_nonminibuf_frame): New function.
3548 * buffer.c (Fpop_to_buffer): Move to window.el.
3549
9e0e0d77
SM
35502008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3551
3552 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
3553
4a485df8
KH
35542008-06-05 Kenichi Handa <handa@m17n.org>
3555
3556 * coding.c (detect_coding): Fix previous change.
3557 (detect_coding_system): Likewise.
3558
8ba31f36
SM
35592008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3560
c0dc8f64
SM
3561 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
3562
8ba31f36
SM
3563 * keymap.c (Vminibuffer_local_filename_must_match_map):
3564 Rename from Vminibuffer_local_must_match_filename_map.
3565 (syms_of_keymap):
3566 * minibuf.c (Fcompleting_read): Adjust accordingly.
3567 * commands.h: Rename declaration as well.
3568
7740d2c7
KH
35692008-06-05 Kenichi Handa <handa@m17n.org>
3570
e7438ece
KH
3571 * font.c (Ffont_spec): Don't use font_parse_family_registry for
3572 family name.
3573 (Ffont_put): Likewise.
3574
3575 * fontset.c (fontset_find_font): Call font_open_for_lface with the
3576 current font-spec.
3577
7740d2c7
KH
3578 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
3579 is unspecified.
3580
3581 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
3582 are the same as those of default face, realize a new fontset from
3583 default->fontset.
9e0e0d77 3584 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 3585
c876b227
SM
35862008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3587
3588 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
3589 (move_it_in_display_line): New wrapper.
3590
3591 * window.c (window_scroll_pixel_based_preserve_x)
3592 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
3593 (window_scroll_pixel_based, window_scroll_line_based):
3594 Use them to preserve column positions.
3595 (syms_of_window): Initialize them.
3596
3597 * indent.c (Fvertical_motion): Extend first arg to allow passing an
3598 (HPOS . VPOS) pair.
3599
3600 * dispextern.h (move_it_in_display_line): Declare.
3601
927abf37
JB
36022008-06-05 Juanma Barranquero <lekktu@gmail.com>
3603
3604 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
3605 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
3606 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
3607
9d14503e
JB
36082008-06-04 Juanma Barranquero <lekktu@gmail.com>
3609
3610 * window.c (Fset_window_parameter): Doc fix.
3611 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
3612
e6841c3b
JB
36132008-06-04 Joakim Verona <joakim@verona.se>
3614
3615 * window.h (struct window): Add new member window_parameters.
3616
3617 * window.c (Fwindow_parameters, Fwindow_parameter)
3618 (Fset_window_parameter): New defuns.
3619 (syms_of_window): Defsubr the new defuns.
3620 (make_window): Initialize window_parameters to nil.
3621
4ba50634
JPW
36222008-06-04 John Paul Wallington <jpw@pobox.com>
3623
3624 * eval.c (Fdefmacro): Doc fix.
3625
c0e16b14
KH
36262008-06-04 Kenichi Handa <handa@m17n.org>
3627
3628 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 3629 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
3630 (detect_coding_system): Fix handling of coding->head_ascii.
3631
0615d903
AS
36322008-06-03 Andreas Schwab <schwab@suse.de>
3633
3634 * font.c (font_prop_validate_spacing): Fix last change.
3635
8a1816bb
KH
36362008-06-03 Kenichi Handa <handa@m17n.org>
3637
eea9c5c4
KH
3638 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
3639 (font_parse_fcname): Fix handling of unknown key.
3640
3641 * xfont.c (xfont_list): Try an alias.
3642
8a1816bb
KH
3643 * charset.c (char_charset): Return NULL if the arg charset_list is
3644 specified and C doesn't belong to any of them.
3645
2f593f4c 36462008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
3647
3648 * font.c (font_pixel_size): Don't take cdr of an integer.
3649
c2cd06e6
JM
36502008-06-02 Jim Meyering <meyering@redhat.com>
3651
70fdbb46
JM
3652 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
3653 * alloc.c (xfree): Return right away for a NULL arg.
3654 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
3655 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
3656 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
3657 (create_apple_event_from_drag_ref, cfstring_create_normalized):
3658 Likewise.
70fdbb46
JM
3659 * doprnt.c (doprnt1): Likewise.
3660 * frame.c (frame): Likewise.
3661 * keyboard.c (wipe_kboard): Likewise.
1f204af3 3662 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
3663 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
3664 * term.c (tty_default_color_capabilities, maybe_fatal)
3665 (delete_tty): Likewise.
3666 * w16select.c (string): Likewise.
3667 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
3668 * w32bdf.c (w32_free_bdf_font): Likewise.
3669 * w32fns.c (w32_unload_font): Likewise.
3670 * w32font.c (w32font_close): Likewise.
3671 * window.c (size_window): Likewise.
3672 * xselect.c (receive_incremental_selection): Likewise.
3673 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
3674 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
3675 * w32.c (stat): Likewise.
3676
2f593f4c 3677 Remove useless if-before-free tests.
70fdbb46
JM
3678 * editfns.c (Fset_time_zone_rule): Likewise.
3679 * lread.c (nosuffix): Likewise.
3680 * ralloc.c (get_bloc): Likewise.
3681 * regex.c (reg_free): Likewise.
3682 * xftfont.c (xftfont_open, xftfont_close): Likewise.
3683 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
3684 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 3685
4fc1984a
KH
36862008-06-02 Kenichi Handa <handa@m17n.org>
3687
1d1e1245
KH
3688 * font.c (font_find_for_lface): Handle float font size.
3689 (font_open_for_lface): Likewise.
3690
4fc1984a
KH
3691 * xfaces.c (x_supports_face_attributes_p): Check face->font before
3692 comparing the properties.
3693
aee986fd
JR
36942008-06-01 Jason Rumney <jasonr@gnu.org>
3695
e6841c3b
JB
3696 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
3697 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
3698 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
3699 Don't add empty script list.
3700 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 3701
60a3d7ee
DN
37022008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
3703
aee986fd 3704 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
3705 ".." has been used elsewhere in the file for a long time.
3706 (LIBXT_STATIC): Remove conditional based on unused variable.
3707
f2cec7a9
MB
37082008-06-01 Miles Bader <miles@gnu.org>
3709
3710 * xfaces.c (Vface_remapping_alist): New variable.
3711 (syms_of_xfaces): Initialize it.
3712 (enum named_merge_point_kind): New type.
3713 (struct named_merge_point): Add `named_merge_point_kind' field.
3714 (push_named_merge_point): Make cycle detection respect different
3715 named-merge-point kinds.
c876b227 3716 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
3717 Remove face-name alias resolution.
3718 (lface_from_face_name): New definition using
3719 `lface_from_face_name_no_resolve'.
c876b227 3720 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
3721 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
3722 (get_lface_attributes): New definition that layers face-remapping on
3723 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
3724 (lookup_basic_face): New function.
3725 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
3726 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
3727 `get_lface_attributes'.
3728 (face_at_buffer_position): Use `lookup_basic_face' to lookup
3729 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
3730 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
3731
3732 * xdisp.c (init_iterator): Pass base_face_id through
3733 `lookup_basic_face' when we actually use it as a face-id.
3734 (handle_single_display_prop): Use `lookup_basic_face' to lookup
3735 DEFAULT_FACE_ID.
3736
3737 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
3738 lookup the initial face-id.
3739
3740 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
3741
518c0b83
JB
37422008-06-01 Juanma Barranquero <lekktu@gmail.com>
3743
3744 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
3745 (Fremove_text_properties): Fix typos in docstrings.
3746
719b3d63
KH
37472008-05-31 Kenichi Handa <handa@m17n.org>
3748
e4c93315
KH
3749 * font.c (font_list_entities): Fix the car part of data to be
3750 stored in the cache.
3751
719b3d63
KH
3752 * ftfont.c (ftfont_font_format): Don't use strcasestr.
3753
d0827857
SM
37542008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
3755
3756 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
3757 Add a `test' argument so another predicate than `equal' can be used.
3758 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
3759 (map_char_table): Remove unused vars `c' and `i'.
3760 * lisp.h (Foptimize_char_table): Adjust declaration.
3761 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
3762
a266686a
KH
37632008-05-30 Kenichi Handa <handa@m17n.org>
3764
d0827857 3765 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
3766 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
3767 defined.
3768
fd9440c5
SM
37692008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
3770
3771 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
3772 (Fmake_variable_frame_local): Disallow mixing buffer-local and
3773 frame-local settings for the same variable.
3774
fd2ae9b2
KH
37752008-05-30 Kenichi Handa <handa@m17n.org>
3776
9e0e0d77 3777 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
3778 (syms_of_fontset): Delete defsubr of Sfont_info.
3779
3780 * font.c (font_style_to_value, font_score): Delete casting of the
3781 args to xstcasecmp.
3782 (register_font_driver): Increment num_font_drivers only when
3783 registering the driver globally.
9e0e0d77 3784 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
3785 (syms_of_font): Defsubr Sfont_info.
3786
eaf11618
KH
37872008-05-29 Kenichi Handa <handa@m17n.org>
3788
3789 * coding.h (enum define_coding_utf8_arg_index): New enum.
3790 (enum coding_attr_index): Change coding_attr_utf_16_bom to
3791 coding_attr_utf_bom.
fd9440c5
SM
3792 (enum utf_bom_type): Rename from utf_16_bom_type.
3793 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
3794 (struct coding_system): Add utf_8_bom in `spec' union.
3795
3796 * coding.c (CODING_UTF_8_BOM): New macro.
3797 (enum coding_category): Delete coding_category_utf_8, add
3798 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
3799 coding_category_utf_8_sig.
3800 (CATEGORY_MASK_UTF_8): Delete it.
3801 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
3802 (CATEGORY_MASK_UTF_8_SIG): New macros.
3803 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
3804 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
3805 CATEGORY_MASK_UTF_8_SIG.
3806 (CATEGORY_MASK_UTF_8): New macro.
3807 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
3808 (detect_coding_utf_8): Check BOM.
3809 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 3810 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
3811 (encode_coding_utf_16): Likewise.
3812 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
3813 (detect_coding, detect_coding_system): Handle utf-8-auto.
3814 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
3815 (syms_of_coding): Fix setting up of Vcoding_category_table.
3816
891bd142
SM
38172008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
3818
3819 * process.c (Faccept_process_output): If `millisec' is non-nil,
3820 `seconds' default to 0.
3821 (wait_reading_process_output): Also return non-nil if we read output
3822 from a non-running process.
3823
1519d52e
JR
38242008-05-29 Jason Rumney <jasonr@gnu.org>
3825
fd9440c5
SM
3826 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
3827 `raster' specified.
3828 (add_font_entity_to_list): Allow non-opentype truetype fonts back
3829 in the uniscribe backend, but disallow any font that has no
3830 unicode subrange support.
1519d52e 3831
d5ab09cd
JB
38322008-05-29 Juanma Barranquero <lekktu@gmail.com>
3833
3834 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
3835 Fix typos in docstrings.
3836
a4eec626
KH
38372008-05-29 Kenichi Handa <handa@m17n.org>
3838
3839 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 3840 (Fx_family_fonts): Set frame correctly.
a4eec626 3841
a6e0b7e5
JR
38422008-05-28 Jason Rumney <jasonr@gnu.org>
3843
d5ab09cd 3844 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 3845
6b3d752c
SM
38462008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3847
3848 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
3849 calling build_annotations.
3850
c3f9fba8
JB
38512008-05-28 Juanma Barranquero <lekktu@gmail.com>
3852
3853 * coding.c (Fdecode_coding_region, Fencode_coding_region)
3854 (Fencode_coding_string):
3855 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
3856 <latin-extra-code-table>: Fix typos in docstrings.
3857 (syms_of_coding) <coding-system-alist>: Doc fix.
3858 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
3859
00c670e1
KH
38602008-05-28 Kenichi Handa <handa@m17n.org>
3861
b75d7f28
KH
3862 * fontset.c (Ffont_info): Don't call font_close_object.
3863
3864 * font.c (font_parse_family_registry): Use Ffont_put to validate
3865 foundry and family.
3866 (font_delete_unmatched): Don't check spacing.
3867 (font_list_entities): Add spacing to the spec to list fonts.
3868
3869 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 3870 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 3871
00c670e1
KH
3872 * coding.c (encode_coding_raw_text): Fix previous change.
3873 (encode_coding_object): When the dst_object is a buffer and is
3874 different from src_object, move gap to PT.
3875
45feca91
CY
38762008-05-27 Chong Yidong <cyd@stupidchicken.com>
3877
c3f9fba8 3878 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 3879
5dd5d9eb
SM
38802008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3881
01d45367
SM
3882 * coding.c (encode_coding_raw_text): Set coding->produced_char for
3883 all branches. Compute it differently.
3884
5dd5d9eb
SM
3885 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
3886
9c623c85
JB
38872008-05-27 Juanma Barranquero <lekktu@gmail.com>
3888
3889 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
3890 into "else if () ... else ...".
3891
943f2093
JR
38922008-05-27 Jason Rumney <jasonr@gnu.org>
3893
5dd5d9eb
SM
3894 * w32font.c (w32font_open_internal): Determine if glyph indices
3895 are likely to work here.
943f2093 3896
7385fe74
CY
38972008-05-27 Chong Yidong <cyd@stupidchicken.com>
3898
3899 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
3900 draw overlap glyphs with appropriate highlighting.
3901
4f64a164
KH
39022008-05-27 Kenichi Handa <handa@m17n.org>
3903
3904 * xfont.c (xfont_open): Fix calculation of font->average_width.
3905
1fb5aad7
SM
39062008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3907
3908 * casefiddle.c (casify_object): Try to guess better whether the
3909 argument is a byte or a char.
3910
f8eb1603
AS
39112008-05-26 Andreas Schwab <schwab@suse.de>
3912
1fb5aad7
SM
3913 * xselect.c (x_reply_selection_request): Properly handle format == 32.
3914 Always send multiples of format size.
5a9c35e5 3915
f8eb1603
AS
3916 * xterm.c (x_set_frame_alpha): Fix type mismatch.
3917
ba93d684
JR
39182008-05-26 Jason Rumney <jasonr@gnu.org>
3919
1fb5aad7
SM
3920 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
3921 (compute_metrics): Don't set failure if we just cleared the cache.
3922 (w32_weight_table): Remove unused variable.
3923 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
3924 backwards compatibility.
ba93d684 3925
505ecc49
KH
39262008-05-25 Kenichi Handa <handa@m17n.org>
3927
1fb5aad7
SM
3928 * w32term.c (x_draw_glyph_string):
3929 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
3930
3931 * xfaces.c: Delete unused function prototypes.
3932 (xstrlwr, font_frame): Delete them.
3933 (clear_face_cache): Delete unused variable.
3934
1fb5aad7
SM
3935 * xftfont.c (xftfont_open): Delete unused variable.
3936 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
3937
3938 * ftxfont.c (ftxfont_open): Delete unused variable.
3939
3940 * fontset.c (face_for_char): Optimize for the case of no charset
3941 property.
3942
3943 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
3944 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
3945 (otf_open, font_otf_capability, generate_otf_features)
3946 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 3947 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
3948 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
3949 (syms_of_font): Codes for accessing above commented out.
3950
f481eb31
EZ
39512008-05-24 Eli Zaretskii <eliz@gnu.org>
3952
3953 * w32proc.c: Include dispextern.h.
3954
3955 * w32.c: Include dispextern.h.
3956
20746fe4
JB
39572008-05-23 Juanma Barranquero <lekktu@gmail.com>
3958
3959 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
3960 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
3961 Fix typos in docstrings.
3962
e7150846
JR
39632008-05-23 Jason Rumney <jasonr@gnu.org>
3964
20746fe4 3965 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 3966
dbf46ba6
KH
39672008-05-23 Kenichi Handa <handa@m17n.org>
3968
6c652beb
KH
3969 * charset.c (Qemacs, charset_emacs): New variables.
3970 (char_charset): Fix for non-Unicode characters.
3971 (syms_of_charset): Define charset_emacs.
3972
baf4d3b3 3973 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
3974 s->underline_thickness and s->underline_position. Be sure to draw
3975 underline within the current line area.
baf4d3b3
KH
3976
3977 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 3978 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 3979 underline within the current line area.
baf4d3b3 3980
dbf46ba6
KH
3981 * fontset.c: Delete unused variables and add casting for char *
3982 throughout the file.
3983 (fontset_font): Try the fallback fonts of the current fontset
3984 before consulting the default fontset.
3985
3986 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
3987
9e0e0d77 3988 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 3989
3b780338
JR
39902008-05-22 Jason Rumney <jasonr@gnu.org>
3991
20746fe4 3992 * font.c: Don't include strings.h.
577eba22 3993
9e0e0d77 3994 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 3995
20746fe4
JB
3996 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
3997 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
3998 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
3999 to call xstrcasecmp.
05131107 4000
b1722a46 4001 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 4002
b1722a46 4003 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 4004
b1722a46 4005 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 4006
b1722a46 4007 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 4008
a30e1957
KH
40092008-05-22 Kenichi Handa <handa@m17n.org>
4010
20746fe4 4011 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 4012
20746fe4 4013 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
4014 change of font_style_table.
4015
a30e1957
KH
4016 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
4017 two args.
4018
4019 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
4020 two args.
4021
631248e5
SM
40222008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
4023
4024 * minibuf.c (keys_of_minibuf): Delete.
4025 * lisp.h (keys_of_minibuf): Delete.
4026 * emacs.c (main): Don't call keys_of_minibuf.
4027
318548be
KH
40282008-05-22 Kenichi Handa <handa@m17n.org>
4029
631248e5 4030 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
4031 ftfont_list_generic_family. Return a single family for each
4032 generic family.
4033 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
4034 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
4035 Call font_add_log.
318548be
KH
4036 (ftfont_match): Call font_add_log.
4037
4038 * font.h (Ffont_xlfd_name): EXFUN adjusted.
4039 (FONT_DEBUG): Define it.
4040 (font_add_log): Extern it.
631248e5 4041 (font_assert): Rename from xassert.
318548be
KH
4042
4043 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
4044 (xfont_list_family): Call font_add_log.
4045 (xfont_match): Likewise.
631248e5 4046 (memq_no_quit): Delete.
318548be
KH
4047
4048 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
4049 call of Ffont_xlfd_name.
4050
4051 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 4052 (swidth_table): Move to font.c.
318548be
KH
4053
4054 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 4055 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
4056 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
4057 New variables.
631248e5
SM
4058 (struct table_entry): Move from xfaces.c and modified.
4059 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 4060 contents adjusted for the change of struct table_entry.
20746fe4 4061 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 4062 format change of font_style_table.
318548be
KH
4063 (font_parse_family_registry): Don't overwrite existing foundry and
4064 family of font_spec.
4065 (font_score): Fix calculation of diff for sizes.
4066 (font_sort_entites): Call font_add_log.
4067 (font_delete_unmatched): Return a newly created list.
4068 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
4069 (font_matching_entity, font_open_entity, font_close_entity):
4070 Call font_add_log.
318548be 4071 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 4072 (Finternal_set_font_style_table): Delete.
318548be
KH
4073 (BUILD_STYLE_TABLE): New macro.
4074 (build_style_table): New function.
4075 (Vfont_log, font_log_env_checked): New variables.
4076 (font_add_log): New function.
4077 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
4078 Declare Lisp variables "font-weight-table", "font-slant-table",
4079 "font-width-table", and "font-log". Initialize font_style_table.
4080
6aac1c03
DN
40812008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
4082
bcc850aa 4083 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 4084
7950790f
GM
40852008-05-21 Seiji Zenitani <zenitani@mac.com>
4086 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 4087
7950790f 4088 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 4089 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 4090 (x_set_alpha): New function.
a2979e8e 4091
7950790f 4092 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 4093
7950790f
GM
4094 * xfns.c (x-create-frame, Qalpha):
4095 Initialize the frame parameter `alpha'.
b9fb2c45
GM
4096 * xterm.c (OPAQUE, OPACITY): New.
4097 (x_set_frame_alpha): New function.
4098 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 4099
7950790f
GM
4100 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
4101 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 4102
5c2a72d9
JR
41032008-05-20 Jason Rumney <jasonr@gnu.org>
4104
20746fe4
JB
4105 * w32font.c (add_font_entity_to_list): Don't add non-opentype
4106 truetype fonts to opentype list.
5c2a72d9 4107
eb152aa9
JB
41082008-05-20 Juanma Barranquero <lekktu@gmail.com>
4109
4110 * fontset.c (Ffontset_info): Doc fix.
4111 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
4112 <ignore-relative-composition>: Fix typos in docstrings.
4113
4114 * font.c (syms-of-font) <font-encoding-alist>:
4115 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
4116 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
4117 (Ffont_otf_alternates): Doc fixes.
4118
ad00e1a3
KH
41192008-05-20 Kenichi Handa <handa@m17n.org>
4120
4121 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
4122 font.h through out the file.
9e0e0d77 4123 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 4124 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
4125 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
4126
4127 * emacs.c (main): Call syms_of_font unconditionally.
4128
4129 * font.h (find_font_encoding): Extern it.
4130
9e0e0d77 4131 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
4132 fontset.c.
4133 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
4134 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
4135 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
4136 only when HAVE_WINDOW_SYSTEM is defined.
4137 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
4138 when HAVE_WINDOW_SYSTEM is defined.
4139
9e0e0d77
SM
4140 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
4141 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
4142
4143 * xfaces.c: Include font.h unconditionally.
4144 (merge_face_ref, merge_face_vectors)
4145 (Finternal_set_lisp_face_attribute): Cancel the previous change.
4146
40a69fac
SM
41472008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
4148
4149 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
4150 indirect_variable.
4151 * eval.c (lisp_indirect_variable): New fun.
4152 (Fuser_variable_p): Use it.
4153
8c2dccbf
SM
41542008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4155
ad97b375
SM
4156 * lisp.h (indirect_variable):
4157 * data.c (indirect_variable, let_shadows_buffer_binding_p):
4158 Use Lisp_Symbol pointers rather than Lisp_Object.
4159 Adjust callers.
4160 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
4161 To this end, change calling-convention.
4162
8c2dccbf
SM
4163 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
4164 if some non-hidden buffers are selected by string&pred.
4165
ad97b375
SM
41662008-05-19 Chong Yidong <cyd@stupidchicken.com>
4167
4168 * process.c (wait_reading_process_output): Always check status
4169 when in batch mode.
4170
25b81df4
KH
41712008-05-19 Kenichi Handa <handa@m17n.org>
4172
4173 * font.c (font_list_entities): Fix handling of cache.
4174 (font_matching_entity): Likewise.
4175
8c2dccbf 4176 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 4177 (ft_face_cache): New variable.
1f204af3 4178 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 4179 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
4180 (fc_charset_table): New variable.
4181 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
4182 . FC_CHARSET_IDX) as :font-entity property in the font entity.
4183 Callers changed.
dde8403f 4184 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
4185 (ftfont_spec_pattern): New argument fc_charset_idx.
4186 Check registry more rigidly. Change callers.
a2979e8e 4187 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
4188 change of :font-entity property of the font.
4189
a2979e8e 4190 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
4191 property of the font.
4192
d4a1d553
JB
41932008-05-18 Juanma Barranquero <lekktu@gmail.com>
4194
4195 * coding.c (Fcoding_system_p): Rename argument to match docstring.
4196 (Funencodable_char_position, Fcheck_coding_systems_region)
4197 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
4198 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
4199 (Ffind_operation_coding_system, Fset_coding_system_priority)
4200 (Fcoding_system_eol_type): Doc fixes.
4201
07cfc4e7
GM
42022008-05-17 Glenn Morris <rgm@gnu.org>
4203
4204 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
4205
1cab27d2
EZ
42062008-05-16 Eli Zaretskii <eliz@gnu.org>
4207
4208 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
4209 and st_gid.
4210
dde8403f 4211 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
4212 HAVE_WINDOW_SYSTEM is not defined.
4213
4214 * xfaces.c (merge_face_ref, merge_face_vectors)
4215 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
4216 HAVE_WINDOW_SYSTEM is defined.
4217 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
4218
86b89713
SM
42192008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
4220
4221 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
4222
6750bd93
YM
42232008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4224
62867b11 4225 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 4226
79f105c9
KH
42272008-05-15 Kenichi Handa <handa@m17n.org>
4228
4229 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
4230 preference.
4231
6b33da9f
GM
42322008-05-15 Glenn Morris <rgm@gnu.org>
4233
4234 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
4235
d0e4433b
CY
42362008-05-15 Chong Yidong <cyd@stupidchicken.com>
4237
4238 * fns.c (init_fns): Don't initialize weak_hash_tables here.
4239 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
4240
4241 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
4242
5f2d79e0
KH
42432008-05-15 Kenichi Handa <handa@m17n.org>
4244
fd8a1cae
KH
4245 * ftfont.c (ftfont_list): Downcase family name to check generic
4246 families.
4247
4248 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
4249 font-spec for QCfont value.
4250
5f2d79e0
KH
4251 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
4252 buffer. Check the return value of it.
4253
e5e29349
JR
42542008-05-14 Jason Rumney <jasonr@gnu.org>
4255
4256 * w32term.c (w32_get_glyph_overhangs): Remove.
4257 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
4258
1f09f444
KH
42592008-05-14 Kenichi Handa <handa@m17n.org>
4260
4261 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
4262 (font_clear_cache): Check if the cached vector of entities is nil
4263 or not.
1f09f444 4264
ecae6af9 42652008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
4266
4267 * emacs.c (main_thread): Conditionalize on
4268 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
4269 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
4270
4271 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
4272 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
4273 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
4274
c6b278e7
KH
42752008-05-14 Kenichi Handa <handa@m17n.org>
4276
4277 * coding.c (detect_coding_iso_2022): Ignore a coding category that
4278 has no corresponding coding system.
4279
42802008-05-14 Jason Rumney <jasonr@gnu.org>
4281
4282 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
4283
4284 * w32font.h (w32font_open_internal): Update declaration.
4285
4286 * w32font.c (w32font_open_internal): Change last argument from
4287 w32font_info struct to font object. Fill in font object from
4288 font_entity. Get Outline metrics if possible. Use them to
4289 calculate underline position and thickness. Use xlfd name as name
4290 property. Don't set codepage.
4291 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 4292 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
4293 (w32font_draw): Use s->font.
4294 (clear_cached_metrics): Don't clear non-existent blocks.
4295
4296 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
4297 font was not found.
a879ee6f 4298 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
4299
4300 * w32uniscribe.c (uniscribe_open): Pass font_object to
4301 w32font_open_internal.
4302
43032008-05-14 Kenichi Handa <handa@m17n.org>
4304
4305 These changes are to delete all legacy font-handling codes, and
4306 make Emacs use only font-backends.
4307
4308 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
4309 (frame.o, image.o, print.o): Depend on $(FONTSRC).
4310
4311 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
4312
4313 * charset.h (Vcharset_non_preferred_head)
4314 (Vcurrent_iso639_language): Extern them.
4315
4316 * charset.c (Vcharset_non_preferred_head): New variable.
4317 (Vcurrent_iso639_language): New variable.
4318 (syms_of_charset): Declare it as a Lisp variable.
4319 (char_charset): Don't check non preferred charsets. As a last
4320 resort, return charset_unicode.
4321 (Fset_charset_priority): Update Vcharset_non_preferred_head.
4322
4323 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
4324 conditionals. Don't check enable_font_backend. Delete all codes
4325 used only when USE_FONT_BACKEND is not defined.
4326
4327 * dispextern.h (struct glyph_string): Change type of `font' to
4328 `struct font *'.
4329 (struct glyph_string): New member underline_position and
4330 underline_thickness.
4331 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
4332 (struct face): Change type of `font' to `struct font *'. Remove
4333 members `font_name', `font_info_id'.
4334 (per_char_metric, encode_char): Delete externs.
4335 (calc_pixel_width_or_height): Adjust the prototype.
4336
4337 * emacs.c (enable_font_backend): Delete extern.
4338 (main): Don't set enable_font_backend. Don't check the command
4339 line argument "-disable-font-backend".
4340
4341 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
4342 (enum font_property_index): New members FONT_DPI_INDEX,
4343 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
4344 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
4345 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
4346 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
4347 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
4348 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
4349 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
4350 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
4351 (struct font_spec, struct font_entity): New structs.
4352 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
4353 (struct font): Many members from old "struct font_info" moved to
4354 here. Members font and entity deleted.
4355 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
4356 the new font-related objects.
4357 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
4358 (CHECK_FONT_GET_OBJECT): Likewise.
4359 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
4360 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
4361 (struct font_driver): New members case_sensitive anc check. Type
4362 of the member list and open changed.
4363 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
4364 (font_symbolic_width, font_find_object, font_get_spec)
4365 (font_set_lface_from_name): Delete extern.
20746fe4 4366 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
4367
4368 * font.c: Include <strings.h>.
4369 (enable_font_backend): Delete it.
4370 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
4371 (CHECK_VALIDATE_FONT_SPEC): Delete it.
4372 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
4373 (null_string): Delete it.
4374 (null_vector): Make it static.
4375 (font_family_alist): Delete it.
4376 (Qnormal): Extern it.
4377 (QCextra, QClanguage): Delete it.
1f204af3 4378 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
4379 (font_make_spec, font_make_entity, font_make_object)
4380 (font_intern_prop): Renamed from intern_downcase. Don't downcase
4381 the string. Callers changed.
4382 (font_pixel_size): Adjusted for the format change of font-related
4383 objects.
4384 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
4385 (font_style_to_value, font_style_symbolic): New function.
4386 (build_font_family_alist): Delete it.
4387 (font_registry_charsets): Use Fassoc_string instead of
4388 assq_no_quit.
4389 (font_prop_validate_symbol): Don't return null_string.
4390 (font_prop_validate_style): Adjusted for the change of
4391 style-related values in a font vector.
20746fe4 4392 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
4393 QCantialias, add entries for QCavgwidth.
4394 (get_font_prop_index): Delete the 2nd argument FROM.
4395 (font_prop_validate): Arguments changed.
4396 (font_put_extra): Adjusted for the change of font-related objects.
4397 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
4398 (font_parse_fcname, font_unparse_fcname)
4399 (font_prepare_composition): Likewise.
4400 (font_parse_family_registry): Renamed from font_merge_old_spec.
4401 (otf_open): Delete the 1st arg entity.
4402 (font_otf_capability): Adjusted for the above change.
4403 (font_score): New arg alternate_families. Adjusted for the change
4404 of font-related objects.
4405 (font_sort_entites): New arg best_only.
4406 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
4407 Delete them.
4408 (font_match_p): Check alternate families.
4409 (font_find_object): Delete it.
4410 (font_check_object): New function.
c3f9fba8 4411 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
4412 (font_delete_unmatched): New arg.
4413 (font_list_entities): Call font_driver->list with a spec that
4414 doesn't specify style-related properties.
4415 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 4416 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
4417 (font_close_object, font_has_char, font_encode_char)
4418 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
4419 (font_spec_from_name, font_clear_prop, font_update_lface):
4420 New functions.
4421 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
4422 (font_prepare_for_face, font_done_for_face, font_open_by_name)
4423 (font_at): Adjusted for the change of font-related objects.
4424 (font_range): New function.
4425 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 4426 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
4427 (Fcopy_font_spec, Fmerge_font_spec): New function.
4428 (Ffont_family_list): Renamed from list-families.
4429 (Finternal_set_font_style_table): Arguments changed.
4430 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
4431 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
4432 change of font-related objects.
c3f9fba8 4433 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 4434
3554e566 4435 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
4436 struct font.
4437 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
4438 (enum FONT_SPEC_INDEX): Delete it.
4439 (font_info, list_fonts_func, load_font_func, query_font_func)
4440 (set_frame_fontset_func, find_ccl_program_func)
4441 (get_font_repertory_func, new_fontset_from_font_name): Delete
4442 externs.
4443 (fontset_from_font_name): Extern it.
4444 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
4445 (FONT_INFO_FROM_FACE): Deleted.
4446 (face_for_font): Adjust prototype.
4447
4448 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
4449 conditionals. Don't check enable_font_backend. Delete all codes
4450 used only when USE_FONT_BACKEND is not defined.
4451 (get_font_info_func, list_font_func, load_font_func)
4452 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
4453 (get_font_repertory_func): Delete them.
4454 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
4455 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
4456 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
4457 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
4458 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
4459 (fontset_compare_rfontdef): New function.
4460 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
4461 ront-defs by qsort. Adjusted for the change of font-group vector.
4462 (load_font_get_repertory): Deleted.
4463 (fontset_find_font): Use new macros to ref/set elements of
4464 font-def and rfont-def.
4465 (fontset_font): Fix the timing of remembering that no font for C.
4466 (free_face_fontset): Do nothing if the face has no fontset.
4467 (face_suitable_for_char_p): Use new macros to ref/set elements of
4468 rfont-def.
4469 (face_for_char): Likewise. Call face_for_char with font_object.
4470 (fs_load_font): Delete. Delete #pragma surrounding it.
4471 (fs_query_fontset): Use strcasecmp instead of strcmp.
4472 (generate_ascii_font_name): Adjusted for the format change of
4473 font-spec.
4474 (Fset_fontset_font): Likewise. Use new macros to set elements of
4475 font-def.
4476 (Fnew_fontset): Use font_unparse_xlfd to generate
4477 FONTSET_ASCII (fontset).
4478 (new_fontset_from_font_name): Deleted.
4479 (fontset_from_font): Renamed from new_fontset_from_font. Check if
4480 a fontset is already created for the font. FIx updating of
4481 Vfontset_alias_alist.
4482 (fontset_ascii_font): Deleted.
4483 (Ffont_info): Adjusted for the format change of font-spec.
4484 (Finternal_char_font): Likewise.
4485 (Ffontset_info): Likewise.
4486 (syms_of_fontset): Don't check load_font_func.
4487
4488 * fns.c (internal_equal): Handle PREV_FONT.
4489
4490 * frame.h: Delete USE_FONT_BACKEND conditional.
4491
4492 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
4493 conditionals. Don't check enable_font_backend. Delete all codes
4494 used only when USE_FONT_BACKEND is not defined.
4495 (x_set_font): Call x_new_font, not x_new_fontset2.
4496 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
4497 already set for the frame.
4498
4499 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
4500 a font-entity by font_make_entity. Use font_intern_prop instead
4501 of intern_downcase. Use FONT_SET_STYLE to set a style-related
4502 font property. If a font is scalable, set avgwidth property to 0.
4503 Set font-entity property by font_put_extra.
4504 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
4505 (ffont_driver): Adjusted for the change of struct font_driver.
4506 (ftfont_spec_pattern): New function.
4507 (ftfont_list): Return a list, not vector.
4508 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
4509 (ftfont_list_family): Don't downcase names.
4510 (ftfont_free_entity): Deleted.
4511 (ftfont_open): Return a font-ojbect. Adjusted for the change of
4512 struct font. Get underline_thickness and underline_position from
4513 font property. Don't update dpyinfo->smallest_font_height and
4514 dpyinfo->smallest_char_width.
4515 (ftfont_close): Don't free `struct font'.
4516 (ftfont_has_char): Adjusted for the format change of font-entity.
4517 (ftfont_encode_char, ftfont_text_extents): Likewise.
4518
4519 * ftxfont.c (ftxfont_list): Return a list, not vector.
4520 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
4521 struct font. Get underline_thickness and underline_position from
4522 font property. Don't update dpyinfo->smallest_font_height and
4523 dpyinfo->smallest_char_width.
10d1d0af 4524 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
c6b278e7
KH
4525 (ftxfont_draw): Adjusted for the change of struct font.
4526
4527 * image.c (image_ascent): Don't include "charset.h". Include
4528 "character.h" and "font.h".
4529
4530 * lisp.h (enum pvec_type): New member PREV_FONT.
4531 (Fassoc_string): EXFUN it.
4532
4533 * print.c: Include font.h.
4534 (print_object): Handle font-related objects.
4535
4536 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
4537 conditionals. Don't check enable_font_backend. Delete all codes
4538 used only when USE_FONT_BACKEND is not defined.
4539 (handle_auto_composed_prop): Do nothing if it->f is not on a
4540 window system. Check how many following characters can be
4541 displayed by the same font.
4542 (calc_pixel_width_or_height): Type of the 4th arg is changed to
4543 'struct font *'.
4544 (get_char_face_and_encoding): Assign the whole encoding task to
4545 the `encode-char' method of a font driver.
4546 (fill_composite_glyph_string): Adjusted for the change of `struct
4547 face' and `struct glyph_string'.
4548 (fill_glyph_string): Likewise.
4549 (get_per_char_metric): Arguments changed.
4550 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
4551 and `struct glyph_string'.
4552 (produce_stretch_glyph, calc_line_height_property)
4553 (x_produce_glyphs): Likewise.
4554
4555 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
4556 conditionals. Don't check enable_font_backend. Delete all codes
4557 used only when USE_FONT_BACKEND is not defined. Use
4558 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
4559 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
4560 (Qp): Extern them.
4561 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
4562 Deleted.
4563 (struct font_name): Deleted.
4564 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
4565 (compare_fonts_by_sort_order): New function.
4566 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
4567 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
4568 Deleted.
4569 (Fx_family_fonts): Use font_list_entities, and sort fonts by
4570 compare_fonts_by_sort_order.
4571 (Fx_font_family_list): Call Ffont_family_list.
4572 (face_numeric_value, face_numeric_weight, face_numeric_slant)
4573 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
4574 (face_symbolic_slant, face_symbolic_swidth)
4575 (split_font_name_into_vector, build_font_name_from_vector)
4576 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
4577 (font_rescale_ratio, split_font_name, build_font_name)
4578 (free_font_names, sort_fonts, x_face_list_fonts)
4579 (face_font_available_p, sorted_font_list, cmp_font_names)
4580 (font_list_1, concat_font_list, font_list, remove_duplicates):
4581 Deleted.
4582 (Fx_list_fonts): Use Ffont_list.
4583 (LFACE_AVGWIDTH): Deleted.
4584 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
4585 by FONTP.
4586 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4587 (set_lface_from_font_name): Delete it.
4588 (set_lface_from_font): Renamed from
4589 set_lface_from_font_and_fontset. Caller changed. Don't set
4590 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
4591 for face.
c3f9fba8
JB
4592 (merge_face_vectors): Copy font-spec if necessary.
4593 Clear properties of the font-spec if necessary.
c6b278e7
KH
4594 (merge_face_ref): Clear properties of the font-spec if necessary.
4595 (Finternal_set_lisp_face_attribute): Likewise.
4596 (set_font_frame_param): Use font_load_for_lface to load a
4597 font-object, and call Fmodify_frame_parameters with it.
4598 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
4599 font name by Ffont_xlfd_name.
4600 (Finternal_lisp_face_attribute_values): Don't check QCweight,
4601 QCslant, and QCwidth.
4602 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
4603 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
4604 Compare fonts by EQ.
4605 (lookup_non_ascii_face): Deleted.
4606 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
4607 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
4608 Check atomic font properties by case insensitive.
c6b278e7
KH
4609 (realize_non_ascii_face): Set face->overstrike correctly.
4610 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
4611 (dump_realized_face): Get font name from
4612 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
4613
4614 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
4615 conditionals. Don't check enable_font_backend. Delete all codes
4616 used only when USE_FONT_BACKEND is not defined.
4617 (xic_create_xfontset): Original code deleted and renamed from
4618 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
4619 (x_make_gc): Don't set GCFont in GCs.
4620 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
4621 opened by "fixed".
4622 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
4623 find_ccl_program_func, query_font_func, set_frame_fontset_func,
4624 get_font_repertory_func.
4625
4626 * xfont.c: Include <stdlib.h> and "ccl.h".
4627 (struct xfont_info): New structure.
4628 (xfont_query_font): Deleted.
4629 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
4630 moved from xterm.c.
4631 (xfont_driver): Adjusted for the change of struct font_driver.
4632 (compare_font_names): New function.
4633 (xfont_list_pattern): Sort font names case insensitively. Make
4634 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
4635 (xfont_list): Return a list, not vector.
4636 (xfont_match): If the font doesn't have QCname property, generate
4637 a name from the other font properties.
4638 (xfont_open): Return a font-ojbect. Adjusted for the change of
4639 struct font. Get underline_thickness and underline_position from
4640 font property. Don't update dpyinfo->smallest_font_height and
4641 dpyinfo->smallest_char_width.
4642 (xfont_close): Don't free struct font.
4643 (xfont_prepare_face): Adjusted for the change of struct font.
4644 (xfont_done_face): Deleted.
4645 (xfont_has_char): Adjusted for the change of struct font.
4646 (xfont_encode_char, xfont_draw): Likewise.
4647 (xfont_check): New function.
4648
4649 * xftfont.c (xftfont_list): Adjusted for the change of `list'
4650 callback function.
10d1d0af 4651 (xftfont_match): Adjusted for the format change of font-entity.
c6b278e7
KH
4652 (xftfont_open): Adjusted for the format change of font-entity and
4653 font-object. Adjusted for the change of struct font. Return a
4654 font-object. Don't update dpyinfo->smallest_font_height and
4655 dpyinfo->smallest_char_width.
4656 (xftfont_close): Block input while calling XftFontClose.
4657 (xftfont_prepare_face): Don't block input while calling
4658 xftfont_get_colors. Adjusted for the change of struct font.
4659 (xftfont_shape): Return value of error case fixed.
4660
4661 * xrdb.c (x_load_resources): Don't setup a fontset resource.
4662
4663 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
4664 conditionals.
4665 (FONT_WIDTH): Return (f)->max_width.
4666 (struct x_display_info): Delete member `font'.
4667 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
4668 (x_find_ccl_program, x_get_font_repertory): Delete externs.
4669 (struct x_output): Change type of `font' to `struct font *'.
4670
4671 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
4672 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 4673 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
4674 (x_per_char_metric, x_encode_char): Deleted.
4675 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
4676 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 4677 `struct face'.
c6b278e7
KH
4678 (x_draw_glyph_string_foreground)
4679 (x_draw_composite_glyph_string_foreground): Likewise.
4680 (x_draw_glyph_string): Likewise. Use font->underline_position and
4681 font->underline_thickness.
4682 (x_new_font): Renamed from x_new_fontset2.
4683 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
4684 (x_check_font): Call `check' method of a font driver.
4685 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
4686 (x_query_font, x_get_font_repertory): Deleted.
4687 (x_find_ccl_program): Renamed and moved to xfont.c.
4688 (x_redisplay_interface): Adjusted for the change of `struct
4689 redisplay_interface'.
4690
4691 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
4692 conditionals. Don't check enable_font_backend. Delete all codes
4693 used only when USE_FONT_BACKEND is not defined. Surround non-used
4694 code by "#ifdef OLD_FONT" and "endif".
4695 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
4696
4697 * w32font.h (struct w32font_info): New member.
4698 (FONT_COMPAT): New macro.
4699 (w32font_open_internal): Prototype adjusted.
4700
4701 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
4702 OLD_FONT" and "endif".
4703
4704 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
4705 conditionals. Don't check enable_font_backend. Delete all codes
4706 used only when USE_FONT_BACKEND is not defined.
4707 (w32font_open): Return a font-object. Make a font-object by
4708 font_make_object. Adjusted for the change of struct w32font_info.
4709 (w32font_close): Don't free struct font. Adjusted for the change
4710 of struct w32font_info.
4711 (w32font_encode_char, w32font_text_extents, w32font_draw):
4712 Adjusted for the change of struct w32font_info.
4713 (w32font_draw): Likewise.
4714 (w32font_list_internal): Return a list, not vector.
4715 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 4716 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
4717 (add_font_name_to_list): Don't downcase names.
4718 (w32_enumfont_pattern_entity): Make a font-entity by
4719 font_make_entity. Adjusted for the format change of font-entity.
4720 Use FONT_SET_STYLE to set a style-related font property. If a
4721 font is scalable, set avgwidth property to 0. Set font-entity
4722 property by font_put_extra.
c3f9fba8 4723 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
4724 (w32_weight_table, w32_decode_weight): New variables.
4725 (w32_encode_weight): New function.
4726 (fill_in_logfont): Adjusted for the format change of font-spec.
4727 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
4728 weight value.
4729 (w32font_driver): Adjusted for the change of struct font_driver.
4730
4731 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 4732 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
4733 code by "#ifdef OLD_FONT" and "endif".
4734 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
4735 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
4736
4737 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
4738 conditionals. Don't check enable_font_backend. Delete all codes
4739 used only when USE_FONT_BACKEND is not defined. Surround non-used
4740 code by "#ifdef OLD_FONT" and "endif".
4741
4742 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
4743 (uniscribe_open): Return value changed to font-object.
4744 Adjusted for the format change of font-object.
4745 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
4746 (add_opentype_font_name_to_list): Don't downcase names.
4747 (uniscribe_font_driver): Adjusted for the change of struct
4748 font_driver.
4749
f9d4c199
CY
47502008-05-13 Chong Yidong <cyd@stupidchicken.com>
4751
4752 * dispnew.c (update_frame_1): Check if tty output is still valid
4753 before flushing it.
4754
44f249c0
JD
47552008-05-13 Jan Djärv <jan.h.d@swipnet.se>
4756
4757 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
4758 to Gtk+ menus.
4759
01bb4018
SM
47602008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4761
3271a8f5
SM
4762 * dired.c (file_name_completion): Tweak the code so as to always do it
4763 in a single pass. Tighten the scope of some variables.
4764
01bb4018
SM
4765 * dired.c (Qdefault_directory): New var.
4766 (file_name_completion): Use it instead of Fexpand_file_name.
4767 (syms_of_dired): Initialize it.
4768
728bb8e0
SM
47692008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
4770
4771 * fileio.c (double_dollars): Remove dead code.
4772
ed4c17bb
EZ
47732008-05-10 Eli Zaretskii <eliz@gnu.org>
4774
6c5665e9
EZ
4775 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
4776 Mention w32-get-true-file-attributes in doc string.
4777
ed4c17bb
EZ
4778 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4779
71e1f69d
GM
47802008-05-09 Glenn Morris <rgm@gnu.org>
4781
4782 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
4783 2008-04-23.
4784
ee7a2e7a
EZ
47852008-05-09 Eli Zaretskii <eliz@gnu.org>
4786
8aaaec6b
EZ
4787 Support for reporting owner and group of each file on MS-Windows:
4788 * dired.c (stat_uname, stat_gname): New functions, with special
4789 implementation for w32.
4790 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
4791
ee7a2e7a
EZ
4792 * w32.c: Rename the_passwd_* to dflt_passwd_*.
4793 (dflt_group_name): New static variable.
728bb8e0 4794 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
4795 (init_user_info): Init dflt_group fields. Get user's group name
4796 from LookupAccountSid.
8aaaec6b
EZ
4797 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
4798 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
4799 New initialization states.
4800 (globals_of_w32): Initialize them to zero. Initialize the default
4801 group name to "None".
4802 (GetFileSecurity_Name): New global var, the name of the function
4803 to call for GetFileSecurity.
4804 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
4805 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
4806 (get_file_security, get_security_descriptor_owner)
4807 (get_security_descriptor_group, is_valid_sid)
4808 (get_file_security_desc, get_rid, get_name_and_id)
4809 (get_file_owner_and_group): New functions.
4810 (stat): Use get_file_security_desc and get_file_owner_and_group to
4811 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
4812 high 32 bits of file's size, now that st_size is 64-bit wide.
4813 Fix test when to get true file attributes.
8aaaec6b
EZ
4814 (init_user_info): Use get_rid instead of equivalent inline code.
4815 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 4816
b199c436
CY
48172008-05-09 Chong Yidong <cyd@stupidchicken.com>
4818
4819 * image.c (png_load): Use correct bit-depth for setting background
4820 color.
4821
86914123
EZ
48222008-05-08 Eli Zaretskii <eliz@gnu.org>
4823
4824 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
4825 epa-hook.elc.
4826
67b5d7de
JB
48272008-05-08 Juanma Barranquero <lekktu@gmail.com>
4828
4829 * font.c (Ffont_match_p): Don't use `iff' in docstring.
4830
1a111394
DN
48312008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4832
4833 * macfns.c (Fx_create_frame): Make a copy of frame parameters
4834 because the original parameters are in pure storage now.
4835 (mac_window): Remove unused params. Update callers.
4836
6d77fa95
SM
48372008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4838
7a3d90dc
SM
4839 * lread.c (substitute_object_recurse): Use lower-level primitives.
4840 Don't signal errors when traversing sub-char-tables.
4841 Don't loop over all the possible characters when traversing char-tables.
4842
6d77fa95
SM
4843 * print.c (print_preprocess): Add sub-char-tables to the print-table,
4844 just like we do in print.c.
4845
140eb764
SM
48462008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4847
4848 * minibuf.c (Ftry_completion): Remove code left over from when we used
4849 scmp instead of Fcompare_strings.
4850
e9184ccb
JB
48512008-05-04 Juanma Barranquero <lekktu@gmail.com>
4852
4853 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
4854
0e9378b3
YM
48552008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4856
4857 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
4858 Create bitmap context in native byte order.
4859
f67e15be
MB
4860 * macterm.c (XDrawLine)
4861 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
4862 context in native byte order.
064032d0 4863
f67e15be 48642008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
4865
4866 * config.in: Regenerate.
4867
4868 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
4869 New definitions for Image I/O support.
4870 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4871 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
4872 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4873 (mac_data_provider_release_data, image_load_image_io)
4874 [USE_MAC_IMAGE_IO]: New functions.
4875 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
4876 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
4877 (init_image_func_pointer) [MAC_OSX]: Remove function.
4878 (image_load_quartz2d) [MAC_OSX]: Check availability of
4879 CGImageCreateWithPNGDataProvider at compile time.
4880 Use lowercase `false' for boolean constant.
4881 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
4882 Use image_load_image_io.
4883 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
4884 Don't check MyCGImageCreateWithPNGDataProvider.
4885 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
4886 Don't call init_image_func_pointer.
4887
4888 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
4889
4890 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
4891 Make variable non-static.
4892 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4893 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4894
4895 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
4896 (RED_FROM_ULONG): Mask off higher bits.
4897 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
4898
4899 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
4900 Include AvailabilityMacros.h.
4901 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
4902 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
4903
c6bff69e
SM
49042008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
4905
4906 * chartab.c (Fset_char_table_range): If range is t, really set all
4907 chars to that value.
4908
7412d429
EZ
49092008-05-03 Eli Zaretskii <eliz@gnu.org>
4910
4911 * dired.c (Ffile_attributes): Don't allow the device number become
4912 negative.
4913
f83bbfac
DU
49142008-05-02 Daiki Ueno <ueno@unixuser.org>
4915
5a81d3d7 4916 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 4917
2e3148e2
JL
49182008-05-02 Juri Linkov <juri@jurta.org>
4919
4920 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
4921 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
4922 DEFAULT argument as a list of default values in docstrings.
2e3148e2 4923
923fb88c
CY
49242008-05-01 Chong Yidong <cyd@stupidchicken.com>
4925
4926 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4927
047aaeb9
MR
49282008-05-01 Martin Rudalics <rudalics@gmx.at>
4929
4930 * dispnew.c (change_frame_size_1): Preserve small windows when
4931 shrinking frames by calling set_window_height|width with third
4932 arg 2.
4933
4934 * window.h (struct window): Replace field too_small_ok by field
4935 resize_proportionally.
4936
4937 * window.c (make_window): Initialize resize_proportionally.
4938 (enlarge_window): Temporarily set resize_proportionally to make
4939 sure that shrink_windows does scale the window proportionally.
4940 (shrink_windows): When window has resize_proportionally set try
4941 to shrink it proportionally by stealing from other windows.
4942 (struct saved_window, Fset_window_configuration)
4943 (compare_window_configurations): Handle resize_proportionally.
4944 (WINDOW_TOTAL_SIZE): New macro.
4945 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 4946 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
4947 window-min-height|width are handled by window_min_size_2 now.
4948 (size_window, Fsplit_window, enlarge_window)
4949 (adjust_window_trailing_edge, grow_mini_window): Don't call
4950 check_min_window_sizes.
c6bff69e
SM
4951 (window_min_size_2, window_min_size_1, window_min_size):
4952 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 4953 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
4954 (adjust_window_trailing_edge, grow_mini_window):
4955 Adjust arguments of window_min_size... functions.
047aaeb9
MR
4956 (shrink_windows): Argument min_size removed. New argument
4957 safe_p allows shrinking windows to their safe minimum sizes.
4958 Calculate minimum size and decide whether a window shall be
4959 deleted for each window individually.
4960 (size_window): When nodelete_p equals 2, tell shrink_windows to
4961 delete windows only if their new minimum size is no more safe.
4962 (shrink_window_lowest_first): Call window_min_size_1 to make
4963 sure to preserve modeline of bottom-most window when resizing
4964 the minibuffer.
4965 (Fset_window_configuration, Fcurrent_window_configuration)
4966 (compare_window_configurations): Do not handle
4967 window-min-height|width any more.
4968 (syms_of_window): Clarify window-min-height|width doc-strings.
4969
2a54a229
SM
49702008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
4971
4972 * dired.c (file_name_completion): Fix up the encoding/decoding issue
4973 some more. Copy some of the code from Ftry_completions.
4974 Remove special case code that dates back to initial revision when the
4975 slash was only added when necessary and that can't trigger nowadays.
4976
384bc634
KH
49772008-04-27 Kenichi Handa <handa@m17n.org>
4978
4979 * font.c (font_prop_validate): Signal `error' instead of `font'.
4980
2c2279c6
JR
49812008-04-29 Jason Rumney <jasonr@gnu.org>
4982
4983 * w32fns.c (Fw32_battery_status): New defun.
4984 (syms_of_w32fns): Defsubr it.
4985
fb4a622a
AS
49862008-04-28 Andreas Schwab <schwab@suse.de>
4987
4988 * dired.c (file_name_completion): Fix another mixing of encoded
4989 and decoded names.
4990
23f250f4
JB
49912008-04-28 Juanma Barranquero <lekktu@gmail.com>
4992
4993 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
4994
d8d30dff
JB
49952008-04-27 Juanma Barranquero <lekktu@gmail.com>
4996
4997 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4998
ea6104a8
AS
49992008-04-27 Andreas Schwab <schwab@suse.de>
5000
9c691c00
AS
5001 * dired.c (file_name_completion): Fix inappropriate mixing of
5002 encoded and decoded names.
5003
ec1bf773
AS
5004 * xterm.c (XTread_socket): Fix use of uninitialized variable.
5005
ea6104a8
AS
5006 * puresize.h (BASE_PURESIZE): Increase to 1200000.
5007
01388a3d
EZ
50082008-04-26 Eli Zaretskii <eliz@gnu.org>
5009
5010 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
5011 2008-03-31, it's not needed anymore with `struct stat' definition
5012 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
5013 for the same reasons.
5014
175aea10 50152008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
5016
5017 * m/sparc.h: Additional redefinitions for GNU/Linux.
5018
1289aeb8
YM
50192008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5020
5021 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
5022 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
5023 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
5024 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
5025 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
5026 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
5027 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
5028 Likewise.
5029
5030 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 5031 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
5032 (mac_ax_number_of_characters): Add externs.
5033 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
5034 [USE_MAC_TSM]: Likewise.
5035 (mac_handle_text_input_event) [MAC_OSX]:
5036 Handle kEventTextInputOffsetToPos for no active input area case.
5037 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
5038 (mac_handle_document_access_event)
5039 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
5040 (install_application_handler) [MAC_OSX]: Register handlers for
5041 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
5042 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
5043 Register mac_handle_document_access_event.
5044
5045 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
5046 Make functions non-static.
5047
dbd50d4b
SM
50482008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5049
5050 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
5051 (read_file_name_completion_ignore_case, insert_default_directory)
5052 (Qdefault_directory): Move to minibuffer.el.
5053 (Fread_file_name): Call the new `read-file-name' instead.
5054
9ea37b9d 50552008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
5056
5057 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
5058 Make function non-static.
5059 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
5060 Remove function.
5061 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
5062 Move to mactoolbox.c.
5063 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
5064
5065 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
5066 (mac_rect_make): New macro.
5067
5068 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
5069 instead of float.
5070 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
5071 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
5072 (XSetBackground) [USE_CG_DRAWING]: Likewise.
5073 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
5074 CGRectMake.
5075 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
5076 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
5077 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
5078 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
5079 instead of WindowRef in argument type.
5080 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
5081 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
5082 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
5083 instead of DISPLAY. All uses changed.
5084 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
5085 (x_calc_absolute_position): Simplify so as not to use
5086 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
5087
5088 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
5089 instead of WindowRef in argument type.
5090 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
5091 [TARGET_API_MAC_CARBON]: Remove externs.
5092 (create_apple_event, mac_event_parameters_to_lisp)
5093 [TARGET_API_MAC_CARBON]: Add externs.
5094
d8d30dff 5095 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
5096 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
5097 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
5098 is clicked.
5099 (x_activate_menubar): Remove extern for saved_menu_event_location.
5100 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
5101 Move from mac.c.
5102
9ea37b9d 51032008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
5104
5105 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
5106 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
5107
9ea37b9d 51082008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
5109
5110 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
5111 attributes only for local files.
5112
5113 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 5114 default to Qlocal.
bd735631 5115
88970542
JL
51162008-04-22 Juri Linkov <juri@jurta.org>
5117
5118 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
5119 read-buffer-to-switch instead of using the letter "B".
5120
92ec67e3
SM
51212008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
5122
5123 * fileio.c (Qdefault_directory): New variable.
5124 (Fread_file_name): Use it to pass `dir' to the completion functions.
5125
a32b2382
CY
51262008-04-20 Chong Yidong <cyd@stupidchicken.com>
5127
2a2e8de7 5128 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 5129
6c8b4f07
SM
51302008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
5131
ece5f847
SM
5132 * keyboard.c (Vpre_help_message): Remove.
5133 (show_help_echo): Remove default C code.
5134
6c8b4f07
SM
5135 * dired.c (directory_files_internal, file_name_completion):
5136 Only call ENCODE_FILE if the string is indeed decoded.
5137
73d798d5
SM
51382008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5139
5140 * Makefile.in (TOOLKIT_DEFINES): Remove.
5141 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
5142
d8d30dff 51432008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
5144
5145 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
5146 (mactoolbox.o): New target.
5147
5148 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
5149 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
5150
5151 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
5152 Use mac_set_frame_window_background instead of XSetWindowBackground.
5153 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
5154 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
5155 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
5156 instead of SetWindowTitleWithCFString.
5157 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
5158 Move function to mactoolbox.c.
5159 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
5160 Use mac_set_window_modified instead of SetWindowModified.
5161 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
5162 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
5163 (Fx_focus_frame): Use mac_front_non_floating_window instead of
5164 FrontNonFloatingWindow. Use mac_activate_window instead of
5165 ActivateWindow. Use mac_active_non_floating_window instead of
5166 ActiveNonFloatingWindow.
5167 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
5168 Use mac_show_hourglass and mac_hide_hourglass.
5169 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
5170 instead of GetGlobalMouse.
5171 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
5172 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
5173 Use mac_bring_window_to_front instead of BringToFront.
5174 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
5175 mactoolbox.c.
5176 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
5177 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
5178 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
5179 mactoolbox.c.
5180
5181 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
5182 (XtPointer): Move typedef from macmenu.c.
5183 (enum button_type): Move enum from macmenu.c.
5184 (widget_value): Move typedef from macmenu.c.
5185 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
5186 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
5187 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
5188 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
5189 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
5190 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
5191 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
5192 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
5193 (Selection): Move typedef from macselect.c.
5194 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
5195 macterm.c.
5196 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
5197 (mac_is_window_collapsed, mac_bring_window_to_front)
5198 (mac_send_window_behind, mac_hide_window, mac_show_window)
5199 (mac_collapse_window, mac_front_non_floating_window)
5200 (mac_active_non_floating_window, mac_activate_window)
5201 (mac_move_window_structure, mac_move_window, mac_size_window)
5202 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
5203
5204 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
5205 (enum mac_menu_kind): Move enum to mactoolbox.c.
5206 (min_menu_id): Move variable to mactoolbox.c.
5207 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
5208 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
5209 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
5210 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
5211 [TARGET_API_MAC_CARBON]: Likewise.
5212 (XtPointer): Move typedef to macgui.h.
5213 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
5214 (widget_value): Move typedef to macgui.h.
5215 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
5216 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
5217 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
5218 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
5219 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
5220 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
5221 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
5222 (popup_activated_flag): Make variable non-static.
5223 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
5224 (add_menu_item, fill_menu, dispose_menus):
5225 Move functions to mactoolbox.c.
5226 (restore_show_help_function, menu_target_item_handler)
5227 (install_menu_target_item_handler, mac_handle_dialog_event)
5228 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
5229 [TARGET_API_MAC_CARBON]: Likewise.
5230 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
5231 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
5232 (find_and_call_menu_selection, name_is_separator): Make function
5233 non-static.
5234 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
5235 to mactoolbox.c.
5236 (set_frame_menubar): Don't call install_menu_quit_handler.
5237 (menu_item_selection): New variable.
5238 (mac_menu_show): Use create_and_show_popup_menu.
5239 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
5240 selection but set variable menu_item_selection. All uses changed.
5241 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
5242 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 5243
d02fe47d
MB
5244 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
5245 (Selection): Move typedef to macgui.h.
5246 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
5247 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
5248 Make variables non-static.
5249 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
5250 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
5251 Make functions non-static.
5252 (Vmac_service_selection) [MAC_OSX]: Likewise.
5253 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
5254 (mac_valid_selection_target_p, mac_clear_selection)
5255 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
5256 (mac_put_selection_value, mac_selection_has_target_p)
5257 (mac_get_selection_value, mac_get_selection_target_list)
5258 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
5259 Move functions to mactoolbox.c.
5260 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
5261 Likewise.
5262 (copy_scrap_flavor_data, mac_handle_service_event)
5263 (install_service_handler) [MAC_OSX]: Likewise.
5264 (syms_of_macselect) <Vmac_dnd_known_types>:
5265 Use mac_dnd_default_known_types.
463f55ee 5266
d02fe47d
MB
5267 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
5268 Move to mactoolbox.c.
5269 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
5270 (Fx_selection_owner_p): Add EXFUN.
5271 (install_window_handler, remove_window_handler, XSetWindowBackground):
5272 Remove externs.
5273 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
5274 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
5275 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
5276 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
5277 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
5278 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
5279 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
5280 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
5281 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
5282 (create_and_show_popup_menu, mac_get_selection_from_symbol)
5283 (mac_valid_selection_target_p, mac_clear_selection)
5284 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
5285 (mac_put_selection_value, mac_selection_has_target_p)
5286 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
5287 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
5288 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
5289 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
5290 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
5291 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
5292 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
5293 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
5294 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 5295
d02fe47d 5296 * mactoolbox.c: New file.
af253914 5297
d8d30dff 52982008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 5299
d02fe47d 5300 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 5301
8ee085a4
SM
53022008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5303
73d798d5
SM
5304 * character.c (Fmultibyte_char_to_unibyte):
5305 Return latin1 chars unchanged.
5556875b 5306
8ee085a4
SM
5307 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
5308 relocated if it points to `name'.
5309
5dff5999
KH
53102008-04-17 Kenichi Handa <handa@m17n.org>
5311
5312 * data.c (Faset): Allow setting a multibyte character in an
5313 ASCII-only unibyte string.
5314
5315 * lisp.h (STRING_SET_MULTIBYTE): New macro.
5316
a51f4969
SM
53172008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
5318
5319 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
5320 done in config.h.
5321
add553ac
JB
53222008-04-16 Juanma Barranquero <lekktu@gmail.com>
5323
5324 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
5325 (Fchar_direction): Add usage in the docstring.
5326
8ad7b280
CY
53272008-04-15 Chong Yidong <cyd@stupidchicken.com>
5328
5329 * keyboard.c (read_key_sequence): Remove always-true checks.
5330
e157d7ba
JR
53312008-04-14 Jason Rumney <jasonr@gnu.org>
5332
5333 * w32font.c (w32font_open_internal): Set max_bounds.descent in
5334 compatibility struct, for better underline positioning.
5335
9ec3aaef 53362008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
5337
5338 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
5339 string.
5340
36c08864
DN
53412008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5342
5343 * m/hp800.h (XUINT, XSET): Remove.
5344
f5acc071
JB
53452008-04-12 Juanma Barranquero <lekktu@gmail.com>
5346
5347 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
5348 previous change.
5349
5b5a2ea1
SM
53502008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5351
5352 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
5353 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
5354
492d9fd6
SM
53552008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5356
5357 * keymap.h (map_keymap_canonical): Declare.
5358 * xmenu.c (single_keymap_panes): Use it.
5359
dd60787c
GM
53602008-04-11 Glenn Morris <rgm@gnu.org>
5361
5362 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
5363 set the target's value to that of the alias.
5364
c23b5410
SM
53652008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5366
5367 * term.c (set_tty_color_mode): Left over typo.
5368
e89b536d
MA
53692008-04-10 Michael Albinus <michael.albinus@gmx.de>
5370
5371 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 5372 only after check for file name handler functions. Signal, when
e89b536d
MA
5373 native functionality is not supported.
5374 (syms_of_fileio): Declare it unconditionally.
5375
40a339c8
JR
53762008-04-10 Jason Rumney <jasonr@gnu.org>
5377
31403b24
JR
5378 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
5379 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
5380
40a339c8
JR
5381 * w32.c (logon_network_drive): Also logon to remote drives that
5382 are mapped to drive letters.
5383
96a7394f
GM
53842008-04-10 Glenn Morris <rgm@gnu.org>
5385
5386 * xdisp.c (truncate-partial-width-windows): Doc fix.
5387
34b67b0f
SM
53882008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
5389
5390 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
5391 Move functions to minibuffer.el.
5392 (syms_of_fileio): Don't declare them.
5393
c025fb0a
SM
53942008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5395
ba5ff07b
SM
5396 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
5397 (syms_of_minibuf): Remove its initialization.
5398
c025fb0a
SM
5399 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
5400
7a6a86ad
JB
54012008-04-09 Juanma Barranquero <lekktu@gmail.com>
5402
5403 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
5404
cf907d69
JR
54052008-04-09 Jason Rumney <jasonr@gnu.org>
5406
3dc94c30
JR
5407 * makefile.w32-in (distclean): Delete makefile too.
5408 (maintainer-clean): New target.
5409
8d28646b
JR
5410 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
5411
cf907d69
JR
5412 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
5413 for new font backend and composite cases.
5414
ef5eb925
JD
54152008-04-09 Jan Djärv <jan.h.d@swipnet.se>
5416
5417 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
5418 Most of the code moved to run_timers.
5419 (do_pending_atimers): Call run_timers.
5420 (run_timers): New function.
5421
cf907d69
JR
5422 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
5423 run atimers.
ef5eb925
JD
5424
5425 * process.c (wait_reading_process_output): The same as above.
5426
9b2cd403
SM
54272008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5428
32bae13c
SM
5429 * minibuf.c (last_exact_completion): Remove variable.
5430 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
5431 (complete_and_exit_1, complete_and_exit_2)
5432 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
5433 (Fdisplay_completion_list, display_completion_list_1)
5434 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
5435 (Fexit_minibuffer, Fminibuffer_message): Move functions to
5436 minibuffer.el.
32bae13c
SM
5437 (syms_of_minibuf): Remove corresponding initializations.
5438
5c4cc82a
SM
5439 * keyboard.c (Qdeactivate_mark): New var.
5440 (command_loop_1): Use it to call `deactivate-mark'.
5441 (syms_of_keyboard): Initialize it.
5442
9b2cd403
SM
5443 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
5444 to another frame.
5445 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
5446 Don't call set_tty_color_mode.
5447 (store_frame_param): Reset previous_frame rather than call
5448 set_tty_color_mode.
5449 * term.c (set_tty_color_mode): Rewrite.
5450 * dispextern.h (set_tty_color_mode): New type.
5451 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
5452
84cb7b45
SM
54532008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
5454
5455 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
5456 for generic chars, which do not exist any more in emacs-unicode.
5457
3ed051d4
MA
54582008-04-08 Michael Albinus <michael.albinus@gmx.de>
5459
5460 * coding.c (detect_coding_emacs_mule)
5461 (Ffind_operation_coding_system): Fix typo.
5462
58c3ea42
JR
54632008-04-08 Jason Rumney <jasonr@gnu.org>
5464
3bf8d230
JR
5465 * w32uniscribe.c (SNAME): Extract only symbol name.
5466
56a70cca
JR
5467 * w32font.h (struct w32_metric_cache): New struct.
5468 (w32font_info): Use it.
5469 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
5470 (CACHE_BLOCKSIZE): New constants.
3ed051d4 5471
58c3ea42
JR
5472 * w32font.c (Qja, Qko, Qzh): New symbols.
5473 (syms_of_w32font): Initialise them.
5474 (font_matches_spec): Use them to filter by language.
5475 (recompute_cached_metrics): Remove function.
5476 (compute_metrics, clear_cached_metrics): New functions.
5477 (w32font_encode_char): Use them to manage metric cache.
5478 (w32font_text_extents): Cache metrics for all glyphs on demand.
5479 Delay converting glyph indices to WORD until needed.
5480 (w32font_open_internal): Initialize metric cache to empty.
5481 (registry_to_w32_charset): Charset should always be a symbol.
5482 (fill_in_logfont, list_all_matching_fonts): Family should
5483 always be a symbol.
5484
0ce24b2d
JR
54852008-04-06 Jason Rumney <jasonr@gnu.org>
5486
5487 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
5488 Give up if glyph indices not supported. Use uniscribe obtained
5489 ABC widths for individual metrics. Map glyph clusters back to
5490 characters using fClusterStart flag. Return number of glyphs
5491 produced, not chars processed.
b7655e0c 5492 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 5493
5bc6ddff 54942008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 5495
fbf57abb
JB
5496 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
5497 Use SetMenuItemHierarchicalMenu.
56613f06 5498
5bc6ddff 54992008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 5500
5bc6ddff
MB
5501 * image.c (pbm_load): Allow color values up to 65535.
5502 Throw an error if max_color_idx is outside the supported range.
5503 Report an error when image size is invalid.
5504 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 5505
5bc6ddff 55062008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 5507
5bc6ddff
MB
5508 * w32.c (readdir): If FindFirstFile/FindNextFile return in
5509 cFileName a file name that includes `?' characters, use the 8+3
5510 alias in cAlternateFileName instead.
5ed6ba5b 5511
5bc6ddff 55122008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 5513
5bc6ddff
MB
5514 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
5515 append "CCL: Quitted" when the CCL program is quitted.
5516 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 5517
5bc6ddff 5518 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 5519
c36e15db
CY
55202008-04-05 Chong Yidong <cyd@stupidchicken.com>
5521
9605d567
CY
5522 * search.c (compile_pattern_1): Treat non-nil and non-string of
5523 search-spaces-regexp as nil.
5524
c36e15db
CY
5525 * minibuf.c (Fassoc_string): Tweak docstring.
5526
40beb147
EZ
55272008-04-05 Eli Zaretskii <eliz@gnu.org>
5528
5529 * dired.c (Ffile_attributes): Support inode numbers wider than 32
5530 bits. Remove ugly WINDOWSNT-specific kludge introduced on
5531 2008-03-14 to force inode be positive.
5532
5533 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
5534 _S_* ones, since we now use our own sys/stat.h.
5535 (stat, fstat): Don't mangle the inode number.
aa08d1ff 5536 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 5537
4591d6cb
SM
55382008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
5539
d4417eb0
SM
5540 * frame.h (struct frame): Give one more bit to `visible' since we use
5541 values larger than 1 to indicate obscured frames on ttys.
5542
00f7c5ed
SM
5543 * keymap.c (Qkeymap_canonicalize): New var.
5544 (Fmap_keymap_internal): New fun.
5545 (describe_map): Use keymap-canonicalize.
5546
4591d6cb
SM
5547 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
5548 (Fundo_boundary): Set them.
5549 (syms_of_undo): Initialize them.
5550 (record_point): Use them instead of last_point_position*.
5551 (last_undo_buffer): Change type.
5552
3187540e
JR
55532008-04-04 Jason Rumney <jasonr@gnu.org>
5554
0ce24b2d
JR
5555 * w32font.c (w32font_text_extents): Use font's ascent and descent.
5556 (recompute_cached_metrics): Don't set ascent and descent per char.
5557
3187540e 5558 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 5559 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 5560 Rearrange loop for counting features.
3187540e 5561
f1a6b216
SM
55622008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5563
5564 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
5565 buffer with byte-size of source buffer.
5566
1d8dcf63
CY
55672008-04-03 Chong Yidong <cyd@stupidchicken.com>
5568
5569 * callint.c (Fcall_interactively): Handle temporary region even
5570 when shift-select-mode is off.
5571
6b8aa22a
JR
55722008-04-03 Jason Rumney <jasonr@gnu.org>
5573
5574 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
5575
2f3cbb32
KH
55762008-04-03 Kenichi Handa <handa@m17n.org>
5577
5578 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
5579 (CATEGORY_MASK_UTF_16): Likewise.
5580 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
5581 binary file.
5582 (detect_coding): Add null-byte detection for a binary file.
5583 (detect_coding_system): Likewise.
5584
43f4f91c
JR
55852008-04-03 Jason Rumney <jasonr@gnu.org>
5586
0c1b4ae2
JR
5587 * w32uniscribe.c: New file.
5588
5589 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
5590
5591 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
5592
5593 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
5594 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
5595 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
5596 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
5597 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
5598 (Qphonetic): New symbols.
5599 (syms_of_w32font): Initialize them.
5600 (font_supported_scripts): Use them.
5601 (w32font_list_family): List all charsets.
5602 (w32font_text_extents, recompute_cached_metrics): Fix metric
5603 calculations.
5604 (w32_enumfont_pattern_entity): Make full_type a DWORD.
5605 Give opentype fonts their own format.
5606 (font_matches_spec): New arguments backend and logfont.
5607 Handle :otf spec for uniscribe backend.
5608 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
5609 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 5610
0c1b4ae2
JR
5611 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
5612 font backend.
5613 (globals_of_w32fns): Initialize uniscribe font backend.
5614
fbf57abb 5615 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
5616 dependencies.
5617 (w32uniscribe.$(O)): New file to build.
5618 (FONT_OBJ): Include w32uniscribe.$(O).
5619 (LIBS): Add uniscribe libraries.
5620
43f4f91c
JR
5621 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
5622
75043a7d
CY
56232008-04-02 Chong Yidong <cyd@stupidchicken.com>
5624
5625 * callint.c (Vshift_select_mode): New var.
5626 (Finteractive): Document new ^ spec.
5627 (Fcall_interactively): Call handle-shift-selection if the ^ spec
5628 is present.
5629
5630 * keyboard.c (Vthis_command_keys_shift_translated): New var.
5631 (command_loop_1): Avoid running the direct display versions of
5632 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
5633 (read_key_sequence): Set Vthis_command_keys_shift_translated if
5634 shift-translation takes place.
5635
5636 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
5637 avoid clobbering by define-minor-mode.
5638
5639 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
5640 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
5641
5642 * syntax.c (Fforward_word): Add ^ interactive spec.
5643
5644 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
5645 (Fscroll_right): Add ^ interactive spec.
5646
b2b7f29e
SM
56472008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
5648
a432c0a6
SM
5649 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
5650
994b75e0
SM
5651 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
5652
b2b7f29e
SM
5653 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
5654
e99c7806
JL
56552008-03-31 Juri Linkov <juri@jurta.org>
5656
5657 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
5658
1c9c1270
JD
56592008-03-30 Jan Djärv <jan.h.d@swipnet.se>
5660
5661 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 5662 (xg_resize_outer_widget): Remove.
1c9c1270
JD
5663 (x_wm_size_hint_off): Fix indentation.
5664 (xg_frame_set_char_size): Call flush_and_sync after
5665 gtk_window_resize.
5666 (x_wm_set_size_hint): Pass NULL as geometry window to
5667 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
5668 Add menu bar and tool bar height to base height.
5669 (xg_update_frame_menubar, free_frame_menubar)
5670 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
5671 (update_frame_tool_bar, free_frame_tool_bar):
5672 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 5673
90b3fc84
MA
56742008-03-30 Michael Albinus <michael.albinus@gmx.de>
5675
5676 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
5677 (Fdbus_call_method): New parameter TIMEOUT.
5678 (dbus-send-signal): Optimize UNGCPRO call.
5679
7ae6d1d1
JL
56802008-03-29 Juri Linkov <juri@jurta.org>
5681
5682 * window.c (Fdisplay_buffer): Move call to
5683 Vsplit_window_preferred_function out of conditions that check
5684 if window is eligible for vertical splitting.
5685 When Vsplit_window_preferred_function is non-nil, call it and use
5686 its non-nil return value as window. Otherwise, continue doing
5687 vertical splitting using Fsplit_window with arg horflag=nil.
5688 (syms_of_window) <Vsplit_window_preferred_function>: Change the
5689 default value from `split-window' to nil.
5690
f03f8f2c
JL
56912008-03-29 Juri Linkov <juri@jurta.org>
5692
5693 * callint.c (Fcall_interactively): Revert 2008-03-16 change
5694 for interactive code letters 'b' and 'B'.
5695
6d557778
EZ
56962008-03-29 Eli Zaretskii <eliz@gnu.org>
5697
5698 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
5699 multibyte string.
5700
58555d81
SM
57012008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
5702
5703 * keyboard.c (pending_funcalls): New var.
5704 (timer_check): Run it.
5705 (syms_of_keyboard): Initialize it.
5706 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
5707 (Vdelete_terminal_functions): New vars.
5708 (syms_of_terminal): Initialize them.
5709 (Fdelete_terminal): Run delete-terminal-functions.
5710 * xdisp.c (safe_eval): Rewrite.
5711 (safe_call2): New fun.
5712 * frame.c (Qdelete_frame_functions): New var.
5713 (syms_of_frame): Initialize it.
5714 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
5715 * lisp.h (safe_call2, pending_funcalls): Declare.
5716
4c92f429
AS
57172008-03-28 Andreas Schwab <schwab@suse.de>
5718
5719 * indent.c (Fmove_to_column): Move declaration before statements.
5720
a1567c45
SM
57212008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
5722
2806a183
SM
5723 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
5724 (struct frame): Use bit fields for boolean vars.
5725
eef60308
SM
5726 * process.c (server_accept_connection): Simplify naming.
5727 (emacs_get_tty_pgrp): Use SDATA.
5728
a1567c45
SM
5729 * coding.c (decode_coding_object): Fix last change.
5730
30076589
JR
57312008-03-27 Jason Rumney <jasonr@gnu.org>
5732
5733 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
5734
880820fe
KH
57352008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
5736
5737 * charset.c (Fdefine_charset_internal): Change the way of
5738 registering charsets in Vcharset_order_list.
5739 (syms_of_charset): Make the charset `eight-bit' supplementary.
5740
3cf8cdfb
CY
57412008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
5742
5743 * regex.c (EXTEND_BUFFER): Change order of pointer addition
5744 operations, to avoid having the difference between pointers
5745 overflow.
5746
ef6f5c0e
SM
57472008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5748
80e3db56
SM
5749 * indent.c (check_display_width): New fun.
5750 (scan_for_column): Use it.
5751
c397dc7a
SM
5752 * data.c (syms_of_data): Mark most-positive-fixnum and
5753 most-negative-fixnum as constants.
5754
bf6b4d58
SM
5755 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
5756
ef6f5c0e
SM
5757 * indent.c (scan_for_column): Extract from current_column_1.
5758 Merge with the same code from Fmove_to_column.
5759 (current_column_1, Fmove_to_column): Use it.
5760
72d5003d
SM
57612008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
5762
12270607
SM
5763 * keymap.c (map_keymap_internal): New fun.
5764 (map_keymap): Use it.
5765 (Fmap_keymap_internal): New fun.
5766 (Fmap_keymap): Remove left-out test from before make_save_value.
5767
a10cca6c
SM
5768 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
5769
d7b10f4c
SM
5770 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
5771 Use XCAR/XCDR.
5772
5431bd6a
SM
5773 * process.h (struct Lisp_Process): Remove filter_multibyte.
5774 * process.c (QCfilter_multibyte): Remove.
5775 (setup_process_coding_systems): Don't use filter_multibyte.
5776 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
5777 (read_process_output): Don't adjust multibyteness to filter_multibyte.
5778 (Fset_process_filter_multibyte): Change the coding-system to
5779 approximate the previous behavior.
5780 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
5781 coding-system.
5782
72d5003d
SM
5783 * coding.c (decode_coding_object): When not decoding into a buffer,
5784 obey the coding system's preference of (uni|multi)byte.
5785
438eba3c
SM
57862008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5787
5788 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
5789 every char is changed and has a different byte-length.
5790 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
5791 Fix int -> EMACS_INT.
5792
9ec3aaef 57932008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 5794
438eba3c 5795 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
5796 strings. Check for NULL `interface' or `member'.
5797
b07103dc
EZ
57982008-03-22 Eli Zaretskii <eliz@gnu.org>
5799
5800 * w32.c (readdir): If FindFirstFile/FindNextFile return in
5801 cFileName a file name that includes `?' characters, use the 8+3
5802 alias in cAlternateFileName instead.
5803
5371d722
SM
58042008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
5805
5806 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
5807
6ba7f443
SM
58082008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5809
5810 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
5811 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
5812 work on current_buffer only instead (that was already the case
5813 for some of the code anyway).
5814 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
5815 (temp_set_point, temp_set_point_both): Use EMACS_INT.
5816 (SET_PT, SET_PT_BOTH): Adjust.
5817 * intervals.h (set_point, temp_set_point, set_point_both)
5818 (temp_set_point_both): Remove redundant declarations.
5819
bf1c0f27
SM
58202008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5821
5822 * fileio.c (Finsert_file_contents):
5823 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
5824 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
5825 when buffer != current_buffer anyway.
5826
acab783e
AS
58272008-03-20 Andreas Schwab <schwab@suse.de>
5828
5829 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
5830 as default.
5831
d148e14d
JR
58322008-03-19 Jason Rumney <jasonr@gnu.org>
5833
5834 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
5835 (syms_of_w32fns): Initialize them.
5836 (HOURGLASS_ID): New constant.
5837 (x_window_to_frame): Don't check hourglass_window.
5838 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
5839 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
5840 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
5841 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
5842 Only change the cursor if hourglass is not active.
5843 (Fx_create_frame): Initialize frame's current_cursor.
5844 (hourglass_atimer): Remove.
5845 (hourglass_started): New function.
5846 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
5847 (show_hourglass): Adapt to w32, changing argument to frame.
5848
5849 * w32term.h (struct w32_output): Remove hourglass_window.
5850 Add current_cursor.
5851
5852 * eval.c (call_debugger, Fsignal):
5853 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
5854 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
5855 (Fexecute_extended_command, cancel_hourglass_unwind):
5856 * minibuf.c (read_minibuf):
5857 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 5858
a5c54077
JB
58592008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
5860
5861 * window.c (run_funs): New fun.
5862 (run_window_configuration_change_hook): Use it to run the buffer-local
5863 and the global part of the hook.
5864
5865 * xdisp.c (format_mode_line_unwind_data): Add window argument.
5866 (unwind_format_mode_line): Restore selected window.
5867 (x_consider_frame_title, Fformat_mode_line): Set selected window.
5868
f9f3238f
SM
58692008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5870
253c3c82
SM
5871 * editfns.c (Fchar_equal): Check they are valid characters.
5872
f9f3238f
SM
5873 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
5874
065a118d
AS
58752008-03-17 Andreas Schwab <schwab@suse.de>
5876
0b8be006
AS
5877 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
5878 against a charset.
5879
065a118d
AS
5880 * lisp.h (Fbuffer_list): Declare.
5881
880820fe 58822008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
5883
5884 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
5885 handlebox_widget is != 0.
5886
6206d6c2
JL
58872008-03-16 Juri Linkov <juri@jurta.org>
5888
5889 * callint.c (Fcall_interactively): For interactive code letters
5890 'b' and 'B' put the buffer list into the list of default "future"
5891 values of the minibuffer.
5892
f5020181
AS
58932008-03-16 Andreas Schwab <schwab@suse.de>
5894
a864f6d6
AS
5895 * keyboard.c (read_key_sequence): Fix downcasing of letters with
5896 modifiers.
5897
f5020181
AS
5898 * regex.c (re_match_2_internal): Correct matching of a charset
5899 against latin-1 characters.
5900
03f244e2
KH
59012008-03-16 Kenichi Handa <handa@m17n.org>
5902
5903 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
5904 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
5905 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
5906 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
5907 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
5908 CHAR_STRING_ADVANCE.
5909 (produce_chars): Fix for the case that the source and the
5910 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
5911 instead of CHAR_STRING_ADVANCE.
5912 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
5913 STRING_CHAR_ADVANCE.
5914
0e2501ed
AS
59152008-03-15 Andreas Schwab <schwab@suse.de>
5916
5917 * regex.c (re_match_2_internal): Correct matching of eight bit
5918 characters in unibyte strings.
5919
7723e095
MR
59202008-03-15 Martin Rudalics <rudalics@gmx.at>
5921
5922 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
5923 at end of range when it coincides with the end of the buffer.
5924
f507f365
EZ
59252008-03-14 Eli Zaretskii <eliz@gnu.org>
5926
294f1153
EZ
5927 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
5928
f507f365
EZ
5929 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
5930
64f0809d
JR
59312008-03-14 Jason Rumney <jasonr@gnu.org>
5932
956ae531
JR
5933 * editfns.c (initial_tz): New variable.
5934 (syms_of_editfns): Initialize it.
5935 (Fset_time_zone_rule): Set it when first called.
5936 Use it when TZSTRING is nil.
5937
64f0809d
JR
5938 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
5939 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
5940 (monitor_from_point_fn, get_monitor_info_fn): New globals.
5941 (globals_of_w32fns): Initialize them.
5942 (compute_tip_xy): Use them to position tooltips.
5943
21a4ff8e
GM
59442008-03-14 Glenn Morris <rgm@gnu.org>
5945
5946 * emacs.c (main): Revert previous change.
5947 (standard_args): Revert -internal-script back to -scriptload,
5948 and remove the long-option form.
5949
a09a5b5b
GM
59502008-03-13 Glenn Morris <rgm@gnu.org>
5951
5952 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
5953 Remove option -enable-font-backend.
5954
1c55ebd1
SM
59552008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5956
5957 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
5958
880820fe 59592008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
5960
5961 * xterm.c (x_connection_closed): For GTK: If this is the last
5962 terminal just exit without closing the display.
5963
7145be81
JR
59642008-03-11 Jason Rumney <jasonr@gnu.org>
5965
5966 * w32font.c (w32font_full_name): Use floor to round.
5967
e6201af3 59682008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
5969
5970 * sound.c (alsa_configure): Declare vol at beginning of block.
5971
e6201af3 5972 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 5973
390b81fa 59742008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 5975
56388398
MB
5976 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
5977 size of resulting string.
af0ad939 5978
390b81fa 59792008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 5980
56388398 5981 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 5982
390b81fa 59832008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 5984
56388398
MB
5985 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
5986 Don't pretend as if characters with display property haven't been
5987 consumed for string-replacing-string case.
acd37560 5988
223ed6db
KS
59892008-03-08 Kim F. Storm <storm@cua.dk>
5990
5991 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
5992 (get_next_display_element, next_element_from_string)
5993 (next_element_from_ellipsis, next_element_from_buffer): Use it.
5994
28545f7c
AS
59952008-03-08 Andreas Schwab <schwab@suse.de>
5996
5997 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
5998
c960bff8
JR
59992008-03-06 Jason Rumney <jasonr@gnu.org>
6000
290afd83
JB
6001 * w32font.c (w32_registry): Take font_type argument. Use ANSI
6002 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
6003 font_type is truetype.
6004 (w32font_coverage_ok): New function.
6005 (add_font_entity_to_list): Use it to filter unsuitable fonts.
6006
87b8ce92
KH
60072008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
6008
6009 * lread.c (Fread_char): Resolve modifiers.
6010 (Fread_char_exclusive): Likewise.
6011
6012 * character.c (char_resolve_modifier_mask): New function.
6013 (char_string): Use char_resolve_modifier_mask.
6014 (Fchar_resolve_modifiers): New function.
6015 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
6016 function.
6017
cefd56f6
JR
60182008-03-04 Jason Rumney <jasonr@gnu.org>
6019
6020 * makefile.w32-in: Always include w32font.c in the build.
6021 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
6022
03bd3c1f
AS
60232008-03-04 Andreas Schwab <schwab@suse.de>
6024
6025 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
6026 (versionclean): Likewise.
6027
6f69e89b
JB
60282008-03-04 Juanma Barranquero <lekktu@gmail.com>
6029
6030 * .cvsignore: Add oo.
6031
f4a3cc44
AS
60322008-03-03 Andreas Schwab <schwab@suse.de>
6033
6034 * coding.c (decode_coding_object): Inhibit gap shrinking while
6035 decoding in place.
6036
73f838ad
DN
60372008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
6038
6039 * w32term.c: Remove unused include "gnu.h".
6f69e89b 6040 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
6041
6042 * gnu.h: Rename to ...
6043 * emacs-icon.h: ... this.
6044 * xterm.c: Use emacs-icon.h instead of gnu.h.
6045 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
6046
ce9c1f06
JB
60472008-03-03 Juanma Barranquero <lekktu@gmail.com>
6048
6049 * w32font.c: Include math.h.
6050
34fd2d28
JR
60512008-03-03 Jason Rumney <jasonr@gnu.org>
6052
54efdcd1
JR
6053 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
6054 Compute options separately.
6055 (w32font_open_internal): Set glyph_idx before caching metrics.
6056
ce9c1f06
JB
6057 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
6058 Define if system headers don't.
6059 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
6060 (w32font_encode_char): Don't declare here.
6061
6062 * w32font.c (Quniscribe, QCformat): New symbols.
6063 (syms_of_w32font): Define them.
6064 (w32font_has_char): Indicate uncertainty.
ce9c1f06 6065 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 6066 (recompute_cached_metrics): New function.
ce9c1f06
JB
6067 (w32font_open_internal): Use it. Set font to use glyph points
6068 initially. Set format based on type of font.
34fd2d28 6069 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
6070 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
6071 on it. Set format based on information available here.
34fd2d28
JR
6072 (add_font_entity_to_list): Identify backend based on opentype_only.
6073
14daee73
AS
60742008-03-02 Andreas Schwab <schwab@suse.de>
6075
f907fb2e
AS
6076 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
6077
ce9c1f06
JB
6078 * coding.c (decode_coding_big5, produce_chars):
6079 Fix typos in last change.
14daee73 6080
c9cc6462
DN
60812008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
6082
6083 * gnu.h: New icon.
6084
119852e7
KH
60852008-03-02 Kenichi Handa <handa@m17n.org>
6086
6087 * coding.c (decode_coding_utf_8): When eol-type of CODING is
6088 `dos', don't decode '\r' if that is the last in the source.
6089 (decode_coding_utf_16, decode_coding_emacs_mule)
6090 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6091 (decode_coding_raw_text, decode_coding_charset): Likewise.
6092 (produce_chars): Don't decode EOL here. Use EMACS_INT.
6093
a823468b
JR
60942008-03-01 Jason Rumney <jasonr@gnu.org>
6095
6096 * w32font.c (w32font_full_name): Report point size for scalable fonts.
6097
4ddc7e30
KS
60982008-03-01 Kim F. Storm <storm@cua.dk>
6099
6100 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
6101
67997c79
JR
61022008-03-01 Jason Rumney <jasonr@gnu.org>
6103
6104 * w32font.c (w32font_full_name): New function.
6105 (w32font_open_internal): Use it.
6106
3f4e9c35
KS
61072008-03-01 Kim F. Storm <storm@cua.dk>
6108
6109 * dispnew.c (line_draw_cost): Fix invalid glyph check.
6110
f3b9e479
JR
61112008-03-01 Jason Rumney <jasonr@gnu.org>
6112
6113 * font.c (font_unparse_fcname): Increase len when style is a symbol.
6114
880820fe 61152008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
6116
6117 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
6118 xg_frame_resized when the event is for the edit widget.
6119
6120 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
6121
6122 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
6123 set_char_size.
6124 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
6125 operations on widgets here. Just set frame size if needed.
6126 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
6127 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
6128 (x_wm_set_size_hint): Set size hints on the edit widget only, not
6129 the whole frame.
10d1d0af 6130 (xg_create_tool_bar): Move attachment of the tool bar to
7ee480ce
JD
6131 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
6132 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
6133
6c8acaa1
JR
61342008-03-01 Jason Rumney <jasonr@gnu.org>
6135
6136 * w32fns.c (w32_msg_pump): Disable debug code.
6137
51fb064b 61382008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 6139
51fb064b 6140 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 6141
60221a33
CY
61422008-02-29 Chong Yidong <cyd@stupidchicken.com>
6143
6144 * xdisp.c (next_overlay_string): Don't set
6145 overlay_strings_at_end_processed_p if we're currently reading from
6146 a display string.
6147
10cbc34f
SM
61482008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
6149
6150 * xdisp.c (get_overlay_strings_1): Fix typo.
6151
73c0054e
CY
61522008-02-29 Chong Yidong <cyd@stupidchicken.com>
6153
6154 * xdisp.c (get_overlay_strings_1): Add missing argument type.
6155
ec1c4354
KH
61562008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
6157
55082642
KH
6158 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
6159
ec1c4354
KH
6160 * xdisp.c (display_mode_element): Cancel the previous change.
6161 (decode_mode_spec): Likewise.
ee548a94
KH
6162 (handle_auto_composed_prop): Don't make composition if it->string
6163 is a string.
ec1c4354 6164
b6d898a2
KS
61652008-02-27 Kim F. Storm <storm@cua.dk>
6166
6167 * lisp.h (GLYPH): Change type from int to struct with separate char
6168 and face_id members.
6169 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
6170 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
6171 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
6172 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
6173 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
6174 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
6175 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
6176 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
6177 handle new Lisp glyph code encoding, either an integer or a cons.
6178
6179 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
6180 (GLYPH_ALIAS): Delete.
6181 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
6182 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
6183 (GLYPH_FROM_CHAR): Replace macro by ...
6184 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
6185
6186 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
6187 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
6188 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
6189 (GLYPH_INVALID_P): New macro.
6190 (spec_glyph_lookup_face): Update prototype.
6191
6192 * dispnew.c (line_draw_cost): Adapt to new glyph type.
6193 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
6194 new glyph code encoding.
6195 (spec_glyph_lookup_face): No return value; update passed glyph instead.
6196 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
6197
6198 * xdisp.c (get_next_display_element, next_element_from_display_vector):
6199 Adapt to new glyph type and new glyph code encoding.
6200
6201 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
6202
6203 * indent.c (current_column, current_column_1, Fmove_to_column)
6204 (compute_motion): Adapt to new glyph code encoding.
6205
6206 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
6207
af2080a2
CY
62082008-02-27 Chong Yidong <cyd@stupidchicken.com>
6209
6210 * process.c (wait_reading_process_output): Check for window
6211 changes caused by timers.
880820fe 6212 Suggested by Johan Bockgård.
af2080a2 6213
253ed25e
GM
62142008-02-27 Glenn Morris <rgm@gnu.org>
6215
6216 * emacs.c (USAGE1): Add `--disable-font-backend'.
6217
18a9f8d9
SM
62182008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
6219
6220 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
6221 is made to the buffer.
6222
0f8b27ea
SM
62232008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
6224
6225 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
6226 (face_at_string_position):
6227 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6228 (face_at_string_position):
6229 * xdisp.c (display_string, next_overlay_change):
6230 * buffer.h (overlays_at):
6231 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
6232 Update callers.
6233
4e7c53ca
CY
62342008-02-26 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * editfns.c (Fformat): Doc fix.
6237
51c01100
JB
62382008-02-26 Juanma Barranquero <lekktu@gmail.com>
6239
6240 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
6241 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
6242 (Ffont_otf_alternates, Fquery_font): Doc fixes.
6243
13cda5f9
SM
62442008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6245
6246 * buffer.c (Fbuffer_swap_text): New function.
6247 (syms_of_buffer): Defsubr it.
6248
8018d430
CY
62492008-02-25 Chong Yidong <cyd@stupidchicken.com>
6250
6251 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
6252
9bde1a21
JR
62532008-02-25 Jason Rumney <jasonr@gnu.org>
6254
6255 * w32font.c (w32font_draw): Draw one character at a time when padding.
6256
eeca6f6f
SM
62572008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6258
6259 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
6260 Handle a nil arg. Use run_window_configuration_change_hook.
6261 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
6262 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
6263 Use run_window_configuration_change_hook.
6264
ec1c4354
KH
62652008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
6266
6267 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
6268 1-pixel width.
6269
ae185452
KH
62702008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
6271
6272 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
6273 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
6274 if the glyph in the font is zero pixel with.
6275
6276 * dispextern.h (struct glyph_string): New member padding_p.
6277
6278 * w32font.c (w32font_draw): Pay attention to s->padding_p.
6279
6280 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
6281
6282 * xfont.c (xfont_draw): Pay attention to s->padding_p.
6283
6284 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
6285
eeca6f6f 6286 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 6287
ffe832ea 62882008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 6289
ffe832ea 6290 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 6291
06045130
SM
62922008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
6293
6294 Allow fine-grained image-cache flushing.
6295 * dispextern.h (struct image): Add `dependencies' field.
6296 (clear_image_caches): Change arg to Lisp_Object.
6297 * image.c (make_image): Initialize `dependencies' field.
6298 (clear_image_cache): Change arg to allow fine-grained flushing.
6299 Perform the flush even if image-cache-eviction-delay is nil.
6300 (clear_image_caches): Change arg to Lisp_Object.
6301 (Fclear_image_cache): Expand meaning of the argument.
6302 (mark_image): Mark `dependencies' field.
6303 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
6304 (lface_hash): Use XHASH rather than XFASTINT.
6305 (face_at_buffer_position): Fix int -> EMACS_INT position.
6306 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
6307 (select_frame_for_redisplay): Remove code duplication.
6308 (redisplay_internal): Adapt arg to call to clear_image_caches.
6309
9d2818d6
DN
63102008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
6311
6312 * s/vms4-0.h:
6313 * s/vms4-2.h:
6314 * s/vms4-4.h:
6315 * s/vms5-5.h: Remove, unused.
6316
6317 * s/irix5-2.h:
6318 * s/irix6-0.h:
6319 * s/riscos5.h:
6320 * s/mach-bsd4-3.h:
2a2e8de7 6321 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
6322
6323 * Makefile.in:
6324 * filelock.c:
6325 * unexmips.c:
6326 * m/hp9000s300.h:
6327 * m/iris4d.h:
6328 * s/aix3-1.h:
6329 * s/hpux.h:
6330 * s/msdos.h:
6331 * s/usg5-0.h:
6332 * s/usg5-2-2.h:
6333 * s/usg5-2.h:
6334 * s/usg5-3.h: Remove references to obsolete variables.
6335
6336 * s/irix5-0.h: Remove, move all the contents ...
6337 * s/irix6-5.h: ... here. Simplify.
6338 * config.in: Regenerate.
6339
2a36efcf
JR
63402008-02-24 Jason Rumney <jasonr@gnu.org>
6341
c5ad7a3d 6342 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
6343 manually when cleartype is in use.
6344 (x_draw_glyph_string_foreground): Draw text transparently when
6345 cleartype is in use.
6346
2a36efcf
JR
6347 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
6348 a font into it unless we have to.
6349
b03f96dc 63502008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 6351
b03f96dc
MB
6352 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
6353 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 6354
b03f96dc 63552008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 6356
b03f96dc 6357 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 6358
b03f96dc 63592008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 6360
b03f96dc 6361 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 6362
b03f96dc 63632008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 6364
b03f96dc 6365 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 6366
d5958163
CY
63672008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
6368
6369 * xterm.c (x_set_offset): Don't change the gravity if
6370 CHANGE_GRAVITY is -1.
6371
9997701e
CY
63722008-02-23 Chong Yidong <cyd@stupidchicken.com>
6373
6374 * fileio.c (auto_save_error_occurred): New var.
6375 (auto_save_error): Set it.
6376 (Fdo_auto_save): Don't overwrite the error message if an auto-save
6377 error occurred.
6378
9d95a291
EZ
63792008-02-23 Eli Zaretskii <eliz@gnu.org>
6380
6381 * w32.c (globals_of_w32): Add initializations for
6382 g_b_init_get_sid_sub_authority and
6383 g_b_init_get_sid_sub_authority_count.
6384
43d1af23
SM
63852008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
6386
43a1d19b
SM
6387 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
6388 (font_parse_xlfd): Use them for sanity check.
608c3307 6389 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 6390
354884c4
SM
6391 Consolidate the image_cache to the terminal struct.
6392 * termhooks.h (P_): Remove redundant def.
6393 (struct terminal): New field `image_cache'.
6394 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
6395 of FRAME_X_IMAGE_CACHE.
6396 * xterm.h (struct x_display_info): Remove image_cache field.
6397 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6398 * w32term.h (struct w32_display_info): Remove image_cache field.
6399 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6400 * macterm.h (struct mac_display_info): Remove image_cache field.
6401 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6402 * xterm.c (x_term_init):
6403 * w32term.c (w32_term_init):
6404 * macterm.c (mac_term_init): Set the image_cache in the terminal.
6405 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
6406 Remove declarations.
6407 (clear_image_caches, mark_image_cache): New declarations.
6408 * xfaces.c (clear_face_cache):
6409 * xdisp.c (redisplay_internal): Use clear_image_caches.
6410 * image.c (clear_image_cache): Don't check that a frame is on
6411 a window-system before checking if it shares the same cache.
6412 (clear_image_caches): New function.
6413 (Fclear_image_cache): Use it.
6414 (mark_image): Move from allo.c.
6415 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
6416 * alloc.c (mark_image, mark_image_cache): Move to image.c.
6417 (mark_object): Don't call mark_image_cache for frames.
6418 (mark_terminals): Call mark_image_cache.
6419
c2e42690
SM
6420 * lisp.h (Fdelete_terminal): Declare.
6421
43d1af23
SM
6422 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
6423 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
6424 wrong_type_argument.
6425
cc8d1311
KH
64262008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
6427
6428 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 6429 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 6430
6bd92640
SM
64312008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6432
6433 * xterm.c (x_connection_closed): Consolidate identical tests.
6434 (x_delete_terminal): Don't crash if called via x_connection_closed.
6435
a73b5627
KH
64362008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
6437
6438 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 6439 (display_mode_element): Adjust for the above change.
a73b5627 6440
1b511542
SM
64412008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6442
6443 * callint.c (Fcall_interactively): Use AREF.
6444
81aefea4
SM
64452008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6446
6447 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
6448
880820fe 64492008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
6450
6451 * xfns.c (Fx_show_tip): Set string to " " if empty.
6452
a2b84f35
DN
64532008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
6454
6455 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
6456 with Qt.
6457
43c0454d
KH
64582008-02-17 Kenichi Handa <handa@m17n.org>
6459
6460 * ftfont.c (ftfont_shape): Return Lispy number.
6461
6462 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
6463 for GCs.
6464 (Finternal_set_font_selection_order): Call font_update_sort_order
6465 only when enable_font_backend is set.
6466 (realize_x_face): Set face->font_info to that of default face only
6467 when enable_font_backend is set.
6468
6469 * xdisp.c (handle_composition_prop): Set it->c to the fist
10d1d0af 6470 character of the composed region.
43c0454d
KH
6471 (fill_composite_glyph_string): Set base_face->font_info to
6472 s->font_info. Get a face for ascii from base_face->ascii_face.
6473 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
6474 with a face already decided.
6475 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
6476 non-negative.
978bef9a
JB
6477 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
6478 call font_prepare_composition unconditionally.
43c0454d 6479
978bef9a 6480 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
6481
6482 * xterm.h (struct x_display_info): New member font.
6483
6484 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
6485 (x_set_mouse_face_gc, x_new_font): Likewise.
6486 (x_term_init): Setup display_info->font.
6487 (x_delete_terminal): Free display_info->font.
6488
6489 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
6490
6491 * ftxfont.c (ftxfont_default_fid): Delete it.
6492 (ftxfont_open): Set xfont->fid to 0.
978bef9a 6493 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
6494 font-driver.
6495
6496 * xftfont.c (xftfont_default_fid): Delete it.
6497 (xftfont_open): Set xfont->fid to 0.
6498
6499 * fontset.c (FONTSET_OBJLIST): New macro.
6500 (fontset_find_font): Update font-object list of the fontset.
6501 (free_realized_fontset): New function.
6502 (free_face_fontset): Call free_realized_fontset.
6503 (Ffont_info): Call font_close_object only when enable_font_backend
6504 is set.
6505
6506 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
6507 [HAVE_NTGUI]: Include w32term.h.
6508 [MAC_OS]: Include macterm.ch.
6509 (font_otf_ValueRecord): Use make_number.
6510 (font_finish_cache): Fix handling of reference count.
6511 (font_clear_cache): Update num_fonts.
6512 (font_open_entity): Update smallest_char_width and
6513 smallest_font_height of the frame.
6514 (font_close_object): Update num_fonts.
6515 (Fclear_font_cache): Fix finding the target cache data.
6516
be617367
GM
65172008-02-16 Glenn Morris <rgm@gnu.org>
6518
6519 * fontset.c (Finternal_char_font): Fix compilation warning.
6520
2930d117
EZ
65212008-02-16 Eli Zaretskii <eliz@gnu.org>
6522
634d3003
EZ
6523 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
6524 instead of char arrays. Enlarge the size of array passed to
6525 get_token_information.
6526
2930d117
EZ
6527 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
6528 warnings.
6529
79214046
DN
65302008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
6531
6532 * .gdbinit: Don't set `args', it breaks gdb --args.
6533
7f5d2c72
SM
65342008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
6535
6536 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
6537 within a narrowed buffer.
6538
6edacc43
KH
65392008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
6540
b270d6af
JB
6541 * coding.c (decode_coding_object, encode_coding_object):
6542 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 6543
174105f7
SM
65442008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6545
b270d6af
JB
6546 * coding.c (coding_set_destination): Use BEG_BYTE rather than
6547 hardcoding 1.
13818c30
SM
6548 (detect_coding_system):
6549 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
6550 (string_char_to_byte, string_byte_to_char, insert_from_gap):
6551 * insdel.c (insert_from_gap):
6552 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
6553 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
6554 (string_to_multibyte):
6555 * character.c (chars_in_text, multibyte_chars_in_text):
6556 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
6557
f1c99628
SM
6558 * character.h (FETCH_STRING_CHAR_ADVANCE)
6559 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
6560 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
6561 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
6562
7927d8e3
SM
6563 * casefiddle.c (casify_region): Only call after-change and composition
6564 functions on the part of the region that was changed.
6565
adf6a429 6566 * keyboard.c (read_avail_input):
174105f7
SM
6567 * frame.c (Fdelete_frame): Call Fdelete_terminal.
6568
3ee24aec
SM
65692008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6570
6571 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
6572 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
6573
4ed4b975
JB
65742008-02-11 Juanma Barranquero <lekktu@gmail.com>
6575
6576 * w32menu.c (push_submenu_start, push_submenu_end)
6577 (push_left_right_boundary, push_menu_pane, push_menu_item):
6578 * keyboard.c (read_key_sequence): Don't pass args with side effects
6579 to AREF, it fails when compiling with -DENABLE_CHECKING.
6580
79e3bfb8
KH
65812008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
6582
4ed4b975
JB
6583 * Makefile.in (${lispsource}international/charprop.el):
6584 Delete this target.
6e76043f 6585
79e3bfb8
KH
6586 * search.c (boyer_moore): Fix incorrect synching of the trunk and
6587 emacs-unicode-2.
6588
5b8de9c5
SM
65892008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6590
6591 * terminal.c (Fdelete_terminal): Clean up the `force' path.
6592
eac1939a
SM
65932008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6594
c53956fe
SM
6595 * frame.c (Qnoelisp): New symbol.
6596 (syms_of_frame): Initialize it.
10d1d0af
JB
6597 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
6598 harmless Elisp code, from a strong `force' from x_connection_closed.
c53956fe
SM
6599 * frame.h (Qnoelisp): Declare.
6600 * xterm.c (x_connection_closed): Pass `noelisp'.
6601
eac1939a
SM
6602 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
6603 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
6604 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
6605 rather than `int' for the type of `type'.
6606
13f6772b
DN
66072008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
6608
6609 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
6610
6611 * Makefile.in (GNUC): Remove support for gcc-1.x.
6612
e8455367
RS
66132008-02-10 Richard Stallman <rms@gnu.org>
6614
6615 * lisp.h (ASET): Use AREF, not ASLOT.
6616
4b75ffab
SM
66172008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6618
6619 * lisp.h (ASET): Check bounds.
6620
d224e8c2
GM
66212008-02-10 Glenn Morris <rgm@gnu.org>
6622
6623 * buffer.c (mode-name): Doc fix.
6624
4624371d
DN
66252008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6626
290afd83
JB
6627 * Makefile.in:
6628 * emacs.c:
6629 * gmalloc.c:
6630 * keyboard.c:
6631 * lisp.h:
6632 * m/ibm370aix.h:
6633 * process.c:
6634 * regex.c:
6635 * s/hpux.h:
6636 * sysdep.c:
6637 * sysselect.h:
6638 * systty.h:
6639 * unexec.c:
6640 * w32term.c:
6641 * xsmfns.c:
6642 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
6643
6644 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
6645
6646 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
6647 nothing else needs it anymore.
6648
274ec34b
EZ
66492008-02-09 Eli Zaretskii <eliz@gnu.org>
6650
6651 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
6652 instead of unibyte_char_to_multibyte.
6653
deeaffe1
DN
66542008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6655
6656 * s/gnu-linux.h: Remove commented out code.
6657
4ed4b975 6658 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
6659
6660 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 6661 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 6662 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
6663 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
6664 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
6665
68b587a6
SM
66662008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6667
9141ca5e
SM
6668 * keymap.c (Fkey_description): Move side effect outside of macro call.
6669
dfae5f9a 6670 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
6671 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
6672
ff7a2223
SM
6673 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
6674 (syms_of_fontset): Use ASET.
6675
68b587a6
SM
6676 * fns.c (concat): Move side effect outside of macro call.
6677 (hash_clear): Use ASET.
6678
a31787b1
RS
66792008-02-08 Richard Stallman <rms@gnu.org>
6680
6681 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
6682 If FORCE, and frame has a surrogate minibuffer for another frame,
6683 delete the other frame first.
6684
987be29b 66852008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
6686
6687 * xterm.c (x_detect_focus_change): Handle embed client message.
6688 (handle_one_xevent): Ditto.
6689 (handle_one_xevent): If embedded and we get a button press/release,
6690 request focus.
6691 (xembed_set_info, xembed_send_message): New functions.
6692 (x_make_frame_visible): Call xembed_set_info if embedded.
6693 (x_make_frame_invisible): Call xembed_set_info if embedded.
6694 (x_term_init): Initialize Xatom_XEMBED.
6695 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
6696 (x_iconify_frame): Ditto.
6697
6698 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10d1d0af 6699 (enum xembed_info, enum xembed_message, enum xembed_focus)
1540a61a
JD
6700 (enum xembed_modifier, enum xembed_accelerator): New.
6701 (xembed_set_info, xembed_send_message): Declare.
6702 (FRAME_X_EMBEDDED_P): New.
6703
6704 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
6705 gtk_plug_new.
6706
6707 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
6708 window ID of a frame.
6709 (x_window): Reparent frame if embedded.
6710 (Fx_create_frame): Don't set border width if embedded.
6711
1f204af3 6712 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
6713 (standard_args): Ditto.
6714
880820fe 67152008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
6716
6717 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
6718
92413ef3
JD
67192008-02-07 Jim Meyering <meyering@redhat.com>
6720
6f69e89b 6721 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
6722 The latter provokes a warning from gcc about the empty else, when
6723 followed by ";". Also, without that trailing semicolon, it would
6724 silently swallow up any following statement.
c3f9fba8 6725 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
6726 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
6727 * buffer.h (DECODE_POSITION): Likewise.
6728 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
6729 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
6730 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
6731 (FETCH_CHAR_ADVANCE): Likewise.
6732 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 6733
03fa5713
GM
67342008-02-07 Jim Meyering <meyering@redhat.com>
6735
6736 * lread.c [lint]: Don't include <sys/inode.h>.
6737
3ae565b3
SM
67382008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
6739
6740 * xselect.c (x_handle_dnd_message):
6741 * xmenu.c (digest_single_submenu, xmenu_show):
6742 * xdisp.c (with_echo_area_buffer_unwind_data)
6743 (format_mode_line_unwind_data, unwind_format_mode_line)
6744 (display_menu_bar):
6745 * eval.c (Ffetch_bytecode):
6746 * doc.c (store_function_docstring):
6747 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
6748 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
6749 * buffer.c (add_overlay_mod_hooklist): Use ASET.
6750
146b6e55
KH
67512008-02-07 Kenichi Handa <handa@m17n.org>
6752
6753 * ftxfont.c (ftxfont_open): Don't set
6754 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
6755
6756 * ftfont.c (ftfont_open): Fix previous change.
6757
46a923ac
JR
67582008-02-06 Jason Rumney <jasonr@gnu.org>
6759
6760 * w32font.c (w32font_text_extents): Fill in lbearing metric.
6761 Use cached metrics for ASCII characters.
3ae565b3
SM
6762 (w32font_open_internal): Don't set font's owning_frame.
6763 Cache metrics for ASCII characters.
46a923ac
JR
6764
6765 * w32font.h (struct w32font_info): Add ascii_metrics.
6766 Remove owning_frame.
6767
da7d7c21
KH
67682008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
6769
6770 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
6771 to negative value.
6772
6773 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
6774
3ae565b3 6775 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
6776
6777 * charset.c (syms_of_charset): Set QCtest and Qeq.
6778
c62c8ddb
SM
67792008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
6780
ca319910
SM
6781 * process.c (Fstart_process):
6782 * callproc.c (Fcall_process): Handle the case where
6783 Funhandled_file_name_directory returns nil.
6784
76860cbb
SM
6785 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
6786 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
6787 * font.c (check_gstring): Use them and AREF to access the vector before
6788 we know it's really a gstring.
6789 (Ffont_shape_text): Fix typo.
6790 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 6791
15139d67
SM
6792 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
6793 Declare.
6794
c62c8ddb
SM
6795 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
6796
04b65d2b
JR
67972008-02-05 Jason Rumney <jasonr@gnu.org>
6798
6799 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
6800 Set smallest_font_height and smallest_char_width in display info.
6801
fccaebfd
KH
68022008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
6803
6804 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
6805
e7d7fd8c
MB
68062008-02-05 Miles Bader <miles@gnu.org>
6807
6808 * xfaces.c (get_lface_attributes, merge_named_face)
6809 (lookup_named_face, lookup_derived_face, realize_named_face):
6810 Revert 2008-02-01 change by cyd@stupidchicken.com.
6811
3d4448a8
KH
68122008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
6813
6814 * fontset.c (Ffontset_info): Handle the case of inhibitting the
6815 fallback fonts.
15139d67 6816 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 6817
5ace1ec1
JR
68182008-02-04 Jason Rumney <jasonr@gnu.org>
6819
6820 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
6821 set full_name.
e3a77b22 6822 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 6823
ffe42183
JR
68242008-02-03 Jason Rumney <jasonr@gnu.org>
6825
6826 * makefile.w32-in (OBJ1): Include font.o here.
6827 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
6828
526dc3b3
JR
68292008-02-02 Jason Rumney <jasonr@gnu.org>
6830
a0fece35 6831 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 6832
af805c82
JR
68332008-02-01 Jason Rumney <jasonr@gnu.org>
6834
6835 * s/cygwin.h: Define VIRT_ADDR_VARIES.
6836
6837 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
6838
7f6519c5
AS
68392008-02-01 Andreas Schwab <schwab@suse.de>
6840
1f45f627 6841 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 6842 ../lisp/language/myanmar.el.
7f6519c5 6843
26f8aa27
CY
68442008-02-01 Chong Yidong <cyd@stupidchicken.com>
6845
1f45f627 6846 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
6847 (merge_named_face, lookup_named_face, lookup_derived_face)
6848 (realize_named_face): Call lface_from_face_name directly, and use
6849 the fact that merge_face_vectors does not alter its FROM argument.
6850
73acf815 68512008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6852
6853 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 6854 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 6855
73acf815 68562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6857
6858 * fontset.c (reorder_font_vector): Exclude nil elements from the
6859 font group. Don't try multiple fonts.
15139d67 6860 (fontset_font): Adjust for the above change.
aca7a3d2
MB
6861 (Finternal_char_font): Return nil if the found font doesn't
6862 contain the character ch.
6863
4c4475a8 6864 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 6865
73acf815 68662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6867
6868 * font.h (FONTP): Make it return 1 also for a font-object.
6869
6870 * .gdbinit (xfontset): New function.
6871
6872 * font.c (font_find_for_lface): Check if the character C is
6873 supported or not only for the first font.
6874
6875 * fontset.c (reorder_font_vector): Fix typo.
6876 (fontset_find_font): Don't add a font-spec specifying a script.
6877 Use 0 (not Qt) for the indication of empty font-group. Change the
6878 format of RFONT-DEF. Return Qt if no font in the font-group
6879 support the character.
15139d67 6880 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 6881 found the character, remember that.
15139d67 6882 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
6883 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
6884 no font for the target.
15139d67 6885 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 6886
73acf815 68872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6888
6889 * font.c (font_load_for_face): Handle the case that the font in
6890 face->lface is a string.
6891
73acf815 68922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6893
1f45f627 6894 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 6895
73acf815 68962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6897
6898 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
6899 Fix previous change. If the frame is not on a window system,
6900 signal an error.
6901
73acf815 69022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6903
4c4475a8
GM
6904 * coding.c (decode_coding_object, encode_coding_object): Adjust
6905 marker positions after conversion.
aca7a3d2
MB
6906
6907 * lisp.h (struct Lisp_Marker): New member need_adjustment.
6908
73acf815 69092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6910
6911 * font.c (font_find_for_lface): Fix the handling of the return
6912 value of font_has_char.
6913 (Ffont_shape_text): Fix previous change.
6914
6915 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
6916 (fontset_ref_and_range): Delete it.
6917 (fontset_find_font): Call char_table_ref_and_range instead of
6918 FONTSET_REF_AND_RANGE.
6919 (make_fontset): Don't setup font groups of Latin here.
6920 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
6921 (new_fontset_from_font): Make the specified font the default for
6922 all Latin characters.
6923
73acf815 69242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6925
6926 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
6927 is on a window system before accessing the fontset of the frame.
6928
73acf815 69292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6930
1f45f627 6931 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
6932
6933 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
6934 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
6935
6936 * font.c (Ffont_shape_text): If the font driver doesn't have a
6937 shaper function, make zero-width glyphs to have at least one-pixel
6938 width. Fix setting of `to' field of glyphs.
6939
73acf815 69402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6941
6942 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
6943 glyphs.
6944
1f45f627 6945 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 6946
73acf815 69472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6948
6949 * composite.c (syms_of_composite): Fix docstring of
6950 auto-composition-function.
6951
6952 * font.h (LGLYPH_SIZE): New macro.
6953
6954 * font.c (Ffont_fill_gstring): Stop filling when a character not
6955 supported by the font is found.
6956 (Ffont_shape_text): When a shape callback function returns nil,
6957 try at most two more times with larger gstring.
15139d67 6958 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
6959
6960 * xdisp.c (handle_auto_composed_prop): Change the argument to
6961 auto-composition-function.
6962
6963 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
6964 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
6965 Lispy glyph and store it in the lgstring.
6966
6967 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
6968
6969 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
6970
73acf815 69712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6972
6973 * font.c (Ffont_shape_text): Avoid unnecessary composition.
6974
6975 * fontset.c (Vfont_encoding_charset_alist): New variable.
6976 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
6977 (reorder_font_vector, fontset_find_font): Optimize for the case of
6978 no need of reordering.
aca7a3d2
MB
6979 (face_for_char): Map the charset property by
6980 Vfont_encoding_charset_alist.
6981
73acf815 69822008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6983
6984 * w32font.c (logfonts_match): Don't check adstyle here.
6985 (font_matches_spec): Check here against physical font instead.
6986 (add_font_entity_to_list): Avoid some substitutions.
6987
6988 * font.c (font_parse_fcname): Default weight and slant to normal.
6989 (font_score): Prefer normal fonts if weight or slant unspecified.
6990 (font_score) [WINDOWSNT]: Scale weight difference down to closer
6991 match freetype scores.
6992
73acf815 69932008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6994
6995 * w32font.c (w32font_text_extents): Don't use the frame stored in the
6996 font, as it may have been deleted.
6997 (w32_enumfont_pattern_entity): Map generic family to adstyle using
6998 most common hyphenless variation.
6999 (logfonts_match): Check generic family.
7000 (font_matches_spec): Don't check generic family here.
7001 (fill_in_logfont): Set generic family based on adstyle.
7002
7003 * w32font.h (w32font_get_cache): Update declaration.
7004
73acf815 70052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7006
7007 * ftfont.c (ftfont_get_cache): Adjust the argument type.
7008
15139d67 7009 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 7010 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
7011 with the old drivers.
7012
7013 * w32font.c (w32font_get_cache): Adjust the argument type.
7014
7015 * xfont.c (xfont_get_cache): Adjust the argument type.
7016
7017 * font.h (struct font_driver): Change argument type of get_cache.
7018
7019 * xftfont.c (xftfont_start_for_frame): Delete prototype.
7020
7021 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 7022 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 7023 (font_clear_cache): New function.
4c4475a8 7024 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 7025 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
7026
7027 * fontset.c (fontset_find_font): Fix previous change.
7028
73acf815 70292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7030
7031 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
7032 dpyinfo->font_table.
7033 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 7034 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
7035
7036 * font.c (font_at): Handle the case that the arg C is negative.
7037 Handle the unibyte case.
7038 (Ffont_at): Call font_at with the arg C -1.
7039
7040 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
7041 the position here, and call font_at with the arg C -1.
7042 Don't check the range of the existing composition at the point.
aca7a3d2 7043
73acf815 70442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 7045
15139d67 7046 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 7047 Change caller.
4c4475a8
GM
7048 (load_font_get_repertory, fontset_find_font): Assume that
7049 font_spec is always a font-spec object.
aca7a3d2
MB
7050 (Fset_fontset_font): Always store a font-spec object in a fontset.
7051
7052 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
7053 instead of get_property_and_range.
7054
73acf815 70552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7056
7057 * xftfont.c (struct xftfont_info): Delete the member ft_face.
7058 (xftfont_open): Don't keep locking face.
7059 (xftfont_close): Don't unlock face.
4c4475a8 7060 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
7061
7062 * fontset.c (fontset_find_font): Don't prefer a font of
7063 supplementary charset.
7064
73acf815 70652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7066
1f45f627
GM
7067 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
7068 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
7069 (OTF_TAG_STR): Terminate by '\0'.
7070 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
7071 listing to the script specified in that property. Fix arg to
7072 OTF_check_features.
7073
73acf815 70742008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7075
7076 * w32font.h: New file.
7077
7078 * w32font.c: Include it.
7079 (struct w32font_info): Add owning_frame field. Move to w32font.h.
7080 (w32font_open): Set owning_frame.
7081 (w32font_text_extents): Use owning_frame.
7082 (struct font_callback_data): Add opentype_only field.
7083 (add_font_entity_to_list): Use it to filter fonts.
7084 Don't check against full name.
7085 (w32font_list_internal): New function.
7086 (w32font_list): Use it.
7087 (w32font_match_internal): New function.
7088 (w32font_match): Use it.
7089 (w32font_open_internal): New function.
7090 (w32font_open): Use it.
7091 (w32font_get_cache, w32font_close, w32font_has_char)
7092 (w32font_encode_char, w32font_text_extents, w32font_draw):
7093 Make non-static.
7094
7095 * makefile.w32-in (w32font.o): Depend on w32font.h.
7096
73acf815 70972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7098
7099 * charset.c (Fdefine_charset_internal): Record a supplementary
7100 charset at the tail of Vcharset_order_list.
7101
7102 * font.c (Ffont_shape_text): Fix the return value.
7103
7104 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
7105
7106 * xdisp.c (handle_auto_composed_prop): Fix previous change.
7107
73acf815 71082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7109
7110 * ftfont.c (struct OpenTypeSpec): New struct.
7111 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
7112 (ftfont_get_open_type_spec): New function.
7113 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
7114
15139d67 7115 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 7116
73acf815 71172008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7118
7119 * w32font.c (add_font_entity_to_list): Compare only the beginning
7120 of full name.
7121
73acf815 71222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7123
15139d67
SM
7124 * xdisp.c (handle_auto_composed_prop): Simplify the code.
7125 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 7126
73acf815 71272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7128
7129 * font.c (font_gstring_produce): Delete it.
7130
15139d67
SM
7131 * composite.h (COMPOSITION_METHOD):
7132 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 7133
73acf815 71342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 7135
15139d67 7136 * xfont.c (Qx): Delete.
aca7a3d2
MB
7137 (syms_of_xfont): Don't initialize Qx.
7138
15139d67
SM
7139 * composite.h (enum composition_method):
7140 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 7141
73acf815 71422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7143
7144 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
7145 (choose_face_font): Accept new form of font-spec.
7146
7147 * frame.h (font_driver_list): Declare it unconditionally.
7148 (struct frame): Define members font_driver_list and font_data_list
7149 unconditionally.
7150
7151 * fontset.c: Include "font.h" unconditionally.
15139d67 7152 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
7153 (Fset_fontset_font): Accept a font-spec object.
7154
7155 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
7156 PIXEL_SIZE part a wild card.
7157
7158 * dispextern.h (struct glyph_string): Define members clip and
7159 num_clips unconditionally.
7160 (struct face): Define members font_info and extra unconditionally.
7161
7162 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
7163 ftfont_info only when HAVE_LIBOTF is defined.
7164
73acf815 71652008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7166
7167 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
7168 and end.
7169
73acf815 71702008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7171
7172 * w32font.c (w32font_driver): Add new fields.
7173
73acf815 71742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 7175
aca7a3d2
MB
7176 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
7177 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
7178 (LIBES): Add @M17N_FLT_CFLAGS@.
7179
7180 * composite.c (compose_text): Don't treat the new style
7181 composition specially.
7182
7183 * emacs.c (main): Call syms_of_font unconditionally.
7184
7185 * font.h (FONT_ENTITY_NOT_LOADABLE)
7186 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 7187 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 7188 (struct font_driver): New member shape.
1f45f627 7189 (font_registry_charsets): Extern it.
4c4475a8 7190 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
7191 (font_otf_capability, font_drive_otf): Delete their externs.
7192
7193 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
7194 (font_charset_alist, font_registry_charsets): Move from xfont.c
7195 and rename.
aca7a3d2
MB
7196 (font_prop_validate_otf): New function.
7197 (font_property_table): Register it for QCotf.
7198 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 7199 (font_drive_otf): Delete.
1f45f627 7200 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
7201 lispy gstring.
7202 (font_find_for_lface): New arg C.
15139d67 7203 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
7204 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
7205 lispy gstring.
aca7a3d2
MB
7206 (Ffont_shape_text): New function.
7207 (Fopen_font): If the font size is not given, use 12-pixel.
7208 (Ffont_at): New arg STRING.
15139d67
SM
7209 (syms_of_font): Initalize font_charset_alist.
7210 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
7211 conditionally.
7212
7213 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
7214 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
7215 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
7216 Adjust for the change of RFONT-DEF.
15139d67 7217 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
7218
7219 * ftfont.h: New file.
7220
7221 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
7222 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
7223 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
7224 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
7225 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 7226 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
7227 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
7228 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
7229 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 7230 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
7231 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
7232 (otf_gstring, gstring, m17n_flt_initialized): New variables.
7233
15139d67
SM
7234 * w32term.c (x_draw_composite_glyph_string_foreground):
7235 Adjust for the change of lispy gstring.
aca7a3d2 7236
15139d67 7237 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 7238 lispy gstring. Call a function for auto-composition with the
15139d67
SM
7239 third arg it->window.
7240 (fill_composite_glyph_string): Adjust for the change of lispy string.
7241 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 7242
15139d67 7243 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
7244 font_find_for_lface.
7245
1f45f627
GM
7246 * xfont.c (x_font_charset_alist): Move to font.c and rename.
7247 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
7248 (syms_of_xfont): Don't handle x_font_charset_alist.
7249
7250 * xftfont.c: Include "ftfont.h".
15139d67 7251 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
7252 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
7253 (xftfont_close) [HAVE_LIBOTF]: Close otf.
7254 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
7255 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
7256 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 7257
15139d67 7258 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
7259 the change of lispy gstring.
7260
73acf815 72612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7262
7263 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
7264
73acf815 72652008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7266
7267 * w32font.c (w32font_draw): Fill background manually.
7268
73acf815 72692008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7270
7271 * font.c (Qfontp): Remove unused symbol.
7272 (QCantialias): New symbol.
7273 (syms_of_font): Define it.
7274 (font_property_table): Set a validator for QCantialias.
7275
15139d67
SM
7276 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
7277 Define if not already.
aca7a3d2
MB
7278 (QCfamily): Share with xfaces.c.
7279 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 7280 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
7281 (w32_antialias_type, lispy_antialias_type): New functions.
7282 (w32_enumfont_pattern_entity): New arg requested_font.
7283 Set antialias parameter if non-default was requested.
7284 (fill_in_logfont): Fill in lfQuality if :antialias specified.
7285
73acf815 72862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7287
7288 * lread.c (read1): Undo the previous change.
7289
73acf815 72902008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
7291
7292 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 7293 USE_FONT_BACKEND is defined.
aca7a3d2 7294
73acf815 72952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7296
7297 * font.h (struct font_bitmap): New member bits_per_pixel.
7298 (struct font_driver): New members start_for_frame and end_for_frame.
7299 (struct font_data_list): New struct.
7300 (font_put_frame_data, font_get_frame_data): Extern them.
7301
7302 * frame.h (struct frame): New member font_data_list.
7303
7304 * font.c (font_update_drivers): Call driver->start_for_frame and
7305 driver->end_for_frame at proper timings.
7306 (font_put_frame_data, font_get_frame_data): New functions.
7307 (Ffont_spec): Add usage in the docstring.
7308
7309 * frame.c (make_frame): Initialize f->font_data_list to NULL.
7310 (Fdelete_frame): Call font_update_drivers.
7311
7312 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 7313 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
7314 (xftfont_get_xft_draw): New function.
7315 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
7316 (xftfont_end_for_frame): New function.
7317 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
7318
15139d67 7319 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 7320 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
7321 (struct ftxfont_frame_data): New struct.
7322 (ftxfont_draw_bitmap): New arg gc_fore and flush.
7323 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 7324 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
7325 (ftxfont_end_for_frame): New function.
7326 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
7327
7328 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
7329
73acf815 73302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7331
7332 * xselect.c (Vselection_coding_system)
7333 (Vnext_selection_coding_system): Delete them.
7334 (syms_of_xselect): Don't declare selection-coding-system and
7335 next-selection-coding-system. They are declared in select.el.
7336
73acf815 73372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7338
7339 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
7340
7341 * w32fns.c: Include imm.h.
7342 (get_composition_string_fn, get_ime_context_fn): New optional
7343 system functions.
7344 (globals_of_w32fns): Load them from imm32.dll.
7345 (ignore_ime_char): New flag.
7346 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
7347 WM_IME_ENDCOMPOSITION messages.
7348
7349 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
7350 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
7351
73acf815 73522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7353
7354 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
7355 (READCHAR_REPORT_MULTIBYTE): New macro.
7356 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
7357 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
7358 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
7359 source.
7360
73acf815 73612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7362
7363 * xfaces.c (face_for_overlay_string): Call lookup_face with
7364 correct arguments (fix of synching with the trunk).
7365
73acf815 73662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7367
4c4475a8
GM
7368 * font.c (font_prop_validate_symbol, font_prop_validate_style)
7369 (font_prop_validate_non_neg, font_prop_validate_spacing):
7370 Delete argument prop_index.
15139d67
SM
7371 (font_property_table): Change arguments to validater. Change Callers.
7372 (font_lispy_object): Delete.
aca7a3d2
MB
7373 (font_at): Use font_find_object instead fo font_lispy_object.
7374
73acf815 73752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7376
7377 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
7378 and file names.
7379
73acf815 73802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7381
7382 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
7383 (font_matches_spec): Remove debug output.
7384 (add_font_entity_to_list): Avoid using substituted fonts.
7385
73acf815 73862008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7387
7388 * doc.c (Fsnarf_documentation):
7389 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
7390
73acf815 73912008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 7392
290afd83 7393 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
7394 HAVE_WINDOW_SYSTEM is defined.
7395
73acf815 73962008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
7397
7398 Fix up multi-tty merge.
7399
7400 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
7401 and indentation.
7402
7403 * xfaces.c (free_realized_face, clear_face_gcs):
7404 Include font_done_for_face in the input_blocked section, just in case.
7405
7406 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
7407 (get_char_face_and_encoding): Undo last change and remove the *other*
7408 duplicate definition (i.e. keep the one that's better scoped and that
7409 includes code for the font-backend).
7410
7411 * terminal.c (create_terminal): Default keyboard_coding to
7412 `no-conversion' and terminal_coding to `undecided'.
7413
7414 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
7415
7416 * fontset.c (free_realized_fontsets): Check that the table entry does
7417 contain a fontset before trying to compare it to `base'.
7418
7419 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
7420 syms_of_charset, and syms_of_coding earlier because init_window_once
7421 now needs Vcoding_system_hash_table to be setup.
7422
7423 * coding.h (default_buffer_file_coding): Remove.
7424
7425 * coding.c (default_buffer_file_coding): Remove.
7426 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
7427 than ->symbol, and use the terminal-local coding system.
7428 (syms_of_coding): Don't setup the coding-systems that are not
7429 terminal-local.
7430 (Fdefine_coding_system_internal): Use XCAR/XCDR.
7431
7432 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
7433 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
7434
7435 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
7436 in chartab.c and were re-added here by mistake.
7437 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
7438
7439 * doc.c (Fsnarf_documentation):
7440 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
7441 src to etc.
7442
7443 * ChangeLog.10: Add mistakenly removed entry.
7444
73acf815 74452008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
7446
7447 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
7448
73acf815 74492008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7450
7451 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
7452 Add extra args to FACE_FOR_CHAR.
7453
73acf815 74542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7455
7456 * keymap.c (where_is_internal_1): If key is a cons, store the copy
7457 in sequence.
7458
4c4475a8
GM
7459 * chartab.c (map_sub_char_table, map_char_table): If the range
7460 contains just one character, call the function with that character
7461 even if the depth is not 3.
aca7a3d2 7462
73acf815 74632008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7464
7465 * w32font.c (w32font_text_extents): Calculate metrics for the
7466 whole string.
7467
73acf815 74682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7469
7470 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
7471
73acf815 74722008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7473
7474 * w32term.c (x_set_glyph_string_clipping): Use
7475 get_glyph_string_clip_rects.
4c4475a8
GM
7476 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
7477 Adjust for the change of struct glyph_string.
aca7a3d2
MB
7478
7479 * w32font.c (w32font_draw): Do clipping here.
7480
73acf815 74812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7482
1f45f627 7483 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
7484 glyph_string.
7485
7486 * xterm.c (x_set_glyph_string_clipping): Use
7487 get_glyph_string_clip_rects.
4c4475a8
GM
7488 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
7489 Adjust for the change of struct glyph_string.
aca7a3d2
MB
7490
7491 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
7492 the resulting clip(s}.
1f45f627 7493 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
7494 row->clip temporarily.
7495 (expose_window): Redraw rows overlapping the exposed area.
7496
7497 * dispextern.h (struct glyph_row): New member clip.
7498 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
7499 clip_height, new member clip, and num_clips.
7500
73acf815 75012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7502
7503 * data.c (Fchar_or_string_p): Fix docstring.
7504
73acf815 75052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7506
7507 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10d1d0af 7508 create a temporary XftDraw object.
aca7a3d2 7509
73acf815 75102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7511
7512 * font.c (Ffontp): Fix docstring.
7513
7514 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
7515 strong evidence of ISO-2022.
7516
73acf815 75172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7518
7519 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
7520 SYNTAX_ENTRY_FOLLOW_PARENT.
7521
73acf815 75222008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
7523
7524 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
7525 its type.
7526 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
7527 Update to the new type of weak_hash_tables and next_weak.
7528
7529 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
7530 a plain C pointer to Lisp_Hash_Table.
7531
7532 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
7533 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
7534 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
7535 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
7536 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
7537 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
7538 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
7539 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
7540 (GC_EQ): Remove since they've been identical to their non-GC_
7541 alter-egos ever since the markbit was eradicated.
7542
290afd83
JB
7543 * alloc.c:
7544 * buffer.c:
7545 * buffer.h:
7546 * data.c:
7547 * fileio.c:
7548 * filelock.c:
7549 * fns.c:
7550 * frame.h:
7551 * lisp.h:
7552 * macterm.c:
7553 * print.c:
7554 * process.c:
7555 * w32fns.c:
7556 * w32menu.c:
7557 * w32term.c:
7558 * xfns.c:
7559 * xmenu.c:
7560 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 7561
73acf815 75622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7563
7564 * chartab.c (map_sub_char_table): Make it work for the top-level
7565 char-table. Fix handling of parent char-table.
c5ad7a3d 7566 (map_char_table): Adjust for the above change.
aca7a3d2 7567
73acf815 75682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7569
7570 * w32font.c (Qgdi): Rename from Qw32.
7571
73acf815 75722008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7573
7574 * w32bdf.c (get_quoted_string): Make function static.
7575
73acf815 75762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7577
7578 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
7579 bigger ascent and descent than those of the font, use them as
7580 font's ascent and descent.
7581
73acf815 75822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7583
7584 * Makefile.in (${lispsource}international/charprop.el): Move this
7585 target within "#ifdef HAVE_UNIDATA" and "#endif".
7586
73acf815 75872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7588
7589 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
7590 (shortlisp): Add ../lisp/language/tai-viet.el.
7591
1f45f627 75922008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
7593
7594 * Makefile.in (${lispsource}international/charprop.el): Depend on
7595 temacs${EXEEXT}.
7596
73acf815 75972008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7598
7599 * w32font.c (w32font_close): Delete the GDI font object.
7600
6f69e89b 7601 * w32menu.c: Include character.h.
aca7a3d2
MB
7602
7603 * w32proc.c: Likewise.
7604
7605 * w32select.c: Likewise.
7606
6f69e89b 7607 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 7608
73acf815 76092008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7610
7611 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
7612
7613 * w32menu.c (syms_of_w32menu): Likewise.
7614
7615 * w32proc.c (syms_of_ntproc): Likewise.
7616
7617 * w32select.c (syms_of_w32select): Likewise.
7618
7619 * w32term.c (syms_of_w32term): Likewise.
7620
73acf815 76212008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7622
7623 * w32font.c (w32font_draw): Delete brush after using it.
7624
73acf815 76252008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7626
7627 * w32font.c (w32font_open): Don't set font_idx.
7628 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
7629 to font settings.
7630 (w32font_draw): Fill background explicitly.
7631
73acf815 76322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7633
7634 * w32term.c (w32_initialize): Don't call w32font_initialize.
7635
7636 * w32font.c (w32font_info): Remove subranges.
7637 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
7638 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
7639 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
7640 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
7641 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
7642 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
7643 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
7644 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
7645 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
7646 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
7647 New symbols.
7648 (font_callback_data): New struct.
7649 (w32font_list, w32font_match): Use it.
7650 (w32font_open): Don't populate subranges.
7651 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
7652 (w32font_encode_char): Always return unicode code-point as-is.
10d1d0af 7653 (w32font_text_extents): Supply a transformation matrix to
1f45f627
GM
7654 GetGlyphOutline. Never look up by glyph index. Avoid looping
7655 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 7656 glyph index version.
1f204af3 7657 (set_fonts_frame): Remove.
aca7a3d2 7658 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
7659 set frame parameter. Use backward compatible fake foundries.
7660 Save generic family in extra slot under QCfamily. Make width slot
7661 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
7662 binary subranges.
7663 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 7664 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
7665 unwanted fonts.
7666 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
7667 (w32_registry): Default to iso10646_1.
7668 (fill_in_logfont): Use dpi from extra slot. Don't bother with
7669 string font registries. Don't fill in font name if it is a generic
7670 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
7671 extra info to fill pitch, family and charset fields.
7672 (list_all_matching_fonts): Use font_callback_data struct.
7673 (unicode_range_for_char): Remove.
7674 (font_supported_scripts): New function.
7675 (w32font_initialize): Remove.
7676 (syms_of_w32font): Update which symbols are defined.
7677
73acf815 76782008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7679
7680 * font.c (font_pixel_size): Reverse assq_no_quit args.
7681
7682 * w32term.h (FONT_WIDTH): Report max width, not average.
7683 (FONT_MAX_WIDTH): Remove.
7684 (FONT_AVG_WIDTH): New macro.
7685
7686 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
7687 redefinition of FONT_WIDTH.
7688
7689 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
7690 (w32_cache_char_metrics): Use FONT_WIDTH.
7691
7692 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
7693
73acf815 76942008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7695
7696 * w32font.c (w32font_open): Make lfHeight negative.
7697
7698 * w32fns.c (x_default_font_parameter): Use new style font name.
7699 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
7700
73acf815 77012008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7702
7703 * w32font.c (QCsubranges): New symbol.
7704 (w32font_open, w32font_has_char): Get subranges from subproperty
7705 of extra.
7706 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
7707 (syms_of_w32font): Define :subranges symbol.
7708
7709 * font.c (font_put_extra): Expose externally.
7710
1f45f627 7711 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
7712
7713 * font.c (Ffont_get): Use font driver to determine otf capability.
7714 (adjust_anchor): Check if driver defines anchor_point before using.
7715
7716 * w32font.c (w32font_open): Handle size, height and pixel_size better.
7717 (w32font_draw): Use options.
7718 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
7719 Fix detection of truetype fonts.
7720 (registry_to_w32_charset): Handle charsets other than iso8859-1
7721 expressed as lisp symbols.
7722 (w32_registry): Express charset as lisp symbol.
7723 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 7724 Don't set width here. Set quality to default.
aca7a3d2
MB
7725
7726 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
7727 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
7728
7729 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7730 Remove redundant loop and allocation.
7731
7732 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 7733 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
7734 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
7735
7736 * xdisp.c (fill_composite_glyph_string): Make the first arg to
7737 STORE_XCHARB a valid l-value.
7738
7739 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
7740 calculations for non-Truetype fonts.
7741 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
7742 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7743 Remove redundant code.
aca7a3d2
MB
7744 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
7745
7746 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
7747 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
7748
7749 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
7750 (x_to_w32_charset, w32_to_x_charset): Expose externally.
7751
7752 * w32font.c: New file for w32 font backend.
7753
73acf815 77542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7755
7756 * term.c: Don't include "buffer.h" twice.
7757
73acf815 77582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7759
7760 * character.c (Funibyte_string): New function.
7761 (syms_of_character): Defsubr it.
7762
73acf815 77632008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7764
7765 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
7766 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
7767 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
7768 (x_draw_glyph_string, x_draw_glyph_string_foreground)
7769 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
7770 (x_free_frame_resources): Sync with xterm.c.
7771
73acf815 77722008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7773
7774 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
7775 char-table size.
7776
73acf815 77772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7778
c3f9fba8 7779 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 7780
73acf815 77812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7782
7783 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
7784 font_otf_gpos, add font_drive_otf.
7785
7786 * fontset.c (fontset_find_font): Pay attention to font size
7787 specified for a font.
7788 (reorder_font_vector): Check contents of font_def.
7789
7790 * font.c (struct otf_list): Delete it.
6f69e89b 7791 (otf_list): Make it a lisp variable.
aca7a3d2 7792 (otf_open): Use lispy otf_list.
1f45f627 7793 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 7794 (check_otf_features): New function.
c3f9fba8
JB
7795 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7796 New functions.
aca7a3d2
MB
7797 (font_drive_otf): New function merging font_otf_gsub and
7798 font_otf_gpos.
7799 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 7800 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
7801 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
7802 Ffont_otf_gpos.
7803 (syms_of_font): Staticpro otf_list. Delete defsubr of
7804 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
7805
1f45f627 7806 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
7807 font_open_for_lface.
7808
7809 * font.h (font_open_for_lface): Adjust prototype.
7810 (struct font_driver): Delete members otf_gsub and otf_gpos, add
7811 member otf_drive.
7812 (font_otf_gsub, font_otf_gpos): Delete externs.
7813 (font_drive_otf): Extern it.
7814
73acf815 78152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7816
7817 * font.c (font_at): If the window W is not on a window system,
7818 return Qnil.
7819
4c4475a8
GM
7820 * coding.c (produce_chars, encode_coding): Don't call
7821 insert_from_gap if no characters to produce.
aca7a3d2 7822
73acf815 78232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7824
7825 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
7826 Fclear_face_cache.
7827
7828 * xfaces.c (face_for_font): Check also face->font==font->font.font.
7829
73acf815 78302008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7831
7832 * emacs.c (main): Change default value of `enable_font_backend' to 1.
7833 Parse "--disable-font-backend" option.
7834 (standard_args): Add "--disable-font-backend" option.
7835
73acf815 78362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7837
7838 * fontset.c (fontset_find_font): New function.
7839 (fontset_font): Use fontset_find_font.
7840 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
7841 Register the specified font for all Latin characters.
7842 (new_fontset_from_font): Register the specified font for all Latin
7843 characters.
7844 (dump_fontset): For a realized fontset, include the base fontset
7845 name in the returned vector.
7846
73acf815 78472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7848
7849 * character.h (CHAR_STRING): Cast C to unsigned on calling
7850 char_string.
7851
7852 * character.c (char_string): Type of arg C changed to unsigned.
7853 Signal an error if C is an invalid character code.
7854
4c4475a8
GM
7855 * editfns.c (general_insert_function, Fchar_to_string):
7856 Use CHARACTERP, not INTEGERP.
aca7a3d2 7857
73acf815 78582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7859
7860 * character.h (MIN_MULTIBYTE_LEADING_CODE)
7861 (MAX_MULTIBYTE_LEADING_CODE): New macros.
7862
7863 * regex.c (analyse_first): Fix for multibyte characters in "case
7864 charset:" and "case categoryspec:".
7865
73acf815 78662008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7867
7868 * Makefile.in (LIBES): Move standard libraries to the end.
7869
73acf815 78702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7871
7872 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
7873 nonzero, don't shrink the buffer nextb.
7874
7875 * buffer.h (struct buffer_text): New member inhibit_shrinking.
7876
7877 * coding.c (coding_alloc_by_making_gap): New arg offset.
7878 (alloc_destination): Call coding_alloc_by_making_gap with the arg
7879 offset.
7880 (decode_coding_iso_2022): Update coding->safe_charsets.
7881 (decode_coding_gap): Temporarily set
7882 current_buffer->text->inhibit_shrinking to 1.
7883
73acf815 78842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7885
7886 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
7887 indexing into elements of s->cmp and s->char2b.
7888
73acf815 78892008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
7890
7891 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
7892
73acf815 78932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7894
7895 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
7896 target_multibyte instead of multibyte.
7897 (re_match_2_internal): Call bcmp_translate with target_multibyte.
7898 (bcmp_translate): Change the argument name from multibyte to
7899 target_multibyte.
7900
73acf815 79012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7902
7903 These changes are to compile a regexp into a pattern that can be
7904 used both for multibyte and unibyte targets.
7905
7906 * Makefile.in (search.o): Depend on charset.h.
7907
7908 * character.c (multibyte_char_to_unibyte_safe): New function.
7909
7910 * search.c: Include "charset.h".
7911 (compile_pattern_1): Delete argument multibyte. Don't set
7912 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
7913 (compile_pattern): Don't compare cp->buf.target_multibyte.
7914 Compare cp->buf.charset_unibyte.
7915 (compile_pattern): Set cp->buf.target_multibyte.
7916
7917 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
7918
7919 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
7920
7921 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 7922 multibyte. Change callers.
aca7a3d2 7923 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
7924 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
7925 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
7926 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
7927 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
7928 (regex_compile): Make the compiled pattern usable both for
7929 multibyte and unibyte targets.
7930 (analyse_first): Make the fastmap usable both for multibyte and
7931 unibyte targets.
1f45f627 7932 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
7933 (re_match_2_internal): Pay attention to the case that the
7934 multibyteness of bufp and target may be different.
7935
73acf815 79362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7937
7938 * xdisp.c (x_produce_glyphs): When a font is not found, make the
7939 empty box occupy at least one column width.
7940
73acf815 79412008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7942
7943 * Makefile.in: Remove redundant HAVE_XFT clause.
7944
73acf815 79452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7946
10d1d0af 7947 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
aca7a3d2 7948
73acf815 79492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7950
7951 * fontset.c (Finternal_char_font): Fix for the case of POSITION
7952 being nil.
7953
73acf815 79542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7955
7956 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
7957
73acf815 79582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7959
7960 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
7961
73acf815 79622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7963
7964 * search.c (simple_search): Fix previous change.
7965
73acf815 79662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7967
7968 * xftfont.c (ftfont_font_format): Extern declaration.
7969
7970 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
7971
7972 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
7973 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
7974
7975 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
7976 (ftfont_font_format): Fix previous change.
7977
7978 * font.h (Ffont_xlfd_name): EXFUN it.
7979
7980 * font.c (font_parse_xlfd): Fix the array size of `f'.
7981 (register_font_driver): Use EQ to compare driver->type.
7982
7983 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
7984 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
7985 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
7986
73acf815 79872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7988
4c4475a8
GM
7989 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
7990 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 7991
73acf815 79922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7993
7994 * xfont.c (xfont_open): Set font->format.
7995
7996 * xftfont.c (xftfont_open): Set font->format.
7997
7998 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
7999 (ftfont_list): Include FC_FONTFORMAT in FcObject.
8000 (ftfont_open): Set font->format.
8001 (ftfont_font_format): New function.
8002
10d1d0af 8003 * font.h (struct font): New member format.
aca7a3d2
MB
8004
8005 * font.c (Qopentype): New variable.
8006 (syms_of_font): Defsym it.
8007 (Fquery_font): Change the format of the last element of the return
8008 value.
8009
73acf815 80102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8011
8012 * xfns.c (xic_create_xfontset): Try the default fontset name as a
8013 last resort.
8014
73acf815 80152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8016
8017 * coding.c (detect_coding_charset): Fix detection of multi-byte
8018 charset.
8019
73acf815 80202008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
8021
8022 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
8023
73acf815 80242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8025
8026 * xdisp.c (get_next_display_element): Set it->face_id for the
8027 first component of a composition.
1f45f627 8028 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 8029
73acf815 80302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8031
8032 * fontset.c (Qlatin): New variable.
8033 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 8034 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 8035
73acf815 80362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8037
8038 * font.c (font_unparse_fcname): Pay attention to the case that
8039 some of font property is a null string.
8040
73acf815 80412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8042
8043 * term.c: Include "composite.h".
8044 (encode_terminal_code): Output all components of composition.
8045 Check the size of encode_terminal_src.
424c157f 8046 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
8047 (append_composite_glyph, produce_composite_glyph): New functions.
8048
8049 * xdisp.c (x_produce_glyphs): In handling composition, if a font
8050 is not found, get font_info from the current ascii face.
8051
73acf815 80522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8053
8054 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
8055 buffer-file-name to Qnil before calling insert_from_buffer.
8056
8057 * font.c (font_unparse_fcname): Pay attention to the case that
8058 foundry is a null string.
8059
73acf815 80602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8061
8062 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
8063
8064 * font.c (Qunicode_sip): New variable.
8065 (syms_of_font): Declare it as a Lisp symbol.
8066
8067 * font.h (Qunicode_sip): Extern it.
8068
73acf815 80692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8070
1f45f627 8071 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
8072
8073 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 8074 TAB. Adjust for the change of s->char2b which always points to
10d1d0af 8075 the first element of allocated memory.
aca7a3d2 8076
1f45f627 8077 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
8078
8079 * xdisp.c (handle_composition_prop): Set it->c to the first
8080 non-TAB component.
1f45f627
GM
8081 (fill_composite_glyph_string): Change argument.
8082 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
8083 (x_produce_glyphs): Fix handling of left/right padding.
8084
73acf815 80852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8086
8087 * coding.c (detect_coding_system): Fix for handling off
8088 inhibit_iso_escape_detection. Fix for the case that no coding
8089 system is defined for a specific coding category.
8090
73acf815 80912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8092
1f45f627 8093 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
8094
8095 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
8096 opening a font.
8097
8098 * fileio.c (Finsert_file_contents): On recovering a file, assume
8099 Unix-like eol.
8100 (choose_write_coding_system): On auto-saving a file, force
8101 Unix-like eol.
8102
8103 * coding.c (setup_coding_system): Fix setting of
8104 coding->common_flags based on eol_type.
8105 (coding_inherit_eol_type): If PARENT is not nil, be sure to
8106 inherit from it.
8107
73acf815 81082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8109
1f45f627 8110 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 8111
73acf815 81122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8113
1f45f627 8114 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
8115 (ftfont_list): Don't check :name property.
8116 (ftfont_match): New function.
8117 (ftfont_pattern_entity): If the pattern doesn't contain
10d1d0af 8118 FC_SPACING, don't assume FC_MONO.
aca7a3d2
MB
8119
8120 * font.h (struct font_driver): New member `match'.
1f45f627 8121 (font_update_drivers): Adjust prototype.
aca7a3d2 8122
4c4475a8
GM
8123 * font.c (font_parse_fcname, font_parse_name): Don't change :name
8124 property of FONT.
aca7a3d2
MB
8125 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
8126 them unconditionally.
8127 (font_matching_entity): New function.
8128 (font_open_by_name): Try font_matching_entity if exact match is
8129 not found.
8130 (font_update_drivers): Delete the arg FONT. Return a list of
8131 actually used backends. Don't free faces, font caches here.
8132 Don't store data in frame parameters. Don't call x_set_font.
8133 (Ffont_spec): Store :name property as is.
8134 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
8135 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
8136 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
8137 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
8138 Call font->driver->otf_gsub instead of font_otf_gsub.
8139
8140 * frame.c (x_set_font_backend): Do more works that were done in
8141 font_update_drivers before.
8142
8143 * xfont.c (xfont_match): New function.
8144 (xfont_driver): Set xfont_driver.match to xfont_match.
8145 (xfont_draw): Set font in GC if necessary.
8146
8147 * ftxfont.c (ftxfont_match): New function.
8148 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
8149
8150 * xftfont.c (xftfont_match): New function.
8151 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
8152
73acf815 81532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8154
8155 * font.h (struct font): New member scalable.
8156 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 8157 (font_otf_gsub): Adjust prototype.
aca7a3d2 8158
1f45f627
GM
8159 * font.c (font_otf_capability): Fix handling of the default langsys.
8160 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
8161 Check the contents of SPEC.
8162 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
8163 (check_gstring): New function.
8164 (REPLACEMENT_CHARACTER): New macro.
8165 (font_otf_gsub): New arg alternate_subst. Be sure to set all
8166 glyph codes of GSTRING.
8167 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
8168 (font_prepare_composition): Set cmp->glyph_len.
8169 (font_open_entity): Set font->scalable.
8170 (Ffont_get): Handle :otf property.
8171 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
8172 functions.
8173 (Fquery_font): Use font->font.full_name.
8174 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
8175 Sfont_otf_alternates.
8176
8177 * ftfont.c (ftfont_open): Set font->font.full_name and
8178 font->font.name properly. Fix calculation of font->font.height
8179 and font->min_width.
8180
8181 * ftxfont.c (ftxfont_create_gcs): New function.
8182 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
8183 (ftxfont_draw_backgrond): Fix filling region.
8184 (ftxfont_default_fid): New function.
8185 (ftxfont_open): Set xfotn->fid to the return value of
8186 ftxfont_default_fid.
8187 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
8188 (ftxfont_done_face): Free only GCs that are created by
8189 ftxfont_create_gcs.
8190 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
8191
8192 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
8193 Clip to src->width, etc (not src->clip_XXX).
8194
8195 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
8196 FontBackend frame parameter.
8197
73acf815 81982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8199
8200 * font.h (struct font_driver_list): New member `on'.
8201 (Fclear_font_cache): EXFUN it.
8202 (font_update_drivers): Extern it.
8203
8204 * font.c (font_unparse_fcname): Fix typo (swidth->width).
8205 (font_list_entities): Check driver_list->on.
8206 (register_font_driver): Initalize `on' member to 0.
8207 (font_update_drivers): New function.
8208 (Fclear_font_cache): Check driver_list->on.
8209
8210 * frame.h (Qfont_backend): Extern it.
8211 (x_set_font_backend): Extern it.
8212
8213 * frame.c (Qfont_backend): New variable.
8214 (frame_parms): New element for font-backend.
8215 (x_set_font_backend): New function.
8216
8217 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
8218 FontBackend frame parameter.
8219 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
8220 x_set_font_backend.
8221
8222 * xfont.c (xfont_list): Don't try listing by :name property if the
8223 name is not for XLFD.
8224
73acf815 82252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8226
8227 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
8228 (LGLYPH_SET_TO): New macros.
8229 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
8230 element of G is vector or not.
8231 (font_at): Extern it.
8232
8233 * font.c: Include window.h.
8234 (font_lispy_object): New function.
8235 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
8236 end of valid glyph.
8237 (font_close_object): Fix getting (struct font *).
8238 (font_at): New function.
8239 (Ffont_get): If FONT is a font-object, get entity from it.
8240 (Ffont_make_gstring): Initialize elements of glyphs with nil.
8241 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
8242 range check.
8243 (Ffont_at): New function.
8244 (syms_of_font): Defsubr Sfont_at.
8245
8246 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 8247 before the entry for Qcomposition.
1f45f627 8248 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
8249 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
8250 the font in gstring.
8251 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
8252 LGLYPH_FORM (g) to detect the end of valid glyph.
8253 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
8254 we are composing with gstring.
8255
8256 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
8257 Check if adjustment is vector or not.
8258
8259 * Makefile.in (font.o): Make it depends on window.h.
8260
73acf815 82612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8262
8263 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
8264 adjustment is vector or not.
8265
73acf815 82662008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
8267
8268 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
8269
73acf815 82702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8271
8272 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
8273 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
8274 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
8275
1f45f627 8276 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 8277 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
8278 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
8279 LGLYPH format.
aca7a3d2 8280
1f45f627 8281 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
8282 the change of LGLYPH format.
8283
73acf815 82842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8285
8286 * ftfont.c (ftfont_list): Fix typo.
1f45f627 8287 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 8288
880820fe 82892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
8290
8291 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
8292
8293 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
8294 xftface_info is non-NULL.
8295
880820fe 82962008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 8297
1f45f627 8298 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 8299
73acf815 83002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8301
8302 * ftfont.c (ftfont_list): Pay attention to the case that
8303 FC_CAPABILITY is not defined.
8304
73acf815 83052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8306
8307 * xftfont.c (xftfont_open): Set charset related members to -1.
8308
1f45f627
GM
8309 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
8310 QCname.
aca7a3d2
MB
8311 (ftfont_open): Set charset related members to -1.
8312
8313 * fontset.c (Votf_script_alist): New variable.
8314 (syms_of_fontset): Initialize it.
8315 (fontset_font): Delete unused variable.
8316
8317 * fontset.h (Votf_script_alist): Extern it.
8318
1f45f627 8319 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
8320
8321 * font.h (font_close_object, font_merge_old_spec): Extern them.
8322
73acf815 83232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8324
8325 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
8326 (syms_of_font): Initialize them.
8327 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
8328 (font_prop_validate_type): Delete.
8329 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
8330 Change caller.
8331 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
8332 (font_prop_validate_extra): Delete.
aca7a3d2
MB
8333 (font_prop_validate_spacing): New function.
8334 (font_property_table): Add elements for all known properties.
1f45f627
GM
8335 (get_font_prop_index): Rename from check_font_prop_name. New
8336 argument FROM. Change caller.
aca7a3d2 8337 (font_prop_validate): Validate all known properties.
1f45f627 8338 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
8339 (font_expand_wildcards): Make it static. Fix the way of shrinking
8340 the possible range.
1f45f627 8341 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 8342 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 8343 Change caller.
aca7a3d2 8344 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
8345 (font_parse_fcname): Delete argument merge. Fix parsing of point
8346 size. Don't validate properties values here. Change caller.
8347 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
8348 (font_open_by_name): Delete unused variable.
8349 (Ffont_spec): Likewise. Validate property values.
8350 (Ffont_match_p): New function.
8351
8352 * font.h (QCscalable): Extern it.
1f45f627 8353 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 8354
1f45f627 8355 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 8356
1f45f627 8357 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
8358 (xfont_list_pattern): New function.
8359 (xfont_list): Use xfont_list_pattern.
8360
73acf815 83612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8362
8363 * font.h (Flist_fonts): EXFUN it.
8364
73acf815 83652008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8366
8367 * w32term.c (w32_initialize): Add back smoothing_type and
8368 smoothing_enabled definitions.
8369
73acf815 83702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8371
8372 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
8373 s->face->font on determining underline position.
8374
73acf815 83752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8376
8377 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
8378 (font_has_char): Accept font-object too.
8379 (font_find_for_lface): Try at first with a size specified in face.
8380
73acf815 83812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8382
8383 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
8384 font_open_by_name.
8385
73acf815 83862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8387
8388 * font.h (QCspacing, QCdpi): Extern them.
8389 (enum font_spacing): New enum.
8390 (FONT_PIXEL_SIZE_QUANTUM): New macro.
8391
10d1d0af 8392 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
aca7a3d2
MB
8393 (QCspacing, QCdpi): New variables.
8394 (syms_of_font): Initialize them.
8395 (font_pixel_size): New function.
8396 (font_put_extra): New function.
8397 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
8398 in FONT_EXTRA.
10d1d0af 8399 (font_parse_fcname): Handle enumerated values (e.g. bold).
e9184ccb 8400 Fix handling font size. Add QCname property that contains only
aca7a3d2 8401 unknown properties.
1f45f627 8402 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 8403 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
8404 (font_sort_entites, font_list_entities, font_find_for_lface)
8405 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 8406 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
8407
8408 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
8409 include weight in listing pattern, instead check weight of each
8410 listed font. Don't include scalable in pattern. Pay attention to
8411 FONT_PIXEL_SIZE_QUANTUM.
8412
73acf815 84132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8414
aca7a3d2 8415 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 8416 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
8417 (font_list_entities): Handle float size correctly.
8418 (font_open_by_name): Prefer `normal' property values if the name
8419 doesn't specify them.
8420
8421 * fontset.c (Finternal_char_font): Use font_get_name, not
8422 Ffont_xlfd_name.
8423
8424 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
8425 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
8426 pattern. Don't force scalable.
8427
8428 * xftfont.c (xftfont_open): For generating a name, start from
8429 96-byte buffer.
8430
880820fe 84312008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
8432
8433 * frame.h (x_new_fontset2): Fix prototype.
8434
73acf815 84352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8436
1f45f627 8437 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
8438 (font_match_p, font_get_spec, font_parse_fcname)
8439 (font_unparse_fcname): Extern them.
1f45f627 8440 (font_get_name): Adjust prototype.
aca7a3d2
MB
8441
8442 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
8443 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
8444 (font_expand_wildcards): Fix handling ENCODING field. Avoid
8445 unnecessary checks for weight, slant, and swidth.
8446 (font_parse_fcname): New function.
8447 (font_unparse_fcname): New function.
8448 (font_parse_name): New function.
8449 (font_match_p): New function.
1f45f627 8450 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
8451 (font_get_spec): New function.
8452 (Qunspecified, Qignore_defface): Don't extern them.
8453 (font_find_for_lface): Assume that LFACE is fully specified.
8454 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
8455 object, use it for FACE.
8456 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
8457 driver->parse_name.
8458 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
8459
1f45f627
GM
8460 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
8461 prototype.
aca7a3d2 8462
1f45f627
GM
8463 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
8464 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
8465 make_fontset.
8466
1f45f627 8467 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 8468
1f45f627 8469 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
8470 of x_new_fontset2.
8471
8472 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
8473 (Qsans__serif): New variables.
8474 (ftfont_generic_family_list): New variable.
8475 (syms_of_ftfont): Initialize the above variables.
1f45f627 8476 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
8477 (ftfont_list_generic_family): New function.
8478 (ftfont_parse_name): Delete this function.
1f45f627 8479 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
8480 (ftfont_list_family): Fix args to FcObjectSetBuild.
8481
8482 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
8483 object in attrs[LFACE_FONT_INDEX].
8484 (set_lface_from_font_name): Cancel all changes for font-backend.
8485 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
8486 function.
8487 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
8488 font object in QCfont attribute.
8489 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
8490 (realize_default_face) [USE_FONT_BACKEND]: Call
8491 set_lface_from_font_and_fontset.
8492
8493 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
8494 "fixed", and signal error here if no suitable font was found.
8495
8496 * xfont.c (xfont_parse_name): Delete this function.
8497
8498 * xftfont.c (xftfont_open): Change coding style of error
8499 handling. Generate fontconfig's fontname pattern.
8500
8501 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
8502 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
8503
8504 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
8505 Both args FONTSET and FONT_OBJECT must be existing ones.
8506
73acf815 85072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8508
8509 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
8510
73acf815 85112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8512
8513 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
8514
8515 * font.h (struct font): Fix typo.
8516
8517 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
8518 XLFD_XXX_INDEX.
8519 (enum xlfd_field_mask): New enum.
1f45f627 8520 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
8521 are followed by non-digits, return a symbol.
8522 (font_expand_wildcards): New function.
8523 (font_parse_xlfd): Fix wildcard handling.
8524 (Ffont_spec): If :name is specified, reflect the info in the other
8525 properties.
8526
8527 * ftfont.c (ftfont_pattern_entity): Fix typo.
8528 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
8529 locale.
8530
73acf815 85312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8532
8533 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
8534
1f45f627 8535 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
8536 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
8537 registry doesn't specify encoding part.
8538 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
8539 (font_open_by_name): At first try parsing the name.
8540 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
8541 as Lisp symbols.
8542
8543 * fontset.c (reorder_font_vector): Pay attention to the case that
8544 the 3rd element of font_def is nil.
8545 (fontset_font): For the default fontset, append one more fontset
8546 elements for a script-based font specification. Don't add script
8547 attribute on finding a font.
8548 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
8549 font name.
8550 (fontset_ascii_font): If a font can't be opened, return nil.
8551
1f45f627 8552 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
8553 (ftfont_pattern_entity): New function.
8554 (ftfont_get_cache): Assume that freetype_font_cache is already
8555 initialized.
8556 (ftfont_list): Handle the case that a file is specified in font
8557 name. Use ftfont_pattern_entity to generate entities.
8558 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
8559 (syms_of_ftfont): Initialize freetype_font_cache.
8560
8561 * xftfont.c (xftfont_open): Make the font name fontconfig's
8562 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
8563 (xftfont_close): Free font->font.name if not NULL.
8564
8565 * xfont.c (xfont_list): If script is specified for a font, return
8566 null_vector.
8567 (xfont_list_family): Declare argument type.
8568
8569 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
8570 name, set LFACE_FONT (lface) to nil.
8571
8572 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
8573 return Qnil.
8574
73acf815 85752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8576
1f45f627 8577 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
8578 (standard_args): Add "-enable-font-backend".
8579
73acf815 85802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8581
8582 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
8583 (struct xftdraw_list, xftdraw_list): Delete them.
8584 (register_xftdraw, check_xftdraw): Delete them.
8585 (xftfont_prepare_face): Don't call register_xftdraw.
8586 (xftfont_done_face): Don't call check_xftdraw.
10d1d0af 8587 (xftfont_draw): Get background color only when with_background is
aca7a3d2
MB
8588 nonzero.
8589
8590 * xfont.c (xfont_encode_char): Fix calculation of char2b.
8591
73acf815 85922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8593
8594 These changes are for the new font handling codes.
8595
8596 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
8597 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
8598 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
8599 (FONTSRC, FONTOBJ): New variables.
8600 (obj): Add $(FONTOBJ).
8601 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
8602 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
8603 @LIBOTF_LIBS@.
8604 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 8605 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 8606
1f45f627 8607 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
8608
8609 * character.h (Vscript_representative_chars): Extern it.
8610
8611 * character.c (Vscript_representative_chars): New variable.
8612 (syms_of_character): Declare it as a Lisp variable.
8613
8614 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
8615 enable_font_backend is nonzero, accept the composition method
8616 COMPOSITION_WITH_GLYPH_STRING.
8617
8618 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
8619 enumeration COMPOSITION_WITH_GLYPH_STRING.
8620
aca7a3d2
MB
8621 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
8622 members clip_x, clip_y, clip_width, and clip_height.
8623 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
8624
8625 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
8626 --enable-font-backend. Call syms_of_font.
8627
8628 * fns.c (assoc_no_quit): New function.
8629
8630 * fontset.h (FONT_INFO_FROM_FACE): New macro.
8631 (face_for_font, new_fontset_from_font)
8632 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
8633
8634 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
8635 (fontset_font, fontset_ascii, face_for_char)
8636 (make_fontset_for_ascii_face, Ffont_info)
8637 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
8638 is nonzero, use font-backend mechanism.
8639 (find_font_encoding): Make it non-static.
8640 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
8641 New functions.
8642
8643 * frame.h (struct frame): New members resx and resy.
8644 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
8645 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
8646
8647 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 8648 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
8649
8650 * lisp.h (assoc_no_quit): Extern it.
8651
8652 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
8653 Through out the file, use FONT_INFO_FROM_FACE instead of
8654 FONT_INFO_FROM_ID, use get_per_char_metric instead of
8655 rif->per_char_metric.
8656 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
8657 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
8658 (get_glyph_face_and_encoding, fill_composite_glyph_string)
8659 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8660 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
8661 nonzero, use font-backend mechanism.
8662 (get_per_char_metric): New function.
8663
8664 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
8665 (set_lface_from_font_name)
8666 (set_font_frame_param, free_realized_face)
8667 (prepare_face_for_display, clear_face_gcs)
8668 (Finternal_set_font_selection_order, realize_x_face)
8669 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
8670 font-backend mechanism.
1f45f627 8671 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
8672 (load_face_font) [USE_FONT_BACKEND]: Abort.
8673 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 8674 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
8675
8676 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
8677 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
8678 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
8679 nonzero, register all available font drivers. Call
8680 x_default_font_parameter for deciding a font.
8681 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
8682
8683 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
8684 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
8685 (x_set_glyph_string_clipping_exactly)
8686 (x_compute_glyph_string_overhangs)
8687 (x_draw_glyph_string_foreground)
8688 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
8689 (x_free_frame_resources) [USE_FONT_BACKEND]: If
8690 enable_font_backend is nonzero, use font-backend mechanism.
8691 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
8692
73acf815 86932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8694
fcb314b2 8695 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
8696 system_eol_type.
8697 (syms_of_coding): Initialize system_eol_type.
8698
fcb314b2
GM
8699 * process.c (Fset_process_coding_system): Inherit system's eol
8700 format if necessary.
aca7a3d2 8701
73acf815 87022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8703
8704 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
8705
73acf815 87062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8707
8708 * coding.c (decode_eol): Pay attention to buffer relocation in
8709 del_range_2.
8710 (decode_coding): Call decode_eol before restoring undo_list.
8711
73acf815 87122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8713
8714 * charset.c (Fdefine_charset_internal): Fix setting of
8715 emacs_mule_bytes.
8716
73acf815 87172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8718
8719 * keyboard.c (read_char): Check if C is a character or not before
8720 looking up Vkeyboard_translate_table.
8721
73acf815 87222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8723
8724 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
8725 condition to terminate the loop.
8726
73acf815 87272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8728
8729 * coding.c (produce_composition): Compare charbuf[i] instead of
8730 args[i] against 0.
8731 (Fterminal_coding_system): Use EQ to compare Lisp objects.
8732
73acf815 87332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8734
8735 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
8736 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
8737 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
8738 detect_coding.
8739 (emacs_mule_char): Handle old style (Emacs 20) component character
8740 of a composition.
4c4475a8
GM
8741 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
8742 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
8743 composition rule.
aca7a3d2
MB
8744 (decode_coding_emacs_mule): Handle invalid bytes correctly.
8745
73acf815 87462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8747
8748 * coding.c (encode_coding_ccl): Allocate destination dynamically
8749 when necessary.
8750
73acf815 87512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8752
8753 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
8754 the loop. When quitted, show a proper error message.
8755
73acf815 87562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8757
aca7a3d2
MB
8758 * xterm.c (x_set_glyph_string_clipping_exactly): Set
8759 src->clip_head and src->clip_tail temporarily instead of src->hl.
8760
8761 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
8762 character sequence.
8763 (Fccl_execute_on_string): Use ASET, not XSET.
8764
73acf815 87652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8766
1f45f627 8767 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 8768
73acf815 87692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8770
8771 * coding.c (decode_coding): Fix the condition of terminating the
8772 decoding loop.
8773
73acf815 87742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8775
8776 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 8777 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 8778
73acf815 87792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8780
8781 * charset.c (map_charset_chars): Fix for ascii-compatible charset
8782 made by a mapping table.
8783
73acf815 87842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8785
8786 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
8787 not.
8788 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
8789 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
8790
8791 * xterm.c (x_draw_composite_glyph_string_foreground): Check
8792 s->face is NULL or not.
8793
73acf815 87942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8795
8796 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
8797 (x_draw_glyph_string): Fix drawing of right_overhang and
8798 left_overhang around/on cursor.
8799
1f45f627 8800 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 8801
73acf815 88022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8803
8804 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
8805
73acf815 88062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8807
4c4475a8
GM
8808 * coding.c (Fdefine_coding_system_internal)
8809 (Fdefine_coding_system_alias): Avoid a duplicated element in
8810 Vcoding_system_alist.
aca7a3d2 8811
73acf815 88122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8813
8814 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
8815
fcb314b2 8816 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
8817 (syms_of_coding): Intern and staticpro it.
8818 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 8819 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
8820
8821 * coding.h (CODING_SYSTEM_P): If ID is not available, call
8822 Fcoding_system_p.
8823 (CHECK_CODING_SYSTEM): If ID is not available, call
8824 Fcheck_coding_system.
4c4475a8
GM
8825 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
8826 Try also Fcheck_coding_system.
aca7a3d2 8827
73acf815 88282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8829
aca7a3d2
MB
8830 * coding.c (code_conversion_restore): GCPRO arg.
8831
73acf815 88322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8833
8834 * character.c (lisp_string_width): Check multibyteness of STRING.
8835
73acf815 88362008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8837
8838 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
8839 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
8840 (decode_mac_font_name): Use decode_coding_c_string instead of
8841 decode_coding.
8842 (x_load_font): Initialize fontp->fontset to -1. Set
8843 fontp->encoding_type.
8844
73acf815 88452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8846
8847 * search.c (search_buffer): Give up BM search on case-fold-search
8848 if one of a target character has a case-equivalence of different
8849 byte length even if that target charcter is an ASCII.
1f45f627
GM
8850 (simple_search): Fix calculation of byte length of matched text.
8851 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 8852
73acf815 88532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8854
8855 * coding.c (decode_coding): Fix handling of invalid bytes.
8856
73acf815 88572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8858
8859 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
8860 Unicode characters.
8861
73acf815 88622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8863
8864 * coding.c (encode_coding_object): If a pre-write-conversion
8865 function makes a new buffer, kill it.
8866
73acf815 88672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8868
8869 * coding.c (QCascii_compatible_p): New variable.
8870 (syms_of_coding): Initialize it.
4c4475a8
GM
8871 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
8872 calling string_char.
aca7a3d2
MB
8873 (record_conversion_result): Add `default:' case.
8874 (coding_charset_list): Delete unused variable `coding_type'.
8875 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
8876 property in the plist of the coding system.
8877 (Fcoding_system_put): Check QCascii_compatible_p.
8878
73acf815 88792008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
8880
8881 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
8882 removed calculation of frame `f', as it's now used.
8883
73acf815 88842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8885
1f45f627 8886 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
8887 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
8888 (UNIDATA): New variable.
8889 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
8890 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
8891 $(RUN_TEMACS) unconditionally.
8892
73acf815 88932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8894
1f45f627 8895 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
8896 (admindir): New variable.
8897 ($(lispsource)international/charprop.el): New target.
8898
73acf815 88992008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 8900
1f45f627 8901 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
8902 (syms_of_character): Remove its initialization.
8903
73acf815 89042008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
8905
8906 * w32select.c (validate_coding_system)
8907 (setup_windows_coding_system): New functions.
8908 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
8909 setup_windows_coding_system.
8910 (setup_config, Fw32_get_clipboard_data): Use
8911 validate_coding_system.
8912 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 8913 where signals are allowed.
aca7a3d2
MB
8914
8915 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
8916 (Fcheck_coding_system): Add declarations.
8917
73acf815 89182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8919
1f45f627 8920 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 8921
73acf815 89222008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8923
8924 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
8925 string as the second argument for x_new_fontset.
8926
73acf815 89272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8928
8929 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
8930 (encode_coding_object): Use safe_call instead of call2.
8931
73acf815 89322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8933
1f45f627 8934 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
8935
8936 * Makefile.in (lisp): Include charprop.el.
8937
73acf815 89382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8939
8940 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
8941 Not sure if it's unnecessary.
8942
73acf815 89432008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8944
8945 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
8946 some possibly unnecessary fontset checking code that crashed
1f45f627 8947 when creating a new frame.
aca7a3d2 8948
73acf815 89492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8950
8951 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
8952 lookup_face.
8953
8954 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
8955
1f45f627 8956 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 8957
73acf815 89582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8959
73acf815 8960 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
8961 (coding_charset_list): New function.
8962
8963 * coding.h (coding_charset_list): Extern it.
8964
73acf815 89652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8966
8967 * fontset.c (Fset_fontset_font): Call find_font_encoding with
8968 concatenation of family and registry.
8969
73acf815 89702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8971
8972 * character.h (BYTE8_STRING): Fix typo.
8973
8974 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
8975 string to multibyte (sync to HEAD).
8976
8977 * casefiddle.c (casify_region): Handle changes in byte-length
8978 using replace_range_2 (sync to HEAD).
8979
73acf815 89802008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8981
8982 * chartab.c (map_char_table): GCPRO table and arg.
8983
73acf815 89842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8985
8986 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
8987 already at limit.
8988
73acf815 89892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8990
8991 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
8992 instead of fast_c_string_match_ignore_case.
1f45f627 8993 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 8994 fast_string_match_ignore_case instead of
1f45f627 8995 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 8996
73acf815 89972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8998
8999 * xdisp.c (get_next_display_element): In unibyte case, decide to
10d1d0af 9000 display in octal form by checking a character by
aca7a3d2
MB
9001 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
9002
1f45f627 9003 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
9004
9005 * character.c (unibyte_has_multibyte_table): New variable.
9006
9007 * character.h (unibyte_has_multibyte_table): Extern it.
9008 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
9009
73acf815 90102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9011
9012 * coding.c (encode_coding_iso_2022): Fix handling of charset
9013 annotation.
9014
73acf815 90152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9016
9017 * coding.c (setup_coding_system): If coding_system is nil, use
9018 Qundecided.
9019 (Fterminal_coding_system): Return nil if terminal coding system is
9020 `undecided'.
9021 (syms_of_coding): Define coding-system `undecided' here. Setup
9022 terminal_coding as `undecided'.
9023
73acf815 90242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9025
9026 * xdisp.c (message_dolog, set_message_1): Call
9027 unibyte_char_to_multibyte with arg type int.
9028
aca7a3d2
MB
9029 * lread.c (read1): Fix reading of a char-table.
9030
10d1d0af 9031 * print.c (print_object): Include sub char-table in circularities
aca7a3d2
MB
9032 detection.
9033
73acf815 90342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9035
10d1d0af
JB
9036 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
9037 Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 9038
73acf815 90392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9040
9041 * fileio.c (report_file_error): Make a unibyte string from
9042 strerror (errorno).
9043 (Fsubstitute_in_file_name): Fix the arg to
9044 unibyte_char_to_multibyte. It is evaluated twice.
9045
73acf815 90462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9047
9048 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
9049
73acf815 90502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9051
9052 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
9053 BOM is not found.
4c4475a8
GM
9054 (detect_coding, detect_coding_system): Optimization for ISO-2022
9055 when no 8-bit data is found.
aca7a3d2 9056
73acf815 90572008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9058
9059 * w32fns.c (x_to_w32_font): Update to use new coding struct.
9060
73acf815 90612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9062
4c4475a8
GM
9063 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
9064 CHARS.
aca7a3d2 9065
73acf815 90662008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
9067
9068 * macterm.c (mac_encode_char): Add charset argument and update
9069 to use encoding_type.
2a2e8de7 9070 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
9071 switch to pure fontset.
9072 (decode_mac_font_name): Temporarily remove decoding.
9073 (x_font_name_to_mac_font_name): Temporarily remove encoding.
9074 (x_load_font): Temporarily remove encoding.
aca7a3d2 9075
73acf815 90762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9077
9078 * xfaces.c (Fface_font): If frame is not on a window system,
9079 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
9080 refer to face->font.
9081 (split_font_name_into_vector, build_font_name_from_vector)
9082 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
10d1d0af 9083 when HAVE_WINDOW_SYSTEM is defined.
aca7a3d2 9084
73acf815 90852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9086
9087 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
9088 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 9089 cmp->glyph_len is zero.
aca7a3d2 9090
1f45f627 9091 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
9092 (Ffontset_info): Make it backward compatible. New arg ALL.
9093
73acf815 90942008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
9095
9096 * process.c (read_process_output): Grow decoding_buf when needed;
9097 this could cause a crash in allocate_string and compact_small_strings.
9098
73acf815 90992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9100
1f45f627 9101 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 9102
73acf815 91032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9104
9105 * coding.c (setup_coding_system): Set coding->common_flags
9106 correctly for raw-text.
9107 (consume_chars): On encoding unibyte text by raw-text, don't check
9108 multibyte form.
1f45f627 9109 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
9110
9111 * fileio.c (e_write): Short cut for the case of no encoding.
9112
73acf815 91132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9114
4c4475a8
GM
9115 * coding.c (detect_coding, detect_coding_system): Delete unused
9116 variables.
aca7a3d2 9117
73acf815 91182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9119
9120 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
9121 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
9122
73acf815 91232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9124
9125 * coding.c (Ffind_coding_systems_region_internal): Include
9126 raw-text and no-conversion in the result.
9127
73acf815 91282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9129
1f45f627 9130 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
9131 (load_font_get_repertory): Delete unnecessary check of ENCODING of
9132 FONT_DEF.
9133 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 9134 (set_fontset_font): Change argument.
aca7a3d2
MB
9135 (Fset_fontset_font): Fix for the case that TARGET is a script
9136 name and charset name.
9137 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
9138
73acf815 91392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9140
1f45f627
GM
9141 * fontset.c (fontset_font): Rename from fontset_face. Change return
9142 value.
4c4475a8
GM
9143 (face_suitable_for_char_p, face_for_char): Adjust for the change
9144 of fontset_font.
aca7a3d2
MB
9145 (make_fontset_for_ascii_face): Fix setting of the fontset element
9146 for ASCII.
9147 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
9148 to get a font name.
1f45f627 9149 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 9150
10d1d0af 9151 * coding.c (emacs_mule_char): Check invalid code more rigidly.
aca7a3d2
MB
9152
9153 * character.h (LEADING_CODE_LATIN_1_MIN)
9154 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
9155
73acf815 91562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9157
fcb314b2 9158 * editfns.c (check_translation): New function.
aca7a3d2
MB
9159 (Ftranslate_region_internal): Handle M:N mapping.
9160
73acf815 91612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9162
9163 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
9164
73acf815 91652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9166
9167 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
9168 goto invalid_code.
9169 (decode_coding_iso_2022): Fix handling of invalid designation.
9170
9171 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
9172 after calling code_conversion_save.
9173
73acf815 91742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9175
9176 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
9177
9178 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
9179
9180 * fontset.c: Include "intervals.h".
9181 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
9182 (free_face_fontset, new_fontset_from_font_name): Fix
9183 Lisp_Object/int mixup.
aca7a3d2
MB
9184
9185 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
9186
9187 * coding.c: Add many prototypes for static functions.
9188 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 9189 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
9190 (Funencodable_char_position, Fcheck_coding_systems_region): Call
9191 get_translation_table with max_lookup NULL.
aca7a3d2 9192
73acf815 91932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9194
9195 * coding.c (get_translation_table): Declare it as Lisp_Object.
9196 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
9197 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
9198 instead of CHAR_TABLE_REF.
aca7a3d2 9199
73acf815 92002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9201
1f45f627 9202 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
9203 annotation data format.
9204 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 9205 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 9206 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 9207 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
9208 (decode_coding_ccl, decode_coding_charset): Pay attention to
9209 coding->charbuf_used.
aca7a3d2
MB
9210 (get_translation): New function.
9211 (produce_chars): New arguments translation_table and last_block.
9212 Translate characters here. Return number of carryover chars.
1f45f627
GM
9213 Change caller.
9214 (produce_composition): New argument pos. Change caller.
9215 Adjust for the change of annotation data format.
aca7a3d2
MB
9216 (produce_charset, produce_annotation): Likewise.
9217 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
9218 (consume_chars): New arg translation_table. Change caller.
9219 (translate_chars): Delete.
9220 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 9221
73acf815 92222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9223
9224 * search.c (simple_search): Fix setting this_pos_byte in backward
9225 search.
9226
9227 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
9228 byte sequence.
9229 (detect_coding_ccl): Fix setting of the variable valids.
9230
73acf815 92312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9232
9233 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
9234
9235 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
9236
1f45f627 9237 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
9238 Ftranslate_region. Accept a char-table in TABLE.
9239 (syms_of_editfns): Defsubr Stranslate_region_internal.
9240
9241 * xfaces.c (set_lface_from_font_name): If a font is specified for
9242 a frame, generate a fontset from the font.
9243 (build_scalable_font_name): If the scalable font is requested for
9244 a specific size, don't change that size.
9245 (try_font_list): Try a scalable font also in the case that a
1f45f627 9246 pattern string is specified.
aca7a3d2 9247
73acf815 92482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9249
9250 * xfaces.c (Fface_font): New optional arg CHARACTER.
9251
73acf815 92522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9253
9254 * charset.h (CHARSET_OFFSET): New macro.
9255
73acf815 92562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9257
9258 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
9259
9260 * fontset.c (fontset_face): Handle the case that repertory is a
9261 char-table.
9262 (find_font_encoding): Return nil for unknown encoding.
9263 (Fset_fontset_font): Ignore a font of unknown encoding.
9264
73acf815 92652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9266
1f45f627 9267 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
9268
9269 * fontset.c (fontset_face): Handle fallback fonts correctly.
9270 (Ffontset_info): Return infomation about fallback fonts.
9271
73acf815 92722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9273
9274 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 9275 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
9276 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
9277 the case that it is nil.
9278 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 9279 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
9280
9281 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
9282 subset or superset.
9283
73acf815 92842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9285
9286 * emacs.c (main): Call init_charset after syms_of_XXX.
9287
1f45f627 9288 * charset.c (Vcharset_map_directory): Delete.
1f204af3 9289 (Vcharset_map_path): New variable.
aca7a3d2
MB
9290 (load_charset_map_from_file): Use Vcharset_map_path instead.
9291 (init_charset): Initialize Vcharset_map_path.
9292 (syms_of_charset): Delete declaration of "charset-map-directory",
9293 add declaration of "charset-map-path".
9294
73acf815 92952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9296
4c4475a8
GM
9297 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
9298 ASCII only string.
aca7a3d2
MB
9299
9300 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
9301
9302 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 9303 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 9304
73acf815 93052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9306
9307 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
9308
9309 * coding.c (QCmnemonic, QCdefalut_char)
9310 (QCdecode_translation_table, QCencode_translation_table)
9311 (QCpost_read_conversion, QCpre_write_conversion): New variables.
9312 (get_translation_table): Return a list of translation tables if
9313 necessary.
9314 (decode_coding): Call get_translation_table with ENCODEP 0.
9315 (char_encodable_p): If translation_table is non-nil, always call
9316 translate_char.
9317 (Fdefine_coding_system_internal): Accept list of translation
9318 tables as :encode-translation-table and :decode-translation-table.
9319 (Fcoding_system_put): New function.
9320 (syms_of_coding): Declare new symbols. Defsubr
9321 Scoding_system_put.
4c4475a8
GM
9322 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
9323 typically JISX0212.
aca7a3d2
MB
9324
9325 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
9326 when the charset is superset type.
9327
9328 * character.c (translate_char): Accept list of translation tables.
9329
73acf815 93302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9331
1f45f627 9332 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
9333 (CODING_ATTR_TRANS_TBL): New macro.
9334
9335 * coding.c (get_translation_table): New function.
9336 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
9337 (decode_coding, encode_coding): Utilize get_translation_table.
9338 (char_encodable_p, Funencodable_char_position): Translate char if
9339 necessary.
9340 (Ffind_coding_systems_region_internal)
9341 (Fcheck_coding_systems_region): Setup translation table for encode
9342 in a coding system attribute vector in advance.
aca7a3d2
MB
9343 (Fdefine_coding_system_internal): Allow a symbol as translation
9344 table. For shift-jis type coding system, allow 4th charset.
9345
73acf815 93462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9347
9348 * coding.c (decode_coding_sjis): Check the first byte rigidly.
9349
9350 * xdisp.c (get_next_display_element): Pass -1 as POS to
9351 FACE_FOR_CHAR if displaying a C-string.
9352
73acf815 93532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9354
9355 * composite.c (get_composition_id): Handle xoff and yoff in a
9356 composition rule.
9357
9358 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
9359 (struct composition): New member lbearing and rbearing.
9360
9361 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
9362 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 9363 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
9364
9365 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
9366 composition glyph.
9367
73acf815 93682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9369
9370 * print.c: Include charset.h.
9371 (Vprint_charset_text_property): New variable.
9372 (Qdefault): Extern it.
9373 (PRINT_STRING_NON_CHARSET_FOUND)
9374 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
9375 (print_check_string_result): New variable.
9376 (print_check_string_charset_prop): New function.
9377 (print_prune_charset_plist): New variable.
9378 (print_prune_string_charset): New function.
9379 (print_object): Call print_prune_string_charset if
9380 Vprint_charset_text_property is not t.
9381 (print_interval): Print nothing if itnerval->plist is nil.
9382 (syms_of_print): Declare Vprint_charset_text_property as a lisp
9383 variable. Init and staticpro print_prune_charset_plist.
9384
73acf815 93852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9386
9387 * fontset.c (new_fontset_from_font_name): Use the specified font
9388 for all characters in the new fontset.
9389
9390 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
9391 OBJECT args.
9392
9393 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
9394 OBJECT args for composition too.
9395
9396 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
9397 OBJECT args.
9398
73acf815 93992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9400
9401 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
9402
1f45f627 9403 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 9404 FONT_DEF format.
1f45f627 9405 (fontset_face): New arg id. Change caller.
aca7a3d2 9406 (face_for_char): New args pos and object.
1f204af3 9407 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
9408 (fs_query_fontset): Check NAME by Fassoc too.
9409 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 9410 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 9411
1f45f627 9412 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 9413
4c4475a8
GM
9414 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
9415 (append_space, extend_face_to_end_of_line)
9416 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
9417 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
9418
9419 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
9420 POS and OBJECT args.
9421
9422 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
9423 POS and OBJECT args.
9424
73acf815 94252008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9426
9427 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
9428 of GlobalAlloc'ed memory.
9429
73acf815 94302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9431
9432 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
9433
9434 * charset.h (charset_table_used): Delete extern.
9435
9436 * charset.c (charset_table_used): Make it static.
9437 (map_charset_chars): Fix args to c_function with.
9438
9439 * chartab.c (map_sub_char_table_for_charset): Fix args to
9440 c_function with.
9441
9442 * coding.h (enum coding_result_code): Delete
9443 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
9444
9445 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 9446 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
9447 (Vlast_code_conversion_error): New variables.
9448 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
9449 (ONE_MORE_BYTE): Record error if any instead of signaling an
9450 error. If non-ASCII multibyte char is found, return the negative
9451 value of the code. All callers changed to check it.
9452 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
9453 (record_conversion_result): New function. Change all codes setting
9454 coding->result to call this function.
4c4475a8
GM
9455 (detect_coding_utf_8, decode_coding_utf_8)
9456 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
9457 Don't use the local variable incomplete.
aca7a3d2 9458 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
9459 (decode_coding): Fix of flushing out unprocessed data.
9460 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 9461 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
9462
9463 * fontset.c (set_fontset_font): Fix args.
9464
9465 * lisp.h (CHARACTERBITS): Define as 22.
9466
9467 * process.c (send_process): Be sure to set coding->src_multibyte.
9468
9469 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
9470
73acf815 94712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9472
9473 * xdisp.c (handle_auto_composed_prop): Give limit to
9474 Fnext_single_char_property_change.
9475
73acf815 94762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9477
424c157f 9478 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 9479 table weak.
aca7a3d2
MB
9480
9481 * fontset.c (Fset_fontset_font): Fix docstring.
9482
9483 * lisp.h (detect_coding_system): Adjust prototype.
9484
9485 * fileio.c (kill_workbuf_unwind): Delete this function.
9486 (Finsert_file_contents): Adjust the call of detect_coding_system.
10d1d0af 9487 Get conversion_buffer by code_conversion_save. Use the macro
aca7a3d2
MB
9488 CODING_MAY_REQUIRE_DECODING. After decoding, update
9489 coding_system.
9490
9491 * coding.h (make_conversion_work_buffer): Delete extern.
9492 (code_conversion_save): Extern it.
9493
9494 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 9495 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
9496 (decode_coding_utf_8): Don't do eol converion.
9497 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 9498 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
9499 (decode_coding_emacs_mule, decode_coding_iso_2022)
9500 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9501 Don't do eol converion.
aca7a3d2
MB
9502 (adjust_coding_eol_type): Return a new coding system.
9503 (detect_coding): Don't detect eol. Fix for utf-16 detection.
9504 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
9505 each change.
10d1d0af 9506 (decode_coding): Pay attention to undo_list. Do eol conversion for
aca7a3d2
MB
9507 all types of coding-systems (if necessary).
9508 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 9509 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
9510 Vcode_conversion_reused_work_buf.
9511 (Vcode_conversion_workbuf_name): New variable.
9512 (reused_workbuf_in_use): New variable.
9513 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 9514 (code_conversion_restore): Change argument to cons.
1f45f627
GM
9515 (code_conversion_save): Delete the argument BUFFER. Change callers.
9516 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
9517 Fix for utf-16 detection.
9518 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 9519 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
9520 reused_workbuf_in_use.
9521
73acf815 95222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9523
9524 * keymap.c (store_in_keymap): Pay attention to the case that idx
9525 is a cons specifying a character range.
9526
73acf815 95272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9528
9529 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
9530 HANDLED_RECOMPUTE_PROPS.
9531
9532 * coding.c (Fdefine_coding_system_internal): Fix checking of
9533 ascii compatibility.
9534
73acf815 95352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9536
1f45f627 9537 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
9538 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
9539
9540 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
9541 Resync charset_list to Vemacs_mule_charset_list.
9542
9543 * keymap.c (store_in_keymap): Pay attention to the case that idx
9544 is a cons specifying a character range.
9545
73acf815 95462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9547
9548 * composite.c (update_compositions): Bind inhibit-read-only, etc
9549 to t before calling remove-list-of-text-properties.
9550
9551 * print.c (print_object): Always print ASCII chars as is.
9552
73acf815 95532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9554
1f45f627 9555 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 9556
4c4475a8
GM
9557 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
9558 is a char table.
aca7a3d2 9559
73acf815 95602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9561
1f45f627 9562 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 9563
73acf815 95642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9565
9566 * xfaces.c (set_lface_from_font_name): Fix for the case that
9567 FONTNAME is not fontset name.
9568
73acf815 95692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9570
9571 * fns.c (base64_encode_1): Fix previous change.
9572
73acf815 95732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9574
9575 * fontset.c (set_fontset_font): New function.
9576 (Fset_fontset_font): If a font is specified for a charset, use
9577 map_charset_chars to store the font spec in a fontset.
9578
73acf815 95792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9580
1f204af3 9581 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
9582 (make_fontset): Don't create a fallback fontset here.
9583 (free_face_fontset): Free a fallback fontset (if any) too.
9584 (n_auto_fontsets): Delete this variable.
9585 (auto_fontset_alist): New variable.
9586 (new_fontset_from_font_name): Check auto_fontset_alist.
9587 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
9588 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
9589 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
9590 Defsubr Sfontset_list_all.
9591
73acf815 95922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9593
9594 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
9595
73acf815 95962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9597
9598 * fontset.c (Fnew_fontset): Check NAME more rigidly.
9599
73acf815 96002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9601
9602 * editfns.c (Fgoto_char): Fix docstring.
9603
73acf815 96042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9605
9606 * insdel.c (insert_from_gap): Adjust intervals correctly.
9607
73acf815 96082008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9609
9610 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
9611 (pfnGetFontUnicodeRanges): New dynamically loaded function.
9612 (w32_initialize): Try to load it.
9613 (x_get_font_repertory): Use it if available.
9614 (w32_encode_char): Add shortcut for unicode output.
9615
9616 * w32fns.c (w32_load_system_font): Default charset to -1.
9617 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 9618 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
9619 or wildcard charsets.
9620 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
9621 (w32_codepage_for_font): Return CP_UNICODE for unicode.
9622 (w32_to_x_font): Match charset to real charset.
9623 (enum_font_cb2): Always list unicode versions.
9624
9625 * makefile.w32-in (temacs): Increase EMHEAP.
9626
73acf815 96272008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9628
9629 * w32term.c (w32_encode_char): New charset parameter.
9630 font_info.encoding becomes encoding_type.
1f45f627 9631 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
9632 (x_new_font): Return quickly if font already set.
9633 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
9634 Use new fs_query_fontset. Try new_fontset_from_font_name.
9635 Use fontset_name for return value.
aca7a3d2
MB
9636
9637 * w32term.h: Declare x_get_font_repertory.
9638
9639 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 9640 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
9641 of encode_coding.
9642 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
9643 decode_coding.
9644
9645 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
9646 of x_new_fontset.
9647 (w32_load_system_font): Initialize charset as unicode.
9648 font_info.encoding becomes encoding_type.
1f45f627
GM
9649 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
9650 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
9651 (syms_of_w32fns): Set get_font_repertory_func.
9652
1f45f627 9653 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 9654 from term.c.
1f45f627 9655 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
9656 encode_coding_object in place of encode_coding.
9657
9658 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
9659 encoding becomes encoding_type.
9660
9661 * term.c (terminal_encode_buffer): Make externally visible.
9662
9663 * makefile.w32-in: Add character.h dependancies.
9664 (character.o, chartab.o): New targets.
9665
73acf815 96662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9667
9668 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 9669 CODING_ID_EOL_TYPE.
aca7a3d2 9670
73acf815 96712008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
9672
9673 * coding.c (produce_chars): Revert last change.
9674
73acf815 96752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9676
9677 * charset.h (charset_unicode): Extern it.
9678
9679 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 9680 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 9681 arg MULTIBYTE.
1f45f627 9682 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
9683 change of find_charsets_in_text.
9684 (Fsplit_char): Fix doc. Never return unknown.
9685
10d1d0af 9686 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
aca7a3d2
MB
9687
9688 * coding.c (Fdefine_coding_system_alias): Update
9689 Vcoding_system_list.
9690
9691 * fontset.c (load_font_get_repertory): Pay attention to the case
9692 that ENCODING of a font is specified by a char-table.
9693
9694 * xterm.c (x_get_font_repertory): Handle the case that the
9695 encoding of font is other than Unicode.
9696
73acf815 96972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9698
9699 * term.c (encode_terminal_code): Don't handle glyph-table. Check
9700 if a character is encodable by the terminal coding system. If
9701 not, produces proper number of `?'s. Update
9702 terminal_encode_buffer and terminal_encode_buf_size if necessary.
9703 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
9704
73acf815 97052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9706
9707 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
9708 variables.
1f45f627 9709 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
9710 characters at once. Store the result of encoding in
9711 terminal_encode_buffer.
4c4475a8
GM
9712 (write_glyphs, insert_glyphs): Adjust for the change of
9713 encode_terminal_code.
aca7a3d2
MB
9714 (term_init): Initialize terminal_encode_buffer and
9715 terminal_encode_buf_size.
9716
9717 * coding.c (consume_chars): If coding->src_object is nil, don't
9718 check annotation.
9719
73acf815 97202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9721
9722 * character.c (char_string): Use ASCII_CHAR_P instead of
9723 SINGLE_BYTE_CHAR_P.
9724
73acf815 97252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9726
9727 * xdisp.c (handle_auto_composed_prop): Check if the last
9728 characters of auto-composed region is newly composed with the
9729 following characters.
9730 (handle_composition_prop): Fix checking of point being inside
9731 composition.
9732
73acf815 97332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9734
9735 * fns.c (concat): Don't change multibyteness of the result by
9736 concatenating an 8-bit character.
9737
9738 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
9739 multibyteness of the result when newelt is an 8-bit character.
9740
73acf815 97412008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9742
9743 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
9744 EMACS_INT.
9745
9746 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
9747
9748 * xfaces.c (face_numeric_value): Declare dim size_t.
9749 (Finternal_lisp_face_equal_p): Remove unused f.
9750
9751 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
9752 (MATRIX_ROW): Remove unused vars.
9753 (draw_glyphs, x_insert_glyphs, fast_find_position)
9754 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
9755 byte/char counts.
9756
9757 * regex.c (regex_compile): Remove unused var.
9758
9759 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9760
9761 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
9762 (Faccessible_keymaps, where_is_internal): Remove unused vars.
9763
9764 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
9765
9766 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
9767
9768 * fileio.c (Fwrite_region): Remove unused var.
9769
9770 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
9771 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
9772
9773 * composite.c (Fremove_list_of_text_properties): Declare.
9774
1f45f627
GM
9775 * coding.c (inhibit_pre_post_conversion): Remove (unused).
9776 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
9777 (coding_inherit_eol_type): Remove unused attrs.
9778 (detect_coding): Cast arg of detect_eol.
9779
9780 * charset.c (syms_of_charset): Remove unused var p.
9781 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
9782 byte/char counts.
9783
9784 * casetab.c (set_case_table): Remove unused var.
9785
9786 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 9787 unused vars.
aca7a3d2 9788
73acf815 97892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9790
9791 * xterm.c (x_bitmap_mask): Declare.
9792
73acf815 97932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9794
9795 * xterm.c (x_term_init): Fix type error.
9796
9797 * lisp.h: Add Funibyte_char_to_multibyte.
9798
9799 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
9800 (Fset_coding_system_priority): Doc fix.
9801
aca7a3d2
MB
9802 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
9803
9804 * indent.c (check_composition): Make start and end EMACS_INT.
9805
9806 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
9807
9808 * xdisp.c (handle_composition_prop, check_point_in_composition):
9809 Make buffer positions EMACS_INT.
9810
9811 * composite.c (find_composition, run_composition_function)
9812 (update_compositions, Ffind_composition_internal): Make buffer
9813 positions EMACS_INT.
9814
9815 * composite.h (find_composition, update_compositions): Make
9816 position args EMACS_INT.
9817
1f45f627 9818 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
9819
9820 * intervals.c (get_property_and_range):
9821 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
9822
9823 * unexalpha.c: Don't include varargs.h.
9824
73acf815 98252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9826
9827 * coding.h (ENCODE_UTF_8): New.
9828
9829 * Makefile.in (gtkutil.o): Depend on coding.h.
9830
9831 * coding.c (Fset_coding_system_priority): Doc fix.
9832
73acf815 98332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9834
9835 * fileio.c (Finsert_file_contents): Call setup_coding_system in
9836 the case of auto saving.
9837
73acf815 98382008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 9839
4c4475a8
GM
9840 * chartab.c (map_char_table, map_char_table_for_charset): Protect
9841 `range' from GC.
aca7a3d2 9842
73acf815 98432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9844
9845 * coding.c (decode_coding_sjis): Check bytes more rigidly.
9846
73acf815 98472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9848
1f45f627 9849 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
9850 (Fwrite_region): Set Vlast_coding_system_used to the return value
9851 of choose_write_coding_system.
9852
73acf815 98532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9854
9855 * charset.c (Fset_charset_priority): Pay attention to duplicated
9856 arguments.
9857
9858 * coding.c (QCcategory): New variable.
9859 (syms_of_coding): Defsym it. Set all elements of
9860 Vcoding_category_table and their symbol values.
9861 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
9862 coding-category-XXX, and coding-category-list.
9863 (Fdefine_coding_system_internal): Add category in the plist.
9864
73acf815 98652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9866
9867 * callproc.c (Fcall_process): Handle carryover correctly.
9868
1f45f627 9869 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
9870 (raw_text_coding_system): Check NILP (coding_system).
9871 (coding_inherit_eol_type): Check NILP (coding_system) and
9872 NILP (parent).
9873 (consume_chars): Fix for the case of raw-text.
9874
9875 * process.c (read_process_output): Handle carryover correctly.
9876
73acf815 98772008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9878
9879 * regex.c (re_search_2): Fix last change.
9880
73acf815 98812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9882
9883 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
9884 target_multibyte. Even in a unibyte case, return a converted
9885 multibyte char.
9886 (GET_CHAR_AFTER): New macro.
9887 (PATFETCH): Translate via multibyte char.
9888 (HANDLE_UNIBYTE_RANGE): Delete this macro.
9889 (SETUP_MULTIBYTE_RANGE): New macro.
9890 (regex_compile): Setup compiled code so that its multibyteness
9891 matches that of a target. Fix the handling of "[X-YZ]" using
9892 SETUP_MULTIBYTE_RANGE.
9893 (analyse_first) <charset>: For filling fastmap for all multibyte
9894 characters, don't check by BASE_LEADING_CODE_P.
9895 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
9896 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 9897 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
9898 (TARGET_CHAR_AND_LENGTH): Delete this macro.
9899 (TRANSLATE_VIA_MULTIBYTE): New macro.
9900 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
9901 It is the same as RE_MULTIBYTE_P (bufp) now.
9902 <exactn>: Translate via multibyte.
9903 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
9904 translate it.
9905 <charset, charset_not>: Fetch a character by
9906 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
9907 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
9908 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
9909 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
9910 by GET_CHAR_AFTER.
c5ad7a3d 9911 (bcmp_translate): Likewise.
aca7a3d2
MB
9912
9913 * search.c (compile_pattern): Check the member target_multibyte,
9914 not the member multibyte of buf.
9915
9916 * lread.c (read1): While reading a string, set force_singlebyte
9917 and force_multibyte correctly.
9918
4c4475a8
GM
9919 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
9920 up of unibyte_to_multibyte_table.
aca7a3d2 9921
73acf815 99222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9923
9924 * coding.c (setup_coding_system): If coding has
9925 post-read-conversion or pre-write-conversion, set
9926 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
9927 respectively.
9928 (decode_coding_gap): Run post-read-conversion if any.
9929
9930 * fileio.c (Finsert_file_contents): Even if we read into a
9931 unibyte buffer, check if we must decode the result or not.
9932
73acf815 99332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9934
9935 * coding.c (make_conversion_work_buffer): Change the work buffer
9936 name to the same one as that of Emacs 21.
9937
73acf815 99382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9939
1f45f627 9940 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
9941 (code_conversion_restore): Don't extern it.
9942
9943 * coding.c (detected_mask): Delete unused variable.
9944 (decode_coding_iso_2022): Pay attention to the byte sequence of
9945 CTEXT extended segment, and retain those bytes as is.
9946 (decode_coding_ccl): Delete unused variable `valids'.
9947 (setup_coding_system): Delete unused variable `category'.
9948 (consume_chars): Delete unused variable `category'. Make it work
9949 for non-multibyte case.
1f45f627 9950 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
9951 (saved_coding): Delete unused variable.
9952 (code_conversion_restore): Don't check saved_coding->destination.
9953 (code_conversion_save): New function.
9954 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
9955 instead of record_unwind_protect.
1f45f627 9956 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 9957 (detect_coding_system): Delete unused variable `mask'.
10d1d0af 9958 (Fdefine_coding_system_internal): Delete unused variable id.
aca7a3d2
MB
9959
9960 * fileio.c (kill_workbuf_unwind): New function.
9961 (Finsert_file_contents): On replacing, call
9962 make_conversion_work_buffer with correct args, and call
9963 record_unwind_protect with the first arg kill_workbuf_unwind.
9964
9965 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
9966
73acf815 99672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9968
1f45f627 9969 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
9970 (fontset_add): Fix for the case that TO is less than TO1.
9971 (Ffontset_info): Don't use fallback fontset on checking the
9972 default fontset.
9973 (dump_fontset): New function for debugging.
9974
9975 * coding.c (Fdefine_coding_system_internal): Fix for the case that
9976 coding_type is Qcharset.
9977
73acf815 99782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9979
9980 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
9981 (map_char_table): Don't inherit the value from the parent on
1f45f627 9982 initializing VAL. Adjust for the above change.
aca7a3d2 9983
73acf815 99842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9985
9986 * coding.c (Qsignature, Qendian): Delete these variables.
9987 (syms_of_coding): Don't initialize them.
9988 (CATEGORY_MASK_UTF_16_AUTO): New macro.
9989 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
9990 detect_info->found.
9991 (decode_coding_utf_16): Don't detect BOM here.
9992 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
9993 is NOT utf_16_without_bom.
9994 (setup_coding_system): For a coding system of type utf-16, check
9995 if the attribute :endian is Qbig or not (not nil or not), and set
9996 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
9997 (detect_coding): If coding type is utf-16 and BOM detection is
9998 required, detect it.
9999 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 10000 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 10001
73acf815 100022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10003
10004 * coding.c (coding_set_source): Fix for the case that the current
10005 buffer is different from coding->src_object.
10006 (decode_coding_object): Don't use the conversion work buffer if
10007 DST_OBJECT is a buffer.
10008
73acf815 100092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10010
10011 * lread.c (read_emacs_mule_char) [len==2]: Index
10012 emacs_mule_charset correctly.
10013
73acf815 100142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10015
10016 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
10017 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 10018 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
10019 treated specially.)
10020 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
10021 (detected_mask): Remove Big5 bits.
10022
73acf815 100232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10024
10025 The following changes are to make the font rescaling facility
10026 compatible with Emacs 21.
10027
1f45f627 10028 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
10029 Vface_resizing_fonts.
10030 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 10031 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
10032 (split_font_name): Set font->rescale_ratio.
10033 (better_font_p): Pay attention to font->rescale_ratio.
10034 (build_scalable_font_name): Likewise. Change RESX, and RESY
10035 fields.
1f45f627 10036 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 10037
73acf815 100382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10039
10040 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
10041 (Qutf_16_le): Remove these variables.
10042 (syms_of_coding): Don't DEFSYM them.
10043 (decode_coding_utf_16): Fix handling of BOM.
10044 (encode_coding_utf_16): Fix handling of BOM.
10045
73acf815 100462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10047
10048 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 10049 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 10050
73acf815 100512008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10052
10053 * coding.c (Fcheck_coding_systems_region): Fix type errors.
10054
73acf815 100552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10056
10057 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10058 and fix C types.
10059
73acf815 100602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10061
10062 * xdisp.c (SKIP_GLYPHS): New macro.
10063 (set_cursor_from_row): Pay attention to string display properties.
10064
10065 * category.c (copy_category_entry): Fix for the case that RANGE
10066 is an integer.
10067
10068 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
10069
1f45f627 10070 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 10071
73acf815 100722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10073
10074 * charset.c (Fcharset_id_internal): New function.
10075 (syms_of_charset): Defsubr it.
10076
10077 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
10078 with the last arg charset_list acquired from coding.
10079 (Fdefine_coding_system_internal): For ccl-based coding system, fix
10080 the attribute coding_attr_ccl_valids.
10081
10082 * coding.h (enum define_coding_ccl_arg_index): Set the first
10083 member coding_arg_ccl_decoder to coding_arg_max.
10084
1f45f627 10085 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
10086
10087 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
10088 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
10089 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
10090 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
10091 last arg Qnil.
aca7a3d2 10092
73acf815 100932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10094
10095 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
10096 call encode_char.
10097
1f45f627 10098 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 10099
73acf815 101002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10101
1f45f627 10102 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 10103
73acf815 101042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10105
10106 * dispextern.h (check_face_attributes, generate_ascii_font_name)
10107 (font_name_registry): Don't extern them.
1f45f627 10108 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
10109
10110 * fontset.h (Qfontset): Don't extern it.
10111 (new_fontset_from_font_name): Extern it.
10112
10113 * fontset.c: Give 8 extra slots to fontset objects.
10114 (Qfontset_info): New variable.
10115 (syms_of_fontset): Defsym it.
10116 (FONTSET_FALLBACK): New macro.
10117 (fontset_face): Try also the default fontset.
1f45f627
GM
10118 (make_fontset): Realize a fallback fontset from the default fontset.
10119 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
10120 using split_font_name_into_vector and build_font_name_from_vector.
10121 (Fset_fontset_font): Access the elements of font_spec by enum
10122 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
10123 name by using split_font_name_into_vector.
10124 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
10125 generate a proper font name from the fontset name. Update
10126 Vfontset_alias_alist.
10127 (n_auto_fontsets): New variable.
10128 (new_fontset_from_font_name): New function.
10129 (Ffont_info): Store the information about fonts generated from the
1f45f627 10130 default fontset in the first extra slot of the returned char-table.
aca7a3d2 10131
1f45f627
GM
10132 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
10133 (font_name_registry): Delete function.
aca7a3d2
MB
10134 (split_font_name_into_vector): New function.
10135 (build_font_name_from_vector): New function.
1f45f627 10136 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
10137 (choose_face_font): If we are choosing an ASCII font, and ATTRS
10138 specifies an explicit font name, return the name as is. Make a
10139 list of registy names.
10140
1f45f627 10141 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
10142 of x_new_fontset.
10143 (Fx_create_frame): Don't call x_new_fontset here. Just use
10144 x_list_fonts to check the existence of fonts.
10145
1f45f627 10146 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
10147
10148 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
10149 string. Use new_fontset_from_font_name to create a fontset from a
10150 font name.
10151
1c8658b9
GM
101522008-02-01 Kenichi Handa <handa@m17n.org>
10153
10154 * syntax.c (Vfind_word_boundary_function_table): New name for
10155 Vnext_word_boundary_function_table.
10156 (find-word-boundary-function-table): New name for
10157 next-word-boundary-function-table.
10158
73acf815 101592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10160
10161 * Makefile.in: Fix some dependencies.
10162
10163 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
10164 set it to nil before returning.
10165
10166 * composite.c (update_compositions): Fix type error.
10167
10168 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
10169
73acf815 101702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10171
10172 * xterm.c (x_new_font): Optimize for the case that the font is
10173 already set for the frame.
10174
73acf815 101752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10176
10177 * chartab.c (char_table_ascii): Check if the char table contents
10178 is sub-char-table or not.
4c4475a8
GM
10179 (char_table_set, char_table_set_range): Fix argument to
10180 char_table_ascii.
aca7a3d2
MB
10181
10182 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
10183 (detect_coding_utf_8, detect_coding_utf_16)
10184 (detect_coding_emacs_mule, detect_coding_iso_2022)
10185 (detect_coding_sjis, detect_coding_big5)
10186 (detect_coding_ccl, detect_coding_charset): Change argument MASK
10187 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 10188 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
10189 (MAX_ANNOTATION_LENGTH): New macro.
10190 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
10191 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
10192 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 10193 (ADD_CHARSET_DATA): New macro.
1f45f627 10194 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
10195 (decode_coding_emacs_mule, decode_coding_iso_2022)
10196 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
10197 Produce charset annotation data in coding->charbuf.
10198 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
10199 to charset annotation data in coding->charbuf.
10200 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
10201 coding->common_flags if the coding system is iso-2022 based and
10202 uses designation.
1f45f627 10203 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
10204 (produce_charset): New function.
10205 (produce_annotation): Handle charset annotation.
10206 (handle_composition_annotation, handle_charset_annotation): New
10207 functions.
10208 (consume_chars): Handle charset annotation. Utilize the above two
10209 functions.
10210 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
10211 buffer, get the deleted text as a string and set
10212 coding->src_object to that string.
10213 (detect_coding, detect_coding_system): Use the new struct
10214 coding_detection_info.
10215
10216 * coding.h (struct coding_detection_info): New structure.
1f45f627 10217 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
10218 (CODING_ANNOTATE_CHARSET_MASK): New macro.
10219
73acf815 102202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10221
10222 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
10223
73acf815 102242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10225
1f45f627 10226 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
10227 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
10228 to new local and nullify apropos_accumulate before returning.
10229 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
10230
73acf815 102312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10232
10233 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
10234 correctly.
10235
73acf815 102362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10237
10238 * fns.c (Flanginfo): Call synchronize_system_time_locale.
10239
73acf815 102402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10241
10242 The following changes are to make character composition happen
10243 automatically on displaying.
10244
2a2e8de7 10245 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 10246
1f45f627
GM
10247 * composite.h (Qauto_composed, Vauto_composition_function)
10248 (Qauto_composition_function): Extern them.
aca7a3d2 10249
1f45f627
GM
10250 * composite.c (Vcomposition_function_table)
10251 (Qcomposition_function_table): Delete variables.
10252 (Qauto_composed, Vauto_composition_function)
10253 (Qauto_composition_function): New variables.
aca7a3d2
MB
10254 (run_composition_function): Don't call
10255 compose-chars-after-function.
10256 (update_compositions): Clear `auto-composed' text property.
10257 (compose_chars_in_text): Delete this function.
10258 (syms_of_composite): Staticpro Qauto_composed and
10259 Qauto_composition_function. Declare Vauto_composition_function as
10260 a Lisp variable.
10261
10262 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
10263
10264 * xdisp.c (it_props): Add an entry for Qauto_composed.
10265 (handle_auto_composed_prop): New function.
10266
10267 * xselect.c (selection_data_to_lisp_data): Don't call
10268 compose_chars_in_text.
10269
73acf815 102702008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10271
10272 * keyboard.c (read_char): Modify checking around use of
10273 Vkeyboard_translate_table.
10274
10275 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10276 and fix C types.
10277
73acf815 102782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10279
4c4475a8
GM
10280 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
10281 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10282 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 10283 the case that the last byte is '\r' correctly.
1f45f627
GM
10284 (decode_coding): Flush out the unprocessed data correctly.
10285 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 10286
73acf815 102872008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10288
f245f2c6
JB
10289 * xterm.c (XTread_socket): Fix changes for defined keysyms.
10290 Add XK_ISO... case.
aca7a3d2
MB
10291 (xaw_scroll_callback): Revert last change.
10292
73acf815 102932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10294
1f45f627 10295 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 10296
73acf815 102972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10298
10299 * xfaces.c (Vface_resizing_fonts): New variable.
10300 (struct font_name): New member `resizing_ratio'.
10301 (font_resizing_ratio): New function.
10302 (split_font_name): Set font->resizing_ratio.
10303 (better_font_p): Pay attention to font->resizing_ratio.
10304 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
10305 RESX, and RESY fields.
10306 (try_alternative_families): Try scalable fonts if
10307 Vscalable_fonts_allowed is not Qt.
10308 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
10309
73acf815 103102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10311
10312 * xterm.c (xaw_scroll_callback): Cast correctly.
10313
73acf815 103142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10315
10316 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
10317 (lispy_kana_keys): Comment out.
10318 (make_lispy_event) [XK_kana_A]: Comment out.
10319
10320 * xterm.c (xaw_scroll_callback): Cast call_data.
10321 (XTread_socket): Deal with ASCII keysyms.
10322 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
10323
73acf815 103242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10325
10326 * xterm.c (Vx_keysym_table): New.
10327 (syms_of_xterm): Initialize it.
10328 (XTread_socket): Use it.
10329 From head: Eliminate incorrect optimization that tried to avoid
10330 decoding the output of X*LookupString.
10331 (x_get_font_repertory): Delete charset declaration.
10332
73acf815 103332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10334
1f45f627
GM
10335 * coding.c (detect_coding_charset): If only ASCII bytes are found,
10336 return 0.
aca7a3d2
MB
10337 (Fdefine_coding_system_internal): Setup
10338 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
10339
73acf815 103402008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10341
10342 * coding.c (Fcheck_coding_system): Doc fix.
10343
10344 * editfns.c (Finsert_byte): Return a proper value.
10345
73acf815 103462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10347
10348 * coding.c (decode_coding): Fix args to translate_chars. Pay
10349 attention to Vstandard_translation_table_for_decode.
10350 (encode_coding): Fix args to translate_chars. Pay attention to
10351 Vstandard_translation_table_for_encode.
10352
10353 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
10354 SINGLE_BYTE_CHAR_P.
10355
10356 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
10357 not by SINGLE_BYTE_CHAR_P.
10358
10359 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
10360 SINGLE_BYTE_CHAR_P.
10361
10362 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
10363 SINGLE_BYTE_CHAR_P.
10364
10365 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
10366 by SINGLE_BYTE_CHAR_P.
10367
10368 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
10369 SINGLE_BYTE_CHAR_P.
10370
73acf815 103712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10372
10373 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
10374
73acf815 103752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10376
10377 * fns.c (Flanginfo): Fix typo.
10378
10379 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
10380
73acf815 103812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10382
4c4475a8
GM
10383 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
10384 (detect_coding_emacs_mule, detect_coding_iso_2022)
10385 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
10386 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 10387 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 10388 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 10389 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 10390
73acf815 103912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10392
1f45f627
GM
10393 * character.c (char_string): Rename from
10394 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
10395 (string_char): Rename from string_char.
aca7a3d2 10396
4c4475a8
GM
10397 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
10398 if C is greater than MAX_3_BYTE_CHAR.
10399 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
10400 string_char instead of string_char_with_unification.
aca7a3d2 10401
73acf815 104022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10403
10404 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
10405
73acf815 104062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10407
1f45f627 10408 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
10409
10410 * regex.c (re_search_2): Fix for the case of unibyte buffer.
10411
73acf815 104122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10413
10414 * charset.c (define_charset_internal): Rename `supprementary'.
10415
10416 * Makefile.in (lisp, shortlisp): Remove latin-N.
10417
73acf815 104182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10419
10420 * xfns.c (x_window, x_window): Use use_xim.
10421
10422 * xterm.c (use_xim): Initialize.
10423 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
10424 (x_term_init): Maybe set use_xim.
10425
10426 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
10427
73acf815 104282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10429
10430 * search.c (search_buffer): Fix case-fold-search of multibyte
10431 characters.
10432 (boyer_moore): Rename the last argument to char_high_bits.
10433
73acf815 104342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10435
10436 * xdisp.c (display_string): Fix for the case of zero width glyph.
10437
10438 * xfns.c (x_set_font): Change the error message of the case that
10439 x_new_fontset returns Qt.
10440
10441 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
10442 (Finternal_set_lisp_face_attribute): Use signal_error for the
10443 error of invalid fontset.
10444
10445 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
10446 fontset, return Qt.
10447
73acf815 104482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10449
aca7a3d2
MB
10450 * unexelf.c (unexec): Make .got handling not SGI-specific.
10451
10452 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
10453
10454 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
10455
10456 * keyboard.c (read_key_sequence): Fix type error.
10457
10458 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
10459 type error.
10460
10461 * fontset.c (fontset_add): Return Lisp_Object.
10462
73acf815 104632008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10464
10465 * charset.h (charset_ordered_list_tick): Declare extern.
10466
73acf815 104672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10468
73acf815 10469 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
10470 for handling syntax, category, and case conversion for unibyte
10471 characters by converting them to multibyte on the fly. With these
10472 changes, we don't have to setup syntax and case tables for unibyte
10473 characters in each language environment.
10474
10475 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
10476 multibyte if necessary.
10477
10478 * bytecode.c (Fbyte_code): Likewise.
10479
10480 * character.h (LEADING_CODE_LATIN_1_MIN)
10481 (LEADING_CODE_LATIN_1_MAX): New macros.
10482 (unibyte_to_multibyte_table): Extern it.
10483 (unibyte_char_to_multibyte): New macro.
10484 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
10485 (CHAR_LEADING_CODE): New macro.
10486 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
10487
10488 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 10489 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
10490 (multibyte_char_to_unibyte): If C is an eight-bit character,
10491 convert it to the corresponding byte value.
10492
10493 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
10d1d0af 10494 not 1, signals an error. Update the elements of
aca7a3d2
MB
10495 unibyte_to_multibyte_table.
10496 (init_charset_once): Initialize unibyte_to_multibyte_table.
10497 (syms_of_charset): Define the charset `iso-8859-1'.
10498
aca7a3d2
MB
10499 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
10500 as is without converting it to unibyte. In a unibyte buffer,
10501 convert C to multibyte before checking the syntax.
10502
1f45f627 10503 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
10504
10505 * minibuf.c (Fminibuffer_complete_word): Use the macro
10506 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
10507
10508 * regex.h (struct re_pattern_buffer): New member target_multibyte.
10509
10510 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
10511 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
10512 that is zero, convert an eight-bit char to multibyte.
10513 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
10514 non-emacs case.
10515 (PATFETCH): Convert an eight-bit char to multibyte.
10516 (HANDLE_UNIBYTE_RANGE): New macro.
10517 (regex_compile): Setup the compiled pattern for multibyte chars
10518 even if the given regex string is unibyte. Use PATFETCH_RAW
10519 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 10520 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 10521 only for ASCII chars.
1f45f627 10522 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
10523 is multibyte.
10524 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
10525 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 10526 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
10527 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
10528 multibyte always 1.
10529 (re_search_2): In emacs, set the locale variable multibyte to 1,
10530 otherwise to 0. New local variable target_multibyte. Check it
10531 to decide the multibyteness of STR1 and STR2. If
10532 target_multibyte is zero, convert unibyte chars to multibyte
10533 before translating and checking fastmap.
10534 (TARGET_CHAR_AND_LENGTH): New macro.
10535 (re_match_2_internal): In emacs, set the locale variable multibyte
10536 to 1, otherwise to 0. New local variable target_multibyte. Check
10537 it to decide the multibyteness of STR1 and STR2. Use
10538 TARGET_CHAR_AND_LENGTH to fetch a character from D.
10539 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 10540 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
10541 target_multibyte, not with multibyte.
10542 <begline>: Declare the local variable C as `unsigned'.
10543 (bcmp_translate): Change the last arg name to target_multibyte.
10544
10545 * search.c (compile_pattern_1): Don't adjust the multibyteness of
10546 the regexp pattern and the matching target. Set cp->buf.multibyte
10547 to the multibyteness of the regexp pattern. Set
1f45f627 10548 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
10549 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
10550 FETCH_STRING_CHAR_ADVANCE.
10551 (Freplace_match): Convert unibyte chars to multibyte.
10552
4c4475a8
GM
10553 * syntax.c (char_quoted, back_comment, scan_words)
10554 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
10555 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 10556 unibyte chars to multibyte.
1f45f627
GM
10557 (skip_chars): Delete the arg syntaxp, and move the code for
10558 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
10559 Fix the case that the multibyteness of STRING and the current
10560 buffer doesn't match.
10561 (skip_syntaxes): New function.
10562 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
10563 SINGLE_BYTE_CHAR_P.
aca7a3d2 10564
73acf815 105652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10566
10567 * xfaces.c (QCfontset): New variable.
10568 (LFACE_FONTSET): New macro.
10569 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
10570 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
10571 (Finternal_set_lisp_face_attribute)
10572 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
10573 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
10574 check also LFACE_FONTSET_INDEX.
10575 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
10576 attrs[LFACE_FONT_INDEX].
10577 (syms_of_xfaces): Intern and staticpro QCfontset.
10578
10579 * dispextern.h (enum lface_attribute_index): New member
10580 LFACE_FONTSET_INDEX.
10581
10582 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
10583
73acf815 105842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10585
10586 * coding.c (coding_set_destination): Fix coding->destination for
10587 the case converting a region.
10588 (encode_coding_utf_8): Encode eight-bit chars as single byte.
10589 (encode_coding_object): Fix coding->dst_pos and
10590 coding->dst_pos_byte for the case converting a region.
10591
10592 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
10593
10594 * character.h (BYTE8_STRING): New macro.
10595
10596 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
10597
73acf815 105982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10599
10600 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
10601 characters by octal form.
10602
10603 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10604
1f45f627 10605 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
10606 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
10607 _fetch_multibyte_char_len.
aca7a3d2
MB
10608 (FETCH_CHAR_AS_MULTIBYTE): New macro.
10609
1f45f627 10610 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 10611
1f45f627 10612 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 10613 the case conversion change the byte length.
1f45f627 10614 (casify_region): Likewise.
aca7a3d2 10615
1f45f627 10616 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 10617
10d1d0af 10618 * character.c (_fetch_multibyte_char_len): Delete this variable.
aca7a3d2
MB
10619 (syms_of_character): Setup Vprintable_chars.
10620
10621 * editfns.c (Fchar_equal): Fix for the unibyte case.
10622 (Finsert_byte): New function.
10623 (syms_of_editfns): Defsubr it.
10624
10625 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
10626 of direct code 0x3ffff.
10627
10628 * search.c (Freplace_match): Fix for the unibyte case.
10629
73acf815 106302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10631
10632 * lread.c (safe_to_load_p): Fix the logic.
10633
10634 * syntax.c (scan_words): Don't treat characters belonging to
10635 different scripts as constituting a word.
10636
10637 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10638
1f45f627 10639 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
10640
10641 * emacs.c (main): In the case of --unibyte, instead of aborting on
10642 finding non-empty buffer, make it unibyte.
10643
73acf815 106442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10645
10646 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
10647 to create a fontset.
10648
73acf815 106492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10650
10651 * character.c (Funibyte_char_to_multibyte): Doc fix.
10652
10653 * xfns.c [HAVE_STDLIB_H]: Fix last change.
10654
73acf815 106552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10656
10657 * fontset.c (fontset_add): Make the type `int'.
10658 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
10659
4c4475a8
GM
10660 * character.c (unibyte_char_to_multibyte)
10661 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 10662 charset_unibyte, not charset_primary.
aca7a3d2 10663
1f45f627 10664 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 10665
1f45f627
GM
10666 * charset.c (charset_unibyte): Rename from charset_primary.
10667 (Funibyte_charset): Rename from Fprimary_charset.
10668 (Fset_unibyte_charset): Rename from Fset_primary_charset.
10669 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
10670
10671 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10672 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10673 it->multibyte_p is zero.
10674
10675 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 10676 Delete extern.
aca7a3d2 10677
73acf815 106782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10679
10680 * coding.c (Fdefine_coding_system_internal): Fix category setting
10681 for a coding system of type iso-2022.
10682
73acf815 106832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10684
1f45f627 10685 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 10686
73acf815 106872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10688
10689 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
10690 (next-word-boundary-function-table): Declare it as a Lisp variable
10691 in syms_of_syntax.
aca7a3d2
MB
10692 (scan_words): Call functions in Vnext_word_boundary_function_table
10693 if any.
10694
10695 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
10696
10697 * fontset.c (fs_load_font): If fontp->charset is not negative,
10698 return fontp without setting its members.
10699
73acf815 107002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10701
aca7a3d2
MB
10702 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
10703
10704 * m/sparc.h (HAVE_ALLOCA): Delete.
10705
10706 * s/irix6-5.h: Don't include strings.h.
10707 (bcopy, bzero, bcmp): Don't undef.
10708
10709 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
10710
10711 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
10712 (TIOCSIGSEND): Don't test IRIX6.
10713 (bcopy, bzero, bcmp): Define conditionally.
10714
73acf815 107152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10716
10717 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 10718 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
10719 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
10720
10721 * callproc.c (Fcall_process): Don't call insert_1_both directly if
10722 we are inserting a process output into a multibyte buffer.
10723
10724 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
10725 multibyte_char_to_unibyte.
10726
10727 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
10728 by the primary charset, make it eight-bit char.
10729 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
10730
1f45f627
GM
10731 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
10732 (charset_8_bit__control, charset_8_bit_graphic)
10733 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
10734 (define_charset_internal): New function.
10735 (syms_of_charset): Call define_charset_internal for pre-defined
10736 charsets.
10737
10738 * charset.h (charset_8_bit): Extern it.
10739
1f45f627 10740 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
10741 of Fset_buffer_multibyte.
10742 (encode_coding_raw_text): Increment p0 in the loop.
10743
1f45f627 10744 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 10745
1f45f627 10746 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
10747 for the change of Fset_buffer_multibyte.
10748
10749 * fns.c (Fstring_to_multibyte): New function.
10750 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
10751
73acf815 107522008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10753
10754 * xfns.c (x_put_x_image): Declare args.
10755
1f45f627 10756 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
10757 (try_font_list): Declare an arg.
10758
10759 * xdisp.c (message2_nolog, set_message): Declare an arg.
10760
10761 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
10762
10763 * syntax.c (scan_sexps_forward): Declare an arg.
10764
10765 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10766 Declare an arg.
10767
10768 * lisp.h (Fnew_fontset): Declare.
10769
10770 * keymap.c (push_key_description): Call CHARACTERP correctly.
10771
1f45f627 10772 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
10773 (face_for_char): Delete unused vars.
10774 (Fset_fontset_font): Doc fix. Delete unused vars.
10775
10776 * doc.c (Fsubstitute_command_keys): Delete unused vars.
10777
10778 * composite.c (update_compositions): Declare arg.
10779
10780 * cm.c (calccost, cmgoto): Declare args.
10781
10782 * charset.c: Remove `emacs' conditional. Doc fixes.
10783 (map_char_table_for_charset): Declare.
10784
1f45f627 10785 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 10786
1f45f627 10787 * ccl.c: Remove `emacs' conditional.
aca7a3d2 10788
73acf815 107892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10790
10791 The following changes are to allow specifying multiple font
10792 patterns for a character range (specified by script or charset).
10793
10794 * Makefile.in (abbrev.o): Depend on syntax.h.
10795 (xfaces.o): Depend on charset.h.
10796
10797 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
10798 SINGLE_BYTE_CHAR_P.
10799
10800 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
10801
10802 * character.h (Vchar_script_table): Extern it.
10803
1f45f627 10804 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
10805 (Vchar_script_table, Qchar_script_table): New variable.
10806 (syms_of_character): Declare Vchar_script_table as a lisp variable
10807 and initialize it.
10808
1f45f627 10809 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
10810 have property char-table-extra-slots, make no extra slot.
10811
1f45f627 10812 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
10813 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
10814 SINGLE_BYTE_CHAR_P.
1f45f627
GM
10815 (choose_face_font, lookup_non_ascii_face, font_name_registry):
10816 Add prototypes.
10817 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
10818 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
10819
10820 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 10821 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
10822 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
10823
10824 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 10825 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
10826 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
10827 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
10828 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
10829 (fontset_ref_and_range, fontset_add, reorder_font_vector)
10830 (load_font_get_repertory): New functions.
1f45f627 10831 (fontset_set): Delete.
aca7a3d2 10832 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 10833 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
10834 (free_face_fontset): Use ASET istead of AREF (X) = Y.
10835 (face_for_char): Don't call lookup_face.
10836 (make_fontset_for_ascii_face): New arg FACE.
10837 (fs_load_font): New arg CHARSET_ID. Don't check
10838 Vfont_encoding_alist here.
10839 (find_font_encoding): New function.
10840 (list_fontsets): Use STRINGP, not ! NILP.
10841 (accumulate_script_ranges): New function.
10842 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
10843 re-written to handle new fontset structure.
10844 (Ffontset_font): Return a copy of element.
10845 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
10846 docstring of font-encoding-alist.
10847
10848 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
10849 (Fset_fotset_font): Fix arguments to 5.
10850
1f45f627 10851 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
10852
10853 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
10854 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 10855 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
10856 lookup_named_face.
10857
10858 * xfaces.c: Include charset.h.
1f45f627
GM
10859 (load_face_font): Delete argument C. Change caller.
10860 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
10861 (font_name_registry): New function.
10862 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 10863 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
10864 Lookup only ascii faces.
10865 (lookup_non_ascii_face): New function.
1f45f627
GM
10866 (lookup_named_face): Delete argument C. Change caller.
10867 (lookup_derived_face): Delete argument C. Change caller.
10868 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 10869 a string, just call font_list with it.
1f45f627
GM
10870 (choose_face_font): Delete arguments FACE and C. New arg
10871 FONT_SPEC. Change caller.
4c4475a8
GM
10872 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
10873 Change caller.
aca7a3d2
MB
10874 (realize_non_ascii_face): New function.
10875 (realize_x_face): Call load_face_font here.
1f45f627 10876 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
10877 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
10878 get a face ID.
10879 (dump_realized_face): Don't print charset of FACE.
10880
10881 * xfns.c (x_set_font): Always call x_new_fontset and
10882 store_frame_parameter.
10883 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 10884 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
10885
10886 * xterm.h (x_get_font_repertory): Extern it.
10887
10888 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10889 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10890 it->multibyte_p is zero.
10891 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10892 (x_new_fontset): If FONTSETNAME doesn't match any existing
10893 fontsets, create a new one.
10894 (x_get_font_repertory): New function.
10895
73acf815 108962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10897
10898 * coding.c (Ffind_coding_systems_region_internal): Detect an
10899 ASCII only string correctly.
10900
10901 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
10902 version is 0.
10903
73acf815 109042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10905
10906 * lread.c: Include "coding.h".
1f45f627
GM
10907 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
10908 (load_each_byte, unread_char): New variables.
10909 (readchar_backlog): Delete.
aca7a3d2
MB
10910 (readchar): Return a character unless load_each_byte is nonzero.
10911 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
10912 cons. If unread_char is not -1, simply return it.
10913 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
10914 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
10915 (read_multibyte): Delete.
aca7a3d2
MB
10916 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
10917 (read_emacs_mule_char): New functions.
10d1d0af 10918 (Fload): Even if the file doesn't have the extension ".elc", if
aca7a3d2
MB
10919 safe_to_load_p returns a positive version number, assume that the
10920 file contains bytecompiled code. If the version is less than 22,
10921 load the file while decoding multibyte sequences by emacs-mule.
10922 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
10923 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
10924 (Fread_from_string): Pay attention to the case that STREAM is a cons.
10925 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
10926 (read1): Set load_each_byte to 1 temporarily while handling
10927 #@NUMBER. Don't call read_multibyte.
10928 (read_vector): Call Fread with a cons. If readcharfun is
10929 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 10930 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
10931 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
10932 and Qload_force_doc_strings.
10933
73acf815 109342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10935
10936 * xdisp.c (face_before_or_after_it_pos): Call
10937 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10938
73acf815 109392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10940
10941 * character.h (TRAILING_CODE_P): New macro.
1f45f627 10942 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
10943 (string_char_with_unification): Fix prototype.
10944 (Vscript_alist): Extern it.
10945
10946 * character.c (Vscript_alist): New variable.
4c4475a8
GM
10947 (string_char_with_unification, str_as_unibyte)
10948 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
10949 (syms_of_character): Declare script-alist as a Lisp variable.
10950
10951 * charset.h (Vcharset_ordered_list): Extern it.
10952 (charset_ordered_list_tick): Extern it.
10953 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
10954 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
10955 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 10956 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 10957 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
10958
10959 * charset.c (charset_ordered_list_tick): New variable.
10960 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
10961 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
10962 deunify intead of unify a charset.
10963 (string_xstring_p): Add `const' to local variables.
10d1d0af 10964 (find_charsets_in_text): Add `const' to arguments and local variables.
1f45f627 10965 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
10966 detecting of invalid code.
10967 (Fset_charset_priority): Increment charset_ordered_list_tick.
10968 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
10969 and TO_CODE.
10970
10971 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
10972 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
10973 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
10974 (decode_coding_ccl, consume_chars)
10975 (Ffind_coding_systems_region_internal)
10976 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
10977
10978 * print.c (print_object): Use octal form for printing the
10979 contents of a bool vector.
10980
73acf815 109812008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10982
10983 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
10984 <version == 20>: Refuse to load.
10985
73acf815 109862008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10987
10988 * fns.c: Move coding.h.
10989 (Qcodeset, Qdays, Qmonths): New.
10d1d0af 10990 (concat): Use CHARACTERP instead of INTEGERP.
1f45f627 10991 (Flocale_codeset): Delete.
aca7a3d2 10992 (Flanginfo): New function.
1f45f627 10993 (syms_of_fns): Change accordingly.
aca7a3d2
MB
10994
10995 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
10996
73acf815 109972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10998
10999 * casetab.c (init_casetab_once, init_casetab_once): Fix
11000 CHAR_TABLE_SET call.
11001
11002 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
11003
11004 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
11005
11006 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
11007 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
11008 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
11009
11010 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
11011
11012 * coding.c (ENCODE_DESIGNATION, decode_eol)
11013 (make_conversion_work_buffer, code_conversion_restore)
11014 (Fdefine_coding_system_internal): Convert Lisp types.
11015 (code_conversion_restore): Use EQ, not ==.
11016 (Fencode_coding_string): Fix code_convert_string call.
11017
11018 * coding.h (code_convert_region): Fix prototype.
11019
1f45f627 11020 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
11021
11022 * fontset.c (fontset_ref, fontset_set, fs_load_font)
11023 (Ffontset_info): Convert Lisp types.
11024
11025 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
11026
11027 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
11028
11029 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
11030
11031 * chartab.c: Include "...h", not <...h> in some cases.
11032
11033 * callproc.c (Fcall_process): Remove unused variables.
11034
73acf815 110352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11036
11037 * coding.c (Fset_coding_system_priority): Allow null arg list.
11038
73acf815 110392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11040
11041 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
11042 (Fself_insert_and_exit): Use CHARACTERP.
11043
11044 * callproc.c (Fcall_process): Remove unused vars.
11045
11046 * xterm.c (XTread_socket): Add extra dead keysyms.
11047
11048 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
11049
11050 * dispextern.h: Remove prototypes for redraw_frame,
11051 redraw_garbaged_frames.
11052
11053 * cmds.c (Fself_insert_command): Use CHARACTERP.
11054
11055 * chartab.c (make_sub_char_table): Remove unused var.
11056 (Fset_char_table_default, Fmap_char_table): Doc fix.
11057
11058 * keymap.c (access_keymap): Remove generic char code.
11059 (push_key_description): Use CHARACTERP.
11060
73acf815 110612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11062
11063 * charset.c: Doc fixes.
11064 (Funify_charset): Extra checking.
11065
73acf815 110662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11067
11068 * lread.c: Remove some unused variables.
11069 (safe_to_load_p): If safe, return the magic number version byte.
11070 (Fload): Maybe use load-with-code-conversion.
11071
73acf815 110722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11073
11074 * category.c (Fmodify_category_entry): Don't modify the contents
11075 of category_set for characters out of the range. Avoid
11076 unnecessary modification.
11077
1f45f627 11078 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
11079 Vchar_unify_table. The default value of the table is now nil.
11080
11081 * character.c (syms_of_character): Setup Vchar_width_table for
11082 eight-bit-control and raw-byte chars.
11083
11084 * charset.h (enum define_charset_arg_index): Delete
11085 charset_arg_parents and add charset_arg_subset and
11086 charset_arg_superset.
11087 (enum charset_attr_index): Delete charset_parents and add
11088 charset_subset and charset_superset.
11089 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
11090 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 11091 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
11092 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
11093 (CHARSET_SUPERSET): New macros.
11094 (charset_work): Extern it.
11095 (ENCODE_CHAR): Use charset_work.
1f45f627 11096 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
11097 (map_charset_chars): Extern it.
11098
11099 * charset.c (load_charset_map): Set the default value of encoder
11100 and deunifier char-tables to nil.
1f45f627 11101 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
11102 map_char_table_for_charset instead of map_char_table.
11103 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 11104 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
11105 `define-charset' (:parents -> :subset or :superset).
11106 (charset_work): New variable.
4c4475a8
GM
11107 (encode_char, syms_of_charset): Adjust for the change of
11108 Fdefine_charset_internal.
aca7a3d2
MB
11109 (Ffind_charset_string): Setup the vector `charsets' correctly.
11110
1f45f627 11111 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 11112 the previous change.
1f45f627 11113 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
11114 (map_sub_char_table_for_charset): New function.
11115 (map_char_table_for_charset): New function.
11116
11117 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 11118 (describe_char_table): Delete.
aca7a3d2 11119
1f45f627 11120 * lisp.h (map_charset_chars): Delete.
aca7a3d2 11121
73acf815 111222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11123
11124 * fns.c (count_combining): Comment out (unused).
11125 (Flocale_codeset): New.
11126 (syms_of_fns): Defsubr it.
11127
11128 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 11129 (size_t): Remove.
aca7a3d2 11130
73acf815 111312008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 11132
6f69e89b 11133 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 11134
73acf815 111352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11136
11137 * character.c (syms_of_character): Set the default value of
11138 Vprintable_chars to Qnil.
11139
73acf815 111402008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11141
11142 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
11143
73acf815 111442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11145
11146 * charset.c (load_charset_map): Handle the case that from < to
11147 correctly.
11148
4c4475a8
GM
11149 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
11150 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
11151 Pay attention to raw-8-bit chars.
aca7a3d2 11152
73acf815 111532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 11154
4c4475a8
GM
11155 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
11156 It is not bytecompiled now.
aca7a3d2
MB
11157
11158 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
11159 (charset_jisx0208): New variables.
11160 (Fdefine_charset_internal): Setup them if appropriate.
11161 (init_charset_once): Initialize them to -1.
11162
1f45f627
GM
11163 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
11164 (charset_jisx0208): Extern them.
aca7a3d2 11165
1f204af3 11166 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 11167 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
11168 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
11169 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
11170 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
11171 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
11172 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
11173 (encode_coding_iso_2022): Change the 1st arg to
11174 ENCODE_ISO_CHARACTER to a variable.
11175
73acf815 111762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11177
11178 * charset.h (enum define_charset_arg_index): New enums
11179 charset_arg_min_code and charset_arg_max_code.
11180 (struct charset): New member char_index_offset.
11181
4c4475a8
GM
11182 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
11183 Take charset->char_index_offset into account.
aca7a3d2
MB
11184 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
11185 args[charset_arg_max_code]. Setup charset.char_index_offset.
11186 (syms_of_charset): Fix args to Fdefine_charset_internal.
11187
73acf815 111882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11189
11190 * coding.c (decode_coding_utf_8): Reject overlong sequences.
11191
73acf815 111922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11193
11194 * coding.c: Doc fixes.
11195 (Fcoding_system_aliases): Fix return value.
11196 (Qmac): Remove (duplicated) definition.
11197
73acf815 111982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11199
11200 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
11201 functions.
11202
11203 * character.c (Fstring): Doc fix.
11204
11205 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
11206
11207 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
11208 ids.
11209 (font-encoding-alist): Doc fix.
11210
73acf815 112112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11212
11213 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 11214 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
11215
11216 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11217 for K&R.
11218
11219 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
11220
11221 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 11222 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 11223
1f45f627 11224 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
11225
11226 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
11227
73acf815 112282008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11229
11230 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
11231
1f45f627 11232 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 11233
2a2e8de7 112342008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
11235
11236 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
11237
1f45f627 11238 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 11239
73acf815 112402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 11241
4c4475a8 11242 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 11243 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 11244
73acf815 112452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 11246
1f45f627 11247 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
11248 Fdefine_coding_system_internal.
11249 (Fdefine_coding_system_internal): For a coding system of
11250 `charset' type, store a list of charset IDs in
11251 `charset_attr_charset_valids' element of coding attributes.
11252
73acf815 112532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11254
11255 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
11256 (emacs_mule_char): New arg src. Delete arg `composition'. Change
11257 caller. Handle 2-byte and 3-byte charsets correctly.
11258 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
11259 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
11260 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
11261 (DECODE_EMACS_MULE_21_COMPOSITION): Call
11262 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
11263 sequence.
11264 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 11265 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
11266 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
11267 and alt&rule composition.
11268 (decode_coding_iso_2022): Handle composition correctly.
11269 (init_coding_once): Setup emacs_mule_bytes for private charsets.
11270
11271 * charset.c (Fdefine_charset_internal): Fix bug for the case of
11272 re-defining a charset. If the charset has :emacs-mule-id, setup
11273 emacs_mule_bytes.
1f45f627 11274 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 11275
73acf815 112762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 11277
4c4475a8
GM
11278 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
11279 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
11280 encoding, produce a character specified by
11281 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 11282
73acf815 112832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11284
11285 * xterm.c (XSetIMValues): Declare.
11286
11287 * process.c: Conditionally include sys/wait.h, pty.h.
11288
1f45f627 11289 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 11290
1f45f627 11291 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
11292
11293 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
11294
11295 * fontset.c (Fclear_face_cache): Declare.
1f45f627 11296 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
11297 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
11298 variables.
11299
11300 * character.h (string_escape_byte8): Declare.
11301
11302 * charset.c (load_charset_map, load_charset_map_from_file): Remove
11303 unused vars.
11304 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
11305 (Fmap_charset_chars): Doc fix.
11306
1f45f627 11307 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
11308 (Fset_coding_system_priority, Fset_coding_system_priority)
11309 (Fdefine_coding_system_internal): Doc fix.
11310
73acf815 113112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11312
11313 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
11314
73acf815 113152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11316
11317 * character.c (string_escape_byte8): Make multibyte string with
11318 correct size.
11319
11320 * charset.c (Fmake_char): Delete unnecessary code.
11321
73acf815 113222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11323
11324 * xfns.c (x_encode_text): Allocate coding.destination here, and
11325 call encode_coding_object with dst_object Qnil.
11326
11327 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
11328 multibyte form correctly.
11329
11330 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
11331 against Vfont_encoding_alist.
11332
11333 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
11334 handling of charset list.
11335 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
11336 (decode_coding_object): Move point to coding->dst_pos before
11337 calling post-read-conversion function.
11338 (encode_coding_object): Give correct arguments to
11339 pre-write-conversion. Ignore the return value of
11340 pre-write-conversion function. Pay attention to the case that
11341 pre-write-conversion changes the current buffer. If dst_object is
11342 Qt, even if coding->src_bytes is zero, allocate at least one byte
11343 to coding->destination.
11344
11345 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
11346
11347 * charset.c (Fmake_char): Make it more backward compatible.
11348 (Fmap_charset_chars): Fix docstring.
11349
73acf815 113502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11351
11352 * coding.c: Doc fixes.
11353 (Fdefine_coding_system_alias): Use names, not symbols, in
11354 coding-system-alist.
11355
73acf815 113562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11357
11358 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
11359 of calling free_realized_face.
11360
2a2e8de7 113612008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 11362
1f45f627 11363 * charset.c (read_hex): Don't treat SPC as a comment starter.
10d1d0af 11364 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
aca7a3d2
MB
11365 (Fdecode_char): Fix typo.
11366
73acf815 113672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11368
11369 * charset.h (struct charset): New member `code_space_mask'.
11370
1f45f627 11371 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
11372 (encode_coding_charset, Fdefine_coding_system_internal):
11373 Delete the local variable charset.
aca7a3d2
MB
11374 (Fdefine_coding_system_internal): Setup
11375 attrs[coding_attr_charset_valids] correctly.
11376
11377 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
11378 member to check if CODE is valid or not.
11379 (Fdefine_charset_internal): Initialize `code_space_mask' member.
11380 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
11381 is within the range of charset->min_code and carset->max_code.
11382
73acf815 113832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11384
11385 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
11386
11387 * dispextern.h (generate_ascii_font): Fix return type.
11388
11389 * xfaces.c (generate_ascii_font): Fix arg declaration.
11390
11391 * coding.c (coding_inherit_eol_type)
11392 (Fset_terminal_coding_system_internal)
11393 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
11394
73acf815 113952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11396
11397 * coding.c (decode_coding_charset, encode_coding_charset): Handle
11398 multiple charsets correctly.
11399
73acf815 114002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 11401
10d1d0af 11402 * search.c (boyer_moore): Fix handling of multibyte character
aca7a3d2
MB
11403 translation.
11404
11405 * xdisp.c (display_mode_element): When the variable `elt' is
11406 changed, update `this' and `lisp_string'.
11407
73acf815 114082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11409
11410 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
11411
11412 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 11413 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
11414
11415 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
11416 (load_charset_map): Rename from parse_charset_map. New args
11417 entries and n_entries. Change caller.
11418 (load_charset_map_from_file): Rename from load_charset_map.
11419 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
11420 the tail.
11421 (load_charset_map_from_vector): New function.
11422 (Fdefine_charset_internal): Setup charset.compact_codes_p.
11423 (encode_char): If the charset is compact, change a character index
11424 to a code point.
11425
11426 * coding.c (coding_alloc_by_making_gap): Check the case that the
11427 source and destination are the same correctly.
11428 (decode_coding_raw_text): Set coding->consumed_char and
11429 coding->consumed to 0.
11430 (produce_chars): If coding->chars_at_source is nonzero, update
11431 coding->consumed_char and coding->consumed before calling
11432 alloc_destination.
11433 (Fdefine_coding_system_alias): Register ALIAS in
11434 Vcoding_system_alist.
10d1d0af 11435 (syms_of_coding): Define `no-conversion' coding system at the tail.
aca7a3d2
MB
11436
11437 * fileio.c (Finsert_file_contents): Set coding_system instead of
11438 val. If the current buffer is multibyte, always call
11439 decode_coding_gap.
11440
11441 * xfaces.c (try_font_list): Give higher priority to fontset's
11442 family than face's family.
11443
73acf815 114442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11445
11446 * callproc.c (Fcall_process): Be sure to give the current buffer
11447 to decode_coding_c_string.
11448
11449 * xfaces.c (try_font_list): Give a family specified in a fontset
11450 higher priority than a family specified in a face.
11451
73acf815 114522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11453
11454 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
11455 Fix arguments to insert_from_buffer.
11456
11457 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
11458
73acf815 114592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11460
11461 * coding.c (produce_chars): Set the variable `multibytep' correctly.
11462 (decode_coding_gap): Set coding->dst_multibyte correctly.
11463
73acf815 114642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11465
11466 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 11467 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
11468 (encode_coding_utf_16): Substitute coding->default_char for
11469 non-Unicode characters.
11470 (decode_coding): Don't call record_insert here.
11471 (setup_coding_system): Initialize `surrogate' of
11472 coding->spec.utf_16 to 0.
11473 (EMIT_ONE_BYTE): Fix for multibyte case.
11474
11475 * insdel.c (insert_from_gap): Call record_insert.
11476
73acf815 114772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11478
11479 * casefiddle.c (casify_region): Fix multibyte case.
11480
11481 * character.c (c_string_width): Add return type `int'.
1f45f627 11482 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
11483
11484 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 11485 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
11486 (CHAR_STRING_ADVANCE): Make it do-while statement.
11487
1f45f627 11488 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
11489 DEPTH == 3. Add workaround code for a GCC optimization bug.
11490
11491 * charset.c (parse_charset_map): Remove an unused variable.
11492
11493 * coding.c: Delete unused variables.
11494
11495 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
11496 earlier. If inserted is zero and the coding system doesn't
11497 require flushing, don't call decode_coding_gap.
11498
11499 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
11500
73acf815 115012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11502
11503 The following changes are for using Unicode as an internal
11504 character model, and use UTF-8 format for buffer/string
11505 representation.
11506
1f45f627 11507 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
11508 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
11509
11510 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 11511 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
11512 (*.o): For many files, change dependency on charset.h to
11513 character.h, and add dependency on character.h.
11514 (character.o, chartab.o): New targets.
11515
1f45f627
GM
11516 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
11517 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
11518 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
11519 of "charset.h".
11520
11521 * dired.c, filelock.c: Include "character.h".
11522
11523 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 11524 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
11525 (syms_of_alloc): Remove defsubr for Smake_char_table.
11526
11527 * buffer.c: Include "character.h" instead of "charset.h", don't
11528 include "coding.h".
1f45f627 11529 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
11530
11531 * buffer.h: EXFUN Fbuffer_live_p.
11532
11533 * callproc.c: Include "character.h" instead of "charset.h".
11534 (Fcall_process): Big change for the new code-conversion APIs.
11535
11536 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 11537 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
11538 map_char_table spec.
11539 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
11540 accessing the char table structure.
11541
11542 * chartab.c: New file that implements char table.
11543
11544 * category.c: Include "character.h".
11545 (copy_category_entry): New function.
11546 (copy_category_table): Call map_char_table and copy_category_entry.
11547 (Fmake_category_table): Initialize all top-vel slots.
11548 (char_category_set): New function.
1f45f627 11549 (modify_lower_category_set): Delete.
aca7a3d2
MB
11550 (Fmodify_category_entry): Call char_table_ref_and_range.
11551
11552 * category.h (CATEGORY_SET): Just call char_category_set.
11553
11554 * ccl.c: Include "character.h".
11555 (Qccl, Qcclp): New variables.
11556 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
11557 it's less than 256.
1f45f627
GM
11558 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
11559 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 11560 and DST type.
1f45f627
GM
11561 (ccl_driver): Change types of argument, adjust code accordingly.
11562 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
11563 ccl_driver.
11564 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
11565
1f45f627
GM
11566 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
11567 New members src_multibyte, dst_multibyte, consumed, and produced.
11568 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 11569 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 11570 (ccl_driver): Update prototype.
aca7a3d2
MB
11571 (Qccl, Qcclp, Fccl_program_p): Extern them.
11572 (CHECK_CCL_PROGRAM): New macro.
11573
11574 * character.c, character.h, chartab.c: New files.
11575
1f45f627
GM
11576 * charset.c: Mostly re-written. Move character and multibyte sequence
11577 handling codes to character.c.
aca7a3d2 11578
1f45f627
GM
11579 * charset.h: Mostly re-written. Move character and multibyte sequence
11580 handling codes to character.h.
aca7a3d2
MB
11581
11582 * coding.c, coding.h: Mostly re-written.
11583
11584 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
11585 (CHAR_WIDTH): Move to character.h.
11586 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 11587
1f45f627
GM
11588 * composite.h (enum composition_method): Change order of enumeration
11589 symbols.
aca7a3d2
MB
11590
11591 * data.c: Include "character.h" instead of "charset.h".
11592 (Faref): Call CHAR_TABLE_REF for a char table.
11593 (Faset): Call CHAR_TABLE_SET for a char table.
11594
1f45f627
GM
11595 * dispextern.h (free_realized_face, check_face_attribytes)
11596 (generate_ascii_font): Extern them.
11597 (free_realized_multibyte_face): Delete extern.
aca7a3d2 11598
1f45f627 11599 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
11600 table structure.
11601
11602 * editfns.c: Include "character.h" instead of "charset.h".
11603 (Fchar_to_string): Always call CHAR_STRING.
11604
11605 * emacs.c (main): Call init_charset_once, init_charset,
11606 syms_of_chartab, and syms_of_character.
11607
11608 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 11609 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 11610 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 11611 (build_annotations_2): Delete.
aca7a3d2
MB
11612 (e_write): Big change for the new code-conversion API.
11613
11614 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 11615 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
11616 (Fcopy_sequence): Call copy_char_table for a char table.
11617 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
11618 (string_char_to_byte, string_byte_to_char): Adjust for the new
11619 multibyte form.
1f45f627
GM
11620 (internal_equal): Adjust for the change of char table structure.
11621 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
11622 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
11623 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
11624 (char_table_translate, optimize_sub_char_table)
11625 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 11626 chartab.c.
1f45f627
GM
11627 (char_table_ref_and_index): Delete.
11628 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 11629 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
11630 Vcoding_category_list. Adjust for the new code-conversion API.
11631 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
11632 chartab.c.
11633
11634 * fontset.c: Mostly re-written.
11635
1f45f627 11636 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 11637 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
11638 (fontset_font_pattern, fs_load_font): Update prototype.
11639 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
11640
11641 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 11642 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
11643
11644 * insdel.c: Include "character.h" instead of "charset.h".
11645 (copy_text): Don't refer to Vnonascii_translation_table.
11646 (insert_from_gap): New function.
11647
11648 * keyboard.c: Include "character.h" instead of "charset.h".
11649 (command_loop_1): Never call direct_output_forward_char before
11650 a non-ASCII character.
11651 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 11652 translate a character.
aca7a3d2
MB
11653
11654 * keymap.c: Include "character.h".
11655 (store_in_keymap): Handle the case that IDX is a cons.
11656 (Fdefine_key): Handle the case that KEY is a cons and the car part
11657 is also a cons (range).
1f45f627 11658 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
11659 (describe_vector): Call describe_char_table for a char table.
11660 (describe_char_table): New function.
11661
11662 * keymap.h (describe_char_table): Extern it.
11663
11664 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
11665 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
11666 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
11667 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
11668 Delete.
11669 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
11670 structure.
11671 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
11672 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
11673 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 11674 (chartab_size): Extern it.
1f45f627 11675 (struct Lisp_Char_Table): Re-design.
aca7a3d2 11676 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
11677 (HASH_KEY, HASH_VALUE): Move from fns.c.
11678 (CHARACTERBITS): Define as 22.
11679 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
11680 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
11681 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
11682 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
11683 (code_convert_string_norecord): Deleted extern.
11684 (init_character_once, syms_of_character, init_charset)
11685 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
11686
11687 * lread.c: Include "character.h".
11688 (read_multibyte): New arg NBYTES.
1f45f627
GM
11689 (read_escape): Change the meaning of returned *BYTEREP.
11690 (to_multibyte): Delete.
11691 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
11692
11693 * print.c: Include "character.h" instead of "charset.h".
11694 (print_string): Convert 8-bit raw bytes to octal form by
11695 string_escape_byte8.
1f45f627 11696 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
11697 raw bytes always in octal form. Handle sub char table correctly.
11698
11699 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
11700 (read_process_output, send_process): Adjust for the new
11701 code-conversion API.
aca7a3d2 11702
1f45f627 11703 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
11704
11705 * regex.c: Include "character.h" instead of "charset.h".
11706 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
11707 (regex_compile): Accept a range whose starting and ending
11708 character have different leading bytes.
1f45f627 11709 (analyse_first): Adjust for the above change.
aca7a3d2
MB
11710
11711 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
11712 (search_buffer, boyer_moore): Adjust for the new multibyte form.
11713 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
11714
11715 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 11716 (syntax_parent_lookup): Delete.
aca7a3d2 11717 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 11718 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
11719 (init_syntax_once): Call char_table_set_range instead of directly
11720 accessing the structure of a char table.
11721
11722 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 11723 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
11724 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
11725 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
11726
11727 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
11728 (encode_terminal_code, write_glyphs): Adjust for the new
11729 code-conversion API.
aca7a3d2
MB
11730 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
11731
1f45f627 11732 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
11733
11734 * xdisp.c: Include "character.h".
1f45f627
GM
11735 (get_next_display_element): Adjust for the new multibyte form.
11736 (disp_char_vector): Adjust for the new char table structure.
11737 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 11738 coding system.
1f45f627 11739 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
11740
11741 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 11742 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
11743 FS_LOAD_FONT.
11744 (generate_ascii_font): New function.
1f45f627
GM
11745 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
11746 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 11747 (free_realized_face): Make it public.
1f45f627 11748 (free_realized_faces_for_fontset): Rename from
aca7a3d2 11749 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 11750 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
11751 fontset_font_pattern and FS_LOAD_FONT.
11752
11753 * xfns.c: Include "character.h".
1f45f627 11754 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
11755
11756 * xselect.c: Don't include "charset.h".
1f45f627 11757 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
11758
11759 * xterm.c: Include "character.h".
1f45f627 11760 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
11761 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
11762 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
11763 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
11764 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
11765 (XTread_socket): Adjust for the new code-conversion API.
11766 (x_new_font): Adjust for the change of FS_LOAD_FONT.
11767 (x_load_font): Adjust for the change of struct font.
aca7a3d2 11768
d6abfc14
SM
117692008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11770
11771 * xfaces.c (face_at_buffer_position): Remove unused vars.
11772
0acdaf8d
KH
117732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11774
4c4475a8
GM
11775 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
11776 Fix overflow checking.
0acdaf8d 11777
6c8a0ebf
GM
117782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11779
11780 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
11781 Cancel previous change.
11782
117832008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
11784
11785 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
11786 ccl->eight_bit_control. Fix check for buffer overflow.
11787 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
11788 (ccl_driver): Initialize extra_bytes to 0.
11789
a32aad64
KH
117902008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
11791
11792 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
11793 return it ORed with ctrl_modifier.
11794
8b329dba
MB
117952008-01-29 Miles Bader <miles@gnu.org>
11796
11797 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
11798
548667aa
JR
117992008-01-28 Jason Rumney <jasonr@gnu.org>
11800
11801 * w32.c (stat): Don't double check for networked drive.
11802
0975aa24
SM
118032008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
11804
ef264c42
SM
11805 * window.c (run_window_configuration_change_hook): New function.
11806 Code extracted from set_window_buffer. Set the selected frame.
11807 (set_window_buffer): Use it.
11808 * window.h (run_window_configuration_change_hook): Declare.
11809 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
11810
0975aa24
SM
11811 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
11812
9c28b587
DN
118132008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
11814
11815 * Makefile.in: Remove references to unused macros.
11816
c617afce
EZ
118172008-01-26 Eli Zaretskii <eliz@gnu.org>
11818
11819 * w32.c (g_b_init_get_sid_sub_authority)
11820 (g_b_init_get_sid_sub_authority_count): New static variables.
11821 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
11822 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
11823 (init_user_info): Use them to retrieve uid and gid.
11824 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
11825 (fstat): Use pw_uid and pw_gid from the_passwd structure for
11826 st_uid and st_gid of the file.
c617afce 11827
302d7d54
JR
118282008-01-26 Jason Rumney <jasonr@gnu.org>
11829
11830 * w32.c (logon_network_drive): New function.
11831 (stat): Use it.
11832
3ac7a21e
CY
118332008-01-26 Chong Yidong <cyd@stupidchicken.com>
11834
11835 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
11836 invisible text covered with an ellipsis.
11837
bbb9fc1f
RS
118382008-01-25 Richard Stallman <rms@gnu.org>
11839
11840 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
11841 jump back to beginning. Move some other initializations after that.
11842 (Qwindow_text_change_functions, Vwindow_text_change_functions):
11843 New variables.
11844 (syms_of_xdisp): Init them.
11845
11846 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
11847
0975aa24
SM
11848 * buffer.c (reset_buffer_local_variables):
11849 Implement `permanent-local-hook'.
bbb9fc1f 11850 (Qpermanent_local_hook): New variable.
0975aa24 11851 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 11852
79235cbe
MA
118532008-01-25 Michael Albinus <michael.albinus@gmx.de>
11854
11855 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
11856
ccd8f7fe
TTN
118572008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
11858
11859 * fns.c (Fclrhash): Return TABLE.
11860
dfbe40f2 118612008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
11862
11863 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
11864 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
11865 is set even without positional changes.
11866 (x_scroll_bar_clear): Set bar->redraw_needed_p.
11867
11868 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
11869
dfbe40f2 118702008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 11871
d6169680
JR
11872 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
11873
602e142f
JR
11874 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
11875 the unicode range available in MULE by locale-coding-system.
c041e2d1 11876 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
11877 earlier.
11878
dfbe40f2 118792008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
11880
11881 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
11882 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 11883 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
11884 when used on child processes.
11885
8c7a4ac5
MA
118862008-01-21 Michael Albinus <michael.albinus@gmx.de>
11887
e0df1b73 11888 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 11889 Fdbus_method_return.
e0df1b73 11890 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 11891 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 11892 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 11893
8abe0f97
MR
118942008-01-20 Martin Rudalics <rudalics@gmx.at>
11895
11896 * undo.c (undo_inhibit_record_point): New variable.
11897 (syms_of_undo): Initialize it.
11898 (record_point): Don't record point when undo_inhibit_record_point
11899 is set.
11900
c3b232e4
SM
119012008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
11902
e69c4cae
SM
11903 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
11904
823e0ebb
SM
11905 * xdisp.c (Qauto_hscroll_mode): New var.
11906 (syms_of_xdisp): Initialize it.
11907 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
11908 window's buffer.
11909 (hscroll_windows): Don't check automatic_hscrolling_p here.
11910
c3b232e4
SM
11911 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
11912 vscroll if we're setting window-buffer to the value it already has.
11913
76ed5e01
DN
119142008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
11915
11916 * m/intel386.h: Remove references to XENIX.
11917
55e6d9b2
AS
119182008-01-17 Andreas Schwab <schwab@suse.de>
11919
11920 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
11921 instead of HAVE_X86_64_LIB64_DIR.
11922 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
11923
b16ed52d
GM
119242008-01-17 Glenn Morris <rgm@gnu.org>
11925
11926 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
11927 to HAVE_X86_64_LIB64_DIR.
11928
6bed5c4a
DN
119292008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
11930
11931 * s/irix3-3.h:
11932 * s/irix4-0.h:
11933 * s/386-ix.h:
11934 * s/domain.h:
11935 * s/hpux9-x11r4.h:
11936 * s/hpux9shxr4.h: Remove files for systems no longer supported.
11937
11938 * sysdep.c: Remove code containing references to symbols defined
11939 by unsupported systems.
11940
fdecf907
GM
119412008-01-16 Glenn Morris <rgm@gnu.org>
11942
11943 * coding.c (select-safe-coding-system-function): Doc fix.
11944
9292328f
GM
119452008-01-15 Glenn Morris <rgm@gnu.org>
11946
11947 * config.in: Revert 2008-01-13 change: this is a generated file.
11948
944df511
MO
119492008-01-13 Tom Tromey <tromey@redhat.com>
11950
11951 * lisp.h: Fix typo.
11952
8111ec05
DN
119532008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11954
f40f5dc3
DN
11955 * m/sequent-ptx.h:
11956 * m/sequent.h:
11957 * s/ptx.h:
11958 * s/ptx4-2.h:
11959 * s/ptx4.h: Remove files for systems no longer supported.
11960
ce20b664 11961 * callproc.c (Fcall_process): Fix previous change.
8111ec05 11962
e39a993c
DN
119632008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11964
052e457f 11965 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 11966
290afd83
JB
11967 * m/mips.h:
11968 * m/intel386.h:
e39a993c
DN
11969 * callproc.c:
11970 * config.in:
11971 * ecrt0.c:
11972 * emacs.c:
11973 * fileio.c:
11974 * frame.c:
11975 * getpagesize.h:
11976 * keyboard.c:
11977 * lread.c:
11978 * process.c:
11979 * puresize.h:
11980 * sysdep.c:
11981 * systty.h:
11982 * syswait.h:
11983 * unexec.c:
11984 * xdisp.c:
11985 * alloc.c: Remove code containing references to symbols defined by
11986 unsupported systems.
11987
81cd7687
KH
119882008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
11989
11990 * coding.c (detect_coding_mask): Fix previous change.
11991
218b3b76
KH
119922008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
11993
11994 * coding.c (detect_coding_iso2022): New arg
11995 latin_extra_code_state. Allow Latin extra codes only
11996 when *latin_extra_code_state is nonzero.
11997 (detect_coding_mask): If there is a NULL byte, detect the encoding
11998 as UTF-16 or binary. If Latin extra codes exist, detect the
11999 encoding as ISO-2022 only when there's no other proper encoding is
12000 found.
12001
59ce725a 120022008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 12003
59ce725a
MB
12004 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
12005 #ifdef MAC_OS.
048addec 12006
59ce725a 120072008-01-08 Richard Stallman <rms@gnu.org>
048addec 12008
59ce725a 12009 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 12010
8290574e
NR
120112008-01-06 Nick Roberts <nickrob@snap.net.nz>
12012
a0a3805c 12013 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
12014 menu bar in parentheses.
12015
f3041af1
DN
120162008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
12017
12018 * m/7300.h:
12019 * m/acorn.h:
12020 * m/alliant-2800.h:
12021 * m/alliant.h:
12022 * m/alliant1.h:
12023 * m/alliant4.h:
12024 * m/altos.h:
12025 * m/amdahl.h:
12026 * m/apollo.h:
12027 * m/att3b.h:
12028 * m/aviion-intel.h:
12029 * m/aviion.h:
12030 * m/celerity.h:
12031 * m/clipper.h:
12032 * m/cnvrgnt.h:
12033 * m/convex.h:
12034 * m/cydra5.h:
12035 * m/delta88k.h:
12036 * m/dpx2.h:
12037 * m/dual.h:
12038 * m/elxsi.h:
12039 * m/f301.h:
12040 * m/gould-np1.h:
12041 * m/gould.h:
12042 * m/i860.h:
12043 * m/ibmps2-aix.h:
12044 * m/ibmrt-aix.h:
12045 * m/ibmrt.h:
12046 * m/irist.h:
12047 * m/is386.h:
12048 * m/isi-ov.h:
12049 * m/mega68.h:
12050 * m/mg1.h:
12051 * m/news-r6.h:
12052 * m/news-risc.h:
12053 * m/news.h:
12054 * m/nh3000.h:
12055 * m/nh4000.h:
12056 * m/ns16000.h:
12057 * m/ns32000.h:
12058 * m/nu.h:
12059 * m/orion.h:
12060 * m/orion105.h:
12061 * m/paragon.h:
12062 * m/pfa50.h:
12063 * m/plexus.h:
12064 * m/pyramid.h:
12065 * m/pyrmips.h:
12066 * m/sh3el.h:
12067 * m/sps7.h:
12068 * m/sr2k.h:
12069 * m/stride.h:
12070 * m/sun1.h:
12071 * m/sun2.h:
12072 * m/sun3-68881.h:
12073 * m/sun3-fpa.h:
12074 * m/sun3-soft.h:
12075 * m/sun3.h:
12076 * m/sun386.h:
12077 * m/symmetry.h:
12078 * m/tad68k.h:
12079 * m/tahoe.h:
12080 * m/targon31.h:
12081 * m/tek4300.h:
12082 * m/tekxd88.h:
12083 * m/tower32.h:
12084 * m/tower32v3.h:
12085 * m/ustation.h:
12086 * m/wicat.h:
12087 * m/xps100.h:
12088 * s/cxux.h:
12089 * s/cxux7.h:
12090 * s/dgux.h:
12091 * s/dgux4.h:
12092 * s/dgux5-4-3.h:
12093 * s/dgux5-4r2.h:
12094 * s/esix.h:
12095 * s/esix5r4.h:
12096 * s/hiuxmpp.h:
12097 * s/hiuxwe2.h:
12098 * s/iris3-5.h:
12099 * s/iris3-6.h:
12100 * s/isc2-2.h:
12101 * s/isc3-0.h:
12102 * s/isc4-0.h:
12103 * s/isc4-1.h:
12104 * s/newsos5.h:
12105 * s/newsos6.h:
12106 * s/osf1.h:
12107 * s/osf5-0.h:
12108 * s/riscix1-1.h:
12109 * s/riscix12.h:
12110 * s/sco4.h:
12111 * s/sco5.h:
12112 * s/sunos4-0.h:
12113 * s/sunos4-1.h:
12114 * s/sunos413.h:
12115 * s/sunos4shr.h:
12116 * s/umax.h:
12117 * s/unipl5-2.h:
12118 * s/xenix.h:
12119 * cxux-crt0.s:
12120 * unexapollo.c:
12121 * unexconvex.c:
12122 * unexenix.c:
12123 * unexsni.c: Remove files for systems no longer supported.
12124
12125 * m/intel386.h: Remove references to unsupported systems.
12126
12127 * w32.c (get_emacs_configuration): Remove reference to i860.
12128
12129 * sysdep.c: Remove dead code.
12130
d35e1cd7
DN
121312008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
12132
12133 * s/rtu.h:
a0a3805c 12134 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 12135
abe136ee
MA
121362008-01-04 Michael Albinus <michael.albinus@gmx.de>
12137
12138 * dbusbind.c (Fdbus_method_return): New function.
12139 (xd_read_message): Add the serial number to the event.
12140 (Fdbus_register_method): Activate the function.
12141
87df3c32
SM
121422008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
12143
12144 * keyboard.c (read_key_sequence): Fix typo.
12145
5125905e
MA
121462008-01-03 Michael Albinus <michael.albinus@gmx.de>
12147
12148 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
12149 (xd_signature, xd_append_arg): Handle element type detection for
12150 empty arrays.
12151 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
12152 SDATA () calls; this must be solved more general.
12153 (Fdbus_register_signal): Use SBYTES instead of strlen.
12154
8bba1b5c
MH
121552008-01-03 Magnus Henoch <magnus@zemdatav>
12156
12157 * dbusbind.c (xd_append_arg): Use unsigned char instead of
12158 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 12159 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 12160
a0a3805c 121612007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
12162
12163 * dbusbind.c (xd_read_message): Use non-static input_event struct.
12164
a271e124
MH
121652007-12-31 Magnus Henoch <mange@freemail.hu>
12166
12167 * dbusbind.c (xd_signature): Signature of variant is just "v".
12168
17bc8f94
MA
121692007-12-30 Michael Albinus <michael.albinus@gmx.de>
12170
87df3c32 12171 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 12172 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
12173 (XD_ERROR, XD_DEBUG_MESSAGE)
12174 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
10d1d0af 12175 (xd_append_arg): Part for basic D-Bus types rewritten.
17bc8f94
MA
12176 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
12177 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
12178 appropriate.
12179 (xd_read_message): Return Qnil. Don't signal an error; it is not
12180 useful during event reading.
12181 (Fdbus_register_signal): Signal an error if the check for
12182 FUNCTIONP fails.
12183 (Fdbus_register_method): New function. The implementation is not
12184 complete, the call of the function signals an error therefore.
12185 (Fdbus_unregister_object): New function, renamed from
12186 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 12187 the object is not well formed.
17bc8f94 12188
dd6f2802
RS
121892007-12-30 Richard Stallman <rms@gnu.org>
12190
12191 * textprop.c (get_char_property_and_overlay):
12192 Signal error if POSITION is out of range in a buffer.
12193
1da8a031
MR
121942007-12-29 Martin Rudalics <rudalics@gmx.at>
12195
12196 * w32fns.c (Fx_create_frame): Make copy of frame parameters
12197 because the original parameters are in pure storage now.
12198
5742be86
YM
121992007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12200
12201 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
12202
b014713c
EZ
122032007-12-22 Eli Zaretskii <eliz@gnu.org>
12204
b17f53ab
MB
12205 * callint.c (syms_of_callint) <command-history>: Add reference to
12206 history-length in the doc string.
048addec 12207
b17f53ab 122082007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 12209
b17f53ab
MB
12210 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
12211 before passing as wParam.
048addec 12212
9af5078b
MA
122132007-12-22 Michael Albinus <michael.albinus@gmx.de>
12214
12215 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
12216 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
12217 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
12218 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
12219 as number.
12220 (Fdbus_call_method): Fix docstring.
12221
87cf1a39
MA
122222007-12-21 Michael Albinus <michael.albinus@gmx.de>
12223
12224 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
12225 New macros.
87df3c32 12226 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
12227 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
12228 Simplify.
87cf1a39
MA
12229 (xd_signature): New function.
12230 (xd_append_arg): Compute also signatures. Major rewrite.
12231 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
12232 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
12233 Check for signatures of arguments.
87cf1a39 12234
54371585
MA
122352007-12-19 Michael Albinus <michael.albinus@gmx.de>
12236
12237 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
12238 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
12239 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
12240 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
12241 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 12242 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
12243 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
12244 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 12245 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
12246 (xd_append_arg): New function.
12247 (Fdbus_call_method, Fdbus_send_signal): Apply it.
12248
f5306ca3
MA
122492007-12-16 Michael Albinus <michael.albinus@gmx.de>
12250
12251 * dbusbind.c (top): Include <stdio.h>.
12252 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
12253 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
12254 (Fdbus_register_signal): Rename unique_name to uname.
12255 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
12256 non-existing unique name. Fix typos in matching rule. Return an
12257 object which is useful in Fdbus_unregister_signal.
12258 (Fdbus_unregister_signal): Reimplementation, in order to remove
12259 only the corresponding entry.
12260 (Vdbus_registered_functions_table): Change the order of entries.
12261 Apply these changes in xd_read_message and Fdbus_register_signal.
12262
77a28bbf
AS
122632007-12-16 Andreas Schwab <schwab@suse.de>
12264
12265 * fileio.c (Finsert_file_contents): Fix overflow check to not
12266 depend on undefined integer overflow.
12267
2e3566d8
JR
122682007-12-14 Jason Rumney <jasonr@gnu.org>
12269
12270 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
12271 for characters above 127.
12272
bf254037
JR
122732007-12-13 Jason Rumney <jasonr@gnu.org>
12274
12275 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
12276 before dereferencing array.
12277 (lookup_vk_code): Remove zero comparison.
12278
eb7c7bf5
MA
122792007-12-14 Michael Albinus <michael.albinus@gmx.de>
12280
12281 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
12282 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
12283 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
12284 (xd_read_message, Fdbus_register_signal): Split expressions into
12285 multiple lines before operators "&&" and "||", according to the
12286 GNU Coding Standards.
12287
34fb0fc9
EZ
122882007-12-14 Eli Zaretskii <eliz@gnu.org>
12289
12290 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
12291
c7d97628
JL
122922007-12-12 Juri Linkov <juri@jurta.org>
12293
12294 * buffer.c (Frename_buffer): In interactive spec replace
12295 `read-buffer' with `read-string' that uses `buffer-name-history'
12296 as history, and the current buffer's name as default.
12297
3709505e
SM
122982007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
12299
12300 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
12301 manipulating the backtrace manually.
12302 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
12303 (struct backtrace, backtrace_list): Remove.
12304 (command_loop_1): Remove dead var `no_direct'.
12305
12306 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
12307 preserve non-built-in buffer-local variables.
12308 (Fkill_all_local_variables): Don't re-create&re-set permanent
12309 buffer-local variables.
12310
e2bec886
JL
123112007-12-09 Juri Linkov <juri@jurta.org>
12312
12313 * buffer.c (Frename_buffer): Change interactive spec from "s" to
12314 Lisp code that uses `read-buffer' with current buffer as default.
12315
a31d47c7
MA
123162007-12-08 Michael Albinus <michael.albinus@gmx.de>
12317
12318 * dbusbind.c (xd_read_message): Generate an event for every
12319 registered handler. There might be several handlers registered
12320 for the same signal.
12321 (Fdbus_register_signal): Don't overwrite a registration for the
12322 same signal. Add a new registration if handlers are different.
12323 (Vdbus_registered_functions_table): Rework doc string.
12324
52da95fa
MA
123252007-12-07 Michael Albinus <michael.albinus@gmx.de>
12326
12327 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
12328 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
12329 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
12330 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
12331 Unify argument lists.
a0a3805c 12332 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
12333 arguments and hash table keys. Use unique name for service.
12334 (Fdbus_unregister_signal): Remove checks.
12335 (Vdbus_registered_functions_table): Fix doc string.
12336
e5e76c04 123372007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
12338
12339 * process.c (make_process): Initialize pty_flag to 0.
12340
e5e76c04 123412007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
12342
12343 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
12344 specified XBMs.
12345
e5e76c04 123462007-12-05 Richard Stallman <rms@gnu.org>
048addec 12347
e5e76c04 12348 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 12349
e5e76c04 123502007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 12351
e5e76c04
MB
12352 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
12353 New variable.
12354 (mac_try_close_socket) [MAC_OSX]: New function.
12355 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
12356 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 12357
e5e76c04
MB
12358 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
12359 Use mac_try_close_socket.
048addec 12360
e5e76c04 123612007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 12362
e5e76c04
MB
12363 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
12364 reloc_base.
12365 (copy_dysymtab): Compute relocation base here.
12366 (rebase_reloc_address) [__ppc64__]: New function.
12367 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
12368 changed.
048addec 12369
e5e76c04 123702007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 12371
e5e76c04 12372 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 12373
e5e76c04 123742007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 12375
e5e76c04
MB
12376 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
12377 __objc_* sections.
12378 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 12379
96faeb40
MA
123802007-12-05 Michael Albinus <michael.albinus@gmx.de>
12381
12382 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
12383 Move check for Vdbus_registered_functions_table to
12384 xd_read_queued_messages.
12385 (xd_read_queued_messages): Protect xd_read_message calls by
12386 internal_condition_case_1.
12387
39abdd4a
MA
123882007-12-04 Michael Albinus <michael.albinus@gmx.de>
12389
87df3c32 12390 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 12391 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 12392 (Vdbus_intern_symbols): Remove.
39abdd4a 12393 (Vdbus_registered_functions_table): New hash table.
87df3c32 12394 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 12395 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 12396 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
12397 Vdbus_registered_functions_table.
12398
880820fe 123992007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
12400
12401 * xterm.c: Update URL to Window Manager Specification in comment.
12402
033b73e2
MA
124032007-12-02 Michael Albinus <michael.albinus@gmx.de>
12404
12405 * config.in (HAVE_DBUS): Add.
12406
a0a3805c 12407 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
12408 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
12409 (obj): Add $(DBUS_OBJ).
12410 (LIBES): Add $(DBUS_LIBS).
12411 (dbusbind.o): New target.
12412
12413 * dbusbind.c: New file.
12414
12415 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
12416
12417 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 12418 (Qdbus_event): New Lisp symbol.
033b73e2 12419 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 12420 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
12421 (keys_of_keyboard ): Define dbus-event.
12422
12423 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
12424
39d0bf74
RS
124252007-12-01 Richard Stallman <rms@gnu.org>
12426
12427 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
12428
f3157c65
JR
124292007-11-30 Jason Rumney <jasonr@gnu.org>
12430
12431 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
12432 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
12433 (w32_face_attributes): Don't use color indexes that are out of range.
12434 Only reverse the default colors.
f3157c65
JR
12435
12436 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
12437 WINDOWSNT.
12438
12439 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
12440
b510360c
JR
124412007-11-29 Jason Rumney <jasonr@gnu.org>
12442
12443 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
12444 (w32_face_attributes): Use Vtty_defined_color_alist to determine
12445 if the terminal colors are initialized.
12446 (unspecified_fg, unspecified_bg): Remove unused declarations.
12447
4b7ab1c4
AS
124482007-11-29 Andreas Schwab <schwab@suse.de>
12449
12450 * keyboard.c (apply_modifiers): Fix typo.
12451
4bb6c266
RS
124522007-11-29 Richard Stallman <rms@gnu.org>
12453
12454 * keymap.c (Fcurrent_local_map): Doc fix.
12455
aa44cd84
GM
124562007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
12457
12458 * s/gnu-kfreebsd.h: New file.
12459
21ec2c43
SM
124602007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
12461
cc648cef
SM
12462 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
12463 Don't cast redundantly.
12464
21ec2c43
SM
12465 * keyboard.c (KEY_TO_CHAR): New macro.
12466 (parse_modifiers, apply_modifiers): Accept integer arguments.
12467 (read_key_sequence): Use them to unify the "shift->unshift" mapping
12468 for chars and symbol keys.
12469 After doing such remapping, apply function-key-map again.
12470
73e72da4
DN
124712007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
12472
12473 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
12474 compiled anymore.
12475
254693ff
AS
124762007-11-26 Andreas Schwab <schwab@suse.de>
12477
12478 * process.c (list_processes_1): Fix indentation level of the
12479 command column.
12480
ff6e6ac8
AS
124812007-11-23 Andreas Schwab <schwab@suse.de>
12482
12483 * editfns.c (Fformat): Handle %c specially since it requires the
12484 argument to be of type int.
12485
f7cf8b20
SM
124862007-11-23 Markus Triska <markus.triska@gmx.at>
12487
12488 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 12489 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 12490
569c11e3
SM
124912007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
12492
8787dd73
SM
12493 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
12494 (find_symbol_value): Use do_symval_forwarding.
12495
569c11e3
SM
12496 * data.c (set_internal): Set the value in the `cons-cell' (for
12497 Buffer_Local_values) not only for frame-local variables.
12498
6af1696d
AS
124992007-11-22 Andreas Schwab <schwab@suse.de>
12500
12501 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
12502 values to sprintf.
12503 * keymap.c (Fsingle_key_description): Likewise.
12504 * print.c (print_object): Likewise.
12505
880820fe 125062007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
12507
12508 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
12509 file for image is nil.
12510
7c401d15
DN
125112007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
12512
12513 * term.c: Include stdarg.h.
569c11e3 12514 (fatal): Implement using varargs.
a0a3805c 12515 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 12516
64e16c3c
SM
125172007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12518
12519 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
12520 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
12521 Update call to buffer_slot_type_mismatch.
12522 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
12523 (buffer_slot_type_mismatch): Update.
12524 * buffer.c (buffer_local_types): Remove.
12525 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
12526 (defvar_per_buffer): Set the type in the buffer_objfwd.
12527
d4aa48db 125282007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 12529
64e16c3c
SM
12530 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
12531 CreateFileMapping returns NULL on failure.
5f42a7eb 12532
d4aa48db 125332007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 12534
d4aa48db
MB
12535 * search.c (Fset_match_data): Remove the `evaporate' feature.
12536 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 12537
bdae0540
JR
125382007-11-21 Jason Rumney <jasonr@gnu.org>
12539
12540 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
12541
12542 * w32console.c (w32con_write_glyphs): Remove unused variables.
12543
202c09a8
DN
125442007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
12545
b951420f
DN
12546 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
12547
202c09a8
DN
12548 * s/darwin.h (MULTI_KBOARD): Remove.
12549
12550 * macfns.c (x_create_tip_frame, Fx_create_frame)
12551 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
12552
bae72c12
SM
125532007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12554
e7c10f83
SM
12555 * buffer.c (Fbuffer_local_value): Remove redundant test.
12556 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
12557 than in `current-buffer' to match the comment.
12558 Do the swap using swap_in_global_binding.
12559
136eb6ed
SM
12560 * data.c (store_symval_forwarding, set_internal):
12561 * eval.c (specbind): Remove dead code.
12562
bae72c12
SM
12563 * coding.c (detect_coding, Fupdate_coding_systems_internal):
12564 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
12565 Since we do not want to see internal Lisp_*fwd objects here.
12566
880820fe 125672007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 12568
3d66b985
JD
12569 * sysdep.c (init_system_name): Use getaddrinfo if available.
12570
95fbaefc
JD
12571 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
12572 (x_scroll_bar_note_movement): start, end, with, height in struct
12573 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
12574
6c1d8cb6
DN
125752007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
12576
12577 * puresize.h (BASE_PURESIZE): Increase to 1190000.
12578
30f95089
SM
125792007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
12580
66b04bd4
SM
12581 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
12582 This undoes Richard's change of 14-Oct-2002.
12583
6d3f2bb2
SM
12584 * alloc.c (allocate_other_vector):
12585 * lisp.h (allocate_other_vector): Remove.
12586
b05b4e27
SM
12587 * window.c (struct save_window_data): Move non-lisp data to the end
12588 and make it `int' rather than Lisp_Object.
12589 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
12590 Done wrap/unwrap integer values.
12591 (Fset_window_configuration, compare_window_configurations):
12592 Update use of fields to their new types.
12593
056ce195
SM
12594 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
12595 Turn integer fields into `int'. Merge x_window_low and x_window_high.
12596 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
12597 (SET_SCROLL_BAR_X_WINDOW): Remove.
12598 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
12599 Access the new x_window field directly.
12600 * xterm.c (x_scroll_bar_create): Use a pseudovector.
12601 Don't wrap/unwrap integers into Lisp_Objects.
12602 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
12603 (x_scroll_bar_report_motion):
12604 Don't wrap/unwrap integers into Lisp_Objects.
12605 (x_term_init): Use SDATA.
12606 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
12607 (x_scroll_bar_set_handle, x_scroll_bar_remove)
12608 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
12609 (x_scroll_bar_report_motion, x_scroll_bar_clear):
12610 * xfns.c (x_set_background_color):
12611 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
12612 Access the new x_window field directly.
12613
30f95089
SM
12614 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
12615 (allocate_pseudovector): Make non-static.
6d3f2bb2 12616
30f95089
SM
12617 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
12618 (allocate_pseudovector): Declare.
6f69e89b 12619 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 12620
9b6112e8
AS
126212007-11-15 Andreas Schwab <schwab@suse.de>
12622
30f95089
SM
12623 * editfns.c (Fformat): Correctly format EMACS_INT values.
12624 Also take precision into account when formatting an integer.
0f860bd7 12625
9b6112e8
AS
12626 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
12627
262fcd41
SM
126282007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
12629
58da34c7
SM
12630 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
12631 (syms_of_keyboard): Defsubr it.
12632
262fcd41
SM
12633 * data.c (swap_in_global_binding): Fix longstanding bug where
12634 store_symval_forwarding was not called with the right second argument,
12635 thus causing objfwd-ing from being dropped.
12636
d29a9848
JB
126372007-11-14 Juanma Barranquero <lekktu@gmail.com>
12638
12639 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
12640 (Fx_display_pixel_height, Fx_display_planes)
12641 (Fx_display_color_cells, Fx_server_max_request_size)
12642 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12643 (Fx_display_visual_class, Fx_display_save_under):
12644 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
12645 (Fx_display_pixel_height, Fx_display_planes)
12646 (Fx_display_color_cells, Fx_server_max_request_size)
12647 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12648 (Fx_display_mm_height, Fx_display_mm_width)
12649 (Fx_display_backing_store, Fx_display_visual_class)
12650 (Fw32_select_font, Fx_display_save_under):
12651 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
12652 (Fx_display_pixel_height, Fx_display_planes)
12653 (Fx_display_color_cells, Fx_server_max_request_size)
12654 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12655 (Fx_display_save_under): Fix typos in docstrings.
12656
74084731
JB
126572007-11-14 Juanma Barranquero <lekktu@gmail.com>
12658
12659 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
12660 corresponding to deleted entries; they are an implementation detail.
12661 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
12662 Remove variables.
12663 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
12664 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
12665 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
12666 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
12667 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 12668 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 12669 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
12670 Fix typos in docstrings.
12671 (Fx_server_version): Reflow docstring.
12672 (Fw32_shell_execute): Doc fixes.
74084731 12673
fb053a1f
JB
126742007-11-13 Juanma Barranquero <lekktu@gmail.com>
12675
12676 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
12677 if w32_parse_hot_key returned nil.
12678
a457417e 126792007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 12680
a457417e 12681 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 12682
4b219faa
JR
126832007-11-09 Jason Rumney <jasonr@gnu.org>
12684
12685 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
12686
12687 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
12688
12689 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
12690 Remove W32_SCROLL_BAR_CLICK_EVENT.
12691
12692 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
12693 Add MULTIMEDIA_KEY_EVENT.
12694
12695 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
12696 (lispy_multimedia_keys) [WINDOWSNT]: New array.
12697 (make_lispy_event) [WINDOWSNT]: Use it to translate
12698 MULTIMEDIA_KEY_EVENT.
12699
12700 * w32term.h (WM_APPCOMMAND): Define if not already.
12701 (GET_APPCOMMAND_LPARAM): Likewise.
12702
12703 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
12704 WM_APPCOMMAND.
12705
12706 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
12707 (syms_of_w32fns): Export and initialize it.
12708 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
12709
c12ecb0a 127102007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
12711
12712 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
12713 twice.
12714
12715 * xdisp.c (handle_face_prop): Fix last change.
12716
c12ecb0a 127172007-11-09 Richard Stallman <rms@gnu.org>
048addec 12718
c12ecb0a
MB
12719 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
12720 not just for after-strings and before-strings.
12721 Call face_for_overlay_string and pass the overlay to it.
12722 (handle_display_prop): Determine whether property came from an overlay.
12723 Pass OVERLAY arg to handle_single_display_spec.
12724 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
12725 (load_overlay_strings): Fill in it->string_overlays.
12726 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 12727
c12ecb0a
MB
12728 * xfaces.c (face_for_overlay_string): Function renamed from
12729 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 12730
c12ecb0a
MB
12731 * dispextern.h (struct it): New elt string_overlays.
12732 New elt from_overlay, also in stack.
12733 Rearrange a few elements.
12734 (face_for_overlay_string): Decl renamed from
12735 face_at_buffer_position_no_overlays, and add argument.
15fff01d 12736
c12ecb0a 127372007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 12738
c12ecb0a
MB
12739 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
12740 to get the base face for an overlay string.
0d8466cc 12741
c12ecb0a 12742 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 12743
c12ecb0a 12744 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 12745
c12ecb0a 12746 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 12747
c12ecb0a 127482007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 12749
c12ecb0a
MB
12750 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
12751 Fix conversion from Lisp object to ATSUFontID.
07025a55 12752
c12ecb0a 127532007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 12754
c12ecb0a 12755 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 12756
c12ecb0a 127572007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 12758
c12ecb0a
MB
12759 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
12760 Don't assume regions are aligned to page boundary.
12761 (print_load_command_name): Add LC_UUID if defined.
3a232704 12762
c12ecb0a 127632007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 12764
c12ecb0a 12765 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 12766
b8ddfbcc
JR
127672007-11-07 Jason Rumney <jasonr@gnu.org>
12768
12769 * s/windows95.h: Remove.
12770
880820fe 127712007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
12772
12773 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
12774 abort with a message on unhandled store_type values.
12775
880820fe 127762007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
12777
12778 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
12779 Remove HAVE_X11R5 and HAVE_X11R4.
12780
04a697fe
DN
127812007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
12782
12783 * Makefile.in: Remove references to sunfns.c and sunfns.o.
12784
880820fe 127852007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
12786
12787 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 12788 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
12789 x_set_glyph_string_gc from x_draw_glyph_string.
12790
07e5c0b0
DN
127912007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
12792
2a2e8de7 12793 * sunfns.c: Remove file.
07e5c0b0
DN
12794
12795 * m/sun386.h:
12796 * m/sun2.h:
12797 * m/sparc.h: Remove Sun windows code.
12798
1bc973c2
SM
127992007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
12800
12801 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
12802 (init_keyboard): Set current_kboard's window-system to nil.
12803 (tty_read_avail_input): Typo.
12804 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
12805
c22140f6
DN
128062007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
12807
12808 * s/usg5-4.h:
12809 * s/usg5-3.h:
12810 * s/ptx.h:
12811 * m/is386.h:
12812 * m/ibmps2-aix.h:
2a2e8de7 12813 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
12814
12815 * dispnew.c (syms_of_display): Don't mention version 10.
12816
660a8219
JB
128172007-10-28 Juanma Barranquero <lekktu@gmail.com>
12818
12819 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
12820 ($(BLD)/abbrev.$(O)): Remove.
12821
e047f448
SM
128222007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12823
12824 Rewrite abbrev.c in Elisp.
12825 * image.c (Qcount): Don't declare as extern.
12826 (syms_of_image): Initialize and staticpro `Qcount'.
12827 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
12828 * emacs.c (main): Don't call syms_of_abbrev.
12829 * Makefile.in (obj): Remove abbrev.o.
12830 (abbrev.o): Remove.
12831 * abbrev.c: Remove.
12832
67b73e3a
MR
128332007-10-26 Martin Rudalics <rudalics@gmx.at>
12834
12835 * window.c (window_min_size_2): Don't count header-line.
12836
e3d7bd83
DN
128372007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
12838
12839 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 12840 field to take advantage of the available space. Group all the
e3d7bd83
DN
12841 chars together to reduce wasted space due to padding.
12842
a3547743
JB
128432007-10-26 Juanma Barranquero <lekktu@gmail.com>
12844
e298936f
JB
12845 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
12846
d3d47262
JB
12847 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
12848 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
12849 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
12850 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
12851 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
12852 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
12853 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
12854 (last_marked, mark_object_loop_halt): Make static.
12855
a3547743
JB
12856 * frame.c (syms_of_frame) <delete-frame-functions>:
12857 Fix typo in docstring.
12858
14c71d8b
JB
128592007-10-25 Juanma Barranquero <lekktu@gmail.com>
12860
12861 * w32.c (init_environment): Fix tiny memory leak.
66199f74 12862 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 12863
70b8d0a4
SM
128642007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
12865
12866 Make `window-system' into a keyboard-local variable (rather than
12867 frame-local as done originally by multi-tty).
12868
12869 * keyboard.h (struct kboard): Add Vwindow_system.
12870 * keyboard.c (init_kboard): Set a default for Vwindow_system.
12871 (mark_kboards): Mark Vwindow_system.
12872
12873 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
12874 (init_display): Don't set the obsolete `window-system' frame-param.
12875
12876 * xterm.c (x_term_init):
12877 * w32term.c (w32_create_terminal):
12878 * term.c (init_tty): Set Vwindow_system.
12879 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
12880 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
12881
12882 * xfns.c (Fx_create_frame, x_create_tip_frame):
12883 * w32fns.c (Fx_create_frame, x_create_tip_frame):
12884 * macfns.c (Fx_create_frame):
12885 Don't set the obsolete `window-system' frame-param.
12886
12887 * frame.h (Qwindow_system): Remove.
12888 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
12889 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
12890
fdc90613 128912007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 12892
fdc90613
MB
12893 * frame.c (x_figure_window_size): For fullscreen case,
12894 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 12895
fdc90613 12896 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 12897
fdc90613 12898 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 12899
7357cb04
SM
129002007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12901
98228e72
SM
12902 * process.c (unwind_request_sigio): Only define if __ultrix__.
12903
1baf6db9
SM
12904 * callproc.c (child_setup): Remove spurious *.
12905
4d0ac3d7
SM
12906 * lisp.h (Fget_text_property): Declare.
12907 (have_menus_p): Declare it here rather than in sys-dep header files.
12908 * macterm.h (have_menus_p):
12909 * msdos.h (have_menus_p):
12910 * xterm.h (have_menus_p): Remove.
12911
7357cb04
SM
12912 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12913 (Fmake_variable_frame_local): Just check the variable's const-ness
12914 rather than checking nil or t.
12915
866e6dd6
JR
129162007-10-22 Jason Rumney <jasonr@gnu.org>
12917
b00afeae
JR
12918 * w32fns.c: Include math.h.
12919 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 12920
c8f7c76b
JR
12921 * s/ms-w32.h (HAVE_STDLIB_H): Define.
12922 (abort): Redefinition moved to nt/config.nt.
12923
866e6dd6
JR
12924 * m/windowsnt.h: Remove.
12925
e79beb56
JB
129262007-10-22 Juanma Barranquero <lekktu@gmail.com>
12927
12928 * emacs.c (Fdump_emacs): Fix typo in message.
12929 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
12930 <installation-directory>: Reflow docstring.
12931
fb30dfd2
JL
129322007-10-22 Juri Linkov <juri@jurta.org>
12933
12934 * minibuf.c: Allow minibuffer default to be a list of default values.
12935 With empty input use the first element of this list as returned default.
e79beb56 12936 (string_to_object)
0f7f11b7 12937 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
12938 (read_minibuf): If defalt is cons, set histstring to its car.
12939 (Fread_string): If default_value is cons, set val to its car.
12940 (Fread_buffer): If def is cons, use its car.
12941 (Fcompleting_read): If defalt is cons, set val to its car.
12942
1f163f28
MA
129432007-10-21 Michael Albinus <michael.albinus@gmx.de>
12944
12945 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
12946
db3534c3
JB
129472007-10-20 Juanma Barranquero <lekktu@gmail.com>
12948
12949 * doc.c (Fdocumentation): Check for advice in all cases.
12950
c6f18a07
CY
129512007-10-19 Chong Yidong <cyd@stupidchicken.com>
12952
12953 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
12954
2a1534d3
RS
129552007-10-19 Richard Stallman <rms@gnu.org>
12956
12957 * doc.c (Fdocumentation): Check for and handle an advised function.
12958
7b82c3b6
JB
129592007-10-19 Juanma Barranquero <lekktu@gmail.com>
12960
12961 * process.c (Fset_process_filter): Doc fix.
12962
3278f20e
SM
129632007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12964
12965 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
12966 which caused key-translation-map to applied repeatedly (thus breaking
12967 double-mode).
12968
99784d63
SM
129692007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12970
12971 * xselect.c (x_own_selection, x_handle_selection_clear)
12972 (x_clear_frame_selections):
12973 * w32menu.c (list_of_panes, list_of_items):
12974 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
12975 * textprop.c (validate_plist, interval_has_all_properties)
12976 (interval_has_some_properties, interval_has_some_properties_list)
12977 (add_properties, text_property_list):
12978 * process.c (Fget_buffer_process, list_processes_1, status_notify):
12979 * minibuf.c (Fassoc_string):
12980 * macselect.c (x_own_selection, x_clear_frame_selections)
12981 (Fx_disown_selection_internal):
12982 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
12983 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
12984
44bb704d
CY
129852007-10-17 Chong Yidong <cyd@stupidchicken.com>
12986
12987 * process.c: Link to libs for calling res_init() if available.
12988 (Fmake_network_process): Call res_init() before getaddrinfo or
12989 gethostbyname, if possible.
12990
d314756e
SM
129912007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12992
2504022a
SM
12993 * lread.c (read1): Set pvectype for char_tables.
12994
19fa82b9
SM
12995 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
12996 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
12997 Add type checks.
12998 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
12999
d314756e
SM
13000 * alloc.c (free_misc): Use XMISCTYPE.
13001 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
13002
94b9aaa2
GM
130032007-10-17 Glenn Morris <rgm@gnu.org>
13004
13005 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
13006 (syms_of_minibuf): Add Qcompletion_ignore_case.
13007 * dired.c (Qcompletion_ignore_case): Change to external.
13008 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
13009 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
13010 (Fread_file_name): Use it rather than intern'ing.
13011
13012 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
13013 (Fread_coding_system): Ignore case of user input.
13014
da6658e8
YM
130152007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13016
13017 * xdisp.c (handle_display_prop): Ignore display specs after
13018 replacing one when string text is being replaced.
13019 (handle_single_display_spec): Pretend as if characters with display
13020 property haven't been consumed only when buffer text is being replaced.
13021
11fb4bdb
SM
130222007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
13023
9beb8baa
SM
13024 * xfns.c (Fx_create_frame, Fx_display_list):
13025 * window.c (window_fixed_size_p, enlarge_window)
13026 (shrink_window_lowest_first):
13027 * macterm.c (init_font_name_table):
13028 * macfns.c (Fx_create_frame, Fx_display_list):
13029 * lread.c (close_load_descs):
13030 * keyboard.c (read_char_x_menu_prompt):
13031 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
13032 * coding.c (code_convert_region_unwind): Test the type of an object
13033 rather than just !NILP before extracting data from it.
13034
d3f41ff5
SM
13035 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
13036
67ee9f6e
SM
13037 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
13038 (XMISCANY): New macro.
13039 (XMISCTYPE): Use it.
13040 (struct Lisp_Misc_Any): New type.
13041 (union Lisp_Misc): Use it.
13042 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
13043 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
13044 (find_symbol_value, set_internal, default_value, Fset_default)
13045 (Fmake_variable_buffer_local, Fmake_local_variable)
13046 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
13047 (Flocal_variable_if_set_p, Fvariable_binding_locus):
13048 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
13049 * alloc.c (allocate_buffer): Set the size and tag.
13050 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
13051 Use XMISCANY.
13052 (die): Follow the GNU convention for error messages.
13053 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
13054 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
13055 tag any more.
13056 (set_buffer_internal_1):
13057 * frame.c (store_frame_param):
13058 * eval.c (specbind):
13059 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
13060
11fb4bdb
SM
13061 * doc.c (Fsnarf_documentation): Simplify.
13062
decb374a
JB
130632007-10-14 Juanma Barranquero <lekktu@gmail.com>
13064
13065 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
13066 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
13067
b5a40ee7
SM
130682007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
13069
13070 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
13071
35277b03
JB
130722007-10-14 Juanma Barranquero <lekktu@gmail.com>
13073
13074 * eval.c (do_autoload): Don't save autoloads.
13075
13076 * data.c (Ffset): Save autoload of the function being set.
13077
35fdaa62
GM
130782007-10-07 John Paul Wallington <jpw@pobox.com>
13079
13080 * xfns.c (x_create_tip_frame): Set the `display-type' frame
13081 parameter before setting up faces.
13082
1ea40aa2
EZ
130832007-10-13 Eli Zaretskii <eliz@gnu.org>
13084
35fdaa62 13085 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
13086 * keyboard.c (append_tool_bar_item): Reformat last change.
13087
1ea40aa2
EZ
13088 * lisp.h (eabs): Rename from `abs'. All callers changed.
13089
35277b03 130902007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
13091
13092 * buffer.c (add_overlay_mod_hooklist):
13093 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
13094 * fontset.c (make_fontset):
13095 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
13096 (append_tool_bar_item):
13097 * macmenu.c (grow_menu_items):
35fdaa62 13098 * w32menu.c (grow_menu_items):
71d00ce4 13099 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 13100
bc82f120
EZ
131012007-10-13 Eli Zaretskii <eliz@gnu.org>
13102
13103 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
13104 selected frame'' on MSDOS).
13105
d57d5a78
MR
131062007-10-12 Martin Rudalics <rudalics@gmx.at>
13107
13108 * frame.c (Qexplicit_name): New variable.
13109 (x_report_frame_params): Report it in parameter alist.
13110 (syms_of_frame): Intern and staticpro it.
13111
35277b03 131122007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
13113
13114 * macfns.c (x_create_tip_frame): Set terminal for frame.
13115
c7a4b95b
SM
131162007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
13117
26f9c7b7
SM
13118 * frame.c (Qenvironment): Remove.
13119 (syms_of_frame) <Qenvironment>: Don't initialize.
13120 (Fdelete_frame): Don't treat the `environment' param specially.
13121 * frame.h (Qenvironment): Don't declare.
13122 * callproc.c (set_initial_environment): Don't set unused frame param.
13123
c7a4b95b
SM
13124 * frame.c (Fframe_with_environment): Remove.
13125 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 13126
c7a4b95b
SM
13127 * lisp.h (Fframe_with_environment): Don't declare.
13128
c86f7377
JB
131292007-10-10 Juanma Barranquero <lekktu@gmail.com>
13130
13131 * indent.c (indent_tabs_mode, last_known_column)
13132 (last_known_column_modified): Make static.
13133 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
13134
d1b3a122
KY
131352007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
13136
13137 * puresize.h (BASE_PURESIZE): Increase to 1170000.
13138
d57d5a78
MR
131392007-10-09 Jason Rumney <jasonr@gnu.org>
13140
13141 * w32term.c (x_set_window_size): Disable code that attempts to tell
13142 Lisp code about a size change before it actually happens.
13143
81d3d428 131442007-10-09 Richard Stallman <rms@gnu.org>
91175673 13145
81d3d428
MB
13146 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
13147 return HANDLED_RETURN.
91175673 13148
1af74d06 131492007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 13150
1af74d06
MB
13151 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
13152 when there's an unread command event.
e0fead5d 13153
c7a4b95b 13154 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
13155 window autoselection act appropriately when leaving selected frame.
13156 (syms_of_frame): Initialize focus_follows_mouse.
13157 * frame.h (focus_follows_mouse): Extern it.
13158 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 13159 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
13160 * msdos.c (dos_rawgetc): Likewise.
13161 * w32term.c (w32_read_socket): Likewise.
13162 * xterm.c (handle_one_xevent): Likewise.
13163 * xdisp.c (syms_of_xdisp): In doc-string of
13164 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 13165
1af74d06 131662007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 13167
1af74d06
MB
13168 * macterm.c (mac_load_query_font): Fix missing return value.
13169 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
13170 Add BLOCK_INPUT.
c186cdb3 13171
1af74d06 131722007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 13173
1af74d06
MB
13174 * xdisp.c (get_window_cursor_type): Implement documented behavior
13175 for cursor-in-non-selected-windows = t.
c186cdb3 13176
1af74d06 131772007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 13178
1af74d06 13179 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 13180
1af74d06 131812007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 13182
1af74d06 13183 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 13184
1af74d06 13185 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 13186
1af74d06 131872007-10-08 Richard Stallman <rms@gnu.org>
a3c83618 13188
c7a4b95b 13189 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 13190
1af74d06 131912007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 13192
1af74d06 13193 * buffer.c (Foverlays_at): Doc fix.
036e218d 13194
1af74d06 131952007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 13196
1af74d06 13197 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 13198
1af74d06 131992007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 13200
1af74d06 13201 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 13202
1af74d06 13203 * frame.h (enum): Remove trailing comma.
90647b07 13204
8993ad2e 132052007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 13206
1af74d06 13207 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 13208
1af74d06 132092007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 13210
1af74d06 13211 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 13212
1af74d06
MB
13213 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
13214 last-repeatable-command.
13215 (init_kboard): Initialize Vlast_repeatable_command.
13216 (command_loop_1): Set it to real_this_command unless that was
13217 bound to an input event.
13218 (mark_kboards): Mark it.
9fbc32aa 13219
1af74d06 132202007-10-08 Richard Stallman <rms@gnu.org>
036e218d 13221
1af74d06 13222 * eval.c (condition-case): Doc fix.
9fbc32aa 13223
1af74d06 132242007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 13225
1af74d06
MB
13226 * xfaces.c (tty_supports_face_attributes_p): Fix code
13227 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
13228 was copied and not edited.
9fbc32aa 13229
beb9f745
SM
132302007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
13231
c86f7377 13232 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
13233 escape sequences.
13234 * keyboard.h (struct kboard): Add Vinput_decode_map.
13235 Remove Vlocal_key_translation_map.
13236 * keyboard.c (read_key_sequence): Add support for input-decode-map.
13237 (init_kboard): Init input-decode-map.
13238 Replace local-key-translation-map back with key-translation-map.
13239 (syms_of_keyboard): Declare input-decode-map.
13240 Remove local-key-translation-map. Update docstrings.
13241 (mark_kboards): Mark Vinput_decode_map.
13242 Don't mark Vlocal_key_translation_map.
13243 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
13244 Replace local-key-translation-map back with key-translation-map.
13245 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
13246 Bind in input-decode-map rather than function-key-map.
13247
beb9f745
SM
13248 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
13249 This was made redundant by the previous introduction of XSETPVECTYPE.
13250
65342ae3
RS
132512007-10-09 Richard Stallman <rms@gnu.org>
13252
beb9f745 13253 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
13254
132552007-09-29 Richard Stallman <rms@gnu.org>
13256
13257 * eval.c (internal_condition_case_2, internal_condition_case_1)
13258 (internal_condition_case): Reenable abort if x_catching_errors ()
13259 to see if that really happens and why.
13260
6cff77fd
AS
132612007-10-06 Andreas Schwab <schwab@suse.de>
13262
13263 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
13264
bbe6f2aa
JB
132652007-10-04 Juanma Barranquero <lekktu@gmail.com>
13266
13267 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
13268
a390930c
SM
132692007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
13270
13271 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
13272
d6aa1876
SM
132732007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
13274
d0fdb6da
SM
13275 * window.h (struct window):
13276 * window.c (struct save_window_data, struct saved_window):
13277 * termhooks.h (struct terminal):
13278 * process.h (struct Lisp_Process):
13279 * frame.h (struct frame):
13280 * buffer.h (struct buffer):
13281 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
13282 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
13283 The size field of (pseudo)vectors is now unsigned.
13284 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
13285
878f97ff
SM
13286 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
13287 Turn `count' into an integer.
d0fdb6da 13288
878f97ff
SM
13289 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
13290 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
13291 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
13292 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
13293 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
13294
d2029e5b
SM
13295 * alloc.c (allocate_pseudovector): New fun.
13296 (ALLOCATE_PSEUDOVECTOR): New macro.
13297 (allocate_window, allocate_terminal, allocate_frame)
13298 (allocate_process): Use it.
13299 (mark_vectorlike): New function.
13300 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
13301 (mark_terminals): Use it.
13302 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
13303 (Fmake_byte_code): Use XSETPVECTYPE.
13304
13305 * frame.c (Fframe_parameters): Minor simplification.
13306
13307 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
13308
13309 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
13310
13311 * buffer.c (Fget_buffer_create, init_buffer_once):
13312 * lread.c (defsubr):
13313 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
13314
13315 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
13316 defined differently in the m/*.h files.
13317 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
13318 (XSETPVECTYPE): New macro.
13319 (XSETPSEUDOVECTOR): Use it.
13320
d6aa1876
SM
13321 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
13322 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 13323
d6aa1876
SM
13324 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
13325 * lread.c (defvar_per_buffer):
13326 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
13327
13328 * window.c (candidate_window_p): Only consider as visible frames that
13329 are on the same terminal.
13330
13331 * m/ibms390x.h (MARKBIT): Remove unused macro.
13332
88852d45
JB
133332007-10-01 Juanma Barranquero <lekktu@gmail.com>
13334
13335 * lread.c (Fload): Fix typo in docstring.
13336
880820fe 133372007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
13338
13339 * floatfns.c (Fexpt): Manually check for overflows, so that a power
13340 of a non-zero value can't yield zero.
13341
ed0c79c6
SM
133422007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
13343
b870aa61
SM
13344 * term.c (term_clear_mouse_face, term_mouse_highlight)
13345 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
13346
4c37a414
SM
13347 * print.c (safe_debug_print): Use XHASH.
13348
b9466edb
SM
13349 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
13350 Lisp elements such as tags.
13351 (XHASH): New macro.
13352 (EQ): Use it.
13353 (SREF, SSET, STRING_COPYIN): Use SDATA.
13354 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
13355
9c545a55
SM
13356 * alloc.c (mark_terminal): Remove left-over declaration.
13357 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
13358 (allocate_vectorlike): Remove type argument. Adjust callers.
13359 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
13360 Only handle the one remaining MEM_TYPE_VECTORLIKE.
13361
dafc79fa
SM
13362 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
13363 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
13364 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
13365 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
13366 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
13367 Use them.
13368
ed0c79c6
SM
13369 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
13370 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
13371 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
13372
3c81afd4
DN
133732007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13374
13375 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
13376 loaded by default.
13377
6178ce5e
SM
133782007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
13379
4ce5ab77
SM
13380 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
13381 on this tty.
13382 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
13383
6178ce5e
SM
13384 * term.c (mouse_face_window): Rename from Qmouse_face_window.
13385 Update all users.
13386 (handle_one_term_event): Use Gpm_DrawPointer.
13387 (Fgpm_mouse_start): Rename from Fterm_open_connection.
13388 Signal errors instead of returning nil. Always return nil.
13389 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
13390 Make it a noop if gpm-mouse was not activated.
13391 (syms_of_term): Update names.
13392
bdf5f8ef
SM
133932007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
13394
75a8734b
SM
13395 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
13396 (init_sys_modes): Check that gpm_tty is the current tty.
13397
13559ee0
SM
13398 * alloc.c (allocate_terminal): Set the vector size to only count the
13399 lisp fields. Initialize those to nil.
13400 (mark_object): Don't treat terminals specially.
13401 (mark_terminal): Remove.
13402 (mark_terminals): Use mark_object instead.
13403
ff16b875
SM
13404 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
13405 the GC to the beginning.
13406
83155776
SM
13407 * indent.h:
13408 * indent.c: Use EMACS_INT for ints coming from Elisp data.
13409
bdf5f8ef
SM
13410 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
13411
ec8705b6
JR
134122007-09-25 Jason Rumney <jasonr@gnu.org>
13413
13414 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
13415
13416 * w32console.c (create_w32cons_output): Remove.
13417
13418 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
13419
13420 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
13421 (reset_sys_modes): Use reset_terminal_modes_hook.
13422
7351b242
SM
134232007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
13424
13425 * eval.c (do_autoload): Don't output any message.
13426
16706228
JL
134272007-09-24 Juri Linkov <juri@jurta.org>
13428
13429 * emacs.c (standard_args): Change priority of "--no-splash"
13430 from 40 to 3. Add "--no-desktop" with the same priority.
13431
3ae2e3a3
RS
134322007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
13433
13434 * alloc.c (gc_sweep): Check cons cell mark bits word by word
13435 and optimize the case where they are all 1.
13436
7a58fb43
GM
134372007-09-23 Johannes Weiner <hannes@saeurebad.de>
13438
3ae2e3a3
RS
13439 * lisp.h (abs): Define if not defined.
13440 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
13441 Don't define `abs', since it's defined in lisp.h.
7a58fb43 13442
78048085
EZ
134432007-09-22 Eli Zaretskii <eliz@gnu.org>
13444
c7a4b95b 13445 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
13446 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
13447 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
13448 (init_tty): Use DEV_TTY instead of "/dev/tty".
13449 [WINDOWSNT]: No need to protect from NAME arg being null.
13450
23d4cba5
DN
134512007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13452
13453 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
13454 up the tty state.
13455
71f44e7a
SM
134562007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
13457
13458 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
13459 (gpm_tty): Change its type.
13460 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
13461 (gpm_tty): Change its type and initialize it.
13462 (Fterm_open_connection): Check the frame is indeed a tty.
13463 Use the new gpm_tty.
13464 (Fterm_close_connection): Use the new gpm_tty.
13465 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
13466 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
13467
def7fa34
JB
134682007-09-21 Juanma Barranquero <lekktu@gmail.com>
13469
13470 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
13471 underline_color, to draw strike-through.
13472
d2bb6598
SM
134732007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
13474
273f164c
SM
13475 * lisp.h (allocate_terminal): Declare.
13476
ca2d5566
SM
13477 * window.c (candidate_window_p): Consider frames that are being placed
13478 by the user as somewhere between visible and iconified.
13479 (window_loop): Prefer windows on the current frame.
13480 (Fselect_window): Move the use of select-frame to the beginning so we
13481 can just delegate all the work (it'll call us back anyway).
13482
6168122d
SM
13483 * frame.c (Qdisplay_environment_variable):
13484 * frame.h (Qdisplay_environment_variable): Delete.
13485
c51842ec
SM
13486 * .gdbinit (xbacktrace): Print the arg's address rather than the value
13487 of the first arg, since that value may be a union.
13488
d2bb6598
SM
13489 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
13490 parameter rather than Qdisplay_environment_variable. If all else
13491 fails, look for DISPLAY in initial-environment.
13492
6f022c19
GM
134932007-09-21 Glenn Morris <rgm@gnu.org>
13494
13495 * Makefile.in (emacstool): Remove target.
f466320b 13496 (lisp, shortlisp): Remove termdev.elc.
6f022c19 13497
ea1bf8c7
GM
134982007-09-21 Markus Triska <markus.triska@gmx.at>
13499
d2bb6598 13500 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 13501
d30a25b3
SM
135022007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
13503
db699fc6
SM
13504 * callproc.c (getenv_internal_1): New function.
13505 (getenv_internal): Use it.
13506 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
13507
d2bb6598 13508 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
13509 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
13510 (Fset_terminal_parameter): Work with dead terminals as well.
13511 (Fmodify_terminal_parameters): Remove.
13512
d30a25b3
SM
13513 * terminal.c (get_terminal): Handle terminals.
13514 Make sure the terminal returned is live.
13515 (create_terminal): Use allocate_terminal.
13516 (mark_terminals): Move to alloc.c.
13517 (delete_terminal): Use terminal->name as liveness status.
13518 NULL out fields after freeing their contents.
13519 Don't deallocate the object.
13520 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
13521 rather than an int.
13522 (Fterminal_live_p): Accept non-integer arguments.
13523 (Fterminal_list): Return terminal objects rather than an ints.
13524
13525 * alloc.c (enum mem_type): New member for `terminal' objects.
13526 (allocate_terminal): New function.
d2bb6598
SM
13527 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
13528 Handle terminals.
d30a25b3
SM
13529 (mark_terminal): New fun.
13530 (mark_terminals): Move from terminal.c.
13531
13532 * term.c (get_tty_terminal): Don't treat output_initial specially.
13533 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
13534 (delete_tty): Use terminal->name as liveness status.
13535
13536 * termhooks.h (struct terminal): Make it into a pseudovector.
13537 Remove `deleted' replaced by checking `name's nullness.
13538
13539 * print.c (print_object): Handle terminals.
13540
13541 * lisp.h (enum pvec_type): New `terminal' pseudovector.
13542 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
13543
13544 * frame.c (make_terminal_frame):
13545 * keyboard.c (tty_read_avail_input):
13546 * w32term.c (x_delete_terminal):
13547 * xfns.c (Fx_create_frame, x_create_tip_frame):
13548 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
13549
eba25e7c
GM
135502007-09-20 Glenn Morris <rgm@gnu.org>
13551
13552 * process.c (Fmake_network_process): Doc fix.
13553
2a29c3c1
JR
135542007-09-19 Jason Rumney <jasonr@gnu.org>
13555
13556 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
13557
880820fe 135582007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
13559
13560 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
13561 Fix a C warning regarding variable constness.
13562
13563 * xterm.c (handle_one_xevent): Fix a C warning.
13564
334a1195
JR
135652007-09-18 Jason Rumney <jasonr@gnu.org>
13566
13567 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
13568
880820fe 135692007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
13570
13571 * gtkutil.c (gdpy_def): New variable.
13572 (xg_initialize): Initialize gdpy_def.
13573 (xg_display_close): If no other display exists, set gdpy_def to a
13574 new connection.
13575
880820fe 135762007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
13577
13578 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
13579 when we have no file name for the icon.
13580 (xg_tool_bar_expose_callback): Remove.
13581 (xg_create_tool_bar): Don't connect expose signal to
13582 xg_tool_bar_expose_callback.
13583 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
13584
4d580af2
AS
135852007-09-16 Andreas Schwab <schwab@suse.de>
13586
13587 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
13588 values instead of zapping them.
13589
aca946f3
GM
135902007-09-14 Glenn Morris <rgm@gnu.org>
13591
13592 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
13593 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
13594 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
13595 scope and rename to omfib_buffer for clarity.
13596 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
13597
25c460e5
KH
135982007-09-14 Kenichi Handa <handa@m17n.org>
13599
13600 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
13601
09b69f01
JR
136022007-09-13 Jason Rumney <jasonr@gnu.org>
13603
13604 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
13605
13606 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
13607
13608 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
13609 (mac_term_init): Call here instead, passing rif.
13610
442218db
GM
136112007-09-13 Glenn Morris <rgm@gnu.org>
13612
13613 * s/hpux.h: No longer define `static' as nothing.
13614
880820fe 136152007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
13616
13617 * callint.c (Fcall_interactively): Remove unused var `fun'.
13618
1971a872
RF
136192007-09-12 Romain Francoise <romain@orebokech.com>
13620
13621 * window.c (prefer_window_split_horizontally, display_buffer):
13622 Revert 2007-09-08 change.
13623
2d33f506
GM
136242007-09-12 Glenn Morris <rgm@gnu.org>
13625
585474ae 13626 * alloca.c: Remove file.
ca7af97a
GM
13627 * Makefile.in (alloca): Do not undef.
13628 (allocaobj, alloca.o): Remove.
13629 (otherobj): Remove allocaobj.
13630 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
13631 * regex.c (C_ALLOCA): Remove all references and code that was only
13632 used when this was defined.
13633 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
13634 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
13635 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
13636
2d33f506 13637 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
13638
13639 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
13640 (menu_grab_callback): All uses changed.
13641
13642 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
13643 (x_reply_selection_request): All uses changed.
2d33f506 13644
18a4a65e
SM
136452007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13646
13647 * lread.c (load_warn_old_style_backquotes): Change message to look
13648 better when it appears in the middle of byte-compiler messages.
13649
47cc8819
DN
136502007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
13651
b7ea0894
DN
13652 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
13653
47cc8819
DN
13654 * xterm.c (x_create_terminal): Add comment.
13655
13656 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
13657
5632bd0f
RS
136582007-09-10 Richard Stallman <rms@gnu.org>
13659
13660 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
13661
880820fe 136622007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 13663
4bca9161
MC
13664 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
13665 (DEFUN): Document `intspec', use it instead of `prompt'.
13666
04724b69
MC
13667 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
13668
8a6d230a
MC
13669 * data.c (Finteractive_form): If the interactive specification starts
13670 with a `(', use it as a Lisp form.
13671
09fbdf6c
MC
13672 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
13673 name and file modes.
13674
ccb5c14f
MC
13675 * callint.c (Fcall_interactively): Comment fixes.
13676
023accd6
SM
136772007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13678
13679 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
13680 and compiled functions.
13681
f26b9544
EZ
136822007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
13683
13684 * window.c (prefer_window_split_horizontally): New variable.
13685 (display_buffer): Consider splitting window horizontally depending
13686 on prefer_window_split_horizontally.
13687
4d395425
EZ
136882007-09-08 Eli Zaretskii <eliz@gnu.org>
13689
97ddc760 13690 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 13691
08c1d235
SM
136922007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13693
179cef48
SM
13694 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
13695
08c1d235
SM
13696 * frame.c (x_set_frame_parameters): Check number is positive before
13697 using XFASTINT.
13698
13699 * window.c (freeze_window_start): Don't presume selected_window holds
13700 a window object.
92f94a12 13701 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 13702
97ddc760 137032007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
13704
13705 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
13706
90ab5c62
SM
137072007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13708
13709 * window.c (Vsplit_window_preferred_function): New var.
13710 (Fdisplay_buffer): Use it.
13711 (syms_of_window): Export, and initialize it.
13712
1ab2cd43
TTN
137132007-09-06 Pixel <pixel@mandriva.com> (tiny change)
13714
13715 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
13716
0b0515bc
GM
137172007-09-06 Glenn Morris <rgm@gnu.org>
13718
57fd5c55 13719 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
13720 * xselect.c (x_reply_selection_request) <cnt>: Move static
13721 variable to file scope.
13722
98594580
SM
137232007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
13724
13725 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
13726 consistent values of selected_frame and selected_window.
13727
0f4c7aef
JR
137282007-09-04 Jason Rumney <jasonr@gnu.org>
13729
13730 * w32console.c (initialize_w32_display): Zero unused hooks.
13731
e4019195
DN
137322007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
13733
13734 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
13735 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
13736
bce179b5
JR
137372007-09-04 Jason Rumney <jasonr@gnu.org>
13738
a0236551
JR
13739 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
13740 in w32console.c. Set up input. Remove XXX comments that have been
13741 confirmed as correct.
13742
a4926668
JR
13743 * s/ms-w32.h (MULTI_KBOARD): Define.
13744
953bf0dc
JR
13745 * w32console.c (one_and_only_w32cons): Remove.
13746 (initialize_w32_display): Take terminal argument.
13747
13748 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
13749 initialize_w32_display.
13750 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
13751
bce179b5
JR
13752 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
13753
13754 * keyboard.c (discard_mouse_events): Discard it.
13755 (make_lispy_event): Translate it to a lisp event.
13756 (lispy_wheel_names): Add wheel-left and right events.
13757 (syms_of_keyboard): Enlarge wheel_syms.
13758
13759 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
13760 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
13761
13762 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
13763
13764 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
13765 from WM_MOUSEHWHEEL.
13766 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
13767
13768 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
13769 terminal.
13770
13771 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
13772 keyboard for the terminal.
13773
92cd6a7c
DN
137742007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
13775
13776 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
13777 (Vresume_tty_hook): Rename from Vresume_tty_functions.
13778 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
13779 and resume-tty-function to resume-tty-hook.
13780 (Fsuspend_tty, Fresume_tty): Use new names.
13781
880820fe 137822007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
13783
13784 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
13785 if it starts with "n:".
13786
880820fe 137872007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
13788
13789 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
13790
6b8e474c
SM
137912007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13792
92d9c1d4
SM
13793 * frame.h:
13794 * frame.c (Qterm_environment_variable): Remove.
13795 (syms_of_frame): Don't init and staticpro it.
13796
92d9c1d4
SM
13797 * callproc.c (getenv_internal): Remove special case for $TERM.
13798
6b8e474c
SM
13799 * callproc.c (Vinitial_environment): New variable.
13800 (set_initial_environment): Initialize it.
13801 (syms_of_callproc): Declare it.
13802 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
13803 TERM under which a process runs is never related to the TERM in which
13804 Emacs is running.
13805
0f1444e1
DN
138062007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
13807
13808 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
13809 * s/darwin.h: ... do it here.
13810
b8866860
SM
138112007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13812
13813 * lisp.h (set_initial_environment): Rename from set_global_environment.
13814
13815 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
13816 removed by mistake on the multi-tty branch.
13817
13818 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
13819 (Fmodify_frame_parameters): Return a value.
13820
13821 * image.c (png_load): Comment-out var only used in commented-out code.
13822
13823 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
13824 before passing it to mark_object.
13825
13826 * xfaces.c (internal_resolve_face_name): Return a value.
13827 (internal_resolve_face_name, resolve_face_name_error): Comment out.
13828
13829 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
13830 (x_icon): Comment-out var only used in commented-out code.
13831
0a42be6d
RF
138322007-08-29 Romain Francoise <romain@orebokech.com>
13833
13834 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
13835 QUIT hasn't been provided.
13836
8d9cc0b7
MB
138372007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
13838
13839 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 13840 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
13841 (set_initial_environment): Initialise Vprocess_environment.
13842
13843 * config.in: Disable multi-keyboard support on a mac.
13844
13845 * frame.c (Qterm_environment_variable)
13846 (Qdisplay_environment_variable): New variables.
13847 (syms_of_frame): Intern and staticpro them.
13848 (Fmake_terminal_frame): Disable output method test.
13849
13850 * frame.h: Declare them here.
13851
13852 * macfns.c (x_set_mouse_color): Get rif from the frame.
13853 (x_set_tool_bar_lines): Don't use updating_frame.
13854 (mac_window): Add 2 new parameters for consistency with other systems.
13855 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
13856 frame parameters following what is done in X11 and w32. Don't use
13857 FRAME_MAC_DISPLAY_INFO.
13858 (Fx_open_connection, start_hourglass): Remove window-system check.
13859 (x_create_tip_frame): Get the keyboard from the terminal.
13860
13861 * macmenu.c: Reorder includes.
13862 (Fx_popup_menu): Use terminal specific mouse_position_hook.
13863
13864 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
13865 terminal parameter.
13866 (x_clear_frame): Add a frame parameter.
13867 (note_mouse_movement): Get rif from the frame.
13868 (mac_term_init): Initialize the terminal.
13869 (mac_initialize): Make static and move terminal initialization ...
13870 (mac_create_terminal): ... to this new function.
13871
13872 * macterm.h (struct mac_display_info): Add terminal.
7196c970 13873 (mac_initialize): Delete declaration.
8d9cc0b7 13874
381864b2 13875 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
13876
13877 * sysdep.c: Comment out text after #endif.
13878
13879 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
13880 is defined. Better initialize ttys in windows. Use terminal
13881 specific mouse_position_hook.
13882
13883 * termhooks.h (union display_info): Add mac_display_info.
13884
b8866860
SM
13885 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
13886 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
13887 frame parameters following what is done in X11.
13888
13889 * w32term.c (w32_initialize): Make static.
13890
13891 * xselect.c (x_handle_selection_clear): Only access
13892 terminal->kboard when MULTI_KBOARD is defined.
13893
13894 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
13895 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
13896
138972007-08-29 Jason Rumney <jasonr@gnu.org>
13898
13899 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
13900 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
13901
13902 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
13903 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
13904
13905 * keyboard.c (restore_kboard_configuration): Only define when
13906 MULTI_KBOARD defined.
13907
35277b03 13908 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
13909 (OBJ1): Add terminal.$(O)
13910
b8866860
SM
13911 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
13912 Don't define function body.
8d9cc0b7
MB
13913 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
13914
13915 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
13916
13917 * w32.c (request_sigio, unrequest_sigio): Remove.
13918
13919 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
13920 (w32con_clear_frame, w32con_clear_end_of_line)
13921 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
13922 (w32con_delete_glyphs, w32con_set_terminal_window)
13923 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
13924 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
13925 Add terminal arg.
8d9cc0b7
MB
13926 (PICK_FRAME): Remove.
13927 (w32con_write_glyphs): Use frame specific terminal coding.
13928 (one_and_only_w32cons): New global variable.
13929 (initialize_w32_display): Use it for storing hooks.
13930 (create_w32cons_output): New function.
13931
13932 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
13933 arg a frame.
13934
b8866860
SM
13935 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
13936 Set window_system.
8d9cc0b7
MB
13937 (x_set_tool_bar_lines): Don't use updating_frame.
13938 (Fx_create_frame): Set terminal and ref count.
13939 (Fx_open_connection): Remove window-system check.
13940
13941 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
13942
13943 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
13944 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
13945 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
13946 Add frame arg.
13947 (x_delete_terminal, w32_create_terminal): New functions.
13948 (w32_term_init): Create a terminal.
13949 (w32_initialize): Move terminal specific initialization to
13950 w32_create_terminal.
13951
b8866860 13952 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
13953 (w32_clear_rect, w32_clear_area): Use background from frame.
13954 (w32_display_info): Add terminal.
13955 (w32_sys_ring_bell, x_delete_display): Declare here.
13956
13957 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
13958
13959 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
13960
139612007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
13962
13963 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
13964 Fix get_named_tty calls for the controlling tty.
13965
139662007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
13967
13968 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
13969
139702007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
13971
13972 * term.c (tty_insert_glyphs): Add missing first parameter.
13973
880820fe 139742007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 13975
b8866860
SM
13976 * buffer.c (Fbuffer_list, Fbury_buffer):
13977 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
13978
13979 * cm.c (current_tty): New variable, for cmputc().
13980 (cmputc): Use it.
13981 (cmcheckmagic): Add tty parameter, look up terminal streams there.
13982 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
13983 (cmgoto): Add tty parameter. Pass it on to calccost().
13984 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
13985
13986 * cm.h (emacs_tputs): New macro to set current_tty, and then call
13987 tputs().
13988 (current_tty): New variable, for cmputc().
13989 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
13990
13991 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
13992 (internal_condition_case, internal_condition_case_1)
13993 (internal_condition_case_2): Don't abort when x_catching_errors.
13994
13995 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
13996 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
13997 prevent crashes caused by bogus longjmps in read_char.
13998
13999 * keymap.h (Fset_keymap_parent): Add EXFUN.
14000
14001 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
14002 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
14003 Remove redundant definition.
14004
b8866860
SM
14005 * macfns.c (x_set_mouse_color, x_make_gc):
14006 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 14007
b8866860
SM
14008 * w32term.c (x_free_frame_resources):
14009 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
14010 (w32_initialize): Use the accessor macros for terminal characteristics.
14011
14012 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
14013 Use the accessor macros for terminal characteristics.
14014 * msdos.c (internal_terminal_init): Use the accessor macros for
14015 terminal characteristics.
b8866860
SM
14016 (ScreenVisualBell, internal_terminal_init):
14017 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
14018
14019 * termopts.h (no_redraw_on_reenter): Declare.
14020
14021 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 14022 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 14023 (Fgarbage_collect): Call them.
03f06e5c 14024 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
14025
14026 * prefix-args.c: Include stdlib.h for exit.
14027
14028 * syssignal.h: Add comment.
14029
14030 * indent.c: Include stdio.h.
14031
14032 * window.h (Vinitial_window_system): Declare.
14033 (Vwindow_system): Delete declaration.
14034
14035 * fontset.c (Finternal_char_font): Use FRAME_RIF.
14036
14037 * image.c (lookup_image): Don't initialize `c' until the xasserts
14038 have been run.
14039
14040 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
14041 FRAME_FOREGROUND_PIXEL.
14042
14043 * print.c (print_preprocess): Don't lose print_depth levels while
14044 iterating.
14045
b8866860
SM
14046 * widget.c (update_from_various_frame_slots):
14047 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
14048
14049 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
14050 frames.
14051 (window_internal_height): Remove bogus make_number call.
b8866860 14052 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
14053
14054 * fileio.c (Fread_file_name): Update comment.
14055
b8866860
SM
14056 * callint.c (Fcall_interactively):
14057 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
14058 Make sure it is correctly unwound.
14059
14060 * xsmfns.c (x_session_close): New function.
14061
03f06e5c 14062 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
14063 Delete declarations.
14064
14065 * xterm.h: Remove declaration for x_fully_uncatch_errors.
14066 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 14067 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 14068 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
14069
14070 * lread.c: Include setjmp.h. Update declaration of `read_char'.
14071 (read_filtered_event): Call `read_char' with a local
14072 `wrong_kboard_jmpbuf'.
14073
b8866860
SM
14074 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
14075 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
14076
14077 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
14078 systems.
14079
b8866860 14080 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 14081 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 14082 (Fset_quit_char): EXFUN.
03f06e5c 14083 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
14084 (init_sys_modes, reset_sys_modes): Update prototypes.
14085 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
14086
b8866860
SM
14087 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
14088 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 14089 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 14090 Delete declarations.
03f06e5c
JB
14091 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
14092 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
14093 New declarations.
14094
14095 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
14096 already does that during init_display(). Call syms_of_keymap
b8866860
SM
14097 before syms_of_keyboard. Call `syms_of_terminal'.
14098 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
14099 (shut_down_emacs): Call reset_all_sys_modes() instead of
14100 reset_sys_modes().
14101
14102 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
14103 (internal_resolve_face_name, resolve_face_name_error): New functions.
14104 (resolve_face_name): Protect against loops and errors thrown by Fget.
14105 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
14106 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
14107
14108 * scroll.c: Replace CURTTY() with local variables throughout the
14109 file (where applicable).
14110 (calculate_scrolling, calculate_direct_scrolling)
14111 (scrolling_1, scroll_cost): Use the accessor macros for terminal
14112 characteristics.
14113
14114 * keymap.c (Vfunction_key_map): Remove.
b8866860 14115 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
14116 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
14117 (Vkey_translation_map): Remove.
14118 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 14119 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
14120 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
14121 Update for terminal-local key-translation-map.
14122
14123 * Makefile.in (callproc.o): Update dependencies.
14124 (lisp, shortlisp): Add termdev.elc.
14125 (obj): Add terminal.o.
14126 (terminal.o): Add dependencies.
14127 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
14128 (data.o, fns.o): Add termhooks.h dependency.
14129 (SOME_MACHINE_LISP): Add dnd.elc.
14130 (minibuf.o): Fix typo.
14131 Update dependencies.
14132
14133 * data.c (do_symval_forwarding, store_symval_forwarding)
14134 (find_symbol_value): Use the selected frame's keyboard, not
14135 current_kboard.
14136
14137 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
14138 Vwindow_system.
14139
14140 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
14141 Fmenu_bar_open.
14142 (syms_of_xmenu): Update defsubr.
14143 (mouse_position_for_popup, Fx_popup_menu)
14144 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
14145 (set_frame_menubar, free_frame_menubar)
14146 (create_and_show_popup_menu, xmenu_show, )
14147 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
14148 an X frame.
14149
14150 * xselect.c (x_own_selection): Abort if not an X frame.
14151 (some_frame_on_display): Check if it is an X frame.
14152 (x_handle_selection_clear): Deal with MULTI_KBOARD.
14153
14154 * coding.c: Include frame.h and termhooks.h.
03f06e5c 14155 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
14156 (Fset_terminal_coding_system_internal)
14157 (Fset_keyboard_coding_system_internal)
14158 (Fkeyboard_coding_system)
03f06e5c
JB
14159 (Fterminal_coding_system): Add a terminal parameter.
14160 Get terminal_coding from the terminal.
8d9cc0b7
MB
14161 (init_coding_once): Don't call setup_coding_system here.
14162
14163 * dispextern.h (set_scroll_region, turn_off_insert)
14164 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
14165 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 14166 (delete_tty, updating_frame)
8d9cc0b7
MB
14167 (produce_special_glyphs, produce_glyphs, write_glyphs)
14168 (insert_glyphs): Remove.
14169 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 14170 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 14171 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
14172
14173 * frame.h (enum output_method): Add output_initial.
14174 (struct x_output): Delete.
b8866860
SM
14175 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
14176 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
14177 (tty_display): Delete.
14178 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 14179 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
14180 (union output_data): Add tty.
14181 (FRAME_KBOARD): Get the kboard from the terminal.
14182 (FRAME_INITIAL_P): New macro.
14183 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
14184 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
14185 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
14186 New declarations.
8d9cc0b7
MB
14187
14188 * termchar.h (tty_output, tty_display_info): New structures.
14189 (tty_list): Declare.
14190 (FRAME_TTY, CURTTY): New macros.
14191 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
14192 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
14193 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
14194 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
14195
14196 * callproc.c: Include frame.h and termhooks.h, for terminal
14197 parameters.
14198 (add_env): New function.
14199 (child_setup): Use it.
b8866860 14200 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
14201 (getenv_internal): Fix get_terminal_param call.
14202 (Fgetenv_internal, egetenv): Update doc.
14203 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 14204 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
14205 strings.
14206 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
14207 (getenv_internal): Add terminal parameter.
14208 Handle Vlocal_environment_variables.
8d9cc0b7
MB
14209 (Fgetenv_internal): Add terminal parameter.
14210 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 14211 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
14212 (set_initial_environment): Rename from set_global_environment.
14213 Store Emacs environment in initial frame parameter.
14214
14215 * xdisp.c (redisplay_internal): Update references to
14216 `previous_terminal_frame'.
14217 (display_mode_line, Fformat_mode_line): Replace calls to
14218 `push_frame_kboard' with `push_kboard'.
14219 (get_glyph_string_clip_rects): Add extra parentheses and
14220 braces to prevent compiler warnings.
14221 (calc_pixel_width_or_height): Add xassert to check that the
14222 frame is alive. Don't call `lookup_image' on a termcap frame.
14223 (message2_nolog, message3_nolog, redisplay_internal)
14224 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
14225 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
14226 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
14227 (Fx_display_pixel_width, Fx_display_pixel_height)
14228 (Fx_display_planes, Fx_display_color_cells)
14229 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
14230 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
14231 (Fx_display_backing_store, Fx_display_visual_class)
14232 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 14233 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
14234
14235 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
14236 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
14237 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
14238 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
14239 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
14240 terminal that is being deleted.
14241 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 14242 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
14243 (Fx_close_connection, Fx_synchronize): Unify argument names with
14244 the rest of the DEFUNs.
14245
14246 * dispnew.c (Fsend_string_to_terminal): Update call to
14247 `get_tty_terminal'.
14248 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 14249 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
14250 FRAME_TERMCAP_P and FRAME_TTY.
14251 (window_change_signal): Don't believe width/height values that are
14252 impossibly small.
14253 (Vinitial_window_system): Rename from Vwindow_system.
14254 (termscript, Wcm, rif): Delete.
14255
14256 * termhooks.h (struct terminal): New struct containing the
14257 previously global text display hooks and new members NAME,
14258 DELETED and PARAM_ALIST.
14259 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
14260 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
14261 (FRAME_RIF): New macros.
14262 (get_terminal_param, get_device): New declarations.
14263 (termscript): Delete declaration.
14264
14265 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
14266 (XTflash, x_free_frame_resources, x_scroll_bar_create)
14267 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
14268 FRAME_FOREGROUND_PIXEL.
14269 (x_fully_uncatch_errors): Disable definition.
14270 (x_scroll_bar_expose): Fix reference to foreground pixel.
14271 (XTread_socket): Disable loop on all X displays.
14272 (x_delete_terminal): Don't set terminal->deleted and let
14273 delete_terminal delete the frames on the terminal.
14274 (x_delete_display): Doc update to reflect changes in
14275 delete_terminal.
14276 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
14277 (deleting_tty): Remove old variable.
14278 (Fsuspend_tty): Call clear_tty_hooks.
14279 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
14280 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
14281 errors on X frames.
14282 (x_catch_errors_unwind): Abort if x_error_message is NULL.
14283 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 14284 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
14285 (XTset_terminal_modes, XTreset_terminal_modes)
14286 (XTread_socket, x_connection_closed, x_term_init)
14287 (x_term_init, x_delete_display): Add terminal parameter.
14288 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
14289 X connections.
14290
bf380f53
GM
14291 * frame.c: Include termchar.h.
14292 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
14293 (Qwindow_system, Qenvironment, Qterm_environment_variable)
14294 (Qdisplay_environment_variable): New vars.
14295 (Fframep): Deal with output_initial.
14296 (Fframe-live-p): Doc fix.
14297 (Fwindow-system): New function.
8d9cc0b7
MB
14298 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
14299 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 14300 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 14301 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
14302 (Fmake_terminal_frame): Handle NULL tty names correctly.
14303 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
14304 (Fdelete_frame): Remove unused variable `count'. Don't allow other
14305 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 14306 (Fframe_with_environment): New function.
b8866860 14307 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
14308 (get_future_frame_param): New function.
14309 (Fmake_terminal_frame): Use it.
2d33f506 14310 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
14311
14312 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
14313 * sysdep.c (reset_sys_modes): Update for renames.
14314
14315 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 14316 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
14317 (syms_of_keyboard): Defsubr them.
14318 (Fset_input_meta_mode, Fset_quit_char): New functions.
14319 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
14320 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
14321 parameter. Use it in call to `read_char'.
b8866860
SM
14322 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
14323 Set wrong_kboard_jmpbuf correctly in recursive calls.
14324 Use current_kboard to access Vkeyboard_translate_table.
14325 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
14326 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
14327 Update longjmp invocations. Remember the original current_kboard,
14328 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
14329 changes it. Comment out unnecessary calls to
14330 `record_single_kboard_state' and `any_kboard_state'.
14331 Update recursive calls.
8d9cc0b7
MB
14332 (wrong_kboard_jmpbuf): Remove global variable.
14333 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
14334 Handle deleted interrupted_kboards correctly; that is a legal
14335 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 14336 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
14337 (any_kboard_state, single_kboard_state)
14338 (push_frame_kboard): Remove function.
14339 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
14340 been deleted. Remove unused variable. Help debugging by not
14341 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
14342 kboard of the selected frame when the stored kboard object has
14343 been deleted before pop_kboard.
14344 (temporarily_switch_to_single_kboard): Change first parameter to a
14345 frame pointer. Throw an error when caller wants to change kboards
14346 while in single_kboard mode. Don't push_kboard if we weren't in
14347 single kboard state. Don't pop_kboard if we popped into any
14348 kboard state.
14349 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 14350 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
14351 up single_kboard mode.
14352 (Frecursive_edit): Switch to single_kboard mode only in nested
14353 command loops.
b8866860
SM
14354 (cmd_error, command_loop, command_loop_1, timer_check):
14355 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
14356 `record_single_kboard_state'.
14357 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 14358 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
14359 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
14360 `fatal_error_signal'.
14361 (record_single_kboard_state): Don't push_kboard if we weren't in
14362 single kboard state. Don't pop_kboard if we popped into any
14363 kboard state.
14364 (push_frame_kboard): Rename to push_kboard.
14365 (kbd_buffer_get_event): Use FRAME_TERMINAL.
14366 (read_avail_input): Read input from all terminals.
14367 (mark_kboards): Also mark Vkeyboard_translate_table.
14368 (kbd_buffer_store_event_hold): Simplify condition.
14369 (read_key_sequence): Reinitialize fkey and keytran at each replay.
14370 (Vkeyboard_translate_table): Move to struct kboard.
14371 (init_kboard): Initialize Vkeyboard_translate_table.
14372 (syms_of_keyboard): Use DEFVAR_KBOARD to define
14373 Vkeyboard_translate_table. Update doc strings. Update docs of
14374 local-function-key-map and function-key-map.
14375
14376 * terminal.c: New file.
14377
14378 * term.c: Include errno.h.
14379 (Vring_bell_function, device_list, initial_device)
14380 (next_device_id, ring_bell, update_begin, update_end)
14381 (set_terminal_window, cursor_to, raw_cursor_to)
14382 (clear_to_end, clear_frame, clear_end_of_line)
14383 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
14384 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
14385 (syms_of_term): Move their initialization to terminal.c.
14386 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
14387 (Ftty_display_color_cells)
14388 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 14389 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
14390 (init_tty, maybe_fatal): New functions.
14391 (Ftty_type): Return nil if terminal is not on a tty instead of
14392 throwing an error. Doc update.
14393 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 14394 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
14395 (delete_tty): Use terminal->deleted.
14396 (tty_set_terminal_modes): Rename from set_terminal_modes.
14397 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
14398 (set_scroll_region): Rename to `tty_set_scroll_region'.
14399 (turn_on_insert): Rename to `tty_turn_on_insert'.
14400 (turn_off_insert): Rename to `tty_turn_off_insert'.
14401 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
14402 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
14403 (toggle_highligh): Rename to `tty_toggle_highlight'.
14404 (background_highlight): Rename to `tty_background_highlight'.
14405 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
14406 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
14407 (tty_set_scroll_region, tty_background_highlight)
14408 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
14409 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
14410 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
14411 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
14412 Add static modifier.
14413 (tty_reset_terminal_modes, tty_set_terminal_window)
14414 (tty_set_scroll_region, tty_background_highlight)
14415 (tty_highlight_if_desired, tty_cursor_to)
14416 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
14417 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
14418 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
14419 renames.
14420
880820fe 144212007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
14422
14423 * keyboard.c: Qrtl is new.
14424 (parse_tool_bar_item): Handle :rtl keyword.
14425 (syms_of_keyboard): Intern :rtl keyword.
14426
14427 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
14428
14429 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
14430 so no Lisp code is executed.
14431 (file_for_image, find_rtl_image): New functions.
1f204af3 14432 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
14433 (update_frame_tool_bar): If direction is RTL, use RTL image if
14434 defined. Use Gtk stock images if defined.
14435
83cc8d35
YM
144362007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14437
14438 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
14439 for nonexistent or zero-width glyph in composition glyph.
14440
e60c4e15
SM
144412007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
14442
d7e2a28f
SM
14443 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
14444
e60c4e15
SM
14445 * xdisp.c (Finvisible_p): New function.
14446 (syms_of_xdisp): defsubr it.
14447
ee163e6d
JB
144482007-08-24 Juanma Barranquero <lekktu@gmail.com>
14449
14450 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
14451 Doc fixes.
14452
90fa408d
YM
144532007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14454
35277b03 14455 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 14456
cac4219c
MR
144572007-08-24 Martin Rudalics <rudalics@gmx.at>
14458
14459 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
14460 whether decoding has modified buffer contents.
14461
5fc9fdeb
JR
144622007-08-24 Jason Rumney <jasonr@gnu.org>
14463
14464 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
14465 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
14466 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
14467 (init_svg_functions) [HAVE_NTGUI]: New function.
14468 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
14469 (svg_load_image): Use them.
14470 (svg_load_image) [HAVE_NTGUI]: Implement background.
14471
93b23406
YM
144722007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14473
14474 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
14475 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
14476 (LIBX): Remove @RSVG_LIBS@.
14477 (LIBES): Add $(RSVG_LIBS).
14478
14479 * image.c (svg_load_image): Blend with specified background if exists.
14480 Use IMAGE_BACKGROUND. Add Mac OS Support.
14481
14482 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
14483 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
14484 Remove macros.
14485 [MAC_OSX] (socket_callback): Do nothing.
14486 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
14487 ReceiveNextEvent.
14488 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
14489 socket_callback.
14490 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
14491
2467875c
GM
144922007-08-22 Glenn Morris <rgm@gnu.org>
14493
ff8da443 14494 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 14495
4ab27a43
GM
144962007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
14497
14498 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 14499
666e0eda
GM
14500 * image.c: Add support for SVG images. Some additional comments
14501 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
14502 (svg_image_p): New function to test for SVG image.
14503 (svg_load): New function to load SVG image.
14504 (svg_load_image): New function, helper for svg_load.
14505 (Qsvg): New Lisp_object.
14506 (svg_keyword_index): New enum.
14507 (svg_format): New static `image_keyword' struct.
14508 (svg_type): New static `image_type' struct.
14509 (librsvg/rsvg.h): Include it.
4ab27a43 14510
b636b4c1
SM
145112007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
14512
14513 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
14514
9ecb827b
SM
145152007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
14516
1d064697
SM
14517 * lread.c (Qold_style_backquotes): New var.
14518 (syms_of_lread): Init and staticpro it.
14519 (load_warn_old_style_backquotes): New fun.
14520 (Fload): Use them to warn about old style backquotes.
14521 (end_of_file_error, Fload): Remove unused vars.
14522
5772ed4b
SM
14523 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
14524
9ecb827b 14525 * lread.c (Vold_style_backquotes): New var.
5aa273b0 14526 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
14527 (read1): Set it when we find an old-style (back)quote.
14528
32e1c7b1
JR
145292007-08-22 Jason Rumney <jasonr@gnu.org>
14530
14531 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
14532
b8fa755b
KY
145332007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
14534
14535 * puresize.h (BASE_PURESIZE): Increase to 1140000.
14536
1283140e
RS
145372007-08-19 Richard Stallman <rms@gnu.org>
14538
14539 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
14540
2c4685ee
AS
145412007-08-19 Andreas Schwab <schwab@suse.de>
14542
14543 * alloc.c (pure): Round PURESIZE up.
14544
880820fe 145452007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
14546
14547 * xterm.c (handle_one_xevent): Remove check that mouse click is in
14548 active frame.
14549
6e33efc4
RS
145502007-08-16 Richard Stallman <rms@gnu.org>
14551
14552 * eval.c (Fcommandp): Add parens to clarify.
14553
14554 * minibuf.c (Fall_completions): Use enum for type of table.
14555
14556 * emacs.c (USAGE2): Improve text.
14557
fcf8ff2e
GM
145582007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
14559
5205ee62
GM
14560 * term.c (tty_default_color_capabilities): Declare static
14561 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 14562
880820fe 145632007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
14564
14565 * gtkutil.c (update_frame_tool_bar): Use -1 as index
14566 to gtk_toolbar_insert.
14567
4a181359
SM
145682007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
14569
1bc99c9c
SM
14570 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
14571
4a181359
SM
14572 * insdel.c (reset_var_on_error): New fun.
14573 (signal_before_change, signal_after_change):
14574 Use it to reset (after|before)-change-functions to nil in case of error.
14575 Bind inhibit-modification-hooks to t.
14576 Don't bind (after|before)-change-functions to nil while they run.
14577
6c28435c
YM
145782007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14579
14580 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
14581 filling pixmap with stippled background.
14582
ad3b3e02
YM
145832007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14584
14585 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
14586 Don't use invisible frame as parent window for repositioning.
14587
a22dec27
SM
145882007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
14589
14590 * print.c (new_backquote_output): Rename from old_backquote_output.
14591 (print): Inverse its logic (according to its name) so as to match the
14592 behavior of new_backquote_flag in lread.c.
14593
7b7d07bb
YM
145942007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14595
14596 * gmalloc.c (posix_memalign): New function.
14597
14598 * macterm.c (frame_highlight, frame_unhighlight): Don't call
14599 ActivateControl/DeactivateControl here.
14600 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
14601 frame-notice-user-settings is non-nil.
14602 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
14603 for kEventParamFMFontStyle.
14604 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
14605 mac_pass_command_to_system and mac_pass_control_to_system here.
14606 (XTread_socket): Call ActivateControl/DeactivateControl here.
14607 (XTread_socket) [TARGET_API_MAC_CARBON]:
14608 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
14609 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
14610 for window repositioning.
7b7d07bb 14611
22e9fe24
GM
146122007-08-08 Glenn Morris <rgm@gnu.org>
14613
14614 * Replace `iff' in doc-strings and comments.
14615
ae494350
CY
146162007-08-07 Chong Yidong <cyd@stupidchicken.com>
14617
14618 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
14619
6f2528d8
MR
146202007-08-07 Martin Rudalics <rudalics@gmx.at>
14621
14622 * fileio.c (Finsert_file_contents): Run format-decode and
14623 after_insert_file_functions on entire buffer when REPLACE is
14624 non-nil and inhibit modification_hooks and point_motion_hooks.
14625 For consistency, run after_insert_file_functions iff something
14626 got inserted. Move signal_after_change and update_compositions
14627 after code running after_insert_file_functions. Make sure that
6b8e474c 14628 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 14629
3ceeb306
YM
146302007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14631
14632 * emacs.c (main)
14633 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
14634 Call malloc_enable_thread on interactive startup.
14635
14636 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
14637 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
14638 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
14639 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
14640 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
14641 New functions.
14642
ca5e6fd5
CY
146432007-08-06 Chong Yidong <cyd@stupidchicken.com>
14644
32bfce5d
CY
14645 * xdisp.c (redisplay_window): When restoring original buffer
14646 position, make sure it is still valid.
14647
ca5e6fd5
CY
14648 * image.c (png_load): Ignore png-supplied background color.
14649
a5b11587
YM
146502007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14651
14652 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
14653 Use kCFAbsoluteTimeIntervalSince1970.
14654
14655 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
14656 New variable.
14657 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
14658 event loop should be quit.
14659 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
14660 Quit dialog event loop if quit_dialog_event_loop is set.
14661
14662 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
14663 (Selection): New typedef. Use instead of ScrapRef.
14664 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
14665 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
14666 (mac_clear_selection): Rename from clear_scrap.
14667 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 14668 scrap_has_target_type. All uses changed.
a5b11587
YM
14669 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14670 (mac_selection_has_target_p): New functions.
14671 (mac_put_selection_value): Rename from put_scrap_string.
14672 (mac_get_selection_value): Rename from get_scrap_string.
14673 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
14674 (put_scrap_private_timestamp, scrap_has_target_type)
14675 (get_scrap_private_timestamp): Remove functions.
14676 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
14677 (x_own_selection, x_get_local_selection):
14678 Use mac_valid_selection_value_p.
14679 (x_own_selection): Don't use put_scrap_private_timestamp.
14680 Record OWNERSHIP-INFO into Vselection_alist instead.
14681 (x_get_local_selection): Don't check type if request is local.
14682 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
14683 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
14684
880820fe 146852007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
14686
14687 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
14688 add comment explaining why.
14689
73ff9d42
RS
146902007-08-03 Richard Stallman <rms@gnu.org>
14691
14692 * fileio.c (Fvisited_file_modtime): Use make_time.
14693
54ed9a2d 146942007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
14695
14696 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
14697 build.
14698
65a9c8e2
SM
146992007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
14700
14701 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
14702
c5925799
KY
147032007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
14704
14705 * puresize.h (BASE_PURESIZE): Increase to 1130000.
14706
adef3de7
RS
147072007-07-30 Richard Stallman <rms@gnu.org>
14708
14709 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
14710
880820fe 147112007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
14712
14713 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
14714
a10421a1
NR
147152007-07-28 Nick Roberts <nickrob@snap.net.nz>
14716
14717 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
14718 remote default-directory.
14719
14720 * buffer.c (mode-line-format): Update doc string.
14721
0cb1ae20
YM
147222007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14723
14724 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
14725 scroll bar gap.
14726 (x_scroll_bar_create): Set bar->fringe_extended_p.
14727 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
14728 on frame edge. Check fringe background extension. Don't clear
14729 extended fringe background area.
14730
14731 * w32term.h (struct scroll_bar): New member fringe_extended_p.
14732 (w32_fill_area): Enclose multiple statements with do ... while (0).
14733
14734 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
14735 Extend fringe background to scroll bar gap.
14736 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
14737 Set bar->fringe_extended_p.
14738 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14739 Put leftmost/rightmost scroll bars on frame edge. Check fringe
14740 background extension. Don't clear extended fringe background area.
14741
14742 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14743 New member fringe_extended_p.
14744
cacc7b51
GM
147452007-07-25 Glenn Morris <rgm@gnu.org>
14746
14747 * Relicense all FSF files to GPLv3 or later.
14748
14749 * COPYING: Switch to GPLv3.
14750
89835619
SM
147512007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
14752
c4f46926
SM
14753 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
14754
14755 * data.c (Finteractive_form): Check for the presence of an
14756 `interactive-form' symbol property more thoroughly.
14757
14758 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
14759 present, analogous to the function-documentation property.
14760
ee04257d
JR
147612007-07-24 Jason Rumney <jasonr@gnu.org>
14762
14763 * w32fns.c (x_real_positions): Get real position from OS instead of
14764 calculating it.
14765
50624218
JR
147662007-07-23 Jason Rumney <jasonr@gnu.org>
14767
14768 * filelock.c (current_lock_owner): Allow for @ sign in username.
14769
3650f60e
NR
147702007-07-22 Nick Roberts <nickrob@snap.net.nz>
14771
14772 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
14773 remote default-directory.
14774
14775 * buffer.c (mode-line-format): Describe above case in doc string.
14776
1e899515 147772007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 14778
75be5258
EZ
14779 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
14780 Define if not defined.
14781
2b6e2f4d
JR
147822007-07-18 Jason Rumney <jasonr@gnu.org>
14783
14784 * w32proc.c (w32_executable_type): Handle 64 bit executables.
14785
23dacf80
JB
147862007-07-18 Richard Stallman <rms@gnu.org>
14787
14788 * data.c (Fsetq_default): Doc fix.
14789
14790 * eval.c (Fsetq): Doc fix.
14791
147922007-07-18 Juanma Barranquero <lekktu@gmail.com>
14793
14794 * coding.c (Ffind_operation_coding_system):
14795 * eval.c (For, Fand): Doc fixes.
880820fe 14796 Reported by Johan Bockgård.
23dacf80 14797
880820fe 147982007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 14799
23dacf80 14800 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 14801
23dacf80 14802 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
14803
14804 * xterm.c (x_ewmh_activate_frame): New function.
14805 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
14806
71ec17e6
MR
148072007-07-17 Martin Rudalics <rudalics@gmx.at>
14808
14809 * window.c (Fdisplay_buffer): If largest or LRU window is the
14810 only window, split it even if it is not eligible for splitting.
14811 This restores the original behavior broken by the 2007-07-15
14812 change.
14813
e9818042
GM
148142007-07-17 Glenn Morris <rgm@gnu.org>
14815
14816 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
14817 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14818 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
14819 constituents. Doc fix.
14820
e6fca843
SM
148212007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14822
14823 * process.c (Fstart_process, Fmake_network_process)
14824 (read_process_output): Fix up last changes.
14825
b5d2b4ab
EZ
148262007-07-16 Eli Zaretskii <eliz@gnu.org>
14827
14828 * makefile.w32-in (clean): Don't delete *~.
14829
413a79ad
AS
148302007-07-16 Andreas Schwab <schwab@suse.de>
14831
14832 * window.c (Fdisplay_buffer): Use NILP.
14833 (Fset_window_scroll_bars): Likewise.
14834
f1de8c77
MR
148352007-07-15 Martin Rudalics <rudalics@gmx.at>
14836
14837 * window.c (window_min_size_2): New function.
14838 (window_min_size_1, size_window, Fdisplay_buffer)
14839 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
14840 windows without mode- or header-lines when window-min-height is
14841 too small.
14842 (size_window): Reset nodelete_p after testing it, following an
14843 earlier note by Kim F. Storm.
14844 (display_buffer): Do not set split_height_threshold to twice the
14845 value of window_min_height to avoid changing the value of a
14846 customizable variable. Rather explicitly check whether the
14847 height of the window that shall be splitted is at least as large
14848 as split_height_threshold.
1af74d06
MB
14849 (Fwindow_full_width_p): New defun.
14850 (syms_of_window): Defsubr it.
d31053f9 14851
1af74d06 14852 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 14853
5e1ab613
JR
148542007-07-14 Jason Rumney <jasonr@gnu.org>
14855
14856 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
14857
f01cbfdd
RS
148582007-07-14 Richard Stallman <rms@gnu.org>
14859
14860 * eval.c (maybe_call_debugger): New function.
14861 (find_handler_clause): Use maybe_call_debugger.
14862 Call it when the handler says `debug'.
14863 Eliminate DEBUGGER_VALUE_PTR.
14864 (Fsignal): Eliminate debugger_value.
14865 (Qdebug): New variable.
14866 (syms_of_eval): Initialize it.
14867
1bab435a
JB
148682007-07-14 Juanma Barranquero <lekktu@gmail.com>
14869
14870 * eval.c (Fprogn):
14871 * keyboard.c (Ftrack_mouse):
14872 * print.c (Fwith_output_to_temp_buffer):
14873 * window.c (Fsave_window_excursion): Doc fix.
14874
be436d23
SM
148752007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
14876
14877 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
14878
60f0fb11
SM
148792007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
14880
14881 * process.h (struct Lisp_Process): Turn slots infd, outfd,
14882 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
14883 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
14884 read_output_delay, and read_output_skip from Lisp_Objects to ints.
14885 Remove unused encoding_carryover.
14886 * process.c: Adjust all functions accordingly.
14887
d8b18043
RS
148882007-07-12 Richard Stallman <rms@gnu.org>
14889
14890 * term.c: Include unistd.h only if HAVE_UNISTD_H.
14891
d5781bb6
JR
148922007-07-11 Jason Rumney <jasonr@gnu.org>
14893
14894 * makefile.w32-in (LIBS): Include OLE32.
14895
14896 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
14897 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
14898
5bb7dfee
SM
148992007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
14900
14901 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
14902 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
14903 from a Lisp_Object into a bare pointer.
14904 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14905 Adjust the code correspondingly.
14906
14907 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
14908
14909 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
14910 (term_show_mouse_face): Remove unused var `j'.
14911 (handle_one_term_event): Remove unused vars `i' and `j'.
14912 Don't cast return value of ttyname since it's not necessary.
14913
a1be1ce8
SM
149142007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
14915
5045e68e
SM
14916 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
14917 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
14918
8071c00f
SM
14919 * fns.c (map_char_table): Use an array of int for `indices' rather than
14920 an array of Lisp_Objects (which are only ever integers anyway).
14921 (Fmap_char_table): Update caller.
14922 * lisp.h: Update prototype.
14923 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
14924 * fontset.c (Ffontset_info):
14925 * casetab.c (set_case_table): Update callers.
14926
14927 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
14928
fab84e3c
SM
14929 * keymap.c (struct accessible_keymaps_data)
14930 (struct where_is_internal_data): New structures.
14931 (accessible_keymaps_1, where_is_internal_1): Use them to change
14932 interface to adhere to the one used by map_keymap.
14933 (Faccessible_keymaps, where_is_internal): Use map_keymap.
14934 (accessible_keymaps_char_table, where_is_internal_2): Remove.
14935
a1be1ce8
SM
14936 * keymap.h (map_keymap_function_t): More informative prototype.
14937
ef887810
RS
149382007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
14939
14940 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
14941 (looking_at_1): Don't change search_regs and last_thing_searched
14942 if `inhibit-changing-match-data' is non-nil.
14943 (string_match_1, search_buffer, set_search_regs): Likewise.
14944 (syms_of_search): Add Lisp level definition for
14945 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
14946 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
14947 start and end of the match, instead of using values in search_regs.
ef887810 14948
4d02fc25
SM
149492007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
14950
14951 * minibuf.c (Fcompleting_read): New value `confirm-only'
14952 for `require-match'.
14953
fe45b81f
SM
149542007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
14955
14956 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
14957 part of the 2007-06-27 change to syms_of_fileio.
14958
a56dd283
YM
149592007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14960
14961 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
14962 Check WINDOWP before using XWINDOW. Consolidate return statements.
14963
0cf9f5b5
RS
149642007-06-27 Richard Stallman <rms@gnu.org>
14965
14966 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14967
a66f285a
JB
149682007-06-27 Juanma Barranquero <lekktu@gmail.com>
14969
14970 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
14971
8d0d84d2
YM
149722007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14973
14974 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
14975 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
14976 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
14977 (_free_internal, memalign): Use them.
14978 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
14979 Initialize to PTHREAD_MUTEX_INITIALIZER.
14980 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
14981 (morecore_nolock): Rename from morecore. All uses changed.
14982 Use only nolock versions of internal allocation functions.
14983 (_malloc_internal_nolock, _realloc_internal_nolock)
14984 (_free_internal_nolock): New functions created from
14985 _malloc_internal, _realloc_internal, and _free_internal.
14986 (_malloc_internal, _realloc_internal, _free_internal): Use them.
14987 Copy hook value to automatic variable before its use.
14988 (memalign): Copy hook value to automatic variable before its use.
14989
5a0bbd9a
KH
149902007-06-26 Kenichi Handa <handa@m17n.org>
14991
14992 * coding.c (Ffind_operation_coding_system): Docstring improved.
14993 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
14994
9a51747b
DK
149952007-06-25 David Kastrup <dak@gnu.org>
14996
14997 * keymap.c (Fcurrent_active_maps): Add `position' argument.
14998 (Fwhere_is_internal): Adjust call to `current-active-maps' to
14999 cater for additional parameter.
15000
15001 * keymap.h: Adjust number of parameters to `current-active-maps'.
15002
15003 * doc.c (Fsubstitute_command_keys): Adjust call of
15004 `current-active-maps'.
15005
e4305426
DK
150062007-06-25 David Kastrup <dak@gnu.org>
15007
15008 * callint.c (Fcall_interactively): Make the parsing of interactive
15009 specs somewhat more readable.
15010
511a18d9
YM
150112007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15012
15013 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
15014 to scroll bar gap also when bitmap fills fringe. Draw only foreground
15015 if extended background has already been filled.
15016
512eb161
YM
150172007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15018
15019 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
15020 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
15021
15022 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
15023 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
15024 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
15025 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
15026 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
15027 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
15028 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
15029 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
15030 Run timers during dialog popup.
15031 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
15032
2386b1f1
JR
150332007-06-21 Jason Rumney <jasonr@gnu.org>
15034
15035 * image.c (convert_mono_to_color_image): Swap fore and background.
15036
fab8b787
JR
150372007-06-20 Jason Rumney <jasonr@gnu.org>
15038
15039 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
15040 (w32_free_bdf_font): Unmap memory not handle.
15041
15bdd7a0 150422007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
15043
15044 * gmalloc.c (__morecore): Fix the declaration to comply with the
15045 definition.
15046
1bb8a291
JB
150472007-06-20 Juanma Barranquero <lekktu@gmail.com>
15048
15049 * w32term.c (w32_delete_display): Remove leftover declaration.
15050 (w32_define_cursor, w32_initialize): Make static.
15051
15052 * w32.c (_wsa_errlist): Fix typo in error message.
15053 (init_environment): Ignore any environment variable from the
15054 registry having a null value.
15055
92648dea
GM
150562007-06-20 Glenn Morris <rgm@gnu.org>
15057
15058 * Makefile.in (LIBGIF): Default to -lgif.
15059
ff25d115
JR
150602007-06-17 Jason Rumney <jasonr@gnu.org>
15061
15062 * w32menu.c (add_menu_item): Don't use multibyte string functions on
15063 unicode strings.
15064
a1a578a5
JB
150652007-06-16 Juanma Barranquero <lekktu@gmail.com>
15066
15067 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
15068 Fix typo in docstring.
15069
af41f8a8
EZ
150702007-06-16 Eli Zaretskii <eliz@gnu.org>
15071
15072 * w32menu.c (add_menu_item): Escape `&' characters in menu items
15073 and their keybindings.
15074
8b29cab9
CY
150752007-06-15 Chong Yidong <cyd@stupidchicken.com>
15076
15077 * composite.c (update_compositions): Fix last fix.
15078
c433c134
JR
150792007-06-14 Jason Rumney <jasonr@gnu.org>
15080
15081 * w32.c (get_process_times_fn): New function pointer.
15082 (globals_of_w32): Intialize it if present in kernel32.dll.
15083 (w32_get_internal_run_time): New function.
15084
15085 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
15086
553d3164
KH
150872007-06-14 Kenichi Handa <handa@etlken.m17n.org>
15088
15089 * composite.c (update_compositions): Check the validness of
15090 compositions.
15091
446ba96f
YM
150922007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15093
15094 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
15095 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
15096
15097 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
15098 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
15099
15100 * macgui.h (USE_MAC_TOOLBAR): New define.
15101
15102 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
15103 Return immediately unless popup is activated.
15104
15105 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
15106 background to scroll bar gap.
15107 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
15108 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
15109 scroll bars on frame edge. Check fringe background extension.
15110 Don't clear extended fringe background area.
15111 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
15112 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
15113 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
15114 [USE_MAC_TOOLBAR]: New macros.
15115 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
15116 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
15117 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
15118 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
15119 [USE_MAC_TOOLBAR]: New functions.
15120 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
15121 manually if previous repositioning has failed.
15122 (mac_handle_keyboard_event): Use precomputed event kind.
15123 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
15124 as tool bar item click. Handle mouse movement over tool bar items.
15125
15126 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
15127 toolbar_win_gravity.
15128 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
15129 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
15130 Add externs.
15131
15132 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
15133 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
15134
9720173f
CY
151352007-06-14 Chong Yidong <cyd@stupidchicken.com>
15136
15137 * image.c (search_image_cache): Remove unused variable.
15138
1217dd00
CY
151392007-06-13 Chong Yidong <cyd@stupidchicken.com>
15140
15141 * xfns.c, xmenu.c: Link to xaw3d if available.
15142
c5b8e0ea
YM
151432007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15144
15145 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
15146 frame_foreground and frame_background.
15147
15148 * image.c (lookup_image): Save frame foreground and background colors.
15149 (search_image_cache): Check if saved and current frame colors match.
15150
c69b0314
SM
151512007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15152
15153 * regex.c (regex_compile): Remove the `regnum' counter.
15154 Use bufp->re_nsub instead. Add support for \(?N:RE\).
15155
c9612b8e
SM
151562007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15157
15158 * term.c: Include intervals.h to declare Fget_text_property.
15159
843d2458
JR
151602007-06-10 Jason Rumney <jasonr@gnu.org>
15161
15162 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
15163
1e0d2d60 151642007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
15165
15166 * callint.c (Fcall_interactively):
15167 * editfns.c (Fdelete_and_extract_region):
15168 * fileio.c (Fread_file_name):
15169 * fns.c (Fmapconcat):
15170 * keyboard.c (cmd_error_internal):
15171 * keymap.c (Fkey_description):
15172 * lread.c (openp):
15173 * minibuf.c (read_minibuf):
15174 * search.c (wordify):
15175 * sunfns.c (sel_read):
15176 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
15177 * xfns.c (x_default_scroll_bar_color_parameter):
15178 * xmenu.c (menu_help_callback):
15179 * xselect.c (Fx_get_atom_name):
15180 * xterm.c (x_term_init): Use empty_unibyte_string.
15181
15bdd7a0 151822007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
15183
15184 * alloc.c (init_strings): Initialize canonical empty strings.
15185 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
15186 canonical empty string when the requested size is 0.
15187
15188 * emacs.c (empty_unibyte_string): Rename from empty_string.
15189 (empty_multibyte_string): New canonical empty string.
15190 (syms_of_emacs): Don't initialize empty_string.
15191
15192 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
15193 string, if appropriate.
15194 (empty_unibyte_string, empty_multibyte_string): New externs.
15195 (empty_string): Remove extern.
15196
15197 * lread.c (syms_of_lread): Use empty_unibyte_string.
15198
42c4c67a
JR
151992007-06-07 Jason Rumney <jasonr@gnu.org>
15200
15201 * s/ms-w32.h: Don't define HAVE_TZNAME.
15202
15203 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
15204
aa8280d3
YM
152052007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15206
15207 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
15208
15209 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
15210 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
15211
15212 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
15213 Don't call next handler.
15214 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
15215 Remove argument. Install handler to application.
15216 (set_frame_menubar): Don't change deep_p.
1e0d2d60 15217 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
15218 FRAME_OUTER_TO_INNER_DIFF_Y.
15219 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15220 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15221 [HAVE_DIALOGS]: New macros.
15222 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
15223 Use them.
15224 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
15225
15226 * macselect.c [MAC_OSX] (install_service_handler): Rename from
15227 init_service_handler. All callers changed. Return OSStatus value.
15228
15229 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
15230 All callers changed so as not to call SetPortWindowPort.
15231 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
15232 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
15233 mac_draw_string_common.
15234 (mac_draw_image_string_qd): Likewise.
15235 (mac_draw_string_common): Use them. Add INLINE.
15236 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
15237 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
15238 GetGlobalMouse.
15239 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
15240 and FRAME_OUTER_TO_INNER_DIFF_Y.
15241 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
15242 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
15243 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
15244 repositioning window to mac_handle_window_event.
15245 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
15246 saving window location to mac_handle_window_event
15247 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
15248 (install_menu_target_item_handler): Remove argument in extern.
15249 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
15250 Also accept command events.
15251 (do_keystroke): New function created from XTread_socket.
15252 (init_command_handler): Remove functions.
15253 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
15254 and save window location by kEventWindowShowing and kEventWindowHiding
15255 handlers here. Don't call next handler for window state change and
15256 focus events.
15257 (mac_handle_application_event, mac_handle_keyboard_event)
15258 [TARGET_API_MAC_CARBON]: New functions.
15259 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
15260 kEventWindowShowing and kEventWindowHiding events. Move installation
15261 of mouse, font, text input and menu target item handlers to
15262 install_application_handler.
15263 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
15264 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15265 New function.
15266 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15267 Register it.
c9612b8e
SM
15268 (XTread_socket) [TARGET_API_MAC_CARBON]:
15269 Consolidate SendEventToEventTarget calls.
15270 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
15271 Move application activation handler to mac_handle_application_event.
15272 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
15273 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
15274 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
15275 init_command_handler. Call install_application_handler.
15276
15277 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
15278 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
15279
6926c954
GM
152802007-06-07 Glenn Morris <rgm@gnu.org>
15281
15282 * emacs.c (main): Use `emacs-copyright' in --version output.
15283
6fe04c89
CY
152842007-06-06 Chong Yidong <cyd@stupidchicken.com>
15285
c9612b8e 15286 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 15287
7eb0d727
YM
152882007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15289
15290 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
785ce0ac 15291
7eb0d727
YM
15292 * macgui.h: Replace WindowPtr with WindowRef.
15293
15294 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
15295 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
15296 Replace ControlHandle with ControlRef.
15297 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
15298
15299 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
15300 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
15301 Replace ControlHandle with ControlRef.
15302 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
15303 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
15304
15305 * macterm.h (struct scroll_bar): Rename member control_handle_low
15306 and control_handle_high to control_ref_low and control_ref_high.
15307 All uses changed.
15308 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
15309 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
15310 respectively. All uses changed.
15311 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
15312 (install_window_handler, remove_window_handler): Replace WindowPtr
15313 with WindowRef in externs.
15314
65fddb74
JB
153152007-06-05 Juanma Barranquero <lekktu@gmail.com>
15316
15317 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
15318
db1213a9
NR
153192007-06-03 Nick Roberts <nickrob@snap.net.nz>
15320
15321 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
15322
65fddb74 15323 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
15324 Condition on HAVE_GPM too.
15325
15326 * term.c (term_mouse_highlight): Remove unused variables.
15327 (Fterm_open_connection): Set gpm_zerobased to 1.
15328 (term_mouse_movement, term_mouse_click, handle_one_term_event):
15329 Use zero based co-ordinates.
15330 (handle_one_term_event): Report a drag as mouse movement too.
15331
15332 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
15333
d94df25b
CY
153342007-06-03 Chong Yidong <cyd@stupidchicken.com>
15335
15336 * image.c (search_image_cache): New function. Require background
15337 color match if background color is unspecified in the image spec.
15338 (uncache_image, lookup_image): Use it.
15339
4797b6d9
JB
153402007-06-01 Juanma Barranquero <lekktu@gmail.com>
15341
15342 * window.c (Fshrink_window): Reflow docstring.
15343
1ffe7343
NR
153442007-06-02 Chong Yidong <cyd@stupidchicken.com>
15345
15346 * Version 22.1 released.
15347
153482007-06-01 Richard Stallman <rms@gnu.org>
15349
15350 * xfns.c (x_encode_text): Add GCPRO.
15351
153522007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15353
15354 * xfns.c (x_set_name_internal): Save encoded name before
15355 x_encode_text in case string data is relocated.
15356
153572007-05-31 Richard Stallman <rms@gnu.org>
15358
15359 * buffer.c (syms_of_buffer): Doc fix.
15360
153612007-05-30 Nick Roberts <nickrob@snap.net.nz>
15362
15363 * sysdep.c (init_sys_modes): Add rather than replace with
15364 O_NONBLOCK.
15365
15366 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
15367 term_mouse_moveto.
15368
15369 * termhooks.h (term_mouse_moveto): New extern.
15370
15371 * term.c (mouse_face_window): Rename...
15372 (Qmouse_face_window): ...to this.
15373 (term_show_mouse_face, term_clear_mouse_face)
15374 (term_mouse_highlight): Use Qmouse_face_window.
15375 (term_mouse_moveto): New function.
15376 (term_mouse_position): Make it work.
15377 (syms_of_term): Uncomment assignment to mouse_position_hook.
15378 Staticpro Qmouse_face_window.
15379
153802007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15381
15382 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
15383 around current_column call.
15384
153852007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
15386
15387 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
15388 * xdisp.c (next_element_from_buffer):
15389 * window.c (delete_window):
15390 * term.c (term_mouse_highlight):
15391 * msdos.c (getdefdir):
15392 * macterm.c (mac_create_bitmap_from_bitmap_data)
15393 (init_font_name_table):
15394 * fns.c (Fsxhash):
15395 * data.c (Fmake_local_variable):
15396 * ccl.c (ccl_driver): Likewise.
15397
153982007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15399
15400 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
15401 Call mac_wakeup_from_rne on window size change.
15402
154032007-05-25 Chong Yidong <cyd@stupidchicken.com>
15404
15405 * image.c (uncache_image): Fix typo.
15406
154072007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
15408
15409 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
15410
154112007-05-22 Richard Stallman <rms@gnu.org>
15412
15413 * xterm.c (x_connection_closed): Remove NO_RETURN.
15414
154152007-05-22 Martin Rudalics <rudalics@gmx.at>
15416
15417 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
15418
154192007-05-21 Chong Yidong <cyd@stupidchicken.com>
15420
15421 * image.c (uncache_image): New function.
15422 (Fimage_refresh): New function.
15423
880820fe 154242007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
15425
15426 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
15427
154282007-05-20 Nick Roberts <nickrob@snap.net.nz>
15429
15430 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
15431 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
15432
154332007-05-20 Nick Roberts <nickrob@snap.net.nz>
15434
15435 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
15436 conditional on [HAVE_GPM_H].
15437
154382007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15439
15440 * syntax.c (skip_chars): Update syntax-table only after we checked that
15441 the new location is valid.
15442
154432007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15444
15445 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
15446 mac_get_window_bounds.
15447
154482007-05-20 Nick Roberts <nickrob@snap.net.nz>
15449
15450 * Makefile.in (LIBGPM): Allow it to be set from configure.
15451 If set then link Emacs with it.
15452
15453 * config.in: Regenerate.
15454
15455 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
15456 New externs.
15457
15458 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
15459 Include gpm.h.
15460 (handle_one_term_event, term_gpm): New externs.
15461
15462 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
15463 and allow it to be interrupted by SIGIO.
15464
15465 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
15466 (wait_reading_process_output): Wait on gpm_fd too.
15467 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
15468 (add_gpm_wait_descriptor_called_flag): New variable.
15469 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
15470
15471 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
15472 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
15473 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
15474 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
15475 (make_lispy_event): Add case GPM_CLICK_EVENT.
15476 (read_avail_input): Handle mouse input.
15477
15478 * term.c (write_glyphs_with_face): New function.
15479 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
15480 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
15481 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
15482 (mouse_face_face_id, term_gpm, pos_x, pos_y)
15483 (last_mouse_x, last_mouse_y): New variables.
15484 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
15485 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
15486 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
15487 (Fterm_close_connection): New functions.
15488 (term_init): Initialise mouse_face_window.
15489
154902007-05-19 Chong Yidong <cyd@stupidchicken.com>
15491
15492 * xdisp.c (redisplay_window): If first window line is a
15493 continuation line, recompute the new window start instead of
15494 recentering.
15495
154962007-05-18 Glenn Morris <rgm@gnu.org>
15497
15498 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
15499 Suggested by Alfred M. Szmidt <ams@gnu.org>.
15500
155012007-05-17 Glenn Morris <rgm@gnu.org>
15502
15503 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
15504
155052007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15506
15507 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
15508 dead key repeat and up events.
15509
155102007-05-14 Chong Yidong <cyd@stupidchicken.com>
15511
15512 * image.c (pbm_load): Check image size for monochrome pbm.
15513
155142007-05-13 Chong Yidong <cyd@stupidchicken.com>
15515
15516 * xterm.c (XTread_socket): Revert last change.
15517
155182007-05-12 Chong Yidong <cyd@stupidchicken.com>
15519
15520 * image.c (pbm_load): Correctly check image size for greyscale pbm.
15521
15522 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
15523
155242007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
15525
15526 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
15527 mixup (YAILOM).
15528
155292007-05-07 Andreas Schwab <schwab@suse.de>
15530
15531 * keymap.c (Flookup_key): Fix typo in last change.
15532
155332007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
15534
15535 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
15536 mapping for unibyte strings.
15537
155382007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15539
15540 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
15541 (Fx_popup_dialog) [MAC_OSX]: Likewise.
15542
155432007-04-29 Richard Stallman <rms@gnu.org>
15544
15545 * insdel.c (replace_range): For undo, record insertion first.
15546
155472007-04-29 Andreas Schwab <schwab@suse.de>
15548
15549 * lisp.h (VECSIZE): Use OFFSETOF.
15550
155512007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15552
15553 * xdisp.c (try_window_reusing_current_matrix): Fix number of
15554 disabled lines.
15555
155562007-04-28 Richard Stallman <rms@gnu.org>
15557
15558 * lread.c (read_escape): In a string, \s is always space.
15559
880820fe 155602007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
15561
15562 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
15563
15564 * gtkutil.c (xg_update_menubar, create_menus): Create empty
15565 submenu for menu bar items.
15566
382c648d 15567See ChangeLog.10 for earlier changes.
6922b018
KH
15568
15569;; Local Variables:
880820fe 15570;; coding: utf-8
33462dfa 15571;; add-log-time-zone-rule: t
67e8d28a 15572;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 15573;; End:
2a34a036 15574
59ce725a 15575 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
15576
15577 This file is part of GNU Emacs.
15578
5a1dde61 15579 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 15580 it under the terms of the GNU General Public License as published by
5a1dde61
GM
15581 the Free Software Foundation, either version 3 of the License, or
15582 (at your option) any later version.
7f6d64f8
GM
15583
15584 GNU Emacs is distributed in the hope that it will be useful,
15585 but WITHOUT ANY WARRANTY; without even the implied warranty of
15586 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15587 GNU General Public License for more details.
15588
15589 You should have received a copy of the GNU General Public License
5a1dde61 15590 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 15591
28f60c3d 15592;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40