(charset-map-path): Doc fix.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6f3122a7
GM
12008-09-11 Glenn Morris <rgm@gnu.org>
2
3 * charset.c (charset-map-path): Doc fix.
4
fc3a285e
KH
52008-09-10 Kenichi Handa <handa@m17n.org>
6
f83ef653
KH
7 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8
fc3a285e
KH
9 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10 compose a grapheme cluster with the preceding base glyph.
11
12 * composite.c (composition_compute_stop_pos): Fix previous change.
053ca52b 13 Reset cmp_it->id to -1 at first.
fc3a285e 14
fa2dda14
GM
152008-09-10 Glenn Morris <rgm@gnu.org>
16
17 * Makefile.in (character.o, chartab.o): Fix config.h typo.
18
daf85753
CY
192008-09-09 Chong Yidong <cyd@stupidchicken.com>
20
21 * keyboard.c (read_key_sequence): Reapply translation maps when
22 switching keyboards.
23
d45a49e3
KH
242008-09-09 Kenichi Handa <handa@m17n.org>
25
da2cf488
KH
26 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
27 characters.
28
d45a49e3
KH
29 * composite.c (FORWARD_CHAR): Fix calculation
30 of (POSITION).pos_byte.
6450412d
KH
31 (composition_compute_stop_pos): Limit the search of composition to
32 at most 500 characters ahead. If we reach the limit or find a
33 newline, set cmp_it->ch to -2 and return 0.
34 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
d45a49e3
KH
35
362008-09-08 Kenichi Handa <handa@m17n.org>
37
38 * indent.c (Fvertical_motion): Be sure to set
39 it_overshoot_expected if it.cmp_it.id is non-nengative.
40
1aa83b22
AS
412008-09-07 Andreas Schwab <schwab@suse.de>
42
43 * callproc.c (Fcall_process): Don't hold references to string data
44 across garbage collection. Move initialisation of new_argv down
45 to avoid compiler bug.
46
a7713d66
RW
472008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
48
49 * process.c (Fsystem_process_attributes): Doc fix.
50
0f6c7c7e
CY
512008-09-07 Chong Yidong <cyd@stupidchicken.com>
52
39fc455f
CY
53 * callproc.c (Fcall_process): Canonicalize current directory name.
54
0f6c7c7e
CY
55 * xdisp.c (move_it_to): When moving by vpos, ensure that the
56 iterator advances to the next line if the current line ends in a
57 continued tab.
58
93c7fcf8
TZ
592008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
60
61 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
62 member to point to cmp_from.
63
64 * xdisp.c: Doc fix for references to gidx data member.
65
126f1fc1
SM
662008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
67
68 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
69
ea92add1
RW
702008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
71
72 * process.c (Fsystem_process_attributes): Doc fix.
73
58bba807
CY
742008-09-06 Chong Yidong <cyd@stupidchicken.com>
75
76 * keyboard.c (Ftop_level): Doc fix.
77
e779d630
EZ
782008-09-06 Eli Zaretskii <eliz@gnu.org>
79
2de7397f
EZ
80 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
81 minibuffer, don't let lower part of menu invade the echo area.
82
e779d630
EZ
83 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
84 "char *q" to access menu text and advance through it. Revert the
85 change that displayed ">" instead of ASCII character 0x10.
86
dda86321
EZ
872008-09-05 Eli Zaretskii <eliz@gnu.org>
88
89 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
90 toggle boxes and radio buttons on MS-DOS as well.
91
90b3fe91
KH
922008-09-05 Kenichi Handa <handa@m17n.org>
93
94 * composite.c (autocmp_chars): Check lookback count.
95 (composition_compute_stop_pos): Set cmp_it->lookback.
96 (composition_reseat_it): Check lookback count.
97 (struct position_record): New struct.
98 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
99 (find_automatic_composition): New function.
100 (composition_adjust_point): Use find_automatic_composition.
101
102 * dispextern.h (struct composition_it): New member lookback.
103
efa09d5d
CY
1042008-09-02 Chong Yidong <cyd@stupidchicken.com>
105
106 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
107 if moving by a single line.
108
7a3cddef
AS
1092008-09-02 Andreas Schwab <schwab@suse.de>
110
afed2584
AS
111 * xterm.c (x_delete_display): Fix merge error.
112
7a3cddef
AS
113 * fileio.c (Fexpand_file_name): Remove unused variables.
114
9850eff5 1152008-09-02 Eli Zaretskii <eliz@gnu.org>
669fa600 116
9850eff5
MB
117 * fileio.c (Fexpand_file_name): Copy argument `name' into local
118 storage on all platforms, not just on DOS_NT.
2bde1dd8 119
9850eff5 1202008-09-02 Jason Rumney <jasonr@gnu.org>
2bde1dd8 121
9850eff5
MB
122 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show): Ensure
123 mouse is not grabbed after menu is finished.
a267ab4d 124
d7642a18
CY
1252008-09-01 Chong Yidong <cyd@stupidchicken.com>
126
127 * xfaces.c (Finternal_set_alternative_font_family_alist)
128 (Finternal_set_alternative_font_registry_alist): Properly copy
129 entire alist structure.
130
fc41e69b
KH
1312008-09-01 Kenichi Handa <handa@m17n.org>
132
133 * ftfont.c (ftfont_spec_pattern): Don't create a charset of the
134 representative chars of the script is a vector.
135 (ftfont_list): Handle the case the representative chars of the
136 script is a vector.
137
138 * character.c (syms_of_character): Docstring of
139 script-representative-chars fixed.
140
e52ab6c9
EZ
1412008-08-31 Eli Zaretskii <eliz@gnu.org>
142
143 * msdos.c (BUILD_CHAR_GLYPH): New macro.
144 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
145 the menu. Allocate larger buffer for `text', to account for
146 possible ^C characters.
147
cc12456a
MR
1482008-08-31 Martin Rudalics <rudalics@gmx.at>
149
150 * xdisp.c (prepare_menu_bars): Don't call
151 Vwindow_size_change_functions with arg Qt.
152
c7c7a80c
SM
1532008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
154
155 * font.h (font_range):
156 * fileio.c (report_file_error):
157 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
158
af3e2be6
GM
1592008-08-30 Glenn Morris <rgm@gnu.org>
160
e3139144
GM
161 * data.c (Fmake_variable_frame_local): Doc fix.
162
af3e2be6
GM
163 * frame.c (Fmodify_frame_parameters): Doc fix.
164
657ceaa0
EZ
1652008-08-30 Eli Zaretskii <eliz@gnu.org>
166
32cef06e
EZ
167 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
168 needed by GetTokenInformation.
169 (w32_system_process_attributes): Check return values of all system
170 APIs.
171
b04021eb
EZ
172 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
173 only when the state changes.
7ccd1daf 174 (IT_update_begin, IT_update_end): Add termscript trace.
b04021eb 175
1b912a3b
EZ
176 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
177 clipboard is unavailable. Set dst to NULL if it doesn't point to
178 malloc'ed data.
179 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
180 passing random values to xfree.
181
657ceaa0
EZ
182 * dispnew.c (init_display): Set `tty's association in frame's
183 parameters alist to the name of the terminal device, if that is
184 known.
185
595f1870
JR
1862008-08-29 Jason Rumney <jasonr@gnu.org>
187
188 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
189
4bf84f7d
EZ
1902008-08-29 Eli Zaretskii <eliz@gnu.org>
191
77fa4db2
EZ
192 * composite.c (fill_gstring_body): Avoid compiler warnings.
193
194 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
195 LGLYPH_SET_CODE to avoid compiler warnings.
196
4bf84f7d
EZ
197 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h
198
199 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
200
201 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
202 LGLYPH_SET_CODE.
203
94baaf4f
KH
2042008-08-29 Kenichi Handa <handa@m17n.org>
205
206 * fileio.c (report_file_error): Don't downcase the first character
207 of errstring if it is still unibyte.
208
24553805
KH
2092008-08-29 Kenichi Handa <handa@m17n.org>
210
211 These changes are to re-implement the automatic composition so
212 that it doesn't use text properties.
213
214 * Makefile.in (ftfont.o): Depend on composite.h.
215 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
216
217 * character.h (Vunicode_category_table): Extern it.
218
219 * character.c (Vunicode_category_table): New variable.
220 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
221
222 * chartab.c (optimize_sub_char_table): Perform more greedy
223 optimization.
224
225 * composite.h (enum composition_method): Delete
226 COMPOSITION_WITH_GLYPH_STRING.
227 (COMPOSITION_METHOD): Dont' check COMPOSITION_WITH_GLYPH_STRING.
228 (Vcomposition_function_table): Extern it.
229 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
230 (composition_gstring_put_cache, composition_gstring_from_id)
231 (composition_gstring_p, composition_gstring_width)
232 (composition_compute_stop_pos, composition_reseat_it)
233 (composition_update_it, composition_adjust_point): Extern them.
234 (Fcomposition_get_gstring): EXFUN it.
235
236 * composite.c: Include window.h, frame.h, dispextern.h font.h.
237 (Vcomposition_function_table)
238 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
239 (gstring_hash_table, gstring_work, gstring_work_headers): New
240 variables.
241 (gstring_lookup_cache, composition_gstring_put_cache)
242 (composition_gstring_from_id, composition_gstring_p)
243 (composition_gstring_width, fill_gstring_header)
244 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
245 (composition_reseat_it, composition_update_it)
246 (composition_adjust_point, Fcomposition_get_gstring): New
247 functions.
248 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
249 and gstring_work_headers. DEFVAR_LISP composition-function-table.
250 Defsubr compostion_get_gstring.
251
252 * dispextern.h (struct glyph): New union u.cmp. Delete the member
253 cmp_id.
254 (struct glyph_string): Delete the member gidx. New members
255 cmp_id, cmp_from, and cmp_to.
256 (enum it_method): Delete GET_FROM_COMPOSITION.
257 (struct composition_it): New struct.
258 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
259 Delete c, len, cmp_id, cmp_len in u.comp.
260
261 * font.h (enum lgstring_indices): Delete it.
262 (LGSTRING_XXX, LGLYPH_XXX): These macros moved to composite.h.
263 (enum lglyph_indices): Likewise.
264 (font_range): Extern adjusted.
265 (font_fill_lglyph_metrics): Extern it.
266
267 * font.c (QCf): New variable.
268 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
269 (font_prepare_composition): Delete this function.
270 (font_range): Type and arguments changed.
271 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
272 (font_fill_lglyph_metrics): New function.
273 (Ffont_shape_text): Renamed to Ffont_shape_gstring and arguments
274 changed.
275 (syms_of_font): DEFSYM QCf. Delete defsubr for
276 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text. Defsubr
277 Sfont_shape_gstring.
278
279 * fontset.h (font_for_char): Extern it.
280
281 * fontset.c (font_for_char): New function.
282
283 * ftfont.c: Include composite.h.
284 (ftfont_resolve_generic_family): Add langset "en" to pattern.
285 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not
286 LGSTRING_LENGTH.
287
288 * indent.c: Include composite.h and dispextern.h.
87e204a2 289 (check_composition): Delete this function.
24553805
KH
290 (scan_for_column): Handle composition by
291 composition_compute_stop_pos, composition_reseat_it, and
292 composition_update_it.
293 (compute_motion): Likewise.
294 (Fvertical_motion): Fix checking of composition.
295
296 * keyboard.c (adjust_point_for_property): Check composition by
297 composition_adjust_point.
298
299 * nsterm.m (ns_draw_glyph_string): Adjusted for the change of
300 struct glyph_string.
301
302 * term.c (encode_terminal_code): Adjusted for the change of struct
303 glyph.
304 (append_composite_glyph): Adjusted for the change of struct it and
305 struct glyph.
306 (produce_composite_glyph): Likewise.
307
308 * w32term.c (x_draw_composite_glyph_string_foreground): Adjusted
309 for the change of struct glyph_string.
310 (x_draw_glyph_string): Likewise.
311
312 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
313 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
314
315 * xdisp.c: Include font.h.
316 (it_props): Delete the entry for Qauto_composed.
317 (init_iterator): Initialize it->cmp_it.id to -1.
318 (compute_stop_pos): Call composition_compute_stop_pos.
319 (face_before_or_after_it_pos): Adjusted for the change of struct
320 it.
321 (handle_auto_composed_prop): Delete it.
322 (handle_composition_prop): Handle only static composition.
323 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
324 from xassert. Initialize it->cmp_it.stop_pos.
325 (push_it): Adjusted for the change of struct it.
326 (pop_it): Likewise.
327 (get_next_element): Delete next_element_from_composition.
328 (CHAR_COMPOSED_P): New macro.
329 (get_next_display_element): For automatic composition, get a face
330 from the font in the glyph-string.
331 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
332 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION
333 case.
334 (next_element_from_string): Check if the character at the current
335 position is composed by CHAR_COMPOSED_P.
336 (next_element_from_buffer): Likewise.
337 (next_element_from_composition): Adjusted for the change of struct
338 it. Update it->cmp_it.
339 (dump_glyph): Adjusted for the change of struct glyph.
340 (fill_composite_glyph_string): Adjusted for the change of struct
341 it and struct glyph. Don't handle automatic composition here.
342 (fill_gstring_glyph_string): New function.
343 (x_get_glyph_overhangs): Handle automatic composition.
344 (BUILD_COMPOSITE_GLYPH_STRING): Adjusted for the change of struct
345 glyph.
346 (BUILD_GSTRING_GLYPH_STRING): New macro.
347 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
348 automatic composition.
349 (append_composite_glyph): Adjusted for the change of struct it and
350 struct glyph.
351 (x_produce_glyphs): Adjusted for the change of struct it.
352
353 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for
354 the change of struct glyph_string.
355 (x_draw_glyph_string): Likewise.
356
05e10ad5
GM
3572008-08-29 Glenn Morris <rgm@gnu.org>
358
359 * buffer.c (word-wrap): Doc fix.
360 * xdisp.c (truncate-partial-width-windows): Doc fix.
361 Increase default to 50.
362
efe63a4b
CY
3632008-08-29 Chong Yidong <cyd@stupidchicken.com>
364
365 * xdisp.c (update_tool_bar_unwind): New function.
366 (update_tool_bar): Temporarily set selected frame before building
367 tool-bar items.
368
a8c95f1a
MA
3692008-08-28 Michael Albinus <michael.albinus@gmx.de>
370
371 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
372 snprintf, respectively.
373 (xd_append_arg): Convert strings with Fstring_make_unibyte.
374
558f81af
CY
3752008-08-28 Chong Yidong <cyd@stupidchicken.com>
376
377 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
378 LDFLAGS to GNUstep CC invocation.
379
48ce8ca7
CY
3802008-08-27 Chong Yidong <cyd@stupidchicken.com>
381
8fa97db1
CY
382 * indent.c (Fvertical_motion): Revert last change. Handle the
383 general case where we are moving forward, and PT spans multiple
384 screen lines.
385
48ce8ca7
CY
386 * eval.c (find_handler_clause): Temporarily increase
387 max-lisp-eval-depth while printing the backtrace buffer, to
388 guarantee that help-mode code can run.
389
f12dae2f
EZ
3902008-08-27 Eli Zaretskii <eliz@gnu.org>
391
392 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
393 colors under -rv.
394 (IT_set_frame_parameters): Don't swap foreground and background
395 colors if `(reverse . t)' is present in the frame properties.
fe9365b3
EZ
396 (internal_terminal_init): Call init_frame_faces only for the
397 initial frame.
f12dae2f 398
b9fb8cf0
CY
3992008-08-27 Andreas Schwab <schwab@suse.de>
400
401 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
402
dafaabd1
AS
4032008-08-27 Andreas Schwab <schwab@suse.de>
404
405 * search.c (search_buffer): Set char_base to zero only at the end.
406
6c0969ca
KH
4072008-08-27 Kenichi Handa <handa@m17n.org>
408
409 * fileio.c (report_file_error): Fix handling of multibyte error
410 string.
411
ffd1cd8a
CY
4122008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
413
414 * xterm.c (x_term_init): Temporarily hide the partially
415 initialized terminal while calling vendor-specific-keysyms.
416
2306a735
EZ
4172008-08-26 Eli Zaretskii <eliz@gnu.org>
418
419 * msdos.c (internal_terminal_init): Most initializations done only
420 once, especially initial_screen_colors[] and termscript open.
421
609849bc
CY
4222008-08-26 Chong Yidong <cyd@stupidchicken.com>
423
ba59c3a1
CY
424 * eval.c (Fcondition_case): Doc fix.
425
7d31058f
CY
426 * widgetprv.h (EmacsFramePart): Change font member to the new font
427 struct.
609849bc
CY
428
429 * widget.c: Include character.h and font.h for XSETFONT.
430 (setup_frame_gcs): Compute X font id from font struct, just once.
431
5cc67f65
EZ
4322008-08-26 Eli Zaretskii <eliz@gnu.org>
433
434 * term.c (get_named_tty): Fix last change.
435
ff73b461
CY
4362008-08-26 Chong Yidong <cyd@stupidchicken.com>
437
438 * indent.c (Fvertical_motion): If moving forward starting from a
439 multi-line string, move the iterator to the last line of that
440 string.
441
a4e628d4
EZ
4422008-08-25 Eli Zaretskii <eliz@gnu.org>
443
444 * frame.c (do_switch_frame): Mark previously displayed frame as
445 obscured for FRAME_MSDOS_P frames as well.
446
8a445f76
EZ
4472008-08-24 Eli Zaretskii <eliz@gnu.org>
448
1266f9ef
EZ
449 * frame.c (make_terminal_frame): Initialize f->terminal,
450 f->terminal->reference_count, and scroll bars on MS-DOS as well.
451 Set the top frame to newly created frame.
452 (Fmake_terminal_frame): Reuse the_only_display_info.
453
8a445f76
EZ
454 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
455 estimating available memory.
456
154c218f
CY
4572008-08-23 David Reitter <david.reitter@gmail.com>
458
54299c95
DR
459 * nsterm.m (ns_draw_window_cursor): Don't call
460 NSDisableScreenUpdates and NSEnableScreenUpdates on
461 non-NS_IMPL_COCOA systems.
462
8399d035
AS
4632008-08-23 Andreas Schwab <schwab@suse.de>
464
465 * process.c (procfs_system_process_attributes): Fix use of
466 uninitialized variables.
467
293a3986
EZ
4682008-08-23 Eli Zaretskii <eliz@gnu.org>
469
470 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
471
472 * dispnew.c (init_display): Remove MS-DOS specific conditions for
473 calling tty-set-up-initial-frame-faces.
474
475 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show): Allow
476 MSDOS frames along with X frames.
477
478 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
479 addition to output_termcap.
480
481 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
482
483 * termchar.h (FRAME_TTY): Support output_msdos_raw.
484 (struct tty_display_info) [MSDOS]: Add fields related to mouse
485 highlight.
486
487 * process.c [!subprocesses]: Define QCname.
488 (syms_of_process): Intern and staticpro it.
489
490 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
491 Adjust for changes in encoding/decoding routines. Use
492 encode_coding_object and decode_coding_object instead of
493 encode_coding and decode_coding.
494
495 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as
496 argument.
497
498 * dosfns.c: Include frame.h before termhooks.h.
499 (dos_cleanup): Use CURTTY ()->termscript instead of a global
500 variable termscript.
501
502 * s/msdos.h (USER_FULL_NAME): Define.
503 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
504
505 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
506 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
507 pw->pw_gecos.
508
509 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
510 SELECTED_FRAME as additional (1st) argument.
511 (tty_read_avail_input): Handle output_msdos_raw in
512 addition to output_termcap.
513
514 * msdos.c: Include frame.h before termhooks.h.
515 (mouse_on, mouse_off, mouse_moveto, mouse_init)
516 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
517 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
518 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
519 (IT_set_terminal_modes, IT_reset_terminal_modes)
520 (IT_set_frame_parameters): Use tty->termscript instead of a global
521 variable termscript.
522 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
523 global variable terminal_coding. Don't refer to
524 Vnonascii_translation_table.
525 (internal_terminal_init): Set Vwindow_system in current_kboard.
526 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
527 Announce date and time of session start, if termscript is open.
528 Don't zero out the_only_display_info (it is done in
529 term.c:init_tty). Open termscript only of not already open. Log
530 "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
531 here instead of dos_ttraw. Don't initialize display if this is an
532 initial tty. Don't set FRAME_FONT.
533 (Vwindow_system_version): Bump to 23.
534 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
535 is available, set up mouse_position_hook.
536 (dos_ttraw, IT_set_terminal_modes): If called with initial
537 terminal, do nothing.
538 (IT_set_frame_parameters): Handle the Qtty_type frame
539 parameter by calling internal_terminal_init.
540 (dos_set_window_size, show_mouse_face)
541 (clear_mouse_face, IT_note_mode_line_highlight)
542 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
543 (dos_rawgetc): Use tty_display_info instead of x_display_info.
544 (initialize_msdos_display): New function.
545 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
546 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
547 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
548 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
549 Accept additional argument: a pointer to a frame. All callers
550 changed.
551 (request_sigio, unrequest_sigio): Don't define, now defined on
552 sysdep.c.
553 (IT_write_glyphs): Rewrite to use encode_terminal_code.
554
555 * term.c [MSDOS]: Include msdos.h.
556 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
557 conditional to DOS_NT. Allow only one call to this function in a
558 session. Don't allocate a new struct tty_display_info; instead,
559 reuse the_only_display_info. Call get_tty_size to get screen
560 dimensions. Call init_baud_rate to set bad_rate.
561 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
562 (Fsuspend_tty) [MSDOS]: Don't close input and output.
563 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use
564 stdin/stdout.
565 (get_tty_terminal, get_named_tty, Ftty_type)
566 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
567 output_termcap.
568 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty): Call
569 add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
570 only when subprocesses are supported
571
572 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
573 f->output_data.x.
574 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
575 terminal devices.
576
577 * msdos.h Remove definition of struct x_display_info and struct
578 x_output.
579 (FRAME_FONT): Use output_data.tty.
580 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
581 (struct x_display_info): Renamed from display_info. All users in
582 msdos.c changed.
583 (struct x_output): Remove background_pixel and foreground_pixel.
584 (the_only_display_info): Renamed from the_only_x_display.
585 (dos_ttraw): Update prototype.
586
587 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
588 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
589
58279503
JR
5902008-08-23 Jason Rumney <jasonr@gnu.org>
591
592 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
593 (fn_TIFFSetDirectory): New library function used.
594 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
595 (tiff_load): Use :index to select among multiple images. Set count
596 property when multiple images exist.
597 (gif_format): Use :index, not :image.
598
4b7e0869
CY
5992008-08-23 Chong Yidong <cyd@stupidchicken.com>
600
601 * xdisp.c (try_scrolling): Check INT_MAX instead of
602 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
603 to obtain INT_MAX.
604
fe0a6f3b 6052008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
a3c8694a 606
fe0a6f3b 607 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
a3c8694a 608
e0ce7c50
CY
6092008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
610
611 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
612 GNUstep library location.
613
2984624d
CY
6142008-08-21 Chong Yidong <cyd@stupidchicken.com>
615
23888717
CY
616 * xfaces.c (x_update_menu_appearance): Check validity of menu font
617 before using it.
618
2984624d
CY
619 * puresize.h (BASE_PURESIZE): Increase to 1250000.
620
f2f7f42c
AR
6212008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
622
623 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
624 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
625 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
626 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
627 (EmacsApp-cursor_blink_handler): Remove declaration.
628 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
629 match 01 Feb 2008 changes in xterm.c.
630 (ns_read_socket): Add cast to avoid warning.
631 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
632 GNUstep.
633
1eff4ab3
CY
6342008-08-20 Chong Yidong <cyd@stupidchicken.com>
635
636 * xselect.c (x_get_foreign_selection): Return nil if desired
637 selection could not be obtained, instead of signalling an error.
638
fe0a6f3b 6392008-08-20 David Reitter <david.reitter@gmail.com>
b8c63ae9 640
fe0a6f3b 641 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
1eff4ab3
CY
642 * nsterm.m: Remove ns-specific code for cursor blinking.
643 (ns_draw_window_cursor): Clear cursor properly rather than
87e204a2 644 redrawing the area. Respect width of bar cursors.
1eff4ab3 645 These changes enable the use of generic blink-cursor-mode and
b8c63ae9
DR
646 generic cursor types in NS and support smooth cursor movements (do
647 not blink off after command).
1eff4ab3
CY
648 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
649 Nextstep, too.
b8c63ae9 650
86d21abc
KH
6512008-08-19 Kenichi Handa <handa@m17n.org>
652
653 * font.c (Vfont_log_deferred): New variable.
654 (font_add_log): Check Vfont_log_deferred.
655 (font_deferred_log): New funciton.
656
657 * font.h (font_deferred_log): Extern it.
658
659 * fontset.c (reorder_font_vector): Use encoding charset of fonts
660 for sorting.
661 (face_for_char): Use deferred log.
662
039d3b16
KH
6632008-08-18 Kenichi Handa <handa@m17n.org>
664
665 * fontset.c (face_for_char): Add font log.
666
667 * font.c (font_add_log): Add the font properties :script, :lang,
668 and :otf in the log.
669
e5ac2419
CY
6702008-08-17 Chong Yidong <cyd@stupidchicken.com>
671
672 * xdisp.c: Remove dead code.
673 (handle_invisible_prop, next_overlay_string): Defer call to
674 setup_for_ellipsis.
675 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
676
c2e9928d
CY
6772008-08-15 Chong Yidong <cyd@stupidchicken.com>
678
ef1fba80
CY
679 * xfaces.c (lookup_derived_face): Properly handle possible zero
680 return value of get_lface_attributes.
681 (merge_faces): Don't tell lookup_derived_face to signal an error
682 if face is not found.
683
1c319327
CY
684 * dired.c (Fdirectory_files): Doc fix.
685
c2e9928d
CY
686 * process.c (make_process): Initialize kill_without_query struct
687 member.
688
b8526f6e
EZ
6892008-08-15 Eli Zaretskii <eliz@gnu.org>
690
235661f6
EZ
691 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
692 Alternative calculation of totphys for Visual Studio 6.
693
8e764ce0
EZ
694 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
695
b8526f6e
EZ
696 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
697 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
698 All users changed.
a644b2e4
EZ
699 (stat): Only root directory passed to GetDriveType. Allow RAM
700 disk as well as local fixed disk when w32-get-true-file-attributes
701 is set to `local'.
f8b35b24
EZ
702 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
703 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
704 (w32_cached_id, w32_add_to_cache): New functions.
705 (get_name_and_id): Look account names in the cache before calling
706 lookup_account_sid.
707 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
708 New initialization flags.
709 (globals_of_w32): Initialize them to zero.
710 (w32_system_process_attributes): Use w32_cached_id and
711 w32_add_to_cache.
b8526f6e 712
f581fad6
CY
7132008-08-14 Lawrence Mitchell <wence@gmx.li>
714
715 * lread.c (Fread_char, Fread_char_exclusive): If no character
716 event is read before timeout is reached, return nil, rather than
717 converting to a number.
718
23c6bdbe
CY
7192008-08-14 Chong Yidong <cyd@stupidchicken.com>
720
6988207c 721 * fns.c (use_dialog_box): Doc fix.
97aec90a 722
23c6bdbe
CY
723 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
724 on OS X.
725
01623ee7
CY
7262008-08-13 Chong Yidong <cyd@stupidchicken.com>
727
728 * frame.c (Qns_parse_geometry): New var.
729 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
730
f00f8cb7
CY
7312008-08-11 Chong Yidong <cyd@stupidchicken.com>
732
733 * xdisp.c (x_produce_glyphs): Handle the case when font has no
734 space character in calculating tabs.
735
11d8ec4a
DN
7362008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
737
738 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
739
27bef0c8
GM
7402008-08-10 Glenn Morris <rgm@gnu.org>
741
742 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
743 silence gcc "limited range of data type" warnings in some
744 make_fixnum_or_float calls.
745
8f8b082a
EZ
7462008-08-09 Eli Zaretskii <eliz@gnu.org>
747
754a2d13
EZ
748 * w32.c (w32_system_process_attributes): If the process does not
749 exist, return nil.
750
8f8b082a
EZ
751 * w32.c: Include thelp32.h, psapi.h and coding.h.
752 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
753 declarations.
754 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
755 (Process32Next_Proc): New typedefs.
756 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
757 (g_b_init_process32_next, g_b_init_open_thread_token)
758 (g_b_init_impersonate_self, g_b_init_revert_to_self)
759 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
760 (g_b_init_get_process_working_set_size)
761 (g_b_init_global_memory_status_ex): New static variables.
762 (globals_of_w32): Initialize them.
763 (create_toolhelp32_snapshot, process32_first, process32_next)
764 (open_thread_token, impersonate_self, revert_to_self)
765 (get_process_memory_info, get_process_working_set_size)
766 (global_memory_status, global_memory_status_ex): New wrapper
767 functions.
768 (w32_list_system_processes, w32_system_process_attributes)
fe0a6f3b
JB
769 (enable_privilege, restore_privilege, ltime, process_times):
770 New functions.
8f8b082a
EZ
771 (convert_time_raw): New function.
772 (convert_time): Remove conversion of FILETIME into time in 100
773 nsec units, call convert_time_raw instead.
774
775 * process.h (w32_list_system_processes, w32_system_process_attributes):
776 Add prototypes.
777 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
778 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
779 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
780 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
781
782 * process.c (Fsystem_process_attributes): Doc fix.
783
97c98587
CY
7842008-08-08 Chong Yidong <cyd@stupidchicken.com>
785
fe0a6f3b
JB
786 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
787 a continued multi-char glyph; if so, advance to the actual glyph.
97c98587 788
48fad8e8
DN
7892008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
790
fe0a6f3b 791 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
48fad8e8
DN
792
793 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
794 (.m.o): Use it.
795 * config.in: Regenerate.
796
709fc721
CY
7972008-08-07 Chong Yidong <cyd@stupidchicken.com>
798
799 * xdisp.c (redisplay_window): Revert last change.
800 (try_window): Check bottom scroll margin too.
801
b330336c
AR
8022008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
803
804 * config.in: Regenerate.
805
806 * Makefile.in (emacs): Remove ndef NS conditional for 'emacs
807 -list-load-path-shadows'.
808 (nsgui.h): Reduce number of things depending on it.
809
b2c5015c
CY
8102008-08-06 Chong Yidong <cyd@stupidchicken.com>
811
812 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
813 instead of window-end which does the wrong thing at eob.
814 (try_cursor_movement): Minor optimization.
815 (redisplay_window): If scroll margin is defined, don't assume
816 window doesn't need scrolling.
817
55737942
AR
8182008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
819
820 * config.in: Regenerate.
821
822 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
823 (mostlyclean): Don't delete *.d under NS.
824
825 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
826
29428bb8
KH
8272008-08-06 Kenichi Handa <handa@m17n.org>
828
fe0a6f3b 829 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
29428bb8 830
5c17fc1d
AS
8312008-08-06 Andreas Schwab <schwab@suse.de>
832
833 * config.in: Regenerate.
834
cd7f53ca
CY
8352008-08-05 Chong Yidong <cyd@stupidchicken.com>
836
012fd6f4
CY
837 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
838 forcing a window start.
839
cd7f53ca
CY
840 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
841 (auto_save_1): Update modtime when auto-save-list-file-name is on.
842
3d0a4431
AR
8432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
844
95889848 845 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3d0a4431
AR
846 argument.
847
d765e3a3
JB
8482008-08-05 Juanma Barranquero <lekktu@gmail.com>
849
850 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
851 <scroll-down-aggressively, before-change-functions>:
852 <after-change-functions>: Reflow docstrings.
853
4e622592 8542008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8df8bcc9 855 Ken Raeburn <raeburn@gnu.org>
4e622592
AR
856
857 Dock menu customization, based on a patch by Ken Raeburn, plus some
858 other fixes.
859 * nsmenu.m (dockMenu): New variable.
860 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
861
862 * nsterm.h (dockMenu): Declare.
863
864 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
865 (ns_term_init): Initialize dockMenu.
866 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
867 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
868 left.
869
870 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
871
108a6883
CY
8722008-08-04 Chong Yidong <cyd@stupidchicken.com>
873
874 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
875
876 * config.in: Regenerate.
877
ae10f60c
SZ
8782008-08-04 Seiji Zenitani <zenitani@mac.com>
879
d765e3a3 880 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
ae10f60c 881
b537b75b
CY
8822008-08-04 Chong Yidong <cyd@stupidchicken.com>
883
884 * nsterm.h (find_and_call_menu_selection): Fix prototype.
885
14145fa3
AR
8862008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
887
888 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
889
890 * keyboard.h: Comment an #endif.
891
07b87a10
AR
892 * lisp.h (have_menus_p): Adjust comment.
893
894 * menu.c (find_and_return_menu_selection): Fix comparison with
895 client_data.
896
897 * nsmenu.m (popup_activated_flag): New variable.
898 (popup_activated): New function.
899 (menu-or-popup-active-p): New exported lisp definition.
900 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
901 when popup done.
902 (ns_popup_dialog): Set popup_activated_flag.
903
4e622592 904 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14145fa3
AR
905 version for GNUstep (handled by conditional typedef in nsterm.m).
906 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
907 in rgb.txt).
908
909 * process.c (init_process): Use DARWIN_OS, not DARWIN.
910
911 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
912
07b87a10
AR
913 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
914
915 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
916 shortcircuit if popup_activated like GTK and X toolkit.
917
14145fa3
AR
918 * m/inter386.h: Change DARWIN to DARWIN_OS.
919
920 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
921 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
07b87a10
AR
922 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
923 comment on NO_SOCK_SIGIO.
14145fa3 924
6e09bde1
CY
9252008-08-03 Chong Yidong <cyd@stupidchicken.com>
926
14145fa3 927 * nsterm.m (windowDidResize): Remove stopModal call.
6e09bde1 928
a023b559
AS
9292008-08-03 Andreas Schwab <schwab@suse.de>
930
51757187
AS
931 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
932 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
a023b559 933
a2dec0e5
CY
9342008-08-02 Chong Yidong <cyd@stupidchicken.com>
935
936 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
937 Don't use uninitialized pointer variable when using getrlimit.
938
4ff1bf17
JR
9392008-08-02 Jason Rumney <jasonr@gnu.org>
940
4342f814 941 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4ff1bf17 942
934e2a68
EZ
9432008-08-02 Eli Zaretskii <eliz@gnu.org>
944
0078170f
EZ
945 * alloc.c (NSTATICS): Bump to 0x640.
946
934e2a68
EZ
947 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
948
949 * lisp.h: Add prototype for directory_files_internal.
950
951 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
952 New functions.
953 (syms_of_process): Defsubr them. Add initializations for various
954 Q* symbols used in procfs_system_process_attributes.
955 (procfs_list_system_processes, procfs_system_process_attributes)
956 [HAVE_PROCFS]: New functions.
957 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
958 (procfs_get_total_memory): New functions.
959
dee8cd43
JB
9602008-08-01 Juanma Barranquero <lekktu@gmail.com>
961
962 * xfaces.c (Fx_load_color_file): Fix previous change;
963 it is #ifdef WINDOWSNT, not WINDOWS_NT.
964
367ea173
MA
9652008-08-01 Michael Albinus <michael.albinus@gmx.de>
966
967 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
968
04f33e11
AR
9692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
970
971 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
972
73592876
CY
9732008-08-01 Chong Yidong <cyd@stupidchicken.com>
974
dee8cd43 975 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6fcb12fd
CY
976
977 * nsterm.m (EmacsApp -application:openFiles:): GNUStep does not
978 define NSApplicationDelegateReplySuccess.
979 (EmacsView -converstationIdentifier): Use long instead of
980 NSInteger for GNUStep, since it doesn't have NSInteger.
981
61bf63e2
CY
982 * xmenu.c: Revert last change.
983
73592876
CY
984 * keyboard.h: Fix last change.
985
ebadbfa6
AR
9862008-08-01 Juanma Barranquero <lekktu@gmail.com>
987
988 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
989 on Windows.
990
15034960 9912008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
f78c2c97 992
15034960 993 Warning clearing and clean-up in NS port.
dee8cd43
JB
994 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
995 Add prototypes.
15034960
AR
996 * nsgui.h (FACE_DEFAULT): Remove, unused.
997 (XGCValues): Change colors to unsigned long.
998 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
999 nsterm.m.
1000 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
1001 (ns_list_fonts): Remove, unused.
1002 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
1003 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
1004 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
1005 (nsfont_draw): Compare face colors to 0, not nil.
1006 * nsmenu.m (struct widget_value): Drop unneeded declaration.
1007 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
1008 (-addSubmenuWithTitle:): Use NSMenuItem class.
1009 (ns_popup_menu): Use NO, not NULL, for enabled setting.
1010 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
1011 (ns_clip_to_row): Make gc arg a BOOL.
1012 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
1013 ns_clip_to_row() call.
1014 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
87e204a2 1015 used). Cast FRAME_FONT assignments.
15034960
AR
1016 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
1017 (ns_string_to_lispmod): Change arg to const char.
1018 (ns_term_init): Use NSMenuItem class.
1019 (EmacsApp -openFile:): Move to different section of file.
1020 (EmacsApp -application:openFiles:): Don't return a value, call
1021 -replyToOpenOrPrint:.
1022 (EmacsView -keyDown:): Fix up cast.
1023 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
1024 (EmacsView -menuDown:): Cast tag in call to
1025 find_and_call_menu_selection().
1026 (ns_list_fonts): Remove, unused.
1027 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
1028 (ns_fontname_to_xlfd): Make static.
dee8cd43
JB
1029 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
1030 Remove prototypes (now in keyboard.h).
15034960 1031 (next_menubar_widget_id): Remove, unused.
dee8cd43
JB
1032 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
1033 Remove prototypes (now in keyboard.h).
15034960
AR
1034 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
1035
27ec92c9
DN
10362008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
1037
f78c2c97
DN
1038 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
1039 (floatfns.o): Depend on syssignal.h.
1040 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
1041
dee8cd43
JB
1042 * systty.h: Fix previous change that removed BSD_TERMIOS.
1043 Add comments to #ifdefs.
27ec92c9 1044
7ded3383
AR
10452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1046
1047 * w32fns.c (w32-load-color-file): Remove.
1048 (x-open-connection): Use renamed Fx_load_color_file.
1049 * xfaces.c (x-load-color-file): Add.
1050 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
1051 Emacs.clr.
7ded3383
AR
1052 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
1053
13ecc6dc
MA
10542008-07-31 Michael Albinus <michael.albinus@gmx.de>
1055
1056 * dbusbind.c (Fdbus_call_method_asynchronously)
1057 (Fdbus_method_error_internal): New defuns.
1058 (xd_read_message): Handle also reply messages.
1059 (Vdbus_registered_functions_table): Extend docstring.
1060
12063bc5
JB
10612008-07-31 Juanma Barranquero <lekktu@gmail.com>
1062
1063 * keyboard.c (gobble_input): Fix previous change.
1064
7c2fb837
DN
10652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
1066
1067 * bitmaps/README:
1068 * xfns.c:
1069 * termcap.c:
1070 * term.c:
1071 * syswait.h:
1072 * systty.h:
1073 * systime.h:
1074 * syssignal.h:
1075 * sysdep.c:
1076 * process.h:
1077 * process.c:
1078 * print.c:
1079 * ndir.h:
1080 * lread.c:
1081 * keyboard.c:
1082 * getpagesize.h:
1083 * floatfns.c:
1084 * fileio.c:
1085 * emacs.c:
1086 * doc.c:
1087 * dispnew.c:
1088 * dired.c:
1089 * data.c:
1090 * callproc.c:
1091 * buffer.c:
1092 * README:
1093 * Makefile.in:
1094 * s/template.h:
1095 * s/msdos.h:
1096 * m/vax.h: Remove VMS support.
1097 * s/vms.h:
1098 * vlimit.h:
1099 * uaf.h:
1100 * temacs.opt:
1101 * param.h:
1102 * ioctl.h: Remove file.
1103
69ab3201
DN
11042008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
1105
1106 * s/ms-w32.h (MULTI_KBOARD): Remove.
1107 * xterm.c:
1108 * xselect.c:
1109 * xfns.c:
1110 * window.c:
1111 * w32term.c:
1112 * w32fns.c:
1113 * terminal.c:
1114 * termhooks.h:
1115 * term.c:
1116 * sysdep.c:
1117 * keyboard.h:
1118 * keyboard.c:
1119 * frame.h:
1120 * frame.c:
d765e3a3 1121 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
69ab3201
DN
1122 * config.in: Regenerate.
1123
bd187c49
JR
11242008-07-30 Jason Rumney <jasonr@gnu.org>
1125
12063bc5 1126 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
bd187c49 1127
12063bc5
JB
1128 * w32font.c (w32font_encode_char): Leave as unicode if in range.
1129 (w32font_open_internal): Get unicode version of textmetrics.
1130 Don't enable or disable glyph indices here.
1131 (w32font_open): Disable use of glyph indices.
bd187c49 1132
12063bc5 1133 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
bd187c49 1134
e3072df2
CY
11352008-07-30 Chong Yidong <cyd@stupidchicken.com>
1136
39dde873 1137 * minibuf.c (Vread_buffer_function): Doc fix.
e3072df2 1138
bc850333
CY
11392008-07-30 John Paul Wallington <jpw@pobox.com>
1140
1141 * minibuf.c (read_buffer_completion_ignore_case): New var.
1142 (Fread_buffer): Use it.
1143
9d9a7716
DN
11442008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1145
1146 * systty.h (sensemode): Remove empty #if. Remove reference to
1147 BSD_TERMIOS, unused.
1148
1149 * sysdep.c: Remove reference to DGUX.
1150 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
1151
1152 * config.in: Regenerate.
1153
0c34f98e
JR
11542008-07-30 Jason Rumney <jasonr@gnu.org>
1155
12063bc5 1156 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
0c34f98e 1157
c320e90a
JR
11582008-07-29 Jason Rumney <jasonr@gnu.org>
1159
12063bc5
JB
1160 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
1161 is populated.
1162 (uniscribe_encode_char): Always use uniscribe.
1163 Avoid using context if cache is populated.
c320e90a 1164
3f7ead30
JD
11652008-07-29 Jan Djärv <jan.h.d@swipnet.se>
1166
1167 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
1168 open menu.
1169
1170 * gtkutil.c (menu_nav_ended): Remove.
1171 (create_menus): Remove signal connect for menu_nav_ended.
1172
639eebe2
CY
11732008-07-28 Chong Yidong <cyd@stupidchicken.com>
1174
1175 * xdisp.c (redisplay_window): Check return value of
1176 compute_window_start_on_continuation_line before forcing a window
1177 start.
1178
d1f535d2
JR
11792008-07-28 Jason Rumney <jasonr@gnu.org>
1180
0e134ea0 1181 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9cac6313 1182
0e134ea0
JB
1183 * w32term.c (w32_enable_unicode_output, cleartype_active):
1184 Remove obsolete display options.
1185 (x_draw_glyph_string_background): Don't use old cleartype_active
1186 workaround.
1187 (w32_initialize): Remove cleartype_active initialization.
1188 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
d1f535d2 1189
ddaa36e1
AS
11902008-07-28 Andreas Schwab <schwab@suse.de>
1191
1192 * lisp.h (init_weak_hash_tables, syms_of_font)
1193 (xd_read_queued_messages, syms_of_dbusbind): Declare.
1194 (remove_hash_entry): Don't declare.
1195 * eval.c (maybe_call_debugger): Make static and move before use.
1196 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
1197 * xdisp.c: Include "gtkutil.h" if USE_GTK.
1198 * xterm.h (x_set_frame_alpha): Declare.
1199
42ffd097
JD
12002008-07-28 Jan Djärv <jan.h.d@swipnet.se>
1201
1202 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
1203 (create_menus): Connect selection-done to menu_nav_ended.
1204
bd6ce2ba
AR
12052008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1206
1207 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
1208 Set Vx_resource_name to a fallback. Replace read of 'buffered'
1209 parameter with read of 'alpha' one.
1210 (Qns_frame_parameter): Remove.
1211 * nsselection.m (selection-coding-system)
1212 (next-selection-coding-system, Vselection_coding_system)
1213 (Vnext_selection_coding_system): Drop.
1214
583ff3c3
AR
12152008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1216
1217 * nsfns.m (do-applescript, do_applescript): Rename to
1218 ns-do-applescript, ns_do_applescript, and move within file.
1219
9e2a2647
DN
12202008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1221
1222 Remove support for Mac Carbon.
1223 * mactoolbox.c:
1224 * macterm.h:
1225 * macterm.c:
1226 * macselect.c:
1227 * macmenu.c:
1228 * macgui.h:
1229 * macfns.c:
1230 * mac.c: Remove file.
1231 * s/darwin.h:
1232 * m/intel386.h:
1233 * xfaces.c:
1234 * xdisp.c:
1235 * window.c:
1236 * tparam.c:
1237 * termhooks.h:
1238 * termcap.c:
1239 * term.c:
1240 * syssignal.h:
1241 * sysselect.h:
1242 * sysdep.c:
1243 * process.c:
1244 * lread.c:
1245 * lisp.h:
1246 * keyboard.c:
1247 * image.c:
1248 * fringe.c:
1249 * frame.h:
1250 * frame.c:
1251 * fontset.c:
1252 * font.h:
1253 * font.c:
1254 * fns.c:
1255 * fileio.c:
1256 * emacs.c:
1257 * dispnew.c:
1258 * dispextern.h:
1259 * config.in:
1260 * atimer.c:
1261 * Makefile.in: Remove code for Carbon
1262
7ad8fe5e 12632008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4874e088 1264
7ad8fe5e 1265 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
69eff41f 1266
7ad8fe5e 12672008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
69eff41f 1268
7ad8fe5e
MB
1269 * macterm.h (kCGBitmapByteOrder32Host): New define for
1270 non-universal SDKs.
69eff41f 1271
7ad8fe5e
MB
1272 * image.c (mac_create_cg_image_from_image, image_load_image_io)
1273 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 1274
7ad8fe5e
MB
1275 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
1276 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 1277
7ad8fe5e 12782008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
09721b31 1279
0e134ea0 1280 * w32inevt.c: Include dispextern.h.
09721b31 1281
51dc79f8
AS
12822008-07-26 Andreas Schwab <schwab@suse.de>
1283
1284 * print.c (print_object): Fix off-by-one in last change.
1285
dea101f6
JB
12862008-07-25 Juanma Barranquero <lekktu@gmail.com>
1287
1288 * term.c (syms_of_term): Don't initialize default_orig_pair,
1289 default_set_foreground and default_set_background on Windows.
1290
11856d4d
JR
12912008-07-25 Jason Rumney <jasonr@gnu.org>
1292
0e134ea0
JB
1293 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
1294 ScriptItemize. Clean up return value checking. Remove unused
1295 variables.
1296 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
1297 shaping engine.
11856d4d 1298
0e134ea0
JB
1299 * w32font.c (w32font_has_char): Handle the case where we can't
1300 determine the script for a character.
11856d4d 1301
7bfc0e9e
CY
13022008-07-25 Chong Yidong <cyd@stupidchicken.com>
1303
acdadb15
CY
1304 * term.c (syms_of_term): Initialize default_orig_pair,
1305 default_set_foreground, and default_set_background.
1306
5efc6200
CY
1307 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
1308 clash (bug#86).
1309 (getloadavg): Callers changed.
1310
7bfc0e9e 1311 * image.c (svg_load_image): Fix last change.
c01c4e35
CY
1312 (svg_load_image): Use rsvg_handle_get_dimensions to check that
1313 image size is valid. Use g_object_unref instead of deprecated
1314 rsvg_handle_free to free rsvg handle.
9d7112ed 1315 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7bfc0e9e 1316
f31cf550
JR
13172008-07-25 Jason Rumney <jasonr@gnu.org>
1318
0e134ea0
JB
1319 * w32font.c (w32font_encode_char): Encode characters outside BMP as
1320 surrogates before looking up glyph index.
1321 (w32font_text_extents): Encode as surrogates if falling back to
1322 functions that need UTF-16 wide chars.
f31cf550 1323
0e134ea0
JB
1324 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
1325 BMP as surrogates before looking up glyph index.
f31cf550 1326
b293d659
CY
13272008-07-25 Chong Yidong <cyd@stupidchicken.com>
1328
1329 * image.c (svg_load_image): Check for failure in return value of
1330 rsvg_handle_get_pixbuf. Free rsvg handle when done.
1331
1ada3dab
JR
13322008-07-25 Jason Rumney <jasonr@gnu.org>
1333
0e134ea0 1334 * w32font.c (Fx_select_font): Reverse sense of second arg.
1ada3dab 1335
dbc812e0
SM
13362008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
1337
6449674e
SM
1338 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
1339 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
1340
dbc812e0
SM
1341 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
1342 (PURESIZE): Use it.
1343
67725bd8
DN
13442008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1345
340074e9
DN
1346 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
1347 * m/alpha.h (TEXT_END):
1348 * m/ibmrs6000.h (TEXT_END):
1349 * m/macppc.h (TEXT_END):
1350 * s/darwin.h (TEXT_END):
1351 * s/msdos.h (TEXT_END): Remove, unused.
1352 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
1353 * s/cygwin.h: Remove comment.
1354
a11af7f8
DN
1355 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
1356 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
1357 * m/intel386.h (DOT_GLOBAL_START):
1358 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
1359 (USG): Remove, file not used on USG platforms.
1360
67725bd8
DN
1361 * Makefile.in (HAVE_X11): Remove empty #else.
1362
6420e80c
AS
13632008-07-24 Andreas Schwab <schwab@suse.de>
1364
1365 * fileio.c (Finsert_file_contents): Properly adjust undo list
1366 after format conversion.
1367
d1c38b57
JD
13682008-07-24 Jan Djärv <jan.h.d@swipnet.se>
1369
1370 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
1371 (menu_nav_ended): Remove.
1372 (create_menus): Remove signal connect for menu_nav_ended.
1373 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
1374 create_menus.
1375 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
1376
597634cb
JR
13772008-07-23 Jason Rumney <jasonr@gnu.org>
1378
dbc812e0
SM
1379 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
1380 with opened font.
1381 (w32font_open): Set font type to gdi.
4b135503 1382
dbc812e0 1383 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
597634cb 1384
7c799cf5
DN
13852008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
1386
7a14f2a0
DN
1387 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
1388 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
1389 defines it.
1390 * unexec.c (ADDR_CORRECT): Define unconditionally.
1391
1392 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
1393
f914a6bf
DN
1394 * unexec.c: Remove code depending on !COFF and USG, the file is
1395 not used for such systems.
1396
268b24ee
DN
1397 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
1398 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
1399 (LD_SWITCH_SYSTEM_1): Remove, update users.
1400
911109b1
DN
1401 * s/darwin.h (DATA_END):
1402 * m/intel386.h (DATA_END):
1403 * m/ibmrs6000.h (DATA_END):
1404 * m/alpha.h (DATA_END): Remove, unused.
911109b1 1405
77ccee09
DN
1406 * config.in: Regenerate.
1407 * s/ms-w32.h (subprocesses): Define unconditionally.
1408 * s/template.h (subprocesses): Update comment.
1409 * s/vms.h (subprocesses):
1410 * s/usg5-4.h (subprocesses):
1411 * s/hpux10-20.h (subprocesses):
1412 * s/gnu-linux.h (subprocesses):
1413 * s/cygwin.h (subprocesses):
1414 * s/bsd-common.h (subprocesses):
1415 * s/aix4-2.h (subprocesses):
1416 * s/darwin.h (subprocesses): Do not define, defined by default now.
1417
1418 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
1419 Remove all references.
1420 (temacs): Add GNUStep specific ld flags.
1421
7c799cf5
DN
1422 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
1423 similarly to what X does.
1424
712b2de1
AR
14252008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1426
1427 * nsfns.m (x-list-fonts): Remove.
1428 (syms_of_nsfns): Drop the x-list-fonts declaration.
1429 * nsterm.m: Get rid of remaining "//" comments.
1430
0d4e1b5f
CY
14312008-07-22 Chong Yidong <cyd@stupidchicken.com>
1432
1433 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
1434
1435 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
1436 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
1437 (Fns_own_selection_internal, Fx_disown_selection_internal)
1438 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
1439
1440 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
1441 ... */' style of docstrings. Doc fixes.
1442
952913d4
DN
14432008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1444
0ecc3474 1445 * terminfo.c (UP, BC, PC): Undo previous change.
0d4e1b5f 1446
952913d4
DN
1447 * nsfns.m: Rename ns prefixed functions/variables to the
1448 corresponding x versions. Update references.
1449
02d8b017
SM
14502008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
1451
1452 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
1453
11b8fe14
DN
14542008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
1455
02d8b017
SM
1456 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
1457 Remove forwarding functions.
cc98b6a0
DN
1458 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
1459 non-static.
1460 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
1461 non-static.
1462 (ns_frame_parm_handlers): Use the new names.
1463 (syms_of_nsfns): Move to the end of file.
1464
1baa6236
DN
1465 * nsterm.m (syms_of_nsterm): Move to the end of file.
1466
11b8fe14
DN
1467 * dispnew.c (init_display): Remove code for X10.
1468
8dcaeba2
JR
14692008-07-22 Jason Rumney <jasonr@gnu.org>
1470
02d8b017
SM
1471 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
1472 bare drive.
8dcaeba2 1473
365bac35
AR
14742008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1475
1476 * nsterm.m (syms_of_nsterm): Remove debugging println.
1477
6a0f0f86
DR
14782008-07-22 David Reitter <david.reitter@gmail.com>
1479
a3c83618 1480 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6a0f0f86
DR
1481 Carbon implementation of the same functionality: execute arbitrary
1482 AppleScript code.
1483
51d5ef9f
AR
14842008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1485
a3c83618 1486 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
51d5ef9f
AR
1487 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
1488 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1489 (Fx_display_mm_height, Fx_display_mm_width)
1490 (Fx_display_backing_store, Fx_display_visual_class)
1491 (Fx_display_save_under, Fx_open_connection)
1492 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
1493 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
1494 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1495 (Fx_display_pixel_width, Fx_display_pixel_height)
1496 (Fx_display_usable_bounds, Fx_display_planes)
1497 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
1498 ... */' style of docstrings.
1499
6efac844
DN
15002008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
1501
b8ff87cc
DN
1502 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
1503 on this platform.
1504 (mips):
1505 * m/iris4d.h (mips): Do not define.
1506 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
1507
92d1a7a3
DN
1508 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
1509
de08d1be
CY
1510 * image.c:
1511 * nsfns.m:
1512 * nsselect.m:
1513 * nsterm.h:
9e50ff0c
DN
1514 * nsterm.m: Rename ns prefixed functions/variables to the
1515 corresponding x versions. Update references.
1516
ff486501
DN
1517 * m/ibms390x.h (NO_REMAP): Do not undefine.
1518
6efac844
DN
1519 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
1520
ea9de876
CY
15212008-07-21 Chong Yidong <cyd@stupidchicken.com>
1522
1523 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
1524 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
1525 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
1526 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
1527 (Fns_display_mm_height, Fns_display_mm_width)
1528 (Fns_display_backing_store, Fns_display_visual_class)
1529 (Fns_display_save_under, Fns_open_connection)
1530 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
1531 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
1532 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
1533 (Fns_display_pixel_width, Fns_display_pixel_height)
1534 (Fns_display_usable_bounds, Fx_display_planes)
1535 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
1536
b42f4115 15372008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3965adab
CY
1538
1539 * print.c (print_object): Check print_depth before searching for
1540 circularities.
1541
c0894fb9
MA
15422008-07-21 Michael Albinus <michael.albinus@gmx.de>
1543
1544 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
1545 only sprintf.
1546
d90bfd1c
KH
15472008-07-21 Kenichi Handa <handa@m17n.org>
1548
1549 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
1550
8e2911c2
AS
15512008-07-20 Andreas Schwab <schwab@suse.de>
1552
1553 * syntax.c (find_start_pos, find_start_value)
1554 (find_start_value_byte, find_start_begv, find_defun_start)
dbc812e0 1555 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8e2911c2 1556
98a01702
DN
15572008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
1558
1559 * s/sol2-3.h: Insert contents of s/sol2.h.
1560 (LD_SWITCH_SYSTEM): Remove redundant definition.
1561 * s/sol2.h: Remove, unused.
1562
704a3a2d
AR
15632008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1564
dbc812e0 1565 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
704a3a2d
AR
1566
15672008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
e5e2baab
AR
1568
1569 * Makefile.in (ns_appdir): Fix typo in find command.
1570
89f1e540
DN
15712008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
1572
c788afce
DN
1573 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
1574
89f1e540
DN
1575 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
1576 added not supported anymore.
1577
e5e2baab 1578 * s/usg5-4-2.h (LIBS_SYSTEM):
89f1e540
DN
1579 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
1580
1581 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
1582 * s/lynxos.h (GETPGRP_NO_ARG):
1583 * s/hpux10-20.h (NO_SIOCTL_H):
1584 * s/gnu.h (GETPGRP_NO_ARG):
1585 * s/gnu-linux.h (NO_SIOCTL_H):
1586 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
1587 * s/cygwin.h (GETPGRP_NO_ARG):
1588 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
1589 (C_DEBUG_SWITCH): Remove duplicate definition.
1590
1591 * m/ibms390.h: Remove boilerplate comments.
1592
1593 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
1594
1595 * process.c (HAVE_SERIAL): Consolidate ifdefs.
1596 (wait_reading_process_output): Remove code for SunOS, platform not
1597 supported anymore. Use SOLARIS2 instead of sun.
1598
ed96cde8
AR
15992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1600
1601 * font.c (font_open_by_name): Under NS, default lface height to zero.
1602 (font_open_for_lface): Under NS, set size based on frame fontsize.
1603 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
1604 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
1605
16062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1607
1608 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
1609 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
1610 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
1611 YES/NO.
1612 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
1613 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
1614 * Makefile.in (clean): Clear out build destination dir.
1615
5a2d7ab6
AR
16162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1617
1618 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
1619 xterm, xselect.
1620 * lisp.h: Remove declaration of hash_remove.
1621 * nsgui.h: Remove redefinitions of hash_remove.
1622 * fns.c (hash_remove): Rename to hash_remove_from_table.
1623
8df8bcc9 16242008-07-19 Seiji Zenitani <zenitani@mac.com>
c0230162
AR
1625
1626 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8df8bcc9 1627 strdup() the family UTF8String before modifying it.
c0230162 1628
45d325c4
AR
16292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1630
45d325c4
AR
1631 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
1632 NS_FACE_BACKGROUND with 0 instead of nil.
1633 * nsfont.m (nsfont_draw): Same.
1634
8df8bcc9
GM
16352008-07-19 Chong Yidong <cyd@stupidchicken.com>
1636
1637 * nsfns.m (ns_set_background_color): Fix crash.
1638
b83f1cd0
CY
16392008-07-18 Chong Yidong <cyd@stupidchicken.com>
1640
1641 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
1642
add4eecc
DN
16432008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
1644
1645 * puresize.h (BASE_PURESIZE): Increase to 1240000.
1646
69955d31
YM
16472008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1648
1649 * gtkutil.c: Include <config.h> instead of "config.h".
1650
1651 * lisp.h (Foverlay_buffer): Add EXFUN.
1652
1653 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
1654 child process to complete child_setup. Undo 2005-09-21 change.
1655
1656 * s/darwin.h: Mention setsid after vfork.
1657
08b3caa9 16582008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2d64e9bb
YM
1659
1660 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
1661 Depend on macgui.h.
1662
1663 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
1664 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
1665
1666 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
1667 and f19.
1668 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
1669
1670 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
1671 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
1672 Remove enumerators.
1673
1674 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
1675 Check if FACE_FROM_ID returns NULL.
1676
8d59c5ed
JR
16772008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
1678
ba60bd44
JB
1679 * w32inevt.c (change_frame_size): Remove extern declaration.
1680 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
1681 change_frame_size.
8d59c5ed 1682
ba60bd44 16832008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
db94bf9c
AR
1684
1685 * getloadavg.c: Revert last change (2008-07-15).
1686
ba60bd44 16872008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
06b62770
AR
1688
1689 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
1690 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
1691 from configure.
1692
2749d28e
DN
16932008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
1694
35ad0545
DN
1695 * s/sol2.h:
1696 * s/sol2-4.h: Reorganize conditionals.
1697
2749d28e
DN
1698 * ecrt0.c: Remove code depending on m68000, not used anymore.
1699
1700 * fns.c (hash_remove): Make static.
1701 * lisp.h (hash_remove): Don't prototype.
1702
1703 * m/ibmrs6000.h:
1704 * m/ibms390x.h:
1705 * m/macppc.h: Remove boilerplate comments.
1706
1707 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
1708 Solaris, which does not need them.
1709
1710 * m/vax.h: Remove comments about unsupported systems.
1711
1712 * s/darwin.h: Reorganize ifdefs.
1713
32cc3925
AS
17142008-07-17 Andreas Schwab <schwab@suse.de>
1715
1716 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
1717
facfbbbd
SM
17182008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
1719
1720 Use SDATA. Follow coding convention of placing operators at
1721 beginning of next line rather than end of previous line, and placing
1722 spaces around infix operators.
1723
1724 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
1725 in case it was defined already.
1726 USE @GNUSTEP_MAKEFILES@ rather than envvars.
1727 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
1728 ns_default.
1729 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
1730 Lisp_Objects.
1731 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
1732 (ns_defined_color, ns_color_to_lisp): Declare.
1733 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
1734 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
1735 it's accepted even with USE_LISP_UNION_TYPE.
1736 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
1737 (update_frame_tool_bar): Remove apparently obsolete tests for
1738 non-integerness of f->tool_bar_lines.
1739 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
1740 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
1741 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
1742 (nsfont_open): Don't confuse NULL for Qnil.
1743 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
1744 * menu.h (find_and_call_menu_selection):
1745 * menu.c (find_and_call_menu_selection): Use just int for vector size.
1746 (find_and_return_menu_selection): Always return something.
1747 * frame.h: Include dispextern.h for Display_Info.
1748 (display_x_get_resource): Declare.
1749
ba60bd44 17502008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
122e9f8f
AR
1751
1752 * syntax.c: Remove stdio.h include accidentally introduced in
1753 Emacs.app commit.
1754 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
1755 NS_IMPL_COCOA.
1756 * keyboard.c (handle_async_input, input_available_signal): Remove
1757 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
1758
0bcfd7d7
SM
17592008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1760
6882361b
SM
1761 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
1762 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
1763 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
1764 Use SDATA.
1765
0bcfd7d7
SM
1766 * keymap.c: Remove all NS-specific code.
1767 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
1768 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
1769 where_is_preferred_modifier, return a different value depending on how
1770 preferred is the binding.
1771 (where_is_internal): Adjust accordingly.
1772 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
1773 Adjust to new preferred_sequence_p.
1774 (syms_of_keymap): Declare `where-is-preferred-modifier'.
1775 * keyboard.c (parse_solitary_modifier): Not static any more.
1776 * keyboard.h (parse_solitary_modifier): Declare.
1777
720f3147
AS
17782008-07-16 Andreas Schwab <schwab@suse.de>
1779
1780 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
1781 of easymenu.
1782
01e19fea
CY
17832008-07-16 Chong Yidong <cyd@stupidchicken.com>
1784
1785 * xdisp.c (move_it_in_display_line): Account for word wrap, so
1786 that we don't move off the line.
1787
4c89a3e0
SM
17882008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1789
1790 * keyboard.c (Qsuper): Remove.
1791 (parse_menu_item): Don't call where_is_internal specially for NS.
1792
586b975c
DN
17932008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1794
3ec8ef33
DN
1795 * s/gnu-linux.h: Remove boilerplate comments.
1796
d4d080b6
DN
1797 * m/alpha.h (__ELF__): Consolidate conditions.
1798
7ab56cc4
DN
1799 * m/m68k.h (linux): Use GNU_LINUX instead.
1800 Remove boilerplate comments.
1801
586b975c 1802 * m/intel386.h: Undo reactoring from previous change.
7ab56cc4
DN
1803 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
1804 too, remove dead code.
1805 (linux): Use GNU_LINUX instead.
586b975c 1806
5cc9d48a
JR
18072008-07-16 Jason Rumney <jasonr@gnu.org>
1808
4c89a3e0 1809 * w32gui.h: Repeat 26 June changes lost by last change.
5cc9d48a 1810
6b0273cd
DN
18112008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1812
132d0475
DN
1813 * systty.h: Remove code for Aix on 386, unsupported platform.
1814
1815 * s/ms-w32.h: Remove boilerplate comments.
1816 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
1817
1818 * s/gnu-linux.h (TERM): Remove support.
1819 (HAVE_SYSVIPC): Remove, unused.
1820 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
1821 for this system.
1822
1823 * process.c: Remove support for IRIS, unused.
1824 Remove support for TERM, not relevant anymore.
1825
1826 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
1827 used with the definition.
1828
1829 * s/aix4-2.h (static): Do not undef.
1830
1831 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
1832 only used on Aix.
1833 (HAVE_SYSVIPC): Remove, unused.
1834
1835 * m/hp800.h (CANNOT_DUMP): Do not undef.
1836
1837 * m/alpha.h: Fix comment.
1838
8111c2d8
DN
1839 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
1840 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
1841 used by this configuration.
1842 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
1843 * unexec.c: Remove code depending on HPUX and
1844 USG_SHARED_LIBRARIES, not used with this file. Remove code
1845 depending on IRIS, unused. Remove if 0-ed code.
1846
e9a57a88
DN
1847 * s/template.h: Remove comments about static.
1848
4c89a3e0
SM
1849 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
1850 Remove if 0-ed code.
c7607b94
DN
1851 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
1852 were the same as the default.
1853 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
1854 Remove boilerplate comments.
1855 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
1856 (HAVE_SYSVIPC): Remove, unused.
1857 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
1858
ff841b30
DN
1859 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1860 Remove boilerplate comments.
1861 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1862 Remove boilerplate comments.
1863 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1864 Remove boilerplate comments.
1865 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
1866
586b975c
DN
1867 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
1868 USG systems which do not use DATA_SEG_BITS.
1869 Refactor code. Remove boilerplate comments.
1870
dc89925b 1871 * m/ibms390.h:
dc89925b
DN
1872 * m/m68k.h:
1873 * s/bsd-common.h:
1874 * s/cygwin.h:
1875 * s/darwin.h:
1876 * s/freebsd.h:
1877 * s/gnu.h:
1878 * s/msdos.h: Remove boilerplate comments.
1879
96b72211
DN
1880 * m/iris4d.h: Remove boilerplate comments and code for systems that
1881 do not use this file.
1882 (IRIS_4D): Remove, unused.
1883
c3b5f109
DN
1884 * m/mips.h: Remove boilerplate comments and code for systems that
1885 do not use this file.
96b72211 1886 (SIGN_EXTEND_CHAR):
c3b5f109
DN
1887 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
1888 * unexmips.c: Remove file, unused.
1889
6b0273cd
DN
1890 * editfns.c (Fuser_full_name): Replace the only use of
1891 USER_FULL_NAME with its value.
1892 * config.in: Regenerate.
1893
ba60bd44 18942008-07-16 David Reitter <david.reitter@gmail.com>
6fbcfb6f 1895
ba60bd44
JB
1896 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
1897 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6fbcfb6f 1898
44ac2d3e
GM
18992008-07-16 Glenn Morris <rgm@gnu.org>
1900
1901 * emacs.c (system-type): Doc fix.
1902
0a170079
SM
19032008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
1904
1905 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
1906 If the cache doesn't work, let's fix it, rather than work around it.
1907
ba60bd44 19082008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
a68fda4a
AR
1909
1910 * Makefile.in: Correct additions for nsfont.o in last commit.
1911 * nsfont.m: New file (forgot last commit).
1912
8df8bcc9
GM
19132008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1914
1915 * callproc.c (set_initial_environment): Initialize
1916 Vprocess_environment under CANNOT_DUMP (fixes crash when
1917 batch-compiling for bootstrap).
1918
19192008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1920 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1921
1922 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
1923 fix crash due to different init order.
1924
ba60bd44 19252008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
edfda783
AR
1926
1927 Changes and additions for NeXTstep windowing system (Cocoa and
1928 GNUstep) support.
1929
ba60bd44 1930 * Makefile.in:
edfda783
AR
1931 * config.in: Support defines and build commands for NS port.
1932 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
1933 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
edfda783
AR
1934 * dispextern.h: Include nsgui.h and add needed typedefs under NS
1935 windowing.
1936 (struct face): Add synth_ital field.
1937 * dispnew.c: Include nsterm.h when compiling under NS windowing.
1938 (init_display): Initialize Vinitial_window_system to "ns" when so
1939 compiled.
1940 * emacs.c: Include GSConfig.h when compiling under GNUstep.
1941 (display_arg): Use under NS.
1942 (main): Under NS, allocate autorelease pool and handle command line
1943 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
1944 (standard_args): Add NS-specific args.
1945 (shut_down_emacs): Shut down NS terminal if compiled under NS.
1946 * font.c (DEFAULT_ENCODING): New variable.
1947 (font_find_for_lface): Use it.
1948 (syms_of_font): Load syms_of_nsfont under NS.
1949 * font.h: Declare nsfont_driver when compiled under NS.
1950 * fontset.c: When compiling under NS, include nsterm.h.
1951 (fontset_from_font): Autoconstruct fontset under NS.
1952 * frame.c (various): Under NS, include nsterm.h, add Qns window system
1953 symbol, document and use it.
edfda783
AR
1954 (do_switch_frame): When for_deletion under Cocoa, add
1955 Fraise_frame(Qnil).
1956 (x_set_frame_parameters): Ensure font attribute changes are picked up.
1957 (x_get_arg): Allow "yes" and "no" as boolean values.
1958 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
1959 Qright under Cocoa.
1960 (focus-follows-mouse): Default to 0 under NS.
1961 * frame.h (enum output_method): Add output_ns.
1962 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
1963 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
1964 (FRAME_WINDOW_P): NS-specific definition.
1965 * fringe.c (max_used_fringe_bitmap): Make public.
1966 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
1967 (getloadavg): Use NeXT code under descendant OS's.
1968 * image.c (includes and header section, x_create_bitmap_from_data)
1969 (x_create_bitmap_from_file, free_bitmap_record, image_background)
1970 (image_background_transparent, x_clear_image_1)
1971 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
1972 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
1973 (x_to_xcolors, x_from_xcolors, x_disable_image)
1974 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
1975 other GUIs, including XPM support using code originally written for
1976 Carbon GUI.
0a170079 1977 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
edfda783
AR
1978 using NS API.
1979 (image_ascent): Use font metrics macros instead of direct struct field
1980 access.
1981 * keyboard.c (includes): Add nsterm.h when compiling under NS.
1982 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
1983 Also, handle NS as GTK for menu bar purposes.
1984 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
1985 toolkit where they differ.
1986 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
1987 use cachelist, still needed under NS.
6ddc6cca 1988 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
edfda783
AR
1989 (struct widget_value): Define it here for menu.c.
1990 * keymap.c (includes): Include modifier internals.
1991 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
1992 NS.
1993 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
1994 support for preferring sequences using certain modifiers, specified by
1995 the FIRSTONLY argument.
1996 * lisp.h (hash_remove): Rename to avoid name clash when compiling
1997 under NS GNUstep implementation.
1998 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
1999 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
2000 * menu.c: Include nsterm.h under NS.
2001 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
2002 (free_menubar_widget_tree_value, update_submenu_strings)
2003 (find_and_call_menu_selection): Treat NS as X and NT.
2004 (find_and_return_menu_selection): New function, used for popup menus.
ba60bd44
JB
2005 * nsgui.h:
2006 * nsterm.h:
2007 * nsfns.m:
2008 * nsimage.m:
2009 * nsmenu.m:
2010 * nsselect.m:
edfda783
AR
2011 * nsterm.m: New files.
2012 * process.c (wait_reading_process_output): Under NS, call ns_select()
2013 instead of plain select().
2014 * syntax.c (char_quoted): Under NS, avoid a crash when called near
2015 beginning of buffer.
2016 * sysselect.h (init_process): Rename when compiling under Cocoa to
2017 avoid name conflict.
2018 * termhooks.h (display_info): Add ns_display_info to union.
2019 * terminal.c (Fterminal_live_p): Add ns to terminal types.
2020 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
2021 COCOA environment.
2022 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
2023 unexec() signature. (Note, this will dump, but the resulting file
2024 crashes; unexosx is used instead; keeping around for reference and
2025 possible aid in getting dump working under GNUstep.)
2026 * w32gui.h (button_type, widget_value): Remove definitions (now in
2027 keyboard.h).
2028 * window.c: Include nsterm.h when compiling under NS.
2029 * xdisp.c (includes): Include nsterm.h when compiling under NS.
2030 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
2031 other GUI windowing systems.
2032 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
2033 GTK.
2034 (x_consider_frame_title): Under NS, set icon type and frame
2035 modified-state indicator; use ns_set_name_as_filename() when using
2036 formatted title.
2037 (update_window_cursor): Make public when compiling under NS.
2038 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
2039 (hourglass_atimer, Vhourglass_delay
2040 * xfaces.c (header section, init_frame_faces, clear_font_table)
2041 (defined_color, unload_color, x_face_list_fonts)
6ddc6cca
SM
2042 (prepare_face_for_display): Add NS support parallel to other GUIs.
2043 Emulate GCs like other non-X GUIs.
edfda783
AR
2044 (split_font_name): Don't lowercase font name under NS.
2045 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
2046 under NS.
2047 * s/darwin.h: Add support for compilation under NS.
2048
1391cd54
JR
20492008-07-15 Jason Rumney <jasonr@gnu.org>
2050
6ddc6cca
SM
2051 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
2052 (w32_show_hourglass): Rename from show_hourglass.
2053 (w32_hide_hourglass): Rename from hide_hourglass.
2054 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
2055 (Vhourglass_delay): Declare extern.
2056 (hourglass_started): Remove.
1391cd54 2057
6ddc6cca
SM
2058 * xdisp.c (Vhourglass_delay): Remove static.
2059 (hourglass_started, start_hourglass, cancel_hourglass):
2060 Don't include these versions on WINDOWSNT.
1391cd54 2061
1885ab29
AR
20622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2063
6ddc6cca 2064 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
20d6dc02 2065 variables (formerly in xfns.c).
1885ab29
AR
2066 (show_hourglass, hide_hourglass): New prototypes (same).
2067 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
2068 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
20d6dc02 2069 in xfns.c).
1885ab29
AR
2070 (syms_of_xdisp): Declare/initialize display-hourglass,
2071 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
2072 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
20d6dc02 2073 formerly in xfns.c.
1885ab29
AR
2074 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
2075 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
2076 (start_hourglass, cancel_hourglass): Remove.
2077 (show_hourglass, hide_hourglass): Remove prototypes and static
2078 modifiers.
2079 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
2080 hourglass_atimer, hourglass_shown_p declaration/initialization.
2081 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
2082 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
2083 (start_hourglass, cancel_hourglass): Remove.
2084 (show_hourglass, hide_hourglass): Remove prototypes and static
2085 modifiers.
2086 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
2087 hourglass_atimer, hourglass_shown_p declaration/initialization.
2088 * w32fns.c (display_hourglass_p, Vhourglass_delay)
2089 (DEFAULT_HOURGLASS_DELAY): Remove.
2090 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
2091 hourglass_shown_p declaration/initialization.
2092
3faa984f
JR
20932008-07-14 Jason Rumney <jasonr@gnu.org>
2094
6ddc6cca
SM
2095 * w32fns.c (w32_get_arg): Remove wrapper function.
2096 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
2097 directly.
2098 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3faa984f 2099
2f73901f
KH
21002008-07-14 Kenichi Handa <handa@m17n.org>
2101
2102 * xfont.c (xfont_open): Add workaround for X's bug.
2103
11da284d
KH
21042008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2105
2106 * fontset.c: Include <stdio.h> unconditionally.
2107
944cc4a8
MA
21082008-07-13 Michael Albinus <michael.albinus@gmx.de>
2109
2110 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
2111 for filtering.
2112
bdee2ef3
DN
21132008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2114
2115 * s/vms.h: Use __GNUC__ instead of _GNUC_.
2116
2117 * m/macppc.h:
2118 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
2119
2120 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
944cc4a8
MA
2121 (SPECIAL_EMACS_INT):
2122 * m/ia64.h (SPECIAL_EMACS_INT):
bdee2ef3
DN
2123 * m/amdx86-64.h (SPECIAL_EMACS_INT):
2124 * s/gnu.h (NLIST_STRUCT):
4342f814 2125 * s/aix4-2.h (X11R5_INHIBIT_I18N):
bdee2ef3
DN
2126 * s/gnu-linux.h (LINUX):
2127 * s/msdos.h (HAVE_FACES):
2128 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
2129
944cc4a8 2130 * systty.h:
bdee2ef3
DN
2131 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
2132 anymore.
2133
bba104c1
DN
21342008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2135
2136 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
2137 always defined as int.
2138
2139 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
2140 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
2141 * s/gnu-linux.h (HAVE_WAIT_HEADER):
2142 * s/freebsd.h (HAVE_WAIT_HEADER):
2143 * s/bsd-common.h (HAVE_UNION_WAIT):
2144 * s/aix4-2.h (HAVE_WAIT_HEADER):
2145 * m/mips.h (HAVE_UNION_WAIT):
2146 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
2147 (COFF, static): Do not define, they are undefined later in the file.
2148
2149 * process.c (update_status): Don't use a union.
2150 (status_convert):
2151 (sigchld_handler): Use int instead of WAITTYPE.
2152
e433031a
CY
21532008-07-12 Chong Yidong <cyd@stupidchicken.com>
2154
2155 * indent.c (Fvertical_motion): Restore hscroll before moving to
2156 goal column.
2157
3bfb4d48
DN
21582008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2159
2160 * lisp.h: Remove left over code.
2161
e7c9048f
AS
21622008-07-11 Andreas Schwab <schwab@suse.de>
2163
7e770c85
AS
2164 * lisp.h: Fix logic in last change.
2165
e7c9048f
AS
2166 * menu.h: New file.
2167 * menu.c: Include it.
2168 * xmenu.c: Likewise.
2169 * Makefile.in: Update dependencies.
2170
38aaf336
KH
21712008-07-11 Kenichi Handa <handa@m17n.org>
2172
2173 * fontset.c (fontset_from_font): Cancel the previous change.
2174
6e5cb96f
DN
21752008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2176
2177 * lisp.h:
2178 * w32heap.c:
2179 * emacs.c:
2180 * alloc.c: Replace all references of NO_UNION_TYPE with
2181 USE_LISP_UNION_TYPE.
2182
2183 * m/xtensa.h (NO_UNION_TYPE):
2184 * m/vax.h (NO_UNION_TYPE):
2185 * m/template.h (NO_UNION_TYPE):
2186 * m/sparc.h (NO_UNION_TYPE):
2187 * m/mips.h (NO_UNION_TYPE):
2188 * m/macppc.h (NO_UNION_TYPE):
2189 * m/m68k.h (NO_UNION_TYPE):
2190 * m/iris4d.h (NO_UNION_TYPE):
2191 * m/intel386.h (NO_UNION_TYPE):
2192 * m/ibms390x.h (NO_UNION_TYPE):
2193 * m/ibms390.h (NO_UNION_TYPE):
2194 * m/ibmrs6000.h (NO_UNION_TYPE):
2195 * m/ia64.h (NO_UNION_TYPE):
2196 * m/hp800.h (NO_UNION_TYPE):
2197 * m/arm.h (NO_UNION_TYPE):
2198 * m/amdx86-64.h (NO_UNION_TYPE):
2199 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
2200 defining it the same.
2201
e0f47a68
CY
22022008-07-10 Chong Yidong <cyd@stupidchicken.com>
2203
ba60bd44 2204 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
e0f47a68 2205
c5e7567d
DN
22062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
2207
4342f814
JB
2208 * fileio.c:
2209 * sysdep.c
2210 * systty.h:
2211 * m/ibmrs6000.h:
2212 * m/iris4d.h:
2213 * s/aix4-2.h:
2214 * s/freebsd.h:
2215 * s/gnu-linux.h:
2216 * s/hpux10-20.h:
2217 * s/hpux11.h:
2218 * s/netbsd.h:
2219 * s/sol2-3.h:
2220 * s/sol2-4.h:
2221 * s/sol2.h:
2222 * s/usg5-4.h:
2223 * s/vms.h: Remove references to unused variables.
c5e7567d 2224
bb658864
AS
22252008-07-10 Andreas Schwab <schwab@suse.de>
2226
2227 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
2228 pattern before matching the generic family.
2229
3d3db608
DN
22302008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
2231
a0ce9ab7 2232 * unexec.c:
3460e0b9
DN
2233 * s/vms.h:
2234 * s/usg5-4-2.h:
2235 * s/sol2-5.h:
2236 * s/freebsd.h:
2237 * s/darwin.h: Remove dead code.
2238
ad76189a
DN
2239 * m/template.h:
2240 * m/sparc.h:
2241 * m/mips.h:
2242 * m/m68k.h:
2243 * m/iris4d.h:
2244 * m/intel386.h:
2245 * m/ibms390x.h:
2246 * m/ibms390.h:
2247 * m/ia64.h:
2248 * m/hp800.h:
2249 * m/arm.h:
2250 * m/amdx86-64.h: Remove dead code and references to unused
2251 and compiler defined symbols.
2252
d2b5bbda
DN
2253 * unexmips.c:
2254 * unexelf.c: Remove references to desupported systems.
2255
40dde9d1
DN
2256 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
2257
21133394
DN
2258 * m/powermac.h: Remove boilerplate comments.
2259 (NO_REMAP): Remove unused definition.
2260
3d3db608
DN
2261 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
2262 define them.
2263
c8e0e16d
KH
22642008-07-10 Kenichi Handa <handa@m17n.org>
2265
2266 * xfont.c (xfont_open): Log the reason of failure.
2267
3cba9369
SM
22682008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
2269
2270 * fontset.c (fontset_get_font_group):
2271 * font.c (font_check_otf): Specify argument types.
2272
73353585
KH
22732008-07-09 Kenichi Handa <handa@m17n.org>
2274
0e17387a
KH
2275 * coding.c (detect_coding_utf_8): Set detect_info->found only when
2276 non-ASCII char is found.
2277
73353585
KH
2278 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
2279 (reorder_font_vector): Change the arg preferred_family to font.
2280 Prefer the spec matching with font.
2281 (fontset_get_font_group): New function.
2282 (fontset_find_font): Change the format of an element of a realized
2283 fontset. Use fontset_get_font_group.
2284 (fontset_font): Try the current fontset, the default fontset, the
2285 fallbacks of the current fonset, and the fallbacks of the default
2286 fontset in this order.
2287 (face_for_char): Delete the shortcut to use the current font.
2288 (fontset_from_font): Don't set fonts for Latin in the fontset.
2289
2290 * font.h (font_make_object, font_match_p): Adjust prototypes.
2291
2292 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
2293
2294 * font.c (font_make_object): New arg entity and pixelsize.
2295 (font_check_otf_features, font_check_otf): New functions.
2296 (font_match_p): Check :lang, :script, and :otf properties.
2297
2298 * xfont.c (xfont_open): Adjust it for the change of
2299 font_make_object.
e5d05978 2300 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
2301
2302 * ftfont.c (struct ftfont_info): New member index, delete member
2303 fc_charset_idx. Make the member order compatible with struct
2304 xftfont_info.
2305 (fc_charset_table): Change charset names to registry names.
2306 (ftfont_pattern_entity): Delete the args registry and
2307 fc_charset_idx. Change the value of :font-entity property
2308 to (FONTNAME . INDEX). Always set :registry property to
2309 `iso10646-1'.
2310 (struct ftfont_cache_data): New struct.
2311 (ftfont_lookup_cache): New arg for_face.
2312 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
2313 (ftfont_driver): Set the member otf_capability.
2314 (ftfont_get_charset): Adjust it for the change of
2315 fc_charset_table.
2316 (OTF_TAG_SYM): New macro.
2317 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
2318 for the change of fc_charset_table.
2319 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
2320 ftfont_pattern_entity. Add FC_INDEX to objset.
2321 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
2322 and ftfont_pattern_entity.
2323 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
2324 font_make_object, struct ftfont_info.
2325 (ftfont_has_char): Use ftfont_get_fc_charset.
2326 (ftfont_otf_features, ftfont_otf_capability): New functions.
2327 (ftfont_shape): Use ftfont_get_otf.
e5d05978 2328 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
2329
2330 * xftfont.c (struct xftfont_info): New member ft_size. Make the
2331 member order compatible with struct ftfont_info.
2332 (xftfont_open): Add FC_CHARSET to the pattern. Set
2333 xftfont_info->ft_size. Don't unlock the face. Check BDF
2334 properties if appropriate.
2335 (xftfont_close): Unlock the face.
2336 (xftfont_anchor_point, xftfont_shape): Deleted.
2337 (syms_of_xftfont): Don't set members anchor_point and shape of
2338 xftfont_driver.
2339
2340 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
2341 font_make_object.
2342
2343 * w32font.c (w32font_open): Adjust it for the change of
2344 font_make_object.
2345 (w32font_open_internal): Don't set properties of font_object here.
2346
7f000038
CY
23472008-07-08 Chong Yidong <cyd@stupidchicken.com>
2348
830aab93
CY
2349 * macfns.c (x_create_tip_frame):
2350 * w32fns.c (x_create_tip_frame):
2351 * xfns.c (x_create_tip_frame): Pass parameter argument to
2352 face-set-after-frame-default.
2353
7f000038
CY
2354 * xfaces.c (Finternal_merge_in_global_face): Save merged
2355 attributes for the default face back into the face vector.
2356
85cf8992
AS
23572008-07-08 Andreas Schwab <schwab@suse.de>
2358
2359 * fontset.h: Declare fontset_from_font. Don't declare
2360 new_fontset_from_font and fontset_from_font_name.
2361 * xterm.c: Include "fontset.h".
2362 * Makefile.in (xterm.o): Update dependencies.
2363
4a00783e
GM
23642008-07-08 Glenn Morris <rgm@gnu.org>
2365
2366 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
2367 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
2368
4d2d5f5f
CY
23692008-07-07 Chong Yidong <cyd@stupidchicken.com>
2370
2371 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
2372 (x_set_frame_parameters): Don't bind it.
2373
dfe66c5b
JB
23742008-07-07 Juanma Barranquero <lekktu@gmail.com>
2375
2376 * w32fns.c (map_w32_filename): Declare extern.
2377
ec7e221c
JR
23782008-07-07 Jason Rumney <jasonr@gnu.org>
2379
dfe66c5b 2380 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 2381
fe5d61c4
CY
23822008-07-06 Chong Yidong <cyd@stupidchicken.com>
2383
2384 * xfaces.c (set_font_frame_param): Don't try to set the font
2385 parameter if it is still unspecified in the lface.
2386
9204cb8b
CY
23872008-07-05 Chong Yidong <cyd@stupidchicken.com>
2388
0a143d3a
CY
2389 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
2390 face if it didn't already exist.
2391
9204cb8b
CY
2392 * xdisp.c (try_window_id): Give up if word-wrapping is on.
2393
6c95e70d
AS
23942008-07-05 Andreas Schwab <schwab@suse.de>
2395
dfe66c5b 2396 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 2397
59230395
CY
23982008-07-05 Chong Yidong <cyd@stupidchicken.com>
2399
2400 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
2401 word-wrapping.
2402 (IT_DISPLAYING_WHITESPACE): New macro.
2403 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
2404 when word-wrapping. Simplify word-wrapping logic. Use correct
2405 pixel positions when saving copies of the iterator.
2406 (display_line): Use proper wrap point if the last character on a
2407 line was preceded by whitespace.
2408
d7c664f3
SM
24092008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
2410
2411 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
2412
9ffc8a3a
KH
24132008-07-04 Kenichi Handa <handa@m17n.org>
2414
2415 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
2416
2417 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
2418
946598bf
JR
24192008-07-02 Jason Rumney <jasonr@gnu.org>
2420
d7c664f3
SM
2421 * xfns.c (syms_of_xfns): Only define x-select-font when both
2422 HAVE_FREETYPE and USE_GTK
946598bf 2423
d7c664f3
SM
2424 * xdisp.c (next_element_from_display_vector): Move assignment out
2425 of if statement.
946598bf 2426
6cf29fe8
JR
24272008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
2428
d7c664f3 2429 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 2430
d7c664f3
SM
2431 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
2432 (syms_of_fileio): Initialize and export them.
2433 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 2434
d7c664f3
SM
2435 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
2436 (Fsystem_move_file_to_trash): New function.
2437 (syms_of_w32fns): Export it to lisp.
6cf29fe8 2438
79ca7db1
JR
24392008-07-01 Jason Rumney <jasonr@gnu.org>
2440
d7c664f3
SM
2441 * w32font.c (w32font_text_extents): Don't count overhang as part
2442 of width.
79ca7db1 2443
c2786a3d 24442008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
2445
2446 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
2447 Add `avoid_cursor_p' field.
2448
2449 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
2450 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
2451 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
2452 (append_stretch_glyph): Initialize avoid_cursor_p.
2453 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
2454 (x_produce_glyphs): Use get_it_property.
2455 (handle_line_prefix, push_display_prop): New functions.
2456 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
2457 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
2458 New variables.
c4f4682b
MB
2459 (syms_of_xdisp): Initialize them.
2460
7d7ad10e
KH
24612008-06-30 Kenichi Handa <handa@m17n.org>
2462
2463 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
2464 XftDefaultSubstitute (they are called in XftFontMatch).
2465 (xftfont_open): Fix args to ftfont_font_format.
2466
2467 * ftfont.c (fc_charset_table): New member lang.
2468 (ftfont_resolve_generic_family): New arg pattern.
2469 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
2470 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
2471 (ftfont_open): Fix args to ftfont_font_format.
2472 (ftfont_font_format): New arg filename.
2473
44b754c7
CY
24742008-06-30 Chong Yidong <cyd@stupidchicken.com>
2475
2476 * xfaces.c (Finternal_merge_in_global_face): If default face was
2477 modified, realize it again. Update the font face attribute.
2478
a4521b03
JR
24792008-06-29 Jason Rumney <jasonr@gnu.org>
2480
c2786a3d 2481 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 2482
fe44f009
KH
24832008-06-29 Kenichi Handa <handa@m17n.org>
2484
2485 * fontset.c (Finternal_char_font): Return font-object instead of
2486 font-name.
2487
c2786a3d 2488 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 2489
baed8445
SM
24902008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
2491
2492 * indent.c (Fvertical_motion): Properly handle float column arg.
2493
8b61a891
JR
24942008-06-28 Jason Rumney <jasonr@gnu.org>
2495
baed8445
SM
2496 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
2497 (pfnSetLayeredWindowAttributes): New function pointer.
2498 (w32_initialize): Initialize it when supported.
2499 (x_set_frame_alpha): New function.
8b61a891 2500
baed8445
SM
2501 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
2502 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 2503
baed8445 2504 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 2505
57016d37
JR
25062008-06-27 Jason Rumney <jasonr@gnu.org>
2507
baed8445
SM
2508 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
2509 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
2510 (w32_to_x_charset, x_to_w32_charset)
2511 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2512 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2513 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2514 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2515 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2516 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2517 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
2518 (Qw32_charset_unicode): Remove.
2519 (syms_of_w32fns): Update for above changes.
2520
2521 * w32font.c (w32_to_x_charset, x_to_w32_charset)
2522 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
2523 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
2524 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
2525 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
2526 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
2527 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
2528 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
2529 (syms_of_w32font): Update for above changes.
57016d37 2530
d6bf1bdb
DN
25312008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2532
2533 * s/usg5-4.h: Fix previous change: keep the correct branch of a
2534 removed #if.
9fa1c445 2535 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 2536
43db14bb
JB
25372008-06-26 Juanma Barranquero <lekktu@gmail.com>
2538 Eli Zaretskii <eliz@gnu.org>
2539
2540 * makefile.w32-in (LOCAL_FLAGS):
2541 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
2542
2543 * sysdep.c (_spawnlp, _getpid):
2544 Declare with explicit _cdecl instead of _CRTAPI1.
2545
2546 * editfns.c (Fget_internal_run_time):
2547 Check for WINDOWSNT with #ifdef, not #if.
2548
c35f9821
JR
25492008-06-26 Jason Rumney <jasonr@gnu.org>
2550
43db14bb 2551 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 2552
57016d37 2553 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
2554 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
2555 Use FONT_HANDLE macro.
2556 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 2557
57016d37 2558 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 2559 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 2560
43db14bb
JB
2561 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
2562 (w32font_text_extents): Use precast w32_font.
2563 (w32font_close): Free cached metrics.
2564 (w32font_open_internal): Allocate space for name on stack.
c35f9821 2565
1f8ad719
CY
25662008-06-26 Chong Yidong <cyd@stupidchicken.com>
2567
2568 * xdisp.c (extend_face_to_end_of_line): Fix last change.
2569
97e71655
JR
25702008-06-26 Jason Rumney <jasonr@gnu.org>
2571
43db14bb
JB
2572 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
2573 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 2574
c9fc02c7
JB
25752008-06-26 Juanma Barranquero <lekktu@gmail.com>
2576
2577 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
2578
1b5defe6
JR
25792008-06-26 Jason Rumney <jasonr@gnu.org>
2580
c9fc02c7 2581 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 2582
c9fc02c7 2583 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 2584
c9fc02c7
JB
2585 * w32gui.h: Don't include w32bdf.h.
2586 (XCharStruct, enum w32_char_font_type, W32FontStruct):
2587 Remove obsolete font support.
1b5defe6 2588
c9fc02c7
JB
2589 * w32font.h (struct w32font_info): Remove compat_w32_font.
2590 Add hfont member.
2591 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 2592
ba60bd44 2593 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
c9fc02c7 2594 (w32font_encode_char, w32font_text_extents): Use new hfont member.
ba60bd44 2595 (w32font_open_internal): Remove compat code. Set new hfont member.
c9fc02c7 2596 (Fx_select_font): Use new hfont member.
1b5defe6 2597
57016d37 2598 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 2599 (uniscribe_encode_char): Use new hfont member.
1b5defe6 2600
57016d37 2601 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
2602 (x_draw_composite_glyph_string_foreground): Use new hfont member.
2603 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 2604
1fc66bca
KH
26052008-06-26 Kenichi Handa <handa@m17n.org>
2606
2607 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
2608
f2a77c3a
DN
26092008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
2610
2611 * unexnext.c:
2612 * m/ews4800.h:
2613 * m/hp9000s300.h:
2614 * m/ibm370aix.h:
2615 * m/mips-siemens.h:
2616 * m/ncr386.h:
2617 * m/next.h:
2618 * m/pmax.h:
2619 * m/powerpcle.h:
2620 * m/tandem-s2.h:
2621 * s/386bsd.h:
2622 * s/bsd386.h:
2623 * s/bsd4-1.h:
2624 * s/bsd4-2.h:
2625 * s/bsdos2-1.h:
2626 * s/bsdos2.h:
2627 * s/bsdos3.h:
2628 * s/bsdos4.h:
2629 * s/nextstep.h:
2630 * s/ultrix4-3.h:
2631 * s/usg5-0.h:
2632 * s/usg5-2-2.h:
2633 * s/usg5-2.h:
2634 * s/usg5-4-3.h:
2635 * s/ux4800.h:
2636 * s/uxpds.h:
2637 * s/uxpv.h: Remove support for obsolete systems.
2638 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
4342f814 2639 Remove, insert contents in s/hpux-10.20.h.
f2a77c3a 2640 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4342f814 2641 Remove, insert contents in s/aix4-2.h.
f2a77c3a 2642 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4342f814 2643 * s/bsd4-3.h: Rename to ...
f2a77c3a 2644 * s/bsd-common.h: ... this.
4342f814
JB
2645 * data.c:
2646 * doc.c:
2647 * ecrt0.c:
2648 * emacs.c:
2649 * fileio.c:
2650 * floatfns.c:
2651 * keyboard.c:
2652 * mem-limits.h:
2653 * print.c:
2654 * process.c:
2655 * sysdep.c:
2656 * syssignal.h:
2657 * systty.h:
2658 * syswait.h:
2659 * term.c:
2660 * unexec.c:
2661 * unexelf.c:
2662 * unexhp9k800.c:
2663 * m/hp800.h:
2664 * m/ibmrs6000.h:
2665 * m/mips.h:
2666 * m/vax.h:
2667 * s/darwin.h:
2668 * s/freebsd.h:
2669 * s/gnu.h:
2670 * s/ms-w32.h:
2671 * s/msdos.h:
2672 * s/netbsd.h:
2673 * s/template.h: Remove references to obsolete variables.
f2a77c3a
DN
2674
2675 * Makefile.in: Add dependencies for all unexec files.
2676 (admindir): Remove unused variable.
2677 (UNEXEC_SRC): Remove references.
2678
bd02793a
CY
26792008-06-25 Chong Yidong <cyd@stupidchicken.com>
2680
2681 * xfns.c (x_default_font_parameter): If Xft is available, first
2682 try Monospace-12 for the default font.
2683
ccedd259
JR
26842008-06-25 Jason Rumney <jasonr@gnu.org>
2685
c9fc02c7 2686 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 2687
fbe062b7
SM
26882008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
2689
603a0937
SM
2690 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
2691
fbe062b7
SM
2692 * buffer.c (syms_of_buffer): Remove default-word-wrap.
2693
69785ad0
JB
26942008-06-25 Juanma Barranquero <lekktu@gmail.com>
2695
2696 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
2697 <scroll-conservatively>: Fix typo in docstring.
2698
2699 * xselect.c (Fx_send_client_event): Doc fix.
2700
249e6f76
KH
27012008-06-25 Kenichi Handa <handa@m17n.org>
2702
34e97272
KH
2703 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
2704
2705 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
2706 (font_sort_entites): Delete the arg SPEC. Caller changed.
2707 Fix for the case of ! best_only.
34e97272
KH
2708 (font_delete_unmatched): Check DPI and AVGWIDTH too.
2709
249e6f76
KH
2710 * lisp.h (Fstring_to_unibyte): EXFUN it.
2711
69785ad0 2712 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
2713
2714 * character.c (str_to_unibyte): New function.
2715
2716 * fns.c (Fstring_to_unibyte): New function.
2717 (syms_of_fns): Defsubr it.
2718
65c108e4
KH
27192008-06-24 Kenichi Handa <handa@m17n.org>
2720
2721 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
2722 DPI too.
2723 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
2724
4c3f18fe
AS
27252008-06-24 Andreas Schwab <schwab@suse.de>
2726
69785ad0 2727 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 2728 ../lisp/loaddefs.el.
fd13748d
AS
2729 (bootstrap-clean): Do what distclean does but don't remove
2730 Makefile.
2731 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 2732
faa6190f
CY
27332008-06-24 Chong Yidong <cyd@stupidchicken.com>
2734
2735 * buffer.h (struct buffer): New member word_wrap.
2736
2737 * buffer.c (syms_of_buffer): New variables default-word-wrap and
2738 word-wrap.
2739 (init_buffer_once): Initialize them.
2740
2741 * dispextern.h (struct it): Replace bool truncate_lines_p with a
2742 line_wrap enum possessing three possible values.
2743
2744 * termopts.h: Replace truncate_partial_width_windows with
2745 Vtruncate_partial_width_windows.
2746
2747 * dispnew.c (direct_output_for_insert): Avoid direct output when
2748 inserting a space with word wrap on.
2749
2750 * indent.c (compute_motion): Obey integer values of
2751 truncate-partial-width-windows.
2752
2753 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
2754 replacing truncate_partial_width_windows.
2755 (init_iterator): If Vtruncate_partial_width_windows is an integer,
2756 truncate only if the window width is below that integer.
ba60bd44 2757 (start_display, resize_mini_window, produce_stretch_glyph)
faa6190f
CY
2758 (display_string, move_it_in_display_line_to): Use line_wrap.
2759 (back_to_previous_visible_line_start, reseat_1): Reset
2760 string_from_display_prop_p.
2761 (display_line): Extend default face to end of line when wrapping.
2762
27632008-06-24 Kim F. Storm <storm@cua.dk>
2764
2765 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
2766 to wrap continued lines at word boundaries.
2767
c3bb5465
JR
27682008-06-24 Jason Rumney <jasonr@gnu.org>
2769
69785ad0
JB
2770 * font.c (Ffont_face_attributes): Multiply pixel size before point
2771 conversion to avoid multiplying rounding error.
c3bb5465 2772
0b07ad98
JR
27732008-06-23 Jason Rumney <jasonr@gnu.org>
2774
f245f2c6
JB
2775 * w32term.c (x_draw_glyph_string_background)
2776 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 2777
69785ad0 2778 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 2779
22459668
KH
27802008-06-22 Kenichi Handa <handa@m17n.org>
2781
2782 * font.c (font_find_for_lface): Try the adstyle specified in
2783 the property of LFACE_FONT of LFACE (if any).
2784
d925a426 27852008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 2786 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
2787
2788 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
2789
b4945b95
SM
27902008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
2791
2792 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
2793 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
2794 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
2795 (witness-emacs): Remove.
2796 (lisp, shortlisp): Move loaddefs.el earlier.
2797 (mostlyclean): Forget about witness-emacs.
2798
64124279
GM
27992008-06-22 Glenn Morris <rgm@gnu.org>
2800
2801 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 2802 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 2803
768efd84
SM
28042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2805
2806 * Makefile.in (PRECOMP): Remove.
2807 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
2808 (witness-emacs): Run `compile-first'.
2809 (.el.elc): Use the new compile-onefile target.
2810
808dd567
KH
28112008-06-21 Kenichi Handa <handa@m17n.org>
2812
2813 * xftfont.c (xftfont_open): Handle QCembolden only when
2814 FC_EMBOLDEN is defined.
2815
0de59eae
AS
28162008-06-21 Andreas Schwab <schwab@suse.de>
2817
2818 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 2819 (.el.elc): Likewise.
0de59eae 2820
fb38e9c9
MB
28212008-06-21 Miles Bader <miles@gnu.org>
2822
2823 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
2824 build dir, not the lisp source dir.
2825
fc46d219
SM
28262008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2827
2828 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
2829 (bootstrapclean): Remove.
2830 (.el.elc): New rule.
2831 (PRECOMP): New var.
2832 (../lisp/subdirs.el): Remove.
2833 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
2834 (witness-emacs): New target.
2835 (mostlyclean): Remove witness-emacs as well.
2836 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
2837 Add witness-emacs dependency.
2838
eaf1f6e7
CY
28392008-06-20 Chong Yidong <cyd@stupidchicken.com>
2840
2841 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
2842 defined by the font.
2843
49f6eb95
SM
28442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2845
2846 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
2847 (bootstrap-clean): New target that keeps TAGS around.
2848 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
2849 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
2850
4c100a01
JR
28512008-06-20 Jason Rumney <jasonr@gnu.org>
2852
49f6eb95
SM
2853 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
2854 Remove obsolete font code.
db61a7f8 2855
49f6eb95
SM
2856 * w32font.c (font_matches_spec): Use csb bitfield from font signature
2857 to determine language support.
4c100a01 2858
759d3f32
SM
28592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2860
2861 * sysdep.c (cfsetspeed): New fun extracted from the code.
2862 (cfmakeraw): Move before first use.
2863
25241b4d
SM
28642008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
2865
2866 * sysdep.c (cfmakeraw): Provide fallback implementation.
2867 (serial_configure): Provide fallback implementation of cfsetspeed.
2868
d7afccca
KH
28692008-06-20 Kenichi Handa <handa@m17n.org>
2870
dc2226d0
KH
2871 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
2872 the pattern.
2873
9b9cd864
KH
2874 * fontset.c (fontset_from_font): Copy font_spec before changing
2875 the elements.
2876
d7afccca
KH
2877 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
2878
770e2e6e
SM
28792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2880
2881 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
2882 for explicit `font' parameters.
2883
2884 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
2885
22e64f7c
KH
28862008-06-19 Kenichi Handa <handa@m17n.org>
2887
2888 * frame.c: Include <ctype.h>.
2889 (x_set_font_backend): Allow spacing characters in the X resource
2890 for FontBackend.
2891
27129af9
SM
28922008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
2893
2894 * w32fns.c, xfns.c (Qfont_param): New var.
2895 (syms_of_w32fns): Initialize it.
22e64f7c
KH
2896 (x_default_font_parameter): Record explicit `font' into
2897 `font-parameter'.
27129af9 2898
d26424c5
KH
28992008-06-18 Kenichi Handa <handa@m17n.org>
2900
2901 * font.c (font_parse_xlfd): Fix previous change.
2902 (font_parse_fcname): Don't use :fc-unknown-spec.
2903 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
2904 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
2905 (font_add_log): Prepend the driver name to the resulting fonts.
2906
2907 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
2908 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
2909 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
2910
2911 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
2912 (QCembolden): New variables.
2913 (syms_of_xftfont): DEFSYM them.
2914 (xftfont_open): Call XftFontMatch. Don't trust the result of
2915 XftTextExtents8 if the pixel_size is less than 5.
2916
51cf11be
AS
29172008-06-18 Andreas Schwab <schwab@suse.de>
2918
f245f2c6 2919 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
2920 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
2921
07d9ba9b
JR
29222008-06-18 Jason Rumney <jasonr@gnu.org>
2923
27129af9 2924 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 2925
4342f814 2926 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 2927
0c36bc4e
CY
29282008-06-17 Chong Yidong <cyd@stupidchicken.com>
2929
2930 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
2931 unknown-spec list. For known key symbols, intern using correct
2932 symbol name.
0c36bc4e 2933
70d6ecc6
KH
29342008-06-17 Kenichi Handa <handa@m17n.org>
2935
2936 * xfaces.c (realize_default_face): If the frame is not on window
2937 system, set the fontset of face to nil.
2938
821bc4db
KH
29392008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2940
f245f2c6 2941 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 2942
3554e566
JB
29432008-06-16 Juanma Barranquero <lekktu@gmail.com>
2944
2945 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
2946 (build_font_name_from_vector): Delete externs.
2947
2948 * xfaces.c (struct font_name): Don't declare.
2949
93eed26b
SM
29502008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2951
2952 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
2953
d756bcd0
CY
29542008-06-16 Chong Yidong <cyd@stupidchicken.com>
2955
2956 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
2957
7a18a178
JB
29582008-06-16 Juanma Barranquero <lekktu@gmail.com>
2959
2960 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 2961 (Ffont_face_attributes): Doc fix.
7a18a178 2962
6f568955
AS
29632008-06-16 Andreas Schwab <schwab@suse.de>
2964
2965 * font.c (Ffont_face_attributes): Fix definition.
2966
3ef8c1b4
JR
29672008-06-16 Jason Rumney <jasonr@gnu.org>
2968
93eed26b 2969 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 2970
93eed26b
SM
2971 * font.c (font_style_symbolic_from_value): Remove.
2972 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 2973
93eed26b
SM
2974 * w32font.c (w32_to_fc_weight): New function.
2975 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 2976
5e634ec9
KH
29772008-06-16 Kenichi Handa <handa@m17n.org>
2978
2979 * font.c (font_check_object): Delete it.
2980 (font_clear_cache): Check if a font-object is alive.
2981 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
2982 font-object to nil.
2983 (font_close_object): Don't check FONT_CLOSE_OBJECT.
2984 (font_at): Don't call font_check_object.
2babb359 2985 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 2986
6409a955
KY
29872008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
2988
2989 * puresize.h (BASE_PURESIZE): Increase to 1230000.
2990
ce4eaddb
CY
29912008-06-16 Chong Yidong <cyd@stupidchicken.com>
2992
2993 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
2994
523dbe64
CY
29952008-06-15 Chong Yidong <cyd@stupidchicken.com>
2996
54b2ab27 2997 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
2998 (font_unparse_fcname): Handle data in family and foundry indices
2999 as symbols, not strings.
3000 (font_unparse_gtkname, Ffont_face_attributes): New functions.
3001
54b2ab27 3002 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
3003
3004 * font.h (font_unparse_gtkname): Add prototype.
3005
9f296082
KH
30062008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
3007
54b2ab27 3008 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 3009
3306c6dc
AS
30102008-06-15 Andreas Schwab <schwab@suse.de>
3011
3012 * font.c (font_update_drivers): Fix crash when no drivers match.
3013
a099c27a
SM
30142008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
3015
3016 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
3017 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
3018
a8aa344d
SM
30192008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
3020
3021 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
3022
a879ee6f
SM
30232008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
3024
3025 * process.c (Fserial_process_configure, Fprocess_send_eof):
3026 Use EQ to compare Lisp_Objects.
3027
6fe9826d
JR
30282008-06-13 Jason Rumney <jasonr@gnu.org>
3029
a879ee6f 3030 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 3031
a879ee6f
SM
3032 * w32font.c (logfont_to_fcname): New function.
3033 (Fx_select_font): New font dialog function compatible with
3034 GTK/fontconfig version.
6fe9826d 3035
a879ee6f
SM
3036 * font.c (font_style_symbolic_from_value): New function.
3037 (font_style_symbolic): Use it.
6fe9826d 3038
a879ee6f 3039 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 3040
17ab8f5d
JB
30412008-06-13 Juanma Barranquero <lekktu@gmail.com>
3042
3043 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
3044 <font-width-table>: Fix typos in docstrings.
3045
d888760c
GM
30462008-06-13 Daniel Engeler <engeler@gmail.com>
3047
3048 These changes add serial port access.
3049 * process.c: Add HAVE_SERIAL.
3050 (Fdelete_process, Fprocess_status, Fset_process_buffer)
3051 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
3052 (list_processes_1, select_wrapper, Fstop_process)
3053 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
3054 (status_notify): Modify to handle serial processes.
3055 [HAVE_SERIAL] (Fserial_process_configure)
3056 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
3057 New functions.
3058 * process.h (struct Lisp_Process): Add `type'.
3059 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
3060 New functions.
3061 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
3062 serial ports.
3063 (serial_open, serial_configure) New functions.
3064 * w32.h: Add FILE_SERIAL.
3065 (struct _child_process): Add ovl_read, ovl_write.
3066
f4cc0153
KH
30672008-06-13 Kenichi Handa <handa@m17n.org>
3068
3069 * dispextern.h (enum lface_attribute_index): New member
3070 LFACE_FOUNDRY_INDEX.
3071
3072 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 3073 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 3074 style symbols.
7a18e381 3075 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
3076 order of font-driver to scores.
3077 (font_list_entities): Don't check alternate_familes here.
3078 (font_clear_prop): Handle foundry.
3079 (font_update_lface): Don't parse "foundry-family" form here.
3080 Handle FONT_FOUNDRY_INDEX.
3081 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 3082 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 3083 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 3084 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
3085 (free_font_driver_list): Delete it.
3086 (font_update_drivers): Preserve the order of backends.
3087 (syms_of_font): Setting of sort_shift_bits adjusted for the change
3088 of font_score and font_sort_entites.
3089 (font_update_sort_order): Likewise.
3090
3091 * xfaces.c (LFACE_FOUNDRY): New macro.
3092 (check_lface_attrs): Check foundry.
7a18e381 3093 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
3094 (merge_face_vectors): Check foundry.
3095 (merge_face_ref): Likewise.
3096 (Finternal_set_lisp_face_attribute): Likewise.
3097 (x_update_menu_appearance): Likewise.
3098 (Finternal_get_lisp_face_attribute): Likewise.
3099 (lface_hash): Likewise.
3100 (lface_same_font_attributes_p): Likewise.
3101 (x_supports_face_attributes_p): Likewise.
3102 (tty_supports_face_attributes_p): Likewise.
3103 (Finternal_set_alternative_font_family_alist): Intern strings.
3104 (Finternal_set_alternative_font_registry_alist): Downcase strings.
3105 (realize_default_face): Set LFACE_FOUNDRY (lface).
3106
3107 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
3108 font-driver at first.
3109
3110 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
3111
d434fef5 31122008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
3113
3114 * lread.c (Fload): Use xfree, not free on saved_doc_string.
3115
9c5e177e
JM
31162008-06-12 Jim Meyering <meyering@redhat.com>
3117
d434fef5 3118 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
3119 * unexmacosx.c (unexec_free): Ignore a NULL argument.
3120
2afc21f5
SM
31212008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
3122
3123 * character.h (CHAR_TO_BYTE_SAFE): New macro.
3124 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
3125 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
3126 (WEAK_ALIAS): Simplify.
3127 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
3128 when searching a unibyte buffer.
3129
76c0de62
CY
31302008-06-12 Chong Yidong <cyd@stupidchicken.com>
3131
3132 * xfns.c (Fx_select_font): Rename from x-font-dialog.
3133
0500dcc9
JB
31342008-06-12 Juanma Barranquero <lekktu@gmail.com>
3135
3136 * w32font.c: Include ctype.h.
3137
f42adef6
JR
31382008-06-11 Jason Rumney <jasonr@gnu.org>
3139
2afc21f5
SM
3140 * w32font.c (w32font_encode_char): Detect missing glyphs that are
3141 misreported as space.
3142 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
3143 as aliases for registry iso10646-1.
f42adef6 3144
4b7cdc0e
SM
31452008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
3146
3147 * buffer.c (clone_per_buffer_values): Skip `name'.
3148
cc02ebe1
CY
31492008-06-11 Chong Yidong <cyd@stupidchicken.com>
3150
3151 * font.c (font_parse_fcname): Fix last change; accept decimal
3152 points in font size.
3153
351ccb76
JR
31542008-06-10 Jason Rumney <jasonr@gnu.org>
3155
0500dcc9
JB
3156 * w32uniscribe.c (add_opentype_font_name_to_list):
3157 Skip non unicode fonts.
351ccb76 3158
f473ed6f
CY
31592008-06-10 Chong Yidong <cyd@stupidchicken.com>
3160
3161 * xfns.c (Fx_font_dialog): New function.
3162
5d6333d5 3163 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
3164 xg_file_response_callback.
3165 (pop_down_dialog): Rename from pop_down_file_dialog.
3166 (xg_get_file_name): Callers changed.
3167 (xg_get_font_name): New function.
3168
5d6333d5 3169 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 3170
2a3bd2e1
SM
31712008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
3172
3173 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
3174 x_underline_minimum_display_offset.
3175 (syms_of_xdisp): Declare it here rather than in xterm.c.
3176 * dispextern.h (underline_minimum_offset): Declare it.
3177 * w32term.c (x_draw_glyph_string): Use it.
3178 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
3179 (syms_of_xterm): Don't declare it any more.
3180 (x_draw_glyph_string): Adjust to the new name.
3181
d5dc6163
SM
31822008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
3183
3184 * xterm.c (x_underline_minimum_display_offset): New var.
3185 (x_draw_glyph_string): Use it.
3186 (syms_of_xterm): Declare it.
3187
0abdd197
CY
31882008-06-10 Chong Yidong <cyd@stupidchicken.com>
3189
3190 * font.c (font_parse_fcname): Accept GTK-style font names too.
3191
a1562258
SM
31922008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
3193
928b5acc
SM
3194 * dired.c (file_name_completion): Don't return t if the match is exact
3195 but with different capitalization.
3196 * minibuf.c (Ftry_completion): Simplify.
3197
a1562258
SM
3198 * window.c (Vwindow_point_insertion_type): New var.
3199 (set_window_buffer): Use it.
3200 (syms_of_window): Init and export it to Lisp.
3201
9552dbd1
KH
32022008-06-10 Kenichi Handa <handa@m17n.org>
3203
3204 * font.h (font_intern_prop): Prototype adjusted.
3205
3206 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
3207 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
3208 Adjust for the change of font_intern_prop.
9552dbd1 3209
a1562258
SM
3210 * ftfont.c (ftfont_pattern_entity):
3211 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
3212 (w32_registry):
3213 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
3214 the change of font_intern_prop.
3215
8993ad2e
JB
32162008-06-09 Juanma Barranquero <lekktu@gmail.com>
3217
3218 * w32menu.c (digest_single_submenu): Declare extern.
3219
0c2258fc
JR
32202008-06-09 Jason Rumney <jasonr@gnu.org>
3221
a1562258 3222 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 3223
a1562258
SM
3224 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
3225 (parse_single_submenu): Remove.
3226 (digest_single_submenu): Remove.
3227 (syms_of_w32menu): Don't initialise variables that have moved
3228 to menu.c.
3229 (set_frame_menubar): Sync with version in xmenu.c.
3230 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 3231
8993ad2e
JB
3232 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
3233 Make static again.
0c2258fc 3234
02246cb8
JR
32352008-06-09 Jason Rumney <jasonr@gnu.org>
3236
8993ad2e
JB
3237 Changes to w32 files related to the move of common menu code
3238 to menu.c on 2008-06-08 by Chong Yidong.
3239
3240 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
3241 defs to w32gui.h.
3242 (single_keymap_panes, push_menu_item, push_menu_pane):
3243 Make globally visible.
3244
d434fef5
JB
3245 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
3246 (local_free, malloc_widget_value, free_widget_value)
3247 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
3248 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
3249 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 3250 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 3251 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
3252 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
3253 (init_menu_items, finish_menu_items, discard_menu_items)
3254 (grow_menu_items, push_submenu_start, push_submenu_end)
3255 (push_left_right_boundary, push_menu_pane, push_menu_item)
3256 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 3257 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
3258 (update_submenu_strings): Remove functions.
3259 (xmalloc_widget_value): Remove and declare extern.
3260
3261 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
3262 (OBJ1): Build it.
3263
3264 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
3265 (local_heap, local_alloc, local_free, malloc_widget_value)
3266 (free_widget_value): Define here.
02246cb8 3267
9e1bb909
KH
32682008-06-09 Kenichi Handa <handa@m17n.org>
3269
366664ad
KH
3270 * font.h (Qascii_0): Extern it.
3271
9e1bb909
KH
3272 * font.c (Qascii_0): New variable.
3273 (syms_of_font): DEFSYM it.
3274 (font_open_by_name): If the registry "iso8859-1" fails, try also
3275 "ascii-0".
3276
3277 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
3278
b2ee479e
KH
32792008-06-08 Kenichi Handa <handa@m17n.org>
3280
8f440b79 3281 * .gdbinit (xfont): New command.
b2ee479e 3282
01ef9d36
AS
32832008-06-08 Andreas Schwab <schwab@suse.de>
3284
a4240420
AS
3285 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
3286 * Makefile.in (menu.o): Update dependencies.
3287
0181bf66 3288 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
3289 * emacs.c (main): Always call syms_of_menu.
3290 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
3291
c07cbae6
CY
32922008-06-08 Chong Yidong <cyd@stupidchicken.com>
3293
3294 * Makefile.in: Compile menu.c.
3295
3296 * lisp.h: Declare syms_of_menu.
3297
3298 * emacs.c (main): Call syms_of_menu.
3299
3300 * keyboard.h: Relocate platform-independent menu definitions from
3301 xmenu.c.
3302
3303 * menu.c: New file. Relocate platform-independent menu
904d8c69 3304 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
3305
3306 * xmenu.c: Remove platform-independent menu definitions.
3307 (menu_items menu_items_inuse, menu_items_allocated)
3308 (menu_items_used, menu_items_n_panes)
3309 (menu_items_submenu_depth): Move to keyboard.h.
3310 (init_menu_items, finish_menu_items, unuse_menu_items)
3311 (discard_menu_items, restore_menu_items, save_menu_items)
3312 (grow_menu_items, push_submenu_start, push_submenu_end)
3313 (push_left_right_boundary, push_menu_pane, push_menu_item)
3314 (keymap_panes, single_keymap_panes, single_menu_item)
3315 (list_of_panes, list_of_items, find_and_call_menu_selection)
3316 (xmalloc_widget_value, free_menubar_widget_value_tree)
3317 (parse_single_submenu, digest_single_submenu)
3318 (update_submenu_strings): Move to menu.c.
3319
4958ed94
SM
33202008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
3321
3322 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
3323
408b8ab4
MB
33242008-06-06 Miles Bader <miles@gnu.org>
3325
3326 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
3327 face, not frame default.
3328
87478b52
SM
33292008-06-05 Martin Rudalics <rudalics@gmx.at>
3330
3331 * window.c (pop_up_windows, pop_up_frames)
3332 (display_buffer_reuse_frames, Vpop_up_frame_function)
3333 (Vdisplay_buffer_function, Veven_window_heights)
3334 (Vspecial_display_buffer_names, Vspecial_display_regexps)
3335 (Vspecial_display_function, Vsame_window_buffer_names)
3336 (Vsame_window_regexps, split_height_threshold)
3337 (Vsplit_window_preferred_function): Move those vars to window.el.
3338 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
3339 (Fdisplay_buffer): Move those functions to window.el.
3340 (syms_of_window): Remove corresponding declarations.
3341 (display_buffer): New function.
3342 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
3343 * dispnew.c (Flast_nonminibuf_frame): New function.
3344 * buffer.c (Fpop_to_buffer): Move to window.el.
3345
9e0e0d77
SM
33462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3347
3348 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
3349
4a485df8
KH
33502008-06-05 Kenichi Handa <handa@m17n.org>
3351
3352 * coding.c (detect_coding): Fix previous change.
3353 (detect_coding_system): Likewise.
3354
8ba31f36
SM
33552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3356
c0dc8f64
SM
3357 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
3358
8ba31f36
SM
3359 * keymap.c (Vminibuffer_local_filename_must_match_map):
3360 Rename from Vminibuffer_local_must_match_filename_map.
3361 (syms_of_keymap):
3362 * minibuf.c (Fcompleting_read): Adjust accordingly.
3363 * commands.h: Rename declaration as well.
3364
7740d2c7
KH
33652008-06-05 Kenichi Handa <handa@m17n.org>
3366
e7438ece
KH
3367 * font.c (Ffont_spec): Don't use font_parse_family_registry for
3368 family name.
3369 (Ffont_put): Likewise.
3370
3371 * fontset.c (fontset_find_font): Call font_open_for_lface with the
3372 current font-spec.
3373
7740d2c7
KH
3374 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
3375 is unspecified.
3376
3377 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
3378 are the same as those of default face, realize a new fontset from
3379 default->fontset.
9e0e0d77 3380 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 3381
c876b227
SM
33822008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
3383
3384 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
3385 (move_it_in_display_line): New wrapper.
3386
3387 * window.c (window_scroll_pixel_based_preserve_x)
3388 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
3389 (window_scroll_pixel_based, window_scroll_line_based):
3390 Use them to preserve column positions.
3391 (syms_of_window): Initialize them.
3392
3393 * indent.c (Fvertical_motion): Extend first arg to allow passing an
3394 (HPOS . VPOS) pair.
3395
3396 * dispextern.h (move_it_in_display_line): Declare.
3397
927abf37
JB
33982008-06-05 Juanma Barranquero <lekktu@gmail.com>
3399
3400 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
3401 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
3402 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
3403
9d14503e
JB
34042008-06-04 Juanma Barranquero <lekktu@gmail.com>
3405
3406 * window.c (Fset_window_parameter): Doc fix.
3407 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
3408
e6841c3b
JB
34092008-06-04 Joakim Verona <joakim@verona.se>
3410
3411 * window.h (struct window): Add new member window_parameters.
3412
3413 * window.c (Fwindow_parameters, Fwindow_parameter)
3414 (Fset_window_parameter): New defuns.
3415 (syms_of_window): Defsubr the new defuns.
3416 (make_window): Initialize window_parameters to nil.
3417
4ba50634
JPW
34182008-06-04 John Paul Wallington <jpw@pobox.com>
3419
3420 * eval.c (Fdefmacro): Doc fix.
3421
c0e16b14
KH
34222008-06-04 Kenichi Handa <handa@m17n.org>
3423
3424 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 3425 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
3426 (detect_coding_system): Fix handling of coding->head_ascii.
3427
0615d903
AS
34282008-06-03 Andreas Schwab <schwab@suse.de>
3429
3430 * font.c (font_prop_validate_spacing): Fix last change.
3431
8a1816bb
KH
34322008-06-03 Kenichi Handa <handa@m17n.org>
3433
eea9c5c4
KH
3434 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
3435 (font_parse_fcname): Fix handling of unknown key.
3436
3437 * xfont.c (xfont_list): Try an alias.
3438
8a1816bb
KH
3439 * charset.c (char_charset): Return NULL if the arg charset_list is
3440 specified and C doesn't belong to any of them.
3441
2f593f4c 34422008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
3443
3444 * font.c (font_pixel_size): Don't take cdr of an integer.
3445
c2cd06e6
JM
34462008-06-02 Jim Meyering <meyering@redhat.com>
3447
70fdbb46
JM
3448 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
3449 * alloc.c (xfree): Return right away for a NULL arg.
3450 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
3451 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
3452 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
3453 (create_apple_event_from_drag_ref, cfstring_create_normalized):
3454 Likewise.
70fdbb46
JM
3455 * doprnt.c (doprnt1): Likewise.
3456 * frame.c (frame): Likewise.
3457 * keyboard.c (wipe_kboard): Likewise.
1f204af3 3458 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
3459 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
3460 * term.c (tty_default_color_capabilities, maybe_fatal)
3461 (delete_tty): Likewise.
3462 * w16select.c (string): Likewise.
3463 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
3464 * w32bdf.c (w32_free_bdf_font): Likewise.
3465 * w32fns.c (w32_unload_font): Likewise.
3466 * w32font.c (w32font_close): Likewise.
3467 * window.c (size_window): Likewise.
3468 * xselect.c (receive_incremental_selection): Likewise.
3469 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
3470 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
3471 * w32.c (stat): Likewise.
3472
2f593f4c 3473 Remove useless if-before-free tests.
70fdbb46
JM
3474 * editfns.c (Fset_time_zone_rule): Likewise.
3475 * lread.c (nosuffix): Likewise.
3476 * ralloc.c (get_bloc): Likewise.
3477 * regex.c (reg_free): Likewise.
3478 * xftfont.c (xftfont_open, xftfont_close): Likewise.
3479 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
3480 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 3481
4fc1984a
KH
34822008-06-02 Kenichi Handa <handa@m17n.org>
3483
1d1e1245
KH
3484 * font.c (font_find_for_lface): Handle float font size.
3485 (font_open_for_lface): Likewise.
3486
4fc1984a
KH
3487 * xfaces.c (x_supports_face_attributes_p): Check face->font before
3488 comparing the properties.
3489
aee986fd
JR
34902008-06-01 Jason Rumney <jasonr@gnu.org>
3491
e6841c3b
JB
3492 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
3493 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
3494 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
3495 Don't add empty script list.
3496 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 3497
60a3d7ee
DN
34982008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
3499
aee986fd 3500 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
3501 ".." has been used elsewhere in the file for a long time.
3502 (LIBXT_STATIC): Remove conditional based on unused variable.
3503
f2cec7a9
MB
35042008-06-01 Miles Bader <miles@gnu.org>
3505
3506 * xfaces.c (Vface_remapping_alist): New variable.
3507 (syms_of_xfaces): Initialize it.
3508 (enum named_merge_point_kind): New type.
3509 (struct named_merge_point): Add `named_merge_point_kind' field.
3510 (push_named_merge_point): Make cycle detection respect different
3511 named-merge-point kinds.
c876b227 3512 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
3513 Remove face-name alias resolution.
3514 (lface_from_face_name): New definition using
3515 `lface_from_face_name_no_resolve'.
c876b227 3516 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
3517 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
3518 (get_lface_attributes): New definition that layers face-remapping on
3519 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
3520 (lookup_basic_face): New function.
3521 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
3522 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
3523 `get_lface_attributes'.
3524 (face_at_buffer_position): Use `lookup_basic_face' to lookup
3525 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
3526 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
3527
3528 * xdisp.c (init_iterator): Pass base_face_id through
3529 `lookup_basic_face' when we actually use it as a face-id.
3530 (handle_single_display_prop): Use `lookup_basic_face' to lookup
3531 DEFAULT_FACE_ID.
3532
3533 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
3534 lookup the initial face-id.
3535
3536 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
3537
518c0b83
JB
35382008-06-01 Juanma Barranquero <lekktu@gmail.com>
3539
3540 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
3541 (Fremove_text_properties): Fix typos in docstrings.
3542
719b3d63
KH
35432008-05-31 Kenichi Handa <handa@m17n.org>
3544
e4c93315
KH
3545 * font.c (font_list_entities): Fix the car part of data to be
3546 stored in the cache.
3547
719b3d63
KH
3548 * ftfont.c (ftfont_font_format): Don't use strcasestr.
3549
d0827857
SM
35502008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
3551
3552 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
3553 Add a `test' argument so another predicate than `equal' can be used.
3554 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
3555 (map_char_table): Remove unused vars `c' and `i'.
3556 * lisp.h (Foptimize_char_table): Adjust declaration.
3557 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
3558
a266686a
KH
35592008-05-30 Kenichi Handa <handa@m17n.org>
3560
d0827857 3561 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
3562 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
3563 defined.
3564
fd9440c5
SM
35652008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
3566
3567 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
3568 (Fmake_variable_frame_local): Disallow mixing buffer-local and
3569 frame-local settings for the same variable.
3570
fd2ae9b2
KH
35712008-05-30 Kenichi Handa <handa@m17n.org>
3572
9e0e0d77 3573 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
3574 (syms_of_fontset): Delete defsubr of Sfont_info.
3575
3576 * font.c (font_style_to_value, font_score): Delete casting of the
3577 args to xstcasecmp.
3578 (register_font_driver): Increment num_font_drivers only when
3579 registering the driver globally.
9e0e0d77 3580 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
3581 (syms_of_font): Defsubr Sfont_info.
3582
eaf11618
KH
35832008-05-29 Kenichi Handa <handa@m17n.org>
3584
3585 * coding.h (enum define_coding_utf8_arg_index): New enum.
3586 (enum coding_attr_index): Change coding_attr_utf_16_bom to
3587 coding_attr_utf_bom.
fd9440c5
SM
3588 (enum utf_bom_type): Rename from utf_16_bom_type.
3589 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
3590 (struct coding_system): Add utf_8_bom in `spec' union.
3591
3592 * coding.c (CODING_UTF_8_BOM): New macro.
3593 (enum coding_category): Delete coding_category_utf_8, add
3594 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
3595 coding_category_utf_8_sig.
3596 (CATEGORY_MASK_UTF_8): Delete it.
3597 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
3598 (CATEGORY_MASK_UTF_8_SIG): New macros.
3599 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
3600 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
3601 CATEGORY_MASK_UTF_8_SIG.
3602 (CATEGORY_MASK_UTF_8): New macro.
3603 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
3604 (detect_coding_utf_8): Check BOM.
3605 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 3606 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
3607 (encode_coding_utf_16): Likewise.
3608 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
3609 (detect_coding, detect_coding_system): Handle utf-8-auto.
3610 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
3611 (syms_of_coding): Fix setting up of Vcoding_category_table.
3612
891bd142
SM
36132008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
3614
3615 * process.c (Faccept_process_output): If `millisec' is non-nil,
3616 `seconds' default to 0.
3617 (wait_reading_process_output): Also return non-nil if we read output
3618 from a non-running process.
3619
1519d52e
JR
36202008-05-29 Jason Rumney <jasonr@gnu.org>
3621
fd9440c5
SM
3622 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
3623 `raster' specified.
3624 (add_font_entity_to_list): Allow non-opentype truetype fonts back
3625 in the uniscribe backend, but disallow any font that has no
3626 unicode subrange support.
1519d52e 3627
d5ab09cd
JB
36282008-05-29 Juanma Barranquero <lekktu@gmail.com>
3629
3630 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
3631 Fix typos in docstrings.
3632
a4eec626
KH
36332008-05-29 Kenichi Handa <handa@m17n.org>
3634
3635 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 3636 (Fx_family_fonts): Set frame correctly.
a4eec626 3637
a6e0b7e5
JR
36382008-05-28 Jason Rumney <jasonr@gnu.org>
3639
d5ab09cd 3640 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 3641
6b3d752c
SM
36422008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
3643
3644 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
3645 calling build_annotations.
3646
c3f9fba8
JB
36472008-05-28 Juanma Barranquero <lekktu@gmail.com>
3648
3649 * coding.c (Fdecode_coding_region, Fencode_coding_region)
3650 (Fencode_coding_string):
3651 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
3652 <latin-extra-code-table>: Fix typos in docstrings.
3653 (syms_of_coding) <coding-system-alist>: Doc fix.
3654 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
3655
00c670e1
KH
36562008-05-28 Kenichi Handa <handa@m17n.org>
3657
b75d7f28
KH
3658 * fontset.c (Ffont_info): Don't call font_close_object.
3659
3660 * font.c (font_parse_family_registry): Use Ffont_put to validate
3661 foundry and family.
3662 (font_delete_unmatched): Don't check spacing.
3663 (font_list_entities): Add spacing to the spec to list fonts.
3664
3665 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 3666 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 3667
00c670e1
KH
3668 * coding.c (encode_coding_raw_text): Fix previous change.
3669 (encode_coding_object): When the dst_object is a buffer and is
3670 different from src_object, move gap to PT.
3671
45feca91
CY
36722008-05-27 Chong Yidong <cyd@stupidchicken.com>
3673
c3f9fba8 3674 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 3675
5dd5d9eb
SM
36762008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3677
01d45367
SM
3678 * coding.c (encode_coding_raw_text): Set coding->produced_char for
3679 all branches. Compute it differently.
3680
5dd5d9eb
SM
3681 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
3682
9c623c85
JB
36832008-05-27 Juanma Barranquero <lekktu@gmail.com>
3684
3685 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
3686 into "else if () ... else ...".
3687
943f2093
JR
36882008-05-27 Jason Rumney <jasonr@gnu.org>
3689
5dd5d9eb
SM
3690 * w32font.c (w32font_open_internal): Determine if glyph indices
3691 are likely to work here.
943f2093 3692
7385fe74
CY
36932008-05-27 Chong Yidong <cyd@stupidchicken.com>
3694
3695 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
3696 draw overlap glyphs with appropriate highlighting.
3697
4f64a164
KH
36982008-05-27 Kenichi Handa <handa@m17n.org>
3699
3700 * xfont.c (xfont_open): Fix calculation of font->average_width.
3701
1fb5aad7
SM
37022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
3703
3704 * casefiddle.c (casify_object): Try to guess better whether the
3705 argument is a byte or a char.
3706
f8eb1603
AS
37072008-05-26 Andreas Schwab <schwab@suse.de>
3708
1fb5aad7
SM
3709 * xselect.c (x_reply_selection_request): Properly handle format == 32.
3710 Always send multiples of format size.
5a9c35e5 3711
f8eb1603
AS
3712 * xterm.c (x_set_frame_alpha): Fix type mismatch.
3713
ba93d684
JR
37142008-05-26 Jason Rumney <jasonr@gnu.org>
3715
1fb5aad7
SM
3716 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
3717 (compute_metrics): Don't set failure if we just cleared the cache.
3718 (w32_weight_table): Remove unused variable.
3719 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
3720 backwards compatibility.
ba93d684 3721
505ecc49
KH
37222008-05-25 Kenichi Handa <handa@m17n.org>
3723
1fb5aad7
SM
3724 * w32term.c (x_draw_glyph_string):
3725 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
3726
3727 * xfaces.c: Delete unused function prototypes.
3728 (xstrlwr, font_frame): Delete them.
3729 (clear_face_cache): Delete unused variable.
3730
1fb5aad7
SM
3731 * xftfont.c (xftfont_open): Delete unused variable.
3732 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
3733
3734 * ftxfont.c (ftxfont_open): Delete unused variable.
3735
3736 * fontset.c (face_for_char): Optimize for the case of no charset
3737 property.
3738
3739 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
3740 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
3741 (otf_open, font_otf_capability, generate_otf_features)
3742 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 3743 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
3744 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
3745 (syms_of_font): Codes for accessing above commented out.
3746
f481eb31
EZ
37472008-05-24 Eli Zaretskii <eliz@gnu.org>
3748
3749 * w32proc.c: Include dispextern.h.
3750
3751 * w32.c: Include dispextern.h.
3752
20746fe4
JB
37532008-05-23 Juanma Barranquero <lekktu@gmail.com>
3754
3755 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
3756 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
3757 Fix typos in docstrings.
3758
e7150846
JR
37592008-05-23 Jason Rumney <jasonr@gnu.org>
3760
20746fe4 3761 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 3762
dbf46ba6
KH
37632008-05-23 Kenichi Handa <handa@m17n.org>
3764
6c652beb
KH
3765 * charset.c (Qemacs, charset_emacs): New variables.
3766 (char_charset): Fix for non-Unicode characters.
3767 (syms_of_charset): Define charset_emacs.
3768
baf4d3b3 3769 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
3770 s->underline_thickness and s->underline_position. Be sure to draw
3771 underline within the current line area.
baf4d3b3
KH
3772
3773 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 3774 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 3775 underline within the current line area.
baf4d3b3 3776
dbf46ba6
KH
3777 * fontset.c: Delete unused variables and add casting for char *
3778 throughout the file.
3779 (fontset_font): Try the fallback fonts of the current fontset
3780 before consulting the default fontset.
3781
3782 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
3783
9e0e0d77 3784 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 3785
3b780338
JR
37862008-05-22 Jason Rumney <jasonr@gnu.org>
3787
20746fe4 3788 * font.c: Don't include strings.h.
577eba22 3789
9e0e0d77 3790 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 3791
20746fe4
JB
3792 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
3793 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
3794 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
3795 to call xstrcasecmp.
05131107 3796
b1722a46 3797 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 3798
b1722a46 3799 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 3800
b1722a46 3801 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 3802
b1722a46 3803 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 3804
a30e1957
KH
38052008-05-22 Kenichi Handa <handa@m17n.org>
3806
20746fe4 3807 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 3808
20746fe4 3809 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
3810 change of font_style_table.
3811
a30e1957
KH
3812 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
3813 two args.
3814
3815 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
3816 two args.
3817
631248e5
SM
38182008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
3819
3820 * minibuf.c (keys_of_minibuf): Delete.
3821 * lisp.h (keys_of_minibuf): Delete.
3822 * emacs.c (main): Don't call keys_of_minibuf.
3823
318548be
KH
38242008-05-22 Kenichi Handa <handa@m17n.org>
3825
631248e5 3826 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
3827 ftfont_list_generic_family. Return a single family for each
3828 generic family.
3829 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
3830 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
3831 Call font_add_log.
318548be
KH
3832 (ftfont_match): Call font_add_log.
3833
3834 * font.h (Ffont_xlfd_name): EXFUN adjusted.
3835 (FONT_DEBUG): Define it.
3836 (font_add_log): Extern it.
631248e5 3837 (font_assert): Rename from xassert.
318548be
KH
3838
3839 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
3840 (xfont_list_family): Call font_add_log.
3841 (xfont_match): Likewise.
631248e5 3842 (memq_no_quit): Delete.
318548be
KH
3843
3844 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
3845 call of Ffont_xlfd_name.
3846
3847 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 3848 (swidth_table): Move to font.c.
318548be
KH
3849
3850 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 3851 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
3852 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
3853 New variables.
631248e5
SM
3854 (struct table_entry): Move from xfaces.c and modified.
3855 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 3856 contents adjusted for the change of struct table_entry.
20746fe4 3857 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 3858 format change of font_style_table.
318548be
KH
3859 (font_parse_family_registry): Don't overwrite existing foundry and
3860 family of font_spec.
3861 (font_score): Fix calculation of diff for sizes.
3862 (font_sort_entites): Call font_add_log.
3863 (font_delete_unmatched): Return a newly created list.
3864 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
3865 (font_matching_entity, font_open_entity, font_close_entity):
3866 Call font_add_log.
318548be 3867 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 3868 (Finternal_set_font_style_table): Delete.
318548be
KH
3869 (BUILD_STYLE_TABLE): New macro.
3870 (build_style_table): New function.
3871 (Vfont_log, font_log_env_checked): New variables.
3872 (font_add_log): New function.
3873 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
3874 Declare Lisp variables "font-weight-table", "font-slant-table",
3875 "font-width-table", and "font-log". Initialize font_style_table.
3876
6aac1c03
DN
38772008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
3878
bcc850aa 3879 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 3880
7950790f
GM
38812008-05-21 Seiji Zenitani <zenitani@mac.com>
3882 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 3883
7950790f 3884 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 3885 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 3886 (x_set_alpha): New function.
a2979e8e 3887
7950790f 3888 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 3889
7950790f
GM
3890 * xfns.c (x-create-frame, Qalpha):
3891 Initialize the frame parameter `alpha'.
b9fb2c45
GM
3892 * xterm.c (OPAQUE, OPACITY): New.
3893 (x_set_frame_alpha): New function.
3894 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 3895
7950790f
GM
3896 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
3897 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 3898
5c2a72d9
JR
38992008-05-20 Jason Rumney <jasonr@gnu.org>
3900
20746fe4
JB
3901 * w32font.c (add_font_entity_to_list): Don't add non-opentype
3902 truetype fonts to opentype list.
5c2a72d9 3903
eb152aa9
JB
39042008-05-20 Juanma Barranquero <lekktu@gmail.com>
3905
3906 * fontset.c (Ffontset_info): Doc fix.
3907 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
3908 <ignore-relative-composition>: Fix typos in docstrings.
3909
3910 * font.c (syms-of-font) <font-encoding-alist>:
3911 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
3912 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
3913 (Ffont_otf_alternates): Doc fixes.
3914
ad00e1a3
KH
39152008-05-20 Kenichi Handa <handa@m17n.org>
3916
3917 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
3918 font.h through out the file.
9e0e0d77 3919 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 3920 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
3921 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
3922
3923 * emacs.c (main): Call syms_of_font unconditionally.
3924
3925 * font.h (find_font_encoding): Extern it.
3926
9e0e0d77 3927 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
3928 fontset.c.
3929 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
3930 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
3931 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
3932 only when HAVE_WINDOW_SYSTEM is defined.
3933 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
3934 when HAVE_WINDOW_SYSTEM is defined.
3935
9e0e0d77
SM
3936 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
3937 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
3938
3939 * xfaces.c: Include font.h unconditionally.
3940 (merge_face_ref, merge_face_vectors)
3941 (Finternal_set_lisp_face_attribute): Cancel the previous change.
3942
40a69fac
SM
39432008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
3944
3945 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
3946 indirect_variable.
3947 * eval.c (lisp_indirect_variable): New fun.
3948 (Fuser_variable_p): Use it.
3949
8c2dccbf
SM
39502008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3951
ad97b375
SM
3952 * lisp.h (indirect_variable):
3953 * data.c (indirect_variable, let_shadows_buffer_binding_p):
3954 Use Lisp_Symbol pointers rather than Lisp_Object.
3955 Adjust callers.
3956 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
3957 To this end, change calling-convention.
3958
8c2dccbf
SM
3959 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
3960 if some non-hidden buffers are selected by string&pred.
3961
ad97b375
SM
39622008-05-19 Chong Yidong <cyd@stupidchicken.com>
3963
3964 * process.c (wait_reading_process_output): Always check status
3965 when in batch mode.
3966
25b81df4
KH
39672008-05-19 Kenichi Handa <handa@m17n.org>
3968
3969 * font.c (font_list_entities): Fix handling of cache.
3970 (font_matching_entity): Likewise.
3971
8c2dccbf 3972 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 3973 (ft_face_cache): New variable.
1f204af3 3974 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 3975 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
3976 (fc_charset_table): New variable.
3977 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
3978 . FC_CHARSET_IDX) as :font-entity property in the font entity.
3979 Callers changed.
dde8403f 3980 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
3981 (ftfont_spec_pattern): New argument fc_charset_idx.
3982 Check registry more rigidly. Change callers.
a2979e8e 3983 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
3984 change of :font-entity property of the font.
3985
a2979e8e 3986 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
3987 property of the font.
3988
d4a1d553
JB
39892008-05-18 Juanma Barranquero <lekktu@gmail.com>
3990
3991 * coding.c (Fcoding_system_p): Rename argument to match docstring.
3992 (Funencodable_char_position, Fcheck_coding_systems_region)
3993 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
3994 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
3995 (Ffind_operation_coding_system, Fset_coding_system_priority)
3996 (Fcoding_system_eol_type): Doc fixes.
3997
07cfc4e7
GM
39982008-05-17 Glenn Morris <rgm@gnu.org>
3999
4000 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
4001
1cab27d2
EZ
40022008-05-16 Eli Zaretskii <eliz@gnu.org>
4003
4004 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
4005 and st_gid.
4006
dde8403f 4007 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
4008 HAVE_WINDOW_SYSTEM is not defined.
4009
4010 * xfaces.c (merge_face_ref, merge_face_vectors)
4011 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
4012 HAVE_WINDOW_SYSTEM is defined.
4013 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
4014
86b89713
SM
40152008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
4016
4017 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
4018
6750bd93
YM
40192008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4020
62867b11 4021 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 4022
79f105c9
KH
40232008-05-15 Kenichi Handa <handa@m17n.org>
4024
4025 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
4026 preference.
4027
6b33da9f
GM
40282008-05-15 Glenn Morris <rgm@gnu.org>
4029
4030 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
4031
d0e4433b
CY
40322008-05-15 Chong Yidong <cyd@stupidchicken.com>
4033
4034 * fns.c (init_fns): Don't initialize weak_hash_tables here.
4035 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
4036
4037 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
4038
5f2d79e0
KH
40392008-05-15 Kenichi Handa <handa@m17n.org>
4040
fd8a1cae
KH
4041 * ftfont.c (ftfont_list): Downcase family name to check generic
4042 families.
4043
4044 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
4045 font-spec for QCfont value.
4046
5f2d79e0
KH
4047 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
4048 buffer. Check the return value of it.
4049
e5e29349
JR
40502008-05-14 Jason Rumney <jasonr@gnu.org>
4051
4052 * w32term.c (w32_get_glyph_overhangs): Remove.
4053 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
4054
1f09f444
KH
40552008-05-14 Kenichi Handa <handa@m17n.org>
4056
4057 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
4058 (font_clear_cache): Check if the cached vector of entities is nil
4059 or not.
1f09f444 4060
ecae6af9 40612008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
4062
4063 * emacs.c (main_thread): Conditionalize on
4064 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
4065 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
4066
4067 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
4068 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
4069 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
4070
c6b278e7
KH
40712008-05-14 Kenichi Handa <handa@m17n.org>
4072
4073 * coding.c (detect_coding_iso_2022): Ignore a coding category that
4074 has no corresponding coding system.
4075
40762008-05-14 Jason Rumney <jasonr@gnu.org>
4077
4078 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
4079
4080 * w32font.h (w32font_open_internal): Update declaration.
4081
4082 * w32font.c (w32font_open_internal): Change last argument from
4083 w32font_info struct to font object. Fill in font object from
4084 font_entity. Get Outline metrics if possible. Use them to
4085 calculate underline position and thickness. Use xlfd name as name
4086 property. Don't set codepage.
4087 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 4088 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
4089 (w32font_draw): Use s->font.
4090 (clear_cached_metrics): Don't clear non-existent blocks.
4091
4092 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
4093 font was not found.
a879ee6f 4094 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
4095
4096 * w32uniscribe.c (uniscribe_open): Pass font_object to
4097 w32font_open_internal.
4098
40992008-05-14 Kenichi Handa <handa@m17n.org>
4100
4101 These changes are to delete all legacy font-handling codes, and
4102 make Emacs use only font-backends.
4103
4104 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
4105 (frame.o, image.o, print.o): Depend on $(FONTSRC).
4106
4107 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
4108
4109 * charset.h (Vcharset_non_preferred_head)
4110 (Vcurrent_iso639_language): Extern them.
4111
4112 * charset.c (Vcharset_non_preferred_head): New variable.
4113 (Vcurrent_iso639_language): New variable.
4114 (syms_of_charset): Declare it as a Lisp variable.
4115 (char_charset): Don't check non preferred charsets. As a last
4116 resort, return charset_unicode.
4117 (Fset_charset_priority): Update Vcharset_non_preferred_head.
4118
4119 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
4120 conditionals. Don't check enable_font_backend. Delete all codes
4121 used only when USE_FONT_BACKEND is not defined.
4122
4123 * dispextern.h (struct glyph_string): Change type of `font' to
4124 `struct font *'.
4125 (struct glyph_string): New member underline_position and
4126 underline_thickness.
4127 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
4128 (struct face): Change type of `font' to `struct font *'. Remove
4129 members `font_name', `font_info_id'.
4130 (per_char_metric, encode_char): Delete externs.
4131 (calc_pixel_width_or_height): Adjust the prototype.
4132
4133 * emacs.c (enable_font_backend): Delete extern.
4134 (main): Don't set enable_font_backend. Don't check the command
4135 line argument "-disable-font-backend".
4136
4137 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
4138 (enum font_property_index): New members FONT_DPI_INDEX,
4139 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
4140 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
4141 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
4142 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
4143 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
4144 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
4145 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
4146 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
4147 (struct font_spec, struct font_entity): New structs.
4148 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
4149 (struct font): Many members from old "struct font_info" moved to
4150 here. Members font and entity deleted.
4151 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
4152 the new font-related objects.
4153 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
4154 (CHECK_FONT_GET_OBJECT): Likewise.
4155 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
4156 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
4157 (struct font_driver): New members case_sensitive anc check. Type
4158 of the member list and open changed.
4159 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
4160 (font_symbolic_width, font_find_object, font_get_spec)
4161 (font_set_lface_from_name): Delete extern.
20746fe4 4162 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
4163
4164 * font.c: Include <strings.h>.
4165 (enable_font_backend): Delete it.
4166 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
4167 (CHECK_VALIDATE_FONT_SPEC): Delete it.
4168 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
4169 (null_string): Delete it.
4170 (null_vector): Make it static.
4171 (font_family_alist): Delete it.
4172 (Qnormal): Extern it.
4173 (QCextra, QClanguage): Delete it.
1f204af3 4174 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
4175 (font_make_spec, font_make_entity, font_make_object)
4176 (font_intern_prop): Renamed from intern_downcase. Don't downcase
4177 the string. Callers changed.
4178 (font_pixel_size): Adjusted for the format change of font-related
4179 objects.
4180 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
4181 (font_style_to_value, font_style_symbolic): New function.
4182 (build_font_family_alist): Delete it.
4183 (font_registry_charsets): Use Fassoc_string instead of
4184 assq_no_quit.
4185 (font_prop_validate_symbol): Don't return null_string.
4186 (font_prop_validate_style): Adjusted for the change of
4187 style-related values in a font vector.
20746fe4 4188 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
4189 QCantialias, add entries for QCavgwidth.
4190 (get_font_prop_index): Delete the 2nd argument FROM.
4191 (font_prop_validate): Arguments changed.
4192 (font_put_extra): Adjusted for the change of font-related objects.
4193 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
4194 (font_parse_fcname, font_unparse_fcname)
4195 (font_prepare_composition): Likewise.
4196 (font_parse_family_registry): Renamed from font_merge_old_spec.
4197 (otf_open): Delete the 1st arg entity.
4198 (font_otf_capability): Adjusted for the above change.
4199 (font_score): New arg alternate_families. Adjusted for the change
4200 of font-related objects.
4201 (font_sort_entites): New arg best_only.
4202 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
4203 Delete them.
4204 (font_match_p): Check alternate families.
4205 (font_find_object): Delete it.
4206 (font_check_object): New function.
c3f9fba8 4207 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
4208 (font_delete_unmatched): New arg.
4209 (font_list_entities): Call font_driver->list with a spec that
4210 doesn't specify style-related properties.
4211 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 4212 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
4213 (font_close_object, font_has_char, font_encode_char)
4214 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
4215 (font_spec_from_name, font_clear_prop, font_update_lface):
4216 New functions.
4217 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
4218 (font_prepare_for_face, font_done_for_face, font_open_by_name)
4219 (font_at): Adjusted for the change of font-related objects.
4220 (font_range): New function.
4221 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 4222 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
4223 (Fcopy_font_spec, Fmerge_font_spec): New function.
4224 (Ffont_family_list): Renamed from list-families.
4225 (Finternal_set_font_style_table): Arguments changed.
4226 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
4227 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
4228 change of font-related objects.
c3f9fba8 4229 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 4230
3554e566 4231 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
4232 struct font.
4233 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
4234 (enum FONT_SPEC_INDEX): Delete it.
4235 (font_info, list_fonts_func, load_font_func, query_font_func)
4236 (set_frame_fontset_func, find_ccl_program_func)
4237 (get_font_repertory_func, new_fontset_from_font_name): Delete
4238 externs.
4239 (fontset_from_font_name): Extern it.
4240 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
4241 (FONT_INFO_FROM_FACE): Deleted.
4242 (face_for_font): Adjust prototype.
4243
4244 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
4245 conditionals. Don't check enable_font_backend. Delete all codes
4246 used only when USE_FONT_BACKEND is not defined.
4247 (get_font_info_func, list_font_func, load_font_func)
4248 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
4249 (get_font_repertory_func): Delete them.
4250 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
4251 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
4252 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
4253 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
4254 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
4255 (fontset_compare_rfontdef): New function.
4256 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
4257 ront-defs by qsort. Adjusted for the change of font-group vector.
4258 (load_font_get_repertory): Deleted.
4259 (fontset_find_font): Use new macros to ref/set elements of
4260 font-def and rfont-def.
4261 (fontset_font): Fix the timing of remembering that no font for C.
4262 (free_face_fontset): Do nothing if the face has no fontset.
4263 (face_suitable_for_char_p): Use new macros to ref/set elements of
4264 rfont-def.
4265 (face_for_char): Likewise. Call face_for_char with font_object.
4266 (fs_load_font): Delete. Delete #pragma surrounding it.
4267 (fs_query_fontset): Use strcasecmp instead of strcmp.
4268 (generate_ascii_font_name): Adjusted for the format change of
4269 font-spec.
4270 (Fset_fontset_font): Likewise. Use new macros to set elements of
4271 font-def.
4272 (Fnew_fontset): Use font_unparse_xlfd to generate
4273 FONTSET_ASCII (fontset).
4274 (new_fontset_from_font_name): Deleted.
4275 (fontset_from_font): Renamed from new_fontset_from_font. Check if
4276 a fontset is already created for the font. FIx updating of
4277 Vfontset_alias_alist.
4278 (fontset_ascii_font): Deleted.
4279 (Ffont_info): Adjusted for the format change of font-spec.
4280 (Finternal_char_font): Likewise.
4281 (Ffontset_info): Likewise.
4282 (syms_of_fontset): Don't check load_font_func.
4283
4284 * fns.c (internal_equal): Handle PREV_FONT.
4285
4286 * frame.h: Delete USE_FONT_BACKEND conditional.
4287
4288 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
4289 conditionals. Don't check enable_font_backend. Delete all codes
4290 used only when USE_FONT_BACKEND is not defined.
4291 (x_set_font): Call x_new_font, not x_new_fontset2.
4292 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
4293 already set for the frame.
4294
4295 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
4296 a font-entity by font_make_entity. Use font_intern_prop instead
4297 of intern_downcase. Use FONT_SET_STYLE to set a style-related
4298 font property. If a font is scalable, set avgwidth property to 0.
4299 Set font-entity property by font_put_extra.
4300 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
4301 (ffont_driver): Adjusted for the change of struct font_driver.
4302 (ftfont_spec_pattern): New function.
4303 (ftfont_list): Return a list, not vector.
4304 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
4305 (ftfont_list_family): Don't downcase names.
4306 (ftfont_free_entity): Deleted.
4307 (ftfont_open): Return a font-ojbect. Adjusted for the change of
4308 struct font. Get underline_thickness and underline_position from
4309 font property. Don't update dpyinfo->smallest_font_height and
4310 dpyinfo->smallest_char_width.
4311 (ftfont_close): Don't free `struct font'.
4312 (ftfont_has_char): Adjusted for the format change of font-entity.
4313 (ftfont_encode_char, ftfont_text_extents): Likewise.
4314
4315 * ftxfont.c (ftxfont_list): Return a list, not vector.
4316 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
4317 struct font. Get underline_thickness and underline_position from
4318 font property. Don't update dpyinfo->smallest_font_height and
4319 dpyinfo->smallest_char_width.
4320 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
4321 (ftxfont_draw): Adjusted for the change of struct font.
4322
4323 * image.c (image_ascent): Don't include "charset.h". Include
4324 "character.h" and "font.h".
4325
4326 * lisp.h (enum pvec_type): New member PREV_FONT.
4327 (Fassoc_string): EXFUN it.
4328
4329 * print.c: Include font.h.
4330 (print_object): Handle font-related objects.
4331
4332 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
4333 conditionals. Don't check enable_font_backend. Delete all codes
4334 used only when USE_FONT_BACKEND is not defined.
4335 (handle_auto_composed_prop): Do nothing if it->f is not on a
4336 window system. Check how many following characters can be
4337 displayed by the same font.
4338 (calc_pixel_width_or_height): Type of the 4th arg is changed to
4339 'struct font *'.
4340 (get_char_face_and_encoding): Assign the whole encoding task to
4341 the `encode-char' method of a font driver.
4342 (fill_composite_glyph_string): Adjusted for the change of `struct
4343 face' and `struct glyph_string'.
4344 (fill_glyph_string): Likewise.
4345 (get_per_char_metric): Arguments changed.
4346 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
4347 and `struct glyph_string'.
4348 (produce_stretch_glyph, calc_line_height_property)
4349 (x_produce_glyphs): Likewise.
4350
4351 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
4352 conditionals. Don't check enable_font_backend. Delete all codes
4353 used only when USE_FONT_BACKEND is not defined. Use
4354 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
4355 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
4356 (Qp): Extern them.
4357 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
4358 Deleted.
4359 (struct font_name): Deleted.
4360 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
4361 (compare_fonts_by_sort_order): New function.
4362 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
4363 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
4364 Deleted.
4365 (Fx_family_fonts): Use font_list_entities, and sort fonts by
4366 compare_fonts_by_sort_order.
4367 (Fx_font_family_list): Call Ffont_family_list.
4368 (face_numeric_value, face_numeric_weight, face_numeric_slant)
4369 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
4370 (face_symbolic_slant, face_symbolic_swidth)
4371 (split_font_name_into_vector, build_font_name_from_vector)
4372 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
4373 (font_rescale_ratio, split_font_name, build_font_name)
4374 (free_font_names, sort_fonts, x_face_list_fonts)
4375 (face_font_available_p, sorted_font_list, cmp_font_names)
4376 (font_list_1, concat_font_list, font_list, remove_duplicates):
4377 Deleted.
4378 (Fx_list_fonts): Use Ffont_list.
4379 (LFACE_AVGWIDTH): Deleted.
4380 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
4381 by FONTP.
4382 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
4383 (set_lface_from_font_name): Delete it.
4384 (set_lface_from_font): Renamed from
4385 set_lface_from_font_and_fontset. Caller changed. Don't set
4386 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
4387 for face.
c3f9fba8
JB
4388 (merge_face_vectors): Copy font-spec if necessary.
4389 Clear properties of the font-spec if necessary.
c6b278e7
KH
4390 (merge_face_ref): Clear properties of the font-spec if necessary.
4391 (Finternal_set_lisp_face_attribute): Likewise.
4392 (set_font_frame_param): Use font_load_for_lface to load a
4393 font-object, and call Fmodify_frame_parameters with it.
4394 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
4395 font name by Ffont_xlfd_name.
4396 (Finternal_lisp_face_attribute_values): Don't check QCweight,
4397 QCslant, and QCwidth.
4398 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
4399 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
4400 Compare fonts by EQ.
4401 (lookup_non_ascii_face): Deleted.
4402 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
4403 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
4404 Check atomic font properties by case insensitive.
c6b278e7
KH
4405 (realize_non_ascii_face): Set face->overstrike correctly.
4406 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
4407 (dump_realized_face): Get font name from
4408 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
4409
4410 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
4411 conditionals. Don't check enable_font_backend. Delete all codes
4412 used only when USE_FONT_BACKEND is not defined.
4413 (xic_create_xfontset): Original code deleted and renamed from
4414 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
4415 (x_make_gc): Don't set GCFont in GCs.
4416 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
4417 opened by "fixed".
4418 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
4419 find_ccl_program_func, query_font_func, set_frame_fontset_func,
4420 get_font_repertory_func.
4421
4422 * xfont.c: Include <stdlib.h> and "ccl.h".
4423 (struct xfont_info): New structure.
4424 (xfont_query_font): Deleted.
4425 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
4426 moved from xterm.c.
4427 (xfont_driver): Adjusted for the change of struct font_driver.
4428 (compare_font_names): New function.
4429 (xfont_list_pattern): Sort font names case insensitively. Make
4430 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
4431 (xfont_list): Return a list, not vector.
4432 (xfont_match): If the font doesn't have QCname property, generate
4433 a name from the other font properties.
4434 (xfont_open): Return a font-ojbect. Adjusted for the change of
4435 struct font. Get underline_thickness and underline_position from
4436 font property. Don't update dpyinfo->smallest_font_height and
4437 dpyinfo->smallest_char_width.
4438 (xfont_close): Don't free struct font.
4439 (xfont_prepare_face): Adjusted for the change of struct font.
4440 (xfont_done_face): Deleted.
4441 (xfont_has_char): Adjusted for the change of struct font.
4442 (xfont_encode_char, xfont_draw): Likewise.
4443 (xfont_check): New function.
4444
4445 * xftfont.c (xftfont_list): Adjusted for the change of `list'
4446 callback function.
4447 (xftfont_match): Adjusted for the fontmat change of font-entity.
4448 (xftfont_open): Adjusted for the format change of font-entity and
4449 font-object. Adjusted for the change of struct font. Return a
4450 font-object. Don't update dpyinfo->smallest_font_height and
4451 dpyinfo->smallest_char_width.
4452 (xftfont_close): Block input while calling XftFontClose.
4453 (xftfont_prepare_face): Don't block input while calling
4454 xftfont_get_colors. Adjusted for the change of struct font.
4455 (xftfont_shape): Return value of error case fixed.
4456
4457 * xrdb.c (x_load_resources): Don't setup a fontset resource.
4458
4459 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
4460 conditionals.
4461 (FONT_WIDTH): Return (f)->max_width.
4462 (struct x_display_info): Delete member `font'.
4463 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
4464 (x_find_ccl_program, x_get_font_repertory): Delete externs.
4465 (struct x_output): Change type of `font' to `struct font *'.
4466
4467 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
4468 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 4469 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
4470 (x_per_char_metric, x_encode_char): Deleted.
4471 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
4472 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 4473 `struct face'.
c6b278e7
KH
4474 (x_draw_glyph_string_foreground)
4475 (x_draw_composite_glyph_string_foreground): Likewise.
4476 (x_draw_glyph_string): Likewise. Use font->underline_position and
4477 font->underline_thickness.
4478 (x_new_font): Renamed from x_new_fontset2.
4479 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
4480 (x_check_font): Call `check' method of a font driver.
4481 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
4482 (x_query_font, x_get_font_repertory): Deleted.
4483 (x_find_ccl_program): Renamed and moved to xfont.c.
4484 (x_redisplay_interface): Adjusted for the change of `struct
4485 redisplay_interface'.
4486
4487 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
4488 conditionals. Don't check enable_font_backend. Delete all codes
4489 used only when USE_FONT_BACKEND is not defined. Surround non-used
4490 code by "#ifdef OLD_FONT" and "endif".
4491 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
4492
4493 * w32font.h (struct w32font_info): New member.
4494 (FONT_COMPAT): New macro.
4495 (w32font_open_internal): Prototype adjusted.
4496
4497 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
4498 OLD_FONT" and "endif".
4499
4500 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
4501 conditionals. Don't check enable_font_backend. Delete all codes
4502 used only when USE_FONT_BACKEND is not defined.
4503 (w32font_open): Return a font-object. Make a font-object by
4504 font_make_object. Adjusted for the change of struct w32font_info.
4505 (w32font_close): Don't free struct font. Adjusted for the change
4506 of struct w32font_info.
4507 (w32font_encode_char, w32font_text_extents, w32font_draw):
4508 Adjusted for the change of struct w32font_info.
4509 (w32font_draw): Likewise.
4510 (w32font_list_internal): Return a list, not vector.
4511 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 4512 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
4513 (add_font_name_to_list): Don't downcase names.
4514 (w32_enumfont_pattern_entity): Make a font-entity by
4515 font_make_entity. Adjusted for the format change of font-entity.
4516 Use FONT_SET_STYLE to set a style-related font property. If a
4517 font is scalable, set avgwidth property to 0. Set font-entity
4518 property by font_put_extra.
c3f9fba8 4519 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
4520 (w32_weight_table, w32_decode_weight): New variables.
4521 (w32_encode_weight): New function.
4522 (fill_in_logfont): Adjusted for the format change of font-spec.
4523 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
4524 weight value.
4525 (w32font_driver): Adjusted for the change of struct font_driver.
4526
4527 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 4528 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
4529 code by "#ifdef OLD_FONT" and "endif".
4530 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
4531 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
4532
4533 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
4534 conditionals. Don't check enable_font_backend. Delete all codes
4535 used only when USE_FONT_BACKEND is not defined. Surround non-used
4536 code by "#ifdef OLD_FONT" and "endif".
4537
4538 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
4539 (uniscribe_open): Return value changed to font-object.
4540 Adjusted for the format change of font-object.
4541 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
4542 (add_opentype_font_name_to_list): Don't downcase names.
4543 (uniscribe_font_driver): Adjusted for the change of struct
4544 font_driver.
4545
f9d4c199
CY
45462008-05-13 Chong Yidong <cyd@stupidchicken.com>
4547
4548 * dispnew.c (update_frame_1): Check if tty output is still valid
4549 before flushing it.
4550
44f249c0
JD
45512008-05-13 Jan Djärv <jan.h.d@swipnet.se>
4552
4553 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
4554 to Gtk+ menus.
4555
01bb4018
SM
45562008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4557
3271a8f5
SM
4558 * dired.c (file_name_completion): Tweak the code so as to always do it
4559 in a single pass. Tighten the scope of some variables.
4560
01bb4018
SM
4561 * dired.c (Qdefault_directory): New var.
4562 (file_name_completion): Use it instead of Fexpand_file_name.
4563 (syms_of_dired): Initialize it.
4564
728bb8e0
SM
45652008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
4566
4567 * fileio.c (double_dollars): Remove dead code.
4568
ed4c17bb
EZ
45692008-05-10 Eli Zaretskii <eliz@gnu.org>
4570
6c5665e9
EZ
4571 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
4572 Mention w32-get-true-file-attributes in doc string.
4573
ed4c17bb
EZ
4574 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4575
71e1f69d
GM
45762008-05-09 Glenn Morris <rgm@gnu.org>
4577
4578 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
4579 2008-04-23.
4580
ee7a2e7a
EZ
45812008-05-09 Eli Zaretskii <eliz@gnu.org>
4582
8aaaec6b
EZ
4583 Support for reporting owner and group of each file on MS-Windows:
4584 * dired.c (stat_uname, stat_gname): New functions, with special
4585 implementation for w32.
4586 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
4587
ee7a2e7a
EZ
4588 * w32.c: Rename the_passwd_* to dflt_passwd_*.
4589 (dflt_group_name): New static variable.
728bb8e0 4590 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
4591 (init_user_info): Init dflt_group fields. Get user's group name
4592 from LookupAccountSid.
8aaaec6b
EZ
4593 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
4594 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
4595 New initialization states.
4596 (globals_of_w32): Initialize them to zero. Initialize the default
4597 group name to "None".
4598 (GetFileSecurity_Name): New global var, the name of the function
4599 to call for GetFileSecurity.
4600 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
4601 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
4602 (get_file_security, get_security_descriptor_owner)
4603 (get_security_descriptor_group, is_valid_sid)
4604 (get_file_security_desc, get_rid, get_name_and_id)
4605 (get_file_owner_and_group): New functions.
4606 (stat): Use get_file_security_desc and get_file_owner_and_group to
4607 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
4608 high 32 bits of file's size, now that st_size is 64-bit wide.
4609 Fix test when to get true file attributes.
8aaaec6b
EZ
4610 (init_user_info): Use get_rid instead of equivalent inline code.
4611 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 4612
b199c436
CY
46132008-05-09 Chong Yidong <cyd@stupidchicken.com>
4614
4615 * image.c (png_load): Use correct bit-depth for setting background
4616 color.
4617
86914123
EZ
46182008-05-08 Eli Zaretskii <eliz@gnu.org>
4619
4620 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
4621 epa-hook.elc.
4622
67b5d7de
JB
46232008-05-08 Juanma Barranquero <lekktu@gmail.com>
4624
4625 * font.c (Ffont_match_p): Don't use `iff' in docstring.
4626
1a111394
DN
46272008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4628
4629 * macfns.c (Fx_create_frame): Make a copy of frame parameters
4630 because the original parameters are in pure storage now.
4631 (mac_window): Remove unused params. Update callers.
4632
6d77fa95
SM
46332008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4634
7a3d90dc
SM
4635 * lread.c (substitute_object_recurse): Use lower-level primitives.
4636 Don't signal errors when traversing sub-char-tables.
4637 Don't loop over all the possible characters when traversing char-tables.
4638
6d77fa95
SM
4639 * print.c (print_preprocess): Add sub-char-tables to the print-table,
4640 just like we do in print.c.
4641
140eb764
SM
46422008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4643
4644 * minibuf.c (Ftry_completion): Remove code left over from when we used
4645 scmp instead of Fcompare_strings.
4646
e9184ccb
JB
46472008-05-04 Juanma Barranquero <lekktu@gmail.com>
4648
4649 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
4650
0e9378b3
YM
46512008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4652
4653 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
4654 Create bitmap context in native byte order.
4655
f67e15be
MB
4656 * macterm.c (XDrawLine)
4657 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
4658 context in native byte order.
064032d0 4659
f67e15be 46602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
4661
4662 * config.in: Regenerate.
4663
4664 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
4665 New definitions for Image I/O support.
4666 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4667 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
4668 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4669 (mac_data_provider_release_data, image_load_image_io)
4670 [USE_MAC_IMAGE_IO]: New functions.
4671 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
4672 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
4673 (init_image_func_pointer) [MAC_OSX]: Remove function.
4674 (image_load_quartz2d) [MAC_OSX]: Check availability of
4675 CGImageCreateWithPNGDataProvider at compile time.
4676 Use lowercase `false' for boolean constant.
4677 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
4678 Use image_load_image_io.
4679 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
4680 Don't check MyCGImageCreateWithPNGDataProvider.
4681 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
4682 Don't call init_image_func_pointer.
4683
4684 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
4685
4686 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
4687 Make variable non-static.
4688 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
4689 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
4690
4691 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
4692 (RED_FROM_ULONG): Mask off higher bits.
4693 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
4694
4695 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
4696 Include AvailabilityMacros.h.
4697 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
4698 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
4699
c6bff69e
SM
47002008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
4701
4702 * chartab.c (Fset_char_table_range): If range is t, really set all
4703 chars to that value.
4704
7412d429
EZ
47052008-05-03 Eli Zaretskii <eliz@gnu.org>
4706
4707 * dired.c (Ffile_attributes): Don't allow the device number become
4708 negative.
4709
f83bbfac
DU
47102008-05-02 Daiki Ueno <ueno@unixuser.org>
4711
5a81d3d7 4712 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 4713
2e3148e2
JL
47142008-05-02 Juri Linkov <juri@jurta.org>
4715
4716 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
4717 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
4718 DEFAULT argument as a list of default values in docstrings.
2e3148e2 4719
923fb88c
CY
47202008-05-01 Chong Yidong <cyd@stupidchicken.com>
4721
4722 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4723
047aaeb9
MR
47242008-05-01 Martin Rudalics <rudalics@gmx.at>
4725
4726 * dispnew.c (change_frame_size_1): Preserve small windows when
4727 shrinking frames by calling set_window_height|width with third
4728 arg 2.
4729
4730 * window.h (struct window): Replace field too_small_ok by field
4731 resize_proportionally.
4732
4733 * window.c (make_window): Initialize resize_proportionally.
4734 (enlarge_window): Temporarily set resize_proportionally to make
4735 sure that shrink_windows does scale the window proportionally.
4736 (shrink_windows): When window has resize_proportionally set try
4737 to shrink it proportionally by stealing from other windows.
4738 (struct saved_window, Fset_window_configuration)
4739 (compare_window_configurations): Handle resize_proportionally.
4740 (WINDOW_TOTAL_SIZE): New macro.
4741 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 4742 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
4743 window-min-height|width are handled by window_min_size_2 now.
4744 (size_window, Fsplit_window, enlarge_window)
4745 (adjust_window_trailing_edge, grow_mini_window): Don't call
4746 check_min_window_sizes.
c6bff69e
SM
4747 (window_min_size_2, window_min_size_1, window_min_size):
4748 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 4749 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
4750 (adjust_window_trailing_edge, grow_mini_window):
4751 Adjust arguments of window_min_size... functions.
047aaeb9
MR
4752 (shrink_windows): Argument min_size removed. New argument
4753 safe_p allows shrinking windows to their safe minimum sizes.
4754 Calculate minimum size and decide whether a window shall be
4755 deleted for each window individually.
4756 (size_window): When nodelete_p equals 2, tell shrink_windows to
4757 delete windows only if their new minimum size is no more safe.
4758 (shrink_window_lowest_first): Call window_min_size_1 to make
4759 sure to preserve modeline of bottom-most window when resizing
4760 the minibuffer.
4761 (Fset_window_configuration, Fcurrent_window_configuration)
4762 (compare_window_configurations): Do not handle
4763 window-min-height|width any more.
4764 (syms_of_window): Clarify window-min-height|width doc-strings.
4765
2a54a229
SM
47662008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
4767
4768 * dired.c (file_name_completion): Fix up the encoding/decoding issue
4769 some more. Copy some of the code from Ftry_completions.
4770 Remove special case code that dates back to initial revision when the
4771 slash was only added when necessary and that can't trigger nowadays.
4772
384bc634
KH
47732008-04-27 Kenichi Handa <handa@m17n.org>
4774
4775 * font.c (font_prop_validate): Signal `error' instead of `font'.
4776
2c2279c6
JR
47772008-04-29 Jason Rumney <jasonr@gnu.org>
4778
4779 * w32fns.c (Fw32_battery_status): New defun.
4780 (syms_of_w32fns): Defsubr it.
4781
fb4a622a
AS
47822008-04-28 Andreas Schwab <schwab@suse.de>
4783
4784 * dired.c (file_name_completion): Fix another mixing of encoded
4785 and decoded names.
4786
23f250f4
JB
47872008-04-28 Juanma Barranquero <lekktu@gmail.com>
4788
4789 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
4790
d8d30dff
JB
47912008-04-27 Juanma Barranquero <lekktu@gmail.com>
4792
4793 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4794
ea6104a8
AS
47952008-04-27 Andreas Schwab <schwab@suse.de>
4796
9c691c00
AS
4797 * dired.c (file_name_completion): Fix inappropriate mixing of
4798 encoded and decoded names.
4799
ec1bf773
AS
4800 * xterm.c (XTread_socket): Fix use of uninitialized variable.
4801
ea6104a8
AS
4802 * puresize.h (BASE_PURESIZE): Increase to 1200000.
4803
01388a3d
EZ
48042008-04-26 Eli Zaretskii <eliz@gnu.org>
4805
4806 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
4807 2008-03-31, it's not needed anymore with `struct stat' definition
4808 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
4809 for the same reasons.
4810
175aea10 48112008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
4812
4813 * m/sparc.h: Additional redefinitions for GNU/Linux.
4814
1289aeb8
YM
48152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4816
4817 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
4818 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
4819 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
4820 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
4821 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4822 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
4823 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4824 Likewise.
4825
4826 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 4827 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
4828 (mac_ax_number_of_characters): Add externs.
4829 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4830 [USE_MAC_TSM]: Likewise.
4831 (mac_handle_text_input_event) [MAC_OSX]:
4832 Handle kEventTextInputOffsetToPos for no active input area case.
4833 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4834 (mac_handle_document_access_event)
4835 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
4836 (install_application_handler) [MAC_OSX]: Register handlers for
4837 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4838 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4839 Register mac_handle_document_access_event.
4840
4841 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
4842 Make functions non-static.
4843
dbd50d4b
SM
48442008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4845
4846 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
4847 (read_file_name_completion_ignore_case, insert_default_directory)
4848 (Qdefault_directory): Move to minibuffer.el.
4849 (Fread_file_name): Call the new `read-file-name' instead.
4850
9ea37b9d 48512008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
4852
4853 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
4854 Make function non-static.
4855 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
4856 Remove function.
4857 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4858 Move to mactoolbox.c.
4859 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
4860
4861 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
4862 (mac_rect_make): New macro.
4863
4864 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
4865 instead of float.
4866 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4867 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
4868 (XSetBackground) [USE_CG_DRAWING]: Likewise.
4869 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
4870 CGRectMake.
4871 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4872 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
4873 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
4874 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4875 instead of WindowRef in argument type.
4876 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
4877 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
4878 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
4879 instead of DISPLAY. All uses changed.
4880 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
4881 (x_calc_absolute_position): Simplify so as not to use
4882 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
4883
4884 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4885 instead of WindowRef in argument type.
4886 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
4887 [TARGET_API_MAC_CARBON]: Remove externs.
4888 (create_apple_event, mac_event_parameters_to_lisp)
4889 [TARGET_API_MAC_CARBON]: Add externs.
4890
d8d30dff 4891 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
4892 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
4893 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
4894 is clicked.
4895 (x_activate_menubar): Remove extern for saved_menu_event_location.
4896 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4897 Move from mac.c.
4898
9ea37b9d 48992008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
4900
4901 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
4902 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
4903
9ea37b9d 49042008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
4905
4906 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
4907 attributes only for local files.
4908
4909 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 4910 default to Qlocal.
bd735631 4911
88970542
JL
49122008-04-22 Juri Linkov <juri@jurta.org>
4913
4914 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
4915 read-buffer-to-switch instead of using the letter "B".
4916
92ec67e3
SM
49172008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4918
4919 * fileio.c (Qdefault_directory): New variable.
4920 (Fread_file_name): Use it to pass `dir' to the completion functions.
4921
a32b2382
CY
49222008-04-20 Chong Yidong <cyd@stupidchicken.com>
4923
2a2e8de7 4924 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 4925
6c8b4f07
SM
49262008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
4927
ece5f847
SM
4928 * keyboard.c (Vpre_help_message): Remove.
4929 (show_help_echo): Remove default C code.
4930
6c8b4f07
SM
4931 * dired.c (directory_files_internal, file_name_completion):
4932 Only call ENCODE_FILE if the string is indeed decoded.
4933
73d798d5
SM
49342008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4935
4936 * Makefile.in (TOOLKIT_DEFINES): Remove.
4937 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
4938
d8d30dff 49392008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
4940
4941 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
4942 (mactoolbox.o): New target.
4943
4944 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
4945 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
4946
4947 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
4948 Use mac_set_frame_window_background instead of XSetWindowBackground.
4949 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
4950 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
4951 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
4952 instead of SetWindowTitleWithCFString.
4953 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
4954 Move function to mactoolbox.c.
4955 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
4956 Use mac_set_window_modified instead of SetWindowModified.
4957 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
4958 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
4959 (Fx_focus_frame): Use mac_front_non_floating_window instead of
4960 FrontNonFloatingWindow. Use mac_activate_window instead of
4961 ActivateWindow. Use mac_active_non_floating_window instead of
4962 ActiveNonFloatingWindow.
4963 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
4964 Use mac_show_hourglass and mac_hide_hourglass.
4965 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
4966 instead of GetGlobalMouse.
4967 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
4968 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
4969 Use mac_bring_window_to_front instead of BringToFront.
4970 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
4971 mactoolbox.c.
4972 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
4973 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
4974 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
4975 mactoolbox.c.
4976
4977 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
4978 (XtPointer): Move typedef from macmenu.c.
4979 (enum button_type): Move enum from macmenu.c.
4980 (widget_value): Move typedef from macmenu.c.
4981 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
4982 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4983 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4984 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4985 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4986 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4987 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4988 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
4989 (Selection): Move typedef from macselect.c.
4990 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
4991 macterm.c.
4992 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
4993 (mac_is_window_collapsed, mac_bring_window_to_front)
4994 (mac_send_window_behind, mac_hide_window, mac_show_window)
4995 (mac_collapse_window, mac_front_non_floating_window)
4996 (mac_active_non_floating_window, mac_activate_window)
4997 (mac_move_window_structure, mac_move_window, mac_size_window)
4998 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
4999
5000 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
5001 (enum mac_menu_kind): Move enum to mactoolbox.c.
5002 (min_menu_id): Move variable to mactoolbox.c.
5003 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
5004 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
5005 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
5006 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
5007 [TARGET_API_MAC_CARBON]: Likewise.
5008 (XtPointer): Move typedef to macgui.h.
5009 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
5010 (widget_value): Move typedef to macgui.h.
5011 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
5012 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
5013 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
5014 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
5015 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
5016 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
5017 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
5018 (popup_activated_flag): Make variable non-static.
5019 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
5020 (add_menu_item, fill_menu, dispose_menus):
5021 Move functions to mactoolbox.c.
5022 (restore_show_help_function, menu_target_item_handler)
5023 (install_menu_target_item_handler, mac_handle_dialog_event)
5024 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
5025 [TARGET_API_MAC_CARBON]: Likewise.
5026 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
5027 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
5028 (find_and_call_menu_selection, name_is_separator): Make function
5029 non-static.
5030 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
5031 to mactoolbox.c.
5032 (set_frame_menubar): Don't call install_menu_quit_handler.
5033 (menu_item_selection): New variable.
5034 (mac_menu_show): Use create_and_show_popup_menu.
5035 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
5036 selection but set variable menu_item_selection. All uses changed.
5037 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
5038 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 5039
d02fe47d
MB
5040 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
5041 (Selection): Move typedef to macgui.h.
5042 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
5043 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
5044 Make variables non-static.
5045 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
5046 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
5047 Make functions non-static.
5048 (Vmac_service_selection) [MAC_OSX]: Likewise.
5049 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
5050 (mac_valid_selection_target_p, mac_clear_selection)
5051 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
5052 (mac_put_selection_value, mac_selection_has_target_p)
5053 (mac_get_selection_value, mac_get_selection_target_list)
5054 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
5055 Move functions to mactoolbox.c.
5056 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
5057 Likewise.
5058 (copy_scrap_flavor_data, mac_handle_service_event)
5059 (install_service_handler) [MAC_OSX]: Likewise.
5060 (syms_of_macselect) <Vmac_dnd_known_types>:
5061 Use mac_dnd_default_known_types.
463f55ee 5062
d02fe47d
MB
5063 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
5064 Move to mactoolbox.c.
5065 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
5066 (Fx_selection_owner_p): Add EXFUN.
5067 (install_window_handler, remove_window_handler, XSetWindowBackground):
5068 Remove externs.
5069 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
5070 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
5071 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
5072 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
5073 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
5074 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
5075 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
5076 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
5077 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
5078 (create_and_show_popup_menu, mac_get_selection_from_symbol)
5079 (mac_valid_selection_target_p, mac_clear_selection)
5080 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
5081 (mac_put_selection_value, mac_selection_has_target_p)
5082 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
5083 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
5084 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
5085 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
5086 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
5087 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
5088 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
5089 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
5090 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 5091
d02fe47d 5092 * mactoolbox.c: New file.
af253914 5093
d8d30dff 50942008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 5095
d02fe47d 5096 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 5097
8ee085a4
SM
50982008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5099
73d798d5
SM
5100 * character.c (Fmultibyte_char_to_unibyte):
5101 Return latin1 chars unchanged.
5556875b 5102
8ee085a4
SM
5103 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
5104 relocated if it points to `name'.
5105
5dff5999
KH
51062008-04-17 Kenichi Handa <handa@m17n.org>
5107
5108 * data.c (Faset): Allow setting a multibyte character in an
5109 ASCII-only unibyte string.
5110
5111 * lisp.h (STRING_SET_MULTIBYTE): New macro.
5112
a51f4969
SM
51132008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
5114
5115 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
5116 done in config.h.
5117
add553ac
JB
51182008-04-16 Juanma Barranquero <lekktu@gmail.com>
5119
5120 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
5121 (Fchar_direction): Add usage in the docstring.
5122
8ad7b280
CY
51232008-04-15 Chong Yidong <cyd@stupidchicken.com>
5124
5125 * keyboard.c (read_key_sequence): Remove always-true checks.
5126
e157d7ba
JR
51272008-04-14 Jason Rumney <jasonr@gnu.org>
5128
5129 * w32font.c (w32font_open_internal): Set max_bounds.descent in
5130 compatibility struct, for better underline positioning.
5131
9ec3aaef 51322008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
5133
5134 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
5135 string.
5136
36c08864
DN
51372008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5138
5139 * m/hp800.h (XUINT, XSET): Remove.
5140
f5acc071
JB
51412008-04-12 Juanma Barranquero <lekktu@gmail.com>
5142
5143 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
5144 previous change.
5145
5b5a2ea1
SM
51462008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5147
5148 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
5149 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
5150
492d9fd6
SM
51512008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5152
5153 * keymap.h (map_keymap_canonical): Declare.
5154 * xmenu.c (single_keymap_panes): Use it.
5155
dd60787c
GM
51562008-04-11 Glenn Morris <rgm@gnu.org>
5157
5158 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
5159 set the target's value to that of the alias.
5160
c23b5410
SM
51612008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5162
5163 * term.c (set_tty_color_mode): Left over typo.
5164
e89b536d
MA
51652008-04-10 Michael Albinus <michael.albinus@gmx.de>
5166
5167 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 5168 only after check for file name handler functions. Signal, when
e89b536d
MA
5169 native functionality is not supported.
5170 (syms_of_fileio): Declare it unconditionally.
5171
40a339c8
JR
51722008-04-10 Jason Rumney <jasonr@gnu.org>
5173
31403b24
JR
5174 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
5175 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
5176
40a339c8
JR
5177 * w32.c (logon_network_drive): Also logon to remote drives that
5178 are mapped to drive letters.
5179
96a7394f
GM
51802008-04-10 Glenn Morris <rgm@gnu.org>
5181
5182 * xdisp.c (truncate-partial-width-windows): Doc fix.
5183
34b67b0f
SM
51842008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
5185
5186 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
5187 Move functions to minibuffer.el.
5188 (syms_of_fileio): Don't declare them.
5189
c025fb0a
SM
51902008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5191
ba5ff07b
SM
5192 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
5193 (syms_of_minibuf): Remove its initialization.
5194
c025fb0a
SM
5195 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
5196
7a6a86ad
JB
51972008-04-09 Juanma Barranquero <lekktu@gmail.com>
5198
5199 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
5200
cf907d69
JR
52012008-04-09 Jason Rumney <jasonr@gnu.org>
5202
3dc94c30
JR
5203 * makefile.w32-in (distclean): Delete makefile too.
5204 (maintainer-clean): New target.
5205
8d28646b
JR
5206 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
5207
cf907d69
JR
5208 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
5209 for new font backend and composite cases.
5210
ef5eb925
JD
52112008-04-09 Jan Djärv <jan.h.d@swipnet.se>
5212
5213 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
5214 Most of the code moved to run_timers.
5215 (do_pending_atimers): Call run_timers.
5216 (run_timers): New function.
5217
cf907d69
JR
5218 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
5219 run atimers.
ef5eb925
JD
5220
5221 * process.c (wait_reading_process_output): The same as above.
5222
9b2cd403
SM
52232008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5224
32bae13c
SM
5225 * minibuf.c (last_exact_completion): Remove variable.
5226 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
5227 (complete_and_exit_1, complete_and_exit_2)
5228 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
5229 (Fdisplay_completion_list, display_completion_list_1)
5230 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
5231 (Fexit_minibuffer, Fminibuffer_message): Move functions to
5232 minibuffer.el.
32bae13c
SM
5233 (syms_of_minibuf): Remove corresponding initializations.
5234
5c4cc82a
SM
5235 * keyboard.c (Qdeactivate_mark): New var.
5236 (command_loop_1): Use it to call `deactivate-mark'.
5237 (syms_of_keyboard): Initialize it.
5238
9b2cd403
SM
5239 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
5240 to another frame.
5241 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
5242 Don't call set_tty_color_mode.
5243 (store_frame_param): Reset previous_frame rather than call
5244 set_tty_color_mode.
5245 * term.c (set_tty_color_mode): Rewrite.
5246 * dispextern.h (set_tty_color_mode): New type.
5247 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
5248
84cb7b45
SM
52492008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
5250
5251 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
5252 for generic chars, which do not exist any more in emacs-unicode.
5253
3ed051d4
MA
52542008-04-08 Michael Albinus <michael.albinus@gmx.de>
5255
5256 * coding.c (detect_coding_emacs_mule)
5257 (Ffind_operation_coding_system): Fix typo.
5258
58c3ea42
JR
52592008-04-08 Jason Rumney <jasonr@gnu.org>
5260
3bf8d230
JR
5261 * w32uniscribe.c (SNAME): Extract only symbol name.
5262
56a70cca
JR
5263 * w32font.h (struct w32_metric_cache): New struct.
5264 (w32font_info): Use it.
5265 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
5266 (CACHE_BLOCKSIZE): New constants.
3ed051d4 5267
58c3ea42
JR
5268 * w32font.c (Qja, Qko, Qzh): New symbols.
5269 (syms_of_w32font): Initialise them.
5270 (font_matches_spec): Use them to filter by language.
5271 (recompute_cached_metrics): Remove function.
5272 (compute_metrics, clear_cached_metrics): New functions.
5273 (w32font_encode_char): Use them to manage metric cache.
5274 (w32font_text_extents): Cache metrics for all glyphs on demand.
5275 Delay converting glyph indices to WORD until needed.
5276 (w32font_open_internal): Initialize metric cache to empty.
5277 (registry_to_w32_charset): Charset should always be a symbol.
5278 (fill_in_logfont, list_all_matching_fonts): Family should
5279 always be a symbol.
5280
0ce24b2d
JR
52812008-04-06 Jason Rumney <jasonr@gnu.org>
5282
5283 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
5284 Give up if glyph indices not supported. Use uniscribe obtained
5285 ABC widths for individual metrics. Map glyph clusters back to
5286 characters using fClusterStart flag. Return number of glyphs
5287 produced, not chars processed.
b7655e0c 5288 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 5289
5bc6ddff 52902008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 5291
fbf57abb
JB
5292 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
5293 Use SetMenuItemHierarchicalMenu.
56613f06 5294
5bc6ddff 52952008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 5296
5bc6ddff
MB
5297 * image.c (pbm_load): Allow color values up to 65535.
5298 Throw an error if max_color_idx is outside the supported range.
5299 Report an error when image size is invalid.
5300 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 5301
5bc6ddff 53022008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 5303
5bc6ddff
MB
5304 * w32.c (readdir): If FindFirstFile/FindNextFile return in
5305 cFileName a file name that includes `?' characters, use the 8+3
5306 alias in cAlternateFileName instead.
5ed6ba5b 5307
5bc6ddff 53082008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 5309
5bc6ddff
MB
5310 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
5311 append "CCL: Quitted" when the CCL program is quitted.
5312 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 5313
5bc6ddff 5314 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 5315
c36e15db
CY
53162008-04-05 Chong Yidong <cyd@stupidchicken.com>
5317
9605d567
CY
5318 * search.c (compile_pattern_1): Treat non-nil and non-string of
5319 search-spaces-regexp as nil.
5320
c36e15db
CY
5321 * minibuf.c (Fassoc_string): Tweak docstring.
5322
40beb147
EZ
53232008-04-05 Eli Zaretskii <eliz@gnu.org>
5324
5325 * dired.c (Ffile_attributes): Support inode numbers wider than 32
5326 bits. Remove ugly WINDOWSNT-specific kludge introduced on
5327 2008-03-14 to force inode be positive.
5328
5329 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
5330 _S_* ones, since we now use our own sys/stat.h.
5331 (stat, fstat): Don't mangle the inode number.
aa08d1ff 5332 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 5333
4591d6cb
SM
53342008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
5335
d4417eb0
SM
5336 * frame.h (struct frame): Give one more bit to `visible' since we use
5337 values larger than 1 to indicate obscured frames on ttys.
5338
00f7c5ed
SM
5339 * keymap.c (Qkeymap_canonicalize): New var.
5340 (Fmap_keymap_internal): New fun.
5341 (describe_map): Use keymap-canonicalize.
5342
4591d6cb
SM
5343 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
5344 (Fundo_boundary): Set them.
5345 (syms_of_undo): Initialize them.
5346 (record_point): Use them instead of last_point_position*.
5347 (last_undo_buffer): Change type.
5348
3187540e
JR
53492008-04-04 Jason Rumney <jasonr@gnu.org>
5350
0ce24b2d
JR
5351 * w32font.c (w32font_text_extents): Use font's ascent and descent.
5352 (recompute_cached_metrics): Don't set ascent and descent per char.
5353
3187540e 5354 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 5355 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 5356 Rearrange loop for counting features.
3187540e 5357
f1a6b216
SM
53582008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5359
5360 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
5361 buffer with byte-size of source buffer.
5362
1d8dcf63
CY
53632008-04-03 Chong Yidong <cyd@stupidchicken.com>
5364
5365 * callint.c (Fcall_interactively): Handle temporary region even
5366 when shift-select-mode is off.
5367
6b8aa22a
JR
53682008-04-03 Jason Rumney <jasonr@gnu.org>
5369
5370 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
5371
2f3cbb32
KH
53722008-04-03 Kenichi Handa <handa@m17n.org>
5373
5374 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
5375 (CATEGORY_MASK_UTF_16): Likewise.
5376 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
5377 binary file.
5378 (detect_coding): Add null-byte detection for a binary file.
5379 (detect_coding_system): Likewise.
5380
43f4f91c
JR
53812008-04-03 Jason Rumney <jasonr@gnu.org>
5382
0c1b4ae2
JR
5383 * w32uniscribe.c: New file.
5384
5385 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
5386
5387 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
5388
5389 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
5390 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
5391 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
5392 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
5393 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
5394 (Qphonetic): New symbols.
5395 (syms_of_w32font): Initialize them.
5396 (font_supported_scripts): Use them.
5397 (w32font_list_family): List all charsets.
5398 (w32font_text_extents, recompute_cached_metrics): Fix metric
5399 calculations.
5400 (w32_enumfont_pattern_entity): Make full_type a DWORD.
5401 Give opentype fonts their own format.
5402 (font_matches_spec): New arguments backend and logfont.
5403 Handle :otf spec for uniscribe backend.
5404 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
5405 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 5406
0c1b4ae2
JR
5407 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
5408 font backend.
5409 (globals_of_w32fns): Initialize uniscribe font backend.
5410
fbf57abb 5411 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
5412 dependencies.
5413 (w32uniscribe.$(O)): New file to build.
5414 (FONT_OBJ): Include w32uniscribe.$(O).
5415 (LIBS): Add uniscribe libraries.
5416
43f4f91c
JR
5417 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
5418
75043a7d
CY
54192008-04-02 Chong Yidong <cyd@stupidchicken.com>
5420
5421 * callint.c (Vshift_select_mode): New var.
5422 (Finteractive): Document new ^ spec.
5423 (Fcall_interactively): Call handle-shift-selection if the ^ spec
5424 is present.
5425
5426 * keyboard.c (Vthis_command_keys_shift_translated): New var.
5427 (command_loop_1): Avoid running the direct display versions of
5428 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
5429 (read_key_sequence): Set Vthis_command_keys_shift_translated if
5430 shift-translation takes place.
5431
5432 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
5433 avoid clobbering by define-minor-mode.
5434
5435 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
5436 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
5437
5438 * syntax.c (Fforward_word): Add ^ interactive spec.
5439
5440 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
5441 (Fscroll_right): Add ^ interactive spec.
5442
b2b7f29e
SM
54432008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
5444
a432c0a6
SM
5445 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
5446
994b75e0
SM
5447 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
5448
b2b7f29e
SM
5449 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
5450
e99c7806
JL
54512008-03-31 Juri Linkov <juri@jurta.org>
5452
5453 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
5454
1c9c1270
JD
54552008-03-30 Jan Djärv <jan.h.d@swipnet.se>
5456
5457 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 5458 (xg_resize_outer_widget): Remove.
1c9c1270
JD
5459 (x_wm_size_hint_off): Fix indentation.
5460 (xg_frame_set_char_size): Call flush_and_sync after
5461 gtk_window_resize.
5462 (x_wm_set_size_hint): Pass NULL as geometry window to
5463 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
5464 Add menu bar and tool bar height to base height.
5465 (xg_update_frame_menubar, free_frame_menubar)
5466 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
5467 (update_frame_tool_bar, free_frame_tool_bar):
5468 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 5469
90b3fc84
MA
54702008-03-30 Michael Albinus <michael.albinus@gmx.de>
5471
5472 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
5473 (Fdbus_call_method): New parameter TIMEOUT.
5474 (dbus-send-signal): Optimize UNGCPRO call.
5475
7ae6d1d1
JL
54762008-03-29 Juri Linkov <juri@jurta.org>
5477
5478 * window.c (Fdisplay_buffer): Move call to
5479 Vsplit_window_preferred_function out of conditions that check
5480 if window is eligible for vertical splitting.
5481 When Vsplit_window_preferred_function is non-nil, call it and use
5482 its non-nil return value as window. Otherwise, continue doing
5483 vertical splitting using Fsplit_window with arg horflag=nil.
5484 (syms_of_window) <Vsplit_window_preferred_function>: Change the
5485 default value from `split-window' to nil.
5486
f03f8f2c
JL
54872008-03-29 Juri Linkov <juri@jurta.org>
5488
5489 * callint.c (Fcall_interactively): Revert 2008-03-16 change
5490 for interactive code letters 'b' and 'B'.
5491
6d557778
EZ
54922008-03-29 Eli Zaretskii <eliz@gnu.org>
5493
5494 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
5495 multibyte string.
5496
58555d81
SM
54972008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
5498
5499 * keyboard.c (pending_funcalls): New var.
5500 (timer_check): Run it.
5501 (syms_of_keyboard): Initialize it.
5502 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
5503 (Vdelete_terminal_functions): New vars.
5504 (syms_of_terminal): Initialize them.
5505 (Fdelete_terminal): Run delete-terminal-functions.
5506 * xdisp.c (safe_eval): Rewrite.
5507 (safe_call2): New fun.
5508 * frame.c (Qdelete_frame_functions): New var.
5509 (syms_of_frame): Initialize it.
5510 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
5511 * lisp.h (safe_call2, pending_funcalls): Declare.
5512
4c92f429
AS
55132008-03-28 Andreas Schwab <schwab@suse.de>
5514
5515 * indent.c (Fmove_to_column): Move declaration before statements.
5516
a1567c45
SM
55172008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
5518
2806a183
SM
5519 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
5520 (struct frame): Use bit fields for boolean vars.
5521
eef60308
SM
5522 * process.c (server_accept_connection): Simplify naming.
5523 (emacs_get_tty_pgrp): Use SDATA.
5524
a1567c45
SM
5525 * coding.c (decode_coding_object): Fix last change.
5526
30076589
JR
55272008-03-27 Jason Rumney <jasonr@gnu.org>
5528
5529 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
5530
880820fe
KH
55312008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
5532
5533 * charset.c (Fdefine_charset_internal): Change the way of
5534 registering charsets in Vcharset_order_list.
5535 (syms_of_charset): Make the charset `eight-bit' supplementary.
5536
3cf8cdfb
CY
55372008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
5538
5539 * regex.c (EXTEND_BUFFER): Change order of pointer addition
5540 operations, to avoid having the difference between pointers
5541 overflow.
5542
ef6f5c0e
SM
55432008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5544
80e3db56
SM
5545 * indent.c (check_display_width): New fun.
5546 (scan_for_column): Use it.
5547
c397dc7a
SM
5548 * data.c (syms_of_data): Mark most-positive-fixnum and
5549 most-negative-fixnum as constants.
5550
bf6b4d58
SM
5551 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
5552
ef6f5c0e
SM
5553 * indent.c (scan_for_column): Extract from current_column_1.
5554 Merge with the same code from Fmove_to_column.
5555 (current_column_1, Fmove_to_column): Use it.
5556
72d5003d
SM
55572008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
5558
12270607
SM
5559 * keymap.c (map_keymap_internal): New fun.
5560 (map_keymap): Use it.
5561 (Fmap_keymap_internal): New fun.
5562 (Fmap_keymap): Remove left-out test from before make_save_value.
5563
a10cca6c
SM
5564 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
5565
d7b10f4c
SM
5566 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
5567 Use XCAR/XCDR.
5568
5431bd6a
SM
5569 * process.h (struct Lisp_Process): Remove filter_multibyte.
5570 * process.c (QCfilter_multibyte): Remove.
5571 (setup_process_coding_systems): Don't use filter_multibyte.
5572 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
5573 (read_process_output): Don't adjust multibyteness to filter_multibyte.
5574 (Fset_process_filter_multibyte): Change the coding-system to
5575 approximate the previous behavior.
5576 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
5577 coding-system.
5578
72d5003d
SM
5579 * coding.c (decode_coding_object): When not decoding into a buffer,
5580 obey the coding system's preference of (uni|multi)byte.
5581
438eba3c
SM
55822008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5583
5584 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
5585 every char is changed and has a different byte-length.
5586 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
5587 Fix int -> EMACS_INT.
5588
9ec3aaef 55892008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 5590
438eba3c 5591 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
5592 strings. Check for NULL `interface' or `member'.
5593
b07103dc
EZ
55942008-03-22 Eli Zaretskii <eliz@gnu.org>
5595
5596 * w32.c (readdir): If FindFirstFile/FindNextFile return in
5597 cFileName a file name that includes `?' characters, use the 8+3
5598 alias in cAlternateFileName instead.
5599
5371d722
SM
56002008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
5601
5602 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
5603
6ba7f443
SM
56042008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5605
5606 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
5607 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
5608 work on current_buffer only instead (that was already the case
5609 for some of the code anyway).
5610 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
5611 (temp_set_point, temp_set_point_both): Use EMACS_INT.
5612 (SET_PT, SET_PT_BOTH): Adjust.
5613 * intervals.h (set_point, temp_set_point, set_point_both)
5614 (temp_set_point_both): Remove redundant declarations.
5615
bf1c0f27
SM
56162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5617
5618 * fileio.c (Finsert_file_contents):
5619 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
5620 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
5621 when buffer != current_buffer anyway.
5622
acab783e
AS
56232008-03-20 Andreas Schwab <schwab@suse.de>
5624
5625 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
5626 as default.
5627
d148e14d
JR
56282008-03-19 Jason Rumney <jasonr@gnu.org>
5629
5630 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
5631 (syms_of_w32fns): Initialize them.
5632 (HOURGLASS_ID): New constant.
5633 (x_window_to_frame): Don't check hourglass_window.
5634 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
5635 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
5636 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
5637 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
5638 Only change the cursor if hourglass is not active.
5639 (Fx_create_frame): Initialize frame's current_cursor.
5640 (hourglass_atimer): Remove.
5641 (hourglass_started): New function.
5642 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
5643 (show_hourglass): Adapt to w32, changing argument to frame.
5644
5645 * w32term.h (struct w32_output): Remove hourglass_window.
5646 Add current_cursor.
5647
5648 * eval.c (call_debugger, Fsignal):
5649 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
5650 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
5651 (Fexecute_extended_command, cancel_hourglass_unwind):
5652 * minibuf.c (read_minibuf):
5653 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 5654
a5c54077
JB
56552008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
5656
5657 * window.c (run_funs): New fun.
5658 (run_window_configuration_change_hook): Use it to run the buffer-local
5659 and the global part of the hook.
5660
5661 * xdisp.c (format_mode_line_unwind_data): Add window argument.
5662 (unwind_format_mode_line): Restore selected window.
5663 (x_consider_frame_title, Fformat_mode_line): Set selected window.
5664
f9f3238f
SM
56652008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5666
253c3c82
SM
5667 * editfns.c (Fchar_equal): Check they are valid characters.
5668
f9f3238f
SM
5669 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
5670
065a118d
AS
56712008-03-17 Andreas Schwab <schwab@suse.de>
5672
0b8be006
AS
5673 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
5674 against a charset.
5675
065a118d
AS
5676 * lisp.h (Fbuffer_list): Declare.
5677
880820fe 56782008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
5679
5680 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
5681 handlebox_widget is != 0.
5682
6206d6c2
JL
56832008-03-16 Juri Linkov <juri@jurta.org>
5684
5685 * callint.c (Fcall_interactively): For interactive code letters
5686 'b' and 'B' put the buffer list into the list of default "future"
5687 values of the minibuffer.
5688
f5020181
AS
56892008-03-16 Andreas Schwab <schwab@suse.de>
5690
a864f6d6
AS
5691 * keyboard.c (read_key_sequence): Fix downcasing of letters with
5692 modifiers.
5693
f5020181
AS
5694 * regex.c (re_match_2_internal): Correct matching of a charset
5695 against latin-1 characters.
5696
03f244e2
KH
56972008-03-16 Kenichi Handa <handa@m17n.org>
5698
5699 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
5700 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
5701 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
5702 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
5703 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
5704 CHAR_STRING_ADVANCE.
5705 (produce_chars): Fix for the case that the source and the
5706 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
5707 instead of CHAR_STRING_ADVANCE.
5708 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
5709 STRING_CHAR_ADVANCE.
5710
0e2501ed
AS
57112008-03-15 Andreas Schwab <schwab@suse.de>
5712
5713 * regex.c (re_match_2_internal): Correct matching of eight bit
5714 characters in unibyte strings.
5715
7723e095
MR
57162008-03-15 Martin Rudalics <rudalics@gmx.at>
5717
5718 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
5719 at end of range when it coincides with the end of the buffer.
5720
f507f365
EZ
57212008-03-14 Eli Zaretskii <eliz@gnu.org>
5722
294f1153
EZ
5723 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
5724
f507f365
EZ
5725 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
5726
64f0809d
JR
57272008-03-14 Jason Rumney <jasonr@gnu.org>
5728
956ae531
JR
5729 * editfns.c (initial_tz): New variable.
5730 (syms_of_editfns): Initialize it.
5731 (Fset_time_zone_rule): Set it when first called.
5732 Use it when TZSTRING is nil.
5733
64f0809d
JR
5734 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
5735 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
5736 (monitor_from_point_fn, get_monitor_info_fn): New globals.
5737 (globals_of_w32fns): Initialize them.
5738 (compute_tip_xy): Use them to position tooltips.
5739
21a4ff8e
GM
57402008-03-14 Glenn Morris <rgm@gnu.org>
5741
5742 * emacs.c (main): Revert previous change.
5743 (standard_args): Revert -internal-script back to -scriptload,
5744 and remove the long-option form.
5745
a09a5b5b
GM
57462008-03-13 Glenn Morris <rgm@gnu.org>
5747
5748 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
5749 Remove option -enable-font-backend.
5750
1c55ebd1
SM
57512008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5752
5753 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
5754
880820fe 57552008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
5756
5757 * xterm.c (x_connection_closed): For GTK: If this is the last
5758 terminal just exit without closing the display.
5759
7145be81
JR
57602008-03-11 Jason Rumney <jasonr@gnu.org>
5761
5762 * w32font.c (w32font_full_name): Use floor to round.
5763
e6201af3 57642008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
5765
5766 * sound.c (alsa_configure): Declare vol at beginning of block.
5767
e6201af3 5768 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 5769
390b81fa 57702008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 5771
56388398
MB
5772 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
5773 size of resulting string.
af0ad939 5774
390b81fa 57752008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 5776
56388398 5777 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 5778
390b81fa 57792008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 5780
56388398
MB
5781 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
5782 Don't pretend as if characters with display property haven't been
5783 consumed for string-replacing-string case.
acd37560 5784
223ed6db
KS
57852008-03-08 Kim F. Storm <storm@cua.dk>
5786
5787 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
5788 (get_next_display_element, next_element_from_string)
5789 (next_element_from_ellipsis, next_element_from_buffer): Use it.
5790
28545f7c
AS
57912008-03-08 Andreas Schwab <schwab@suse.de>
5792
5793 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
5794
c960bff8
JR
57952008-03-06 Jason Rumney <jasonr@gnu.org>
5796
290afd83
JB
5797 * w32font.c (w32_registry): Take font_type argument. Use ANSI
5798 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
5799 font_type is truetype.
5800 (w32font_coverage_ok): New function.
5801 (add_font_entity_to_list): Use it to filter unsuitable fonts.
5802
87b8ce92
KH
58032008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
5804
5805 * lread.c (Fread_char): Resolve modifiers.
5806 (Fread_char_exclusive): Likewise.
5807
5808 * character.c (char_resolve_modifier_mask): New function.
5809 (char_string): Use char_resolve_modifier_mask.
5810 (Fchar_resolve_modifiers): New function.
5811 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
5812 function.
5813
cefd56f6
JR
58142008-03-04 Jason Rumney <jasonr@gnu.org>
5815
5816 * makefile.w32-in: Always include w32font.c in the build.
5817 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
5818
03bd3c1f
AS
58192008-03-04 Andreas Schwab <schwab@suse.de>
5820
5821 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
5822 (versionclean): Likewise.
5823
6f69e89b
JB
58242008-03-04 Juanma Barranquero <lekktu@gmail.com>
5825
5826 * .cvsignore: Add oo.
5827
f4a3cc44
AS
58282008-03-03 Andreas Schwab <schwab@suse.de>
5829
5830 * coding.c (decode_coding_object): Inhibit gap shrinking while
5831 decoding in place.
5832
73f838ad
DN
58332008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
5834
5835 * w32term.c: Remove unused include "gnu.h".
6f69e89b 5836 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
5837
5838 * gnu.h: Rename to ...
5839 * emacs-icon.h: ... this.
5840 * xterm.c: Use emacs-icon.h instead of gnu.h.
5841 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
5842
ce9c1f06
JB
58432008-03-03 Juanma Barranquero <lekktu@gmail.com>
5844
5845 * w32font.c: Include math.h.
5846
34fd2d28
JR
58472008-03-03 Jason Rumney <jasonr@gnu.org>
5848
54efdcd1
JR
5849 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
5850 Compute options separately.
5851 (w32font_open_internal): Set glyph_idx before caching metrics.
5852
ce9c1f06
JB
5853 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
5854 Define if system headers don't.
5855 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
5856 (w32font_encode_char): Don't declare here.
5857
5858 * w32font.c (Quniscribe, QCformat): New symbols.
5859 (syms_of_w32font): Define them.
5860 (w32font_has_char): Indicate uncertainty.
ce9c1f06 5861 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 5862 (recompute_cached_metrics): New function.
ce9c1f06
JB
5863 (w32font_open_internal): Use it. Set font to use glyph points
5864 initially. Set format based on type of font.
34fd2d28 5865 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
5866 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
5867 on it. Set format based on information available here.
34fd2d28
JR
5868 (add_font_entity_to_list): Identify backend based on opentype_only.
5869
14daee73
AS
58702008-03-02 Andreas Schwab <schwab@suse.de>
5871
f907fb2e
AS
5872 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
5873
ce9c1f06
JB
5874 * coding.c (decode_coding_big5, produce_chars):
5875 Fix typos in last change.
14daee73 5876
c9cc6462
DN
58772008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
5878
5879 * gnu.h: New icon.
5880
119852e7
KH
58812008-03-02 Kenichi Handa <handa@m17n.org>
5882
5883 * coding.c (decode_coding_utf_8): When eol-type of CODING is
5884 `dos', don't decode '\r' if that is the last in the source.
5885 (decode_coding_utf_16, decode_coding_emacs_mule)
5886 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5887 (decode_coding_raw_text, decode_coding_charset): Likewise.
5888 (produce_chars): Don't decode EOL here. Use EMACS_INT.
5889
a823468b
JR
58902008-03-01 Jason Rumney <jasonr@gnu.org>
5891
5892 * w32font.c (w32font_full_name): Report point size for scalable fonts.
5893
4ddc7e30
KS
58942008-03-01 Kim F. Storm <storm@cua.dk>
5895
5896 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
5897
67997c79
JR
58982008-03-01 Jason Rumney <jasonr@gnu.org>
5899
5900 * w32font.c (w32font_full_name): New function.
5901 (w32font_open_internal): Use it.
5902
3f4e9c35
KS
59032008-03-01 Kim F. Storm <storm@cua.dk>
5904
5905 * dispnew.c (line_draw_cost): Fix invalid glyph check.
5906
f3b9e479
JR
59072008-03-01 Jason Rumney <jasonr@gnu.org>
5908
5909 * font.c (font_unparse_fcname): Increase len when style is a symbol.
5910
880820fe 59112008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
5912
5913 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
5914 xg_frame_resized when the event is for the edit widget.
5915
5916 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
5917
5918 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
5919 set_char_size.
5920 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
5921 operations on widgets here. Just set frame size if needed.
5922 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
5923 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
5924 (x_wm_set_size_hint): Set size hints on the edit widget only, not
5925 the whole frame.
5926 (xg_create_tool_bar): Move attachement of the tool bar to
5927 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
5928 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
5929
6c8acaa1
JR
59302008-03-01 Jason Rumney <jasonr@gnu.org>
5931
5932 * w32fns.c (w32_msg_pump): Disable debug code.
5933
51fb064b 59342008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 5935
51fb064b 5936 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 5937
60221a33
CY
59382008-02-29 Chong Yidong <cyd@stupidchicken.com>
5939
5940 * xdisp.c (next_overlay_string): Don't set
5941 overlay_strings_at_end_processed_p if we're currently reading from
5942 a display string.
5943
10cbc34f
SM
59442008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
5945
5946 * xdisp.c (get_overlay_strings_1): Fix typo.
5947
73c0054e
CY
59482008-02-29 Chong Yidong <cyd@stupidchicken.com>
5949
5950 * xdisp.c (get_overlay_strings_1): Add missing argument type.
5951
ec1c4354
KH
59522008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
5953
55082642
KH
5954 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
5955
ec1c4354
KH
5956 * xdisp.c (display_mode_element): Cancel the previous change.
5957 (decode_mode_spec): Likewise.
ee548a94
KH
5958 (handle_auto_composed_prop): Don't make composition if it->string
5959 is a string.
ec1c4354 5960
b6d898a2
KS
59612008-02-27 Kim F. Storm <storm@cua.dk>
5962
5963 * lisp.h (GLYPH): Change type from int to struct with separate char
5964 and face_id members.
5965 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
5966 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
5967 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
5968 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
5969 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
5970 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
5971 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
5972 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
5973 handle new Lisp glyph code encoding, either an integer or a cons.
5974
5975 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
5976 (GLYPH_ALIAS): Delete.
5977 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
5978 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
5979 (GLYPH_FROM_CHAR): Replace macro by ...
5980 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
5981
5982 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
5983 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
5984 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
5985 (GLYPH_INVALID_P): New macro.
5986 (spec_glyph_lookup_face): Update prototype.
5987
5988 * dispnew.c (line_draw_cost): Adapt to new glyph type.
5989 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
5990 new glyph code encoding.
5991 (spec_glyph_lookup_face): No return value; update passed glyph instead.
5992 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
5993
5994 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5995 Adapt to new glyph type and new glyph code encoding.
5996
5997 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
5998
5999 * indent.c (current_column, current_column_1, Fmove_to_column)
6000 (compute_motion): Adapt to new glyph code encoding.
6001
6002 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
6003
af2080a2
CY
60042008-02-27 Chong Yidong <cyd@stupidchicken.com>
6005
6006 * process.c (wait_reading_process_output): Check for window
6007 changes caused by timers.
880820fe 6008 Suggested by Johan Bockgård.
af2080a2 6009
253ed25e
GM
60102008-02-27 Glenn Morris <rgm@gnu.org>
6011
6012 * emacs.c (USAGE1): Add `--disable-font-backend'.
6013
18a9f8d9
SM
60142008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
6015
6016 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
6017 is made to the buffer.
6018
0f8b27ea
SM
60192008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
6020
6021 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
6022 (face_at_string_position):
6023 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6024 (face_at_string_position):
6025 * xdisp.c (display_string, next_overlay_change):
6026 * buffer.h (overlays_at):
6027 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
6028 Update callers.
6029
4e7c53ca
CY
60302008-02-26 Chong Yidong <cyd@stupidchicken.com>
6031
6032 * editfns.c (Fformat): Doc fix.
6033
51c01100
JB
60342008-02-26 Juanma Barranquero <lekktu@gmail.com>
6035
6036 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
6037 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
6038 (Ffont_otf_alternates, Fquery_font): Doc fixes.
6039
13cda5f9
SM
60402008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6041
6042 * buffer.c (Fbuffer_swap_text): New function.
6043 (syms_of_buffer): Defsubr it.
6044
8018d430
CY
60452008-02-25 Chong Yidong <cyd@stupidchicken.com>
6046
6047 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
6048
9bde1a21
JR
60492008-02-25 Jason Rumney <jasonr@gnu.org>
6050
6051 * w32font.c (w32font_draw): Draw one character at a time when padding.
6052
eeca6f6f
SM
60532008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6054
6055 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
6056 Handle a nil arg. Use run_window_configuration_change_hook.
6057 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
6058 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
6059 Use run_window_configuration_change_hook.
6060
ec1c4354
KH
60612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
6062
6063 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
6064 1-pixel width.
6065
ae185452
KH
60662008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
6067
6068 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
6069 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
6070 if the glyph in the font is zero pixel with.
6071
6072 * dispextern.h (struct glyph_string): New member padding_p.
6073
6074 * w32font.c (w32font_draw): Pay attention to s->padding_p.
6075
6076 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
6077
6078 * xfont.c (xfont_draw): Pay attention to s->padding_p.
6079
6080 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
6081
eeca6f6f 6082 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 6083
ffe832ea 60842008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 6085
ffe832ea 6086 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 6087
06045130
SM
60882008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
6089
6090 Allow fine-grained image-cache flushing.
6091 * dispextern.h (struct image): Add `dependencies' field.
6092 (clear_image_caches): Change arg to Lisp_Object.
6093 * image.c (make_image): Initialize `dependencies' field.
6094 (clear_image_cache): Change arg to allow fine-grained flushing.
6095 Perform the flush even if image-cache-eviction-delay is nil.
6096 (clear_image_caches): Change arg to Lisp_Object.
6097 (Fclear_image_cache): Expand meaning of the argument.
6098 (mark_image): Mark `dependencies' field.
6099 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
6100 (lface_hash): Use XHASH rather than XFASTINT.
6101 (face_at_buffer_position): Fix int -> EMACS_INT position.
6102 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
6103 (select_frame_for_redisplay): Remove code duplication.
6104 (redisplay_internal): Adapt arg to call to clear_image_caches.
6105
9d2818d6
DN
61062008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
6107
6108 * s/vms4-0.h:
6109 * s/vms4-2.h:
6110 * s/vms4-4.h:
6111 * s/vms5-5.h: Remove, unused.
6112
6113 * s/irix5-2.h:
6114 * s/irix6-0.h:
6115 * s/riscos5.h:
6116 * s/mach-bsd4-3.h:
2a2e8de7 6117 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
6118
6119 * Makefile.in:
6120 * filelock.c:
6121 * unexmips.c:
6122 * m/hp9000s300.h:
6123 * m/iris4d.h:
6124 * s/aix3-1.h:
6125 * s/hpux.h:
6126 * s/msdos.h:
6127 * s/usg5-0.h:
6128 * s/usg5-2-2.h:
6129 * s/usg5-2.h:
6130 * s/usg5-3.h: Remove references to obsolete variables.
6131
6132 * s/irix5-0.h: Remove, move all the contents ...
6133 * s/irix6-5.h: ... here. Simplify.
6134 * config.in: Regenerate.
6135
2a36efcf
JR
61362008-02-24 Jason Rumney <jasonr@gnu.org>
6137
c5ad7a3d 6138 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
6139 manually when cleartype is in use.
6140 (x_draw_glyph_string_foreground): Draw text transparently when
6141 cleartype is in use.
6142
2a36efcf
JR
6143 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
6144 a font into it unless we have to.
6145
b03f96dc 61462008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 6147
b03f96dc
MB
6148 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
6149 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 6150
b03f96dc 61512008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 6152
b03f96dc 6153 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 6154
b03f96dc 61552008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 6156
b03f96dc 6157 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 6158
b03f96dc 61592008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 6160
b03f96dc 6161 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 6162
d5958163
CY
61632008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
6164
6165 * xterm.c (x_set_offset): Don't change the gravity if
6166 CHANGE_GRAVITY is -1.
6167
9997701e
CY
61682008-02-23 Chong Yidong <cyd@stupidchicken.com>
6169
6170 * fileio.c (auto_save_error_occurred): New var.
6171 (auto_save_error): Set it.
6172 (Fdo_auto_save): Don't overwrite the error message if an auto-save
6173 error occurred.
6174
9d95a291
EZ
61752008-02-23 Eli Zaretskii <eliz@gnu.org>
6176
6177 * w32.c (globals_of_w32): Add initializations for
6178 g_b_init_get_sid_sub_authority and
6179 g_b_init_get_sid_sub_authority_count.
6180
43d1af23
SM
61812008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
6182
43a1d19b
SM
6183 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
6184 (font_parse_xlfd): Use them for sanity check.
608c3307 6185 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 6186
354884c4
SM
6187 Consolidate the image_cache to the terminal struct.
6188 * termhooks.h (P_): Remove redundant def.
6189 (struct terminal): New field `image_cache'.
6190 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
6191 of FRAME_X_IMAGE_CACHE.
6192 * xterm.h (struct x_display_info): Remove image_cache field.
6193 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6194 * w32term.h (struct w32_display_info): Remove image_cache field.
6195 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6196 * macterm.h (struct mac_display_info): Remove image_cache field.
6197 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
6198 * xterm.c (x_term_init):
6199 * w32term.c (w32_term_init):
6200 * macterm.c (mac_term_init): Set the image_cache in the terminal.
6201 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
6202 Remove declarations.
6203 (clear_image_caches, mark_image_cache): New declarations.
6204 * xfaces.c (clear_face_cache):
6205 * xdisp.c (redisplay_internal): Use clear_image_caches.
6206 * image.c (clear_image_cache): Don't check that a frame is on
6207 a window-system before checking if it shares the same cache.
6208 (clear_image_caches): New function.
6209 (Fclear_image_cache): Use it.
6210 (mark_image): Move from allo.c.
6211 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
6212 * alloc.c (mark_image, mark_image_cache): Move to image.c.
6213 (mark_object): Don't call mark_image_cache for frames.
6214 (mark_terminals): Call mark_image_cache.
6215
c2e42690
SM
6216 * lisp.h (Fdelete_terminal): Declare.
6217
43d1af23
SM
6218 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
6219 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
6220 wrong_type_argument.
6221
cc8d1311
KH
62222008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
6223
6224 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 6225 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 6226
6bd92640
SM
62272008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
6228
6229 * xterm.c (x_connection_closed): Consolidate identical tests.
6230 (x_delete_terminal): Don't crash if called via x_connection_closed.
6231
a73b5627
KH
62322008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
6233
6234 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 6235 (display_mode_element): Adjust for the above change.
a73b5627 6236
1b511542
SM
62372008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6238
6239 * callint.c (Fcall_interactively): Use AREF.
6240
81aefea4
SM
62412008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6242
6243 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
6244
880820fe 62452008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
6246
6247 * xfns.c (Fx_show_tip): Set string to " " if empty.
6248
a2b84f35
DN
62492008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
6250
6251 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
6252 with Qt.
6253
43c0454d
KH
62542008-02-17 Kenichi Handa <handa@m17n.org>
6255
6256 * ftfont.c (ftfont_shape): Return Lispy number.
6257
6258 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
6259 for GCs.
6260 (Finternal_set_font_selection_order): Call font_update_sort_order
6261 only when enable_font_backend is set.
6262 (realize_x_face): Set face->font_info to that of default face only
6263 when enable_font_backend is set.
6264
6265 * xdisp.c (handle_composition_prop): Set it->c to the fist
6266 characte of the composed region.
6267 (fill_composite_glyph_string): Set base_face->font_info to
6268 s->font_info. Get a face for ascii from base_face->ascii_face.
6269 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
6270 with a face already decided.
6271 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
6272 non-negative.
978bef9a
JB
6273 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
6274 call font_prepare_composition unconditionally.
43c0454d 6275
978bef9a 6276 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
6277
6278 * xterm.h (struct x_display_info): New member font.
6279
6280 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
6281 (x_set_mouse_face_gc, x_new_font): Likewise.
6282 (x_term_init): Setup display_info->font.
6283 (x_delete_terminal): Free display_info->font.
6284
6285 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
6286
6287 * ftxfont.c (ftxfont_default_fid): Delete it.
6288 (ftxfont_open): Set xfont->fid to 0.
978bef9a 6289 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
6290 font-driver.
6291
6292 * xftfont.c (xftfont_default_fid): Delete it.
6293 (xftfont_open): Set xfont->fid to 0.
6294
6295 * fontset.c (FONTSET_OBJLIST): New macro.
6296 (fontset_find_font): Update font-object list of the fontset.
6297 (free_realized_fontset): New function.
6298 (free_face_fontset): Call free_realized_fontset.
6299 (Ffont_info): Call font_close_object only when enable_font_backend
6300 is set.
6301
6302 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
6303 [HAVE_NTGUI]: Include w32term.h.
6304 [MAC_OS]: Include macterm.ch.
6305 (font_otf_ValueRecord): Use make_number.
6306 (font_finish_cache): Fix handling of reference count.
6307 (font_clear_cache): Update num_fonts.
6308 (font_open_entity): Update smallest_char_width and
6309 smallest_font_height of the frame.
6310 (font_close_object): Update num_fonts.
6311 (Fclear_font_cache): Fix finding the target cache data.
6312
be617367
GM
63132008-02-16 Glenn Morris <rgm@gnu.org>
6314
6315 * fontset.c (Finternal_char_font): Fix compilation warning.
6316
2930d117
EZ
63172008-02-16 Eli Zaretskii <eliz@gnu.org>
6318
634d3003
EZ
6319 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
6320 instead of char arrays. Enlarge the size of array passed to
6321 get_token_information.
6322
2930d117
EZ
6323 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
6324 warnings.
6325
79214046
DN
63262008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
6327
6328 * .gdbinit: Don't set `args', it breaks gdb --args.
6329
7f5d2c72
SM
63302008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
6331
6332 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
6333 within a narrowed buffer.
6334
6edacc43
KH
63352008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
6336
b270d6af
JB
6337 * coding.c (decode_coding_object, encode_coding_object):
6338 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 6339
174105f7
SM
63402008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6341
b270d6af
JB
6342 * coding.c (coding_set_destination): Use BEG_BYTE rather than
6343 hardcoding 1.
13818c30
SM
6344 (detect_coding_system):
6345 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
6346 (string_char_to_byte, string_byte_to_char, insert_from_gap):
6347 * insdel.c (insert_from_gap):
6348 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
6349 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
6350 (string_to_multibyte):
6351 * character.c (chars_in_text, multibyte_chars_in_text):
6352 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
6353
f1c99628
SM
6354 * character.h (FETCH_STRING_CHAR_ADVANCE)
6355 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
6356 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
6357 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
6358
7927d8e3
SM
6359 * casefiddle.c (casify_region): Only call after-change and composition
6360 functions on the part of the region that was changed.
6361
adf6a429 6362 * keyboard.c (read_avail_input):
174105f7
SM
6363 * frame.c (Fdelete_frame): Call Fdelete_terminal.
6364
3ee24aec
SM
63652008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6366
6367 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
6368 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
6369
4ed4b975
JB
63702008-02-11 Juanma Barranquero <lekktu@gmail.com>
6371
6372 * w32menu.c (push_submenu_start, push_submenu_end)
6373 (push_left_right_boundary, push_menu_pane, push_menu_item):
6374 * keyboard.c (read_key_sequence): Don't pass args with side effects
6375 to AREF, it fails when compiling with -DENABLE_CHECKING.
6376
79e3bfb8
KH
63772008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
6378
4ed4b975
JB
6379 * Makefile.in (${lispsource}international/charprop.el):
6380 Delete this target.
6e76043f 6381
79e3bfb8
KH
6382 * search.c (boyer_moore): Fix incorrect synching of the trunk and
6383 emacs-unicode-2.
6384
5b8de9c5
SM
63852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6386
6387 * terminal.c (Fdelete_terminal): Clean up the `force' path.
6388
eac1939a
SM
63892008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6390
c53956fe
SM
6391 * frame.c (Qnoelisp): New symbol.
6392 (syms_of_frame): Initialize it.
6393 (Fdelete_frame): Use it to distinguish a mere `force' passed from
6394 someharmles Elisp code, from a strong `force' from x_connection_closed.
6395 * frame.h (Qnoelisp): Declare.
6396 * xterm.c (x_connection_closed): Pass `noelisp'.
6397
eac1939a
SM
6398 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
6399 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
6400 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
6401 rather than `int' for the type of `type'.
6402
13f6772b
DN
64032008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
6404
6405 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
6406
6407 * Makefile.in (GNUC): Remove support for gcc-1.x.
6408
e8455367
RS
64092008-02-10 Richard Stallman <rms@gnu.org>
6410
6411 * lisp.h (ASET): Use AREF, not ASLOT.
6412
4b75ffab
SM
64132008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
6414
6415 * lisp.h (ASET): Check bounds.
6416
d224e8c2
GM
64172008-02-10 Glenn Morris <rgm@gnu.org>
6418
6419 * buffer.c (mode-name): Doc fix.
6420
4624371d
DN
64212008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6422
290afd83
JB
6423 * Makefile.in:
6424 * emacs.c:
6425 * gmalloc.c:
6426 * keyboard.c:
6427 * lisp.h:
6428 * m/ibm370aix.h:
6429 * process.c:
6430 * regex.c:
6431 * s/hpux.h:
6432 * sysdep.c:
6433 * sysselect.h:
6434 * systty.h:
6435 * unexec.c:
6436 * w32term.c:
6437 * xsmfns.c:
6438 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
6439
6440 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
6441
6442 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
6443 nothing else needs it anymore.
6444
274ec34b
EZ
64452008-02-09 Eli Zaretskii <eliz@gnu.org>
6446
6447 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
6448 instead of unibyte_char_to_multibyte.
6449
deeaffe1
DN
64502008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
6451
6452 * s/gnu-linux.h: Remove commented out code.
6453
4ed4b975 6454 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
6455
6456 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 6457 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 6458 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
6459 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
6460 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
6461
68b587a6
SM
64622008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
6463
9141ca5e
SM
6464 * keymap.c (Fkey_description): Move side effect outside of macro call.
6465
dfae5f9a 6466 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
6467 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
6468
ff7a2223
SM
6469 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
6470 (syms_of_fontset): Use ASET.
6471
68b587a6
SM
6472 * fns.c (concat): Move side effect outside of macro call.
6473 (hash_clear): Use ASET.
6474
a31787b1
RS
64752008-02-08 Richard Stallman <rms@gnu.org>
6476
6477 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
6478 If FORCE, and frame has a surrogate minibuffer for another frame,
6479 delete the other frame first.
6480
987be29b 64812008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
6482
6483 * xterm.c (x_detect_focus_change): Handle embed client message.
6484 (handle_one_xevent): Ditto.
6485 (handle_one_xevent): If embedded and we get a button press/release,
6486 request focus.
6487 (xembed_set_info, xembed_send_message): New functions.
6488 (x_make_frame_visible): Call xembed_set_info if embedded.
6489 (x_make_frame_invisible): Call xembed_set_info if embedded.
6490 (x_term_init): Initialize Xatom_XEMBED.
6491 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
6492 (x_iconify_frame): Ditto.
6493
6494 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
6495 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
6496 (enum xembed_modifier, enum xembed_accelerator): New.
6497 (xembed_set_info, xembed_send_message): Declare.
6498 (FRAME_X_EMBEDDED_P): New.
6499
6500 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
6501 gtk_plug_new.
6502
6503 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
6504 window ID of a frame.
6505 (x_window): Reparent frame if embedded.
6506 (Fx_create_frame): Don't set border width if embedded.
6507
1f204af3 6508 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
6509 (standard_args): Ditto.
6510
880820fe 65112008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
6512
6513 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
6514
92413ef3
JD
65152008-02-07 Jim Meyering <meyering@redhat.com>
6516
6f69e89b 6517 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
6518 The latter provokes a warning from gcc about the empty else, when
6519 followed by ";". Also, without that trailing semicolon, it would
6520 silently swallow up any following statement.
c3f9fba8 6521 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
6522 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
6523 * buffer.h (DECODE_POSITION): Likewise.
6524 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
6525 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
6526 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
6527 (FETCH_CHAR_ADVANCE): Likewise.
6528 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 6529
03fa5713
GM
65302008-02-07 Jim Meyering <meyering@redhat.com>
6531
6532 * lread.c [lint]: Don't include <sys/inode.h>.
6533
3ae565b3
SM
65342008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
6535
6536 * xselect.c (x_handle_dnd_message):
6537 * xmenu.c (digest_single_submenu, xmenu_show):
6538 * xdisp.c (with_echo_area_buffer_unwind_data)
6539 (format_mode_line_unwind_data, unwind_format_mode_line)
6540 (display_menu_bar):
6541 * eval.c (Ffetch_bytecode):
6542 * doc.c (store_function_docstring):
6543 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
6544 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
6545 * buffer.c (add_overlay_mod_hooklist): Use ASET.
6546
146b6e55
KH
65472008-02-07 Kenichi Handa <handa@m17n.org>
6548
6549 * ftxfont.c (ftxfont_open): Don't set
6550 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
6551
6552 * ftfont.c (ftfont_open): Fix previous change.
6553
46a923ac
JR
65542008-02-06 Jason Rumney <jasonr@gnu.org>
6555
6556 * w32font.c (w32font_text_extents): Fill in lbearing metric.
6557 Use cached metrics for ASCII characters.
3ae565b3
SM
6558 (w32font_open_internal): Don't set font's owning_frame.
6559 Cache metrics for ASCII characters.
46a923ac
JR
6560
6561 * w32font.h (struct w32font_info): Add ascii_metrics.
6562 Remove owning_frame.
6563
da7d7c21
KH
65642008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
6565
6566 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
6567 to negative value.
6568
6569 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
6570
3ae565b3 6571 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
6572
6573 * charset.c (syms_of_charset): Set QCtest and Qeq.
6574
c62c8ddb
SM
65752008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
6576
ca319910
SM
6577 * process.c (Fstart_process):
6578 * callproc.c (Fcall_process): Handle the case where
6579 Funhandled_file_name_directory returns nil.
6580
76860cbb
SM
6581 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
6582 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
6583 * font.c (check_gstring): Use them and AREF to access the vector before
6584 we know it's really a gstring.
6585 (Ffont_shape_text): Fix typo.
6586 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 6587
15139d67
SM
6588 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
6589 Declare.
6590
c62c8ddb
SM
6591 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
6592
04b65d2b
JR
65932008-02-05 Jason Rumney <jasonr@gnu.org>
6594
6595 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
6596 Set smallest_font_height and smallest_char_width in display info.
6597
fccaebfd
KH
65982008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
6599
6600 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
6601
e7d7fd8c
MB
66022008-02-05 Miles Bader <miles@gnu.org>
6603
6604 * xfaces.c (get_lface_attributes, merge_named_face)
6605 (lookup_named_face, lookup_derived_face, realize_named_face):
6606 Revert 2008-02-01 change by cyd@stupidchicken.com.
6607
3d4448a8
KH
66082008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
6609
6610 * fontset.c (Ffontset_info): Handle the case of inhibitting the
6611 fallback fonts.
15139d67 6612 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 6613
5ace1ec1
JR
66142008-02-04 Jason Rumney <jasonr@gnu.org>
6615
6616 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
6617 set full_name.
e3a77b22 6618 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 6619
ffe42183
JR
66202008-02-03 Jason Rumney <jasonr@gnu.org>
6621
6622 * makefile.w32-in (OBJ1): Include font.o here.
6623 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
6624
526dc3b3
JR
66252008-02-02 Jason Rumney <jasonr@gnu.org>
6626
a0fece35 6627 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 6628
af805c82
JR
66292008-02-01 Jason Rumney <jasonr@gnu.org>
6630
6631 * s/cygwin.h: Define VIRT_ADDR_VARIES.
6632
6633 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
6634
7f6519c5
AS
66352008-02-01 Andreas Schwab <schwab@suse.de>
6636
1f45f627 6637 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 6638 ../lisp/language/myanmar.el.
7f6519c5 6639
26f8aa27
CY
66402008-02-01 Chong Yidong <cyd@stupidchicken.com>
6641
1f45f627 6642 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
6643 (merge_named_face, lookup_named_face, lookup_derived_face)
6644 (realize_named_face): Call lface_from_face_name directly, and use
6645 the fact that merge_face_vectors does not alter its FROM argument.
6646
73acf815 66472008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6648
6649 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 6650 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 6651
73acf815 66522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6653
6654 * fontset.c (reorder_font_vector): Exclude nil elements from the
6655 font group. Don't try multiple fonts.
15139d67 6656 (fontset_font): Adjust for the above change.
aca7a3d2
MB
6657 (Finternal_char_font): Return nil if the found font doesn't
6658 contain the character ch.
6659
4c4475a8 6660 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 6661
73acf815 66622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6663
6664 * font.h (FONTP): Make it return 1 also for a font-object.
6665
6666 * .gdbinit (xfontset): New function.
6667
6668 * font.c (font_find_for_lface): Check if the character C is
6669 supported or not only for the first font.
6670
6671 * fontset.c (reorder_font_vector): Fix typo.
6672 (fontset_find_font): Don't add a font-spec specifying a script.
6673 Use 0 (not Qt) for the indication of empty font-group. Change the
6674 format of RFONT-DEF. Return Qt if no font in the font-group
6675 support the character.
15139d67 6676 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 6677 found the character, remember that.
15139d67 6678 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
6679 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
6680 no font for the target.
15139d67 6681 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 6682
73acf815 66832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6684
6685 * font.c (font_load_for_face): Handle the case that the font in
6686 face->lface is a string.
6687
73acf815 66882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6689
1f45f627 6690 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 6691
73acf815 66922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6693
6694 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
6695 Fix previous change. If the frame is not on a window system,
6696 signal an error.
6697
73acf815 66982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6699
4c4475a8
GM
6700 * coding.c (decode_coding_object, encode_coding_object): Adjust
6701 marker positions after conversion.
aca7a3d2
MB
6702
6703 * lisp.h (struct Lisp_Marker): New member need_adjustment.
6704
73acf815 67052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6706
6707 * font.c (font_find_for_lface): Fix the handling of the return
6708 value of font_has_char.
6709 (Ffont_shape_text): Fix previous change.
6710
6711 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
6712 (fontset_ref_and_range): Delete it.
6713 (fontset_find_font): Call char_table_ref_and_range instead of
6714 FONTSET_REF_AND_RANGE.
6715 (make_fontset): Don't setup font groups of Latin here.
6716 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
6717 (new_fontset_from_font): Make the specified font the default for
6718 all Latin characters.
6719
73acf815 67202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6721
6722 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
6723 is on a window system before accessing the fontset of the frame.
6724
73acf815 67252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6726
1f45f627 6727 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
6728
6729 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
6730 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
6731
6732 * font.c (Ffont_shape_text): If the font driver doesn't have a
6733 shaper function, make zero-width glyphs to have at least one-pixel
6734 width. Fix setting of `to' field of glyphs.
6735
73acf815 67362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6737
6738 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
6739 glyphs.
6740
1f45f627 6741 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 6742
73acf815 67432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6744
6745 * composite.c (syms_of_composite): Fix docstring of
6746 auto-composition-function.
6747
6748 * font.h (LGLYPH_SIZE): New macro.
6749
6750 * font.c (Ffont_fill_gstring): Stop filling when a character not
6751 supported by the font is found.
6752 (Ffont_shape_text): When a shape callback function returns nil,
6753 try at most two more times with larger gstring.
15139d67 6754 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
6755
6756 * xdisp.c (handle_auto_composed_prop): Change the argument to
6757 auto-composition-function.
6758
6759 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
6760 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
6761 Lispy glyph and store it in the lgstring.
6762
6763 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
6764
6765 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
6766
73acf815 67672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6768
6769 * font.c (Ffont_shape_text): Avoid unnecessary composition.
6770
6771 * fontset.c (Vfont_encoding_charset_alist): New variable.
6772 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
6773 (reorder_font_vector, fontset_find_font): Optimize for the case of
6774 no need of reordering.
aca7a3d2
MB
6775 (face_for_char): Map the charset property by
6776 Vfont_encoding_charset_alist.
6777
73acf815 67782008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6779
6780 * w32font.c (logfonts_match): Don't check adstyle here.
6781 (font_matches_spec): Check here against physical font instead.
6782 (add_font_entity_to_list): Avoid some substitutions.
6783
6784 * font.c (font_parse_fcname): Default weight and slant to normal.
6785 (font_score): Prefer normal fonts if weight or slant unspecified.
6786 (font_score) [WINDOWSNT]: Scale weight difference down to closer
6787 match freetype scores.
6788
73acf815 67892008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6790
6791 * w32font.c (w32font_text_extents): Don't use the frame stored in the
6792 font, as it may have been deleted.
6793 (w32_enumfont_pattern_entity): Map generic family to adstyle using
6794 most common hyphenless variation.
6795 (logfonts_match): Check generic family.
6796 (font_matches_spec): Don't check generic family here.
6797 (fill_in_logfont): Set generic family based on adstyle.
6798
6799 * w32font.h (w32font_get_cache): Update declaration.
6800
73acf815 68012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6802
6803 * ftfont.c (ftfont_get_cache): Adjust the argument type.
6804
15139d67 6805 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 6806 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
6807 with the old drivers.
6808
6809 * w32font.c (w32font_get_cache): Adjust the argument type.
6810
6811 * xfont.c (xfont_get_cache): Adjust the argument type.
6812
6813 * font.h (struct font_driver): Change argument type of get_cache.
6814
6815 * xftfont.c (xftfont_start_for_frame): Delete prototype.
6816
6817 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 6818 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 6819 (font_clear_cache): New function.
4c4475a8 6820 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 6821 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
6822
6823 * fontset.c (fontset_find_font): Fix previous change.
6824
73acf815 68252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6826
6827 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
6828 dpyinfo->font_table.
6829 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 6830 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
6831
6832 * font.c (font_at): Handle the case that the arg C is negative.
6833 Handle the unibyte case.
6834 (Ffont_at): Call font_at with the arg C -1.
6835
6836 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
6837 the position here, and call font_at with the arg C -1.
6838 Don't check the range of the existing composition at the point.
aca7a3d2 6839
73acf815 68402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6841
15139d67 6842 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 6843 Change caller.
4c4475a8
GM
6844 (load_font_get_repertory, fontset_find_font): Assume that
6845 font_spec is always a font-spec object.
aca7a3d2
MB
6846 (Fset_fontset_font): Always store a font-spec object in a fontset.
6847
6848 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
6849 instead of get_property_and_range.
6850
73acf815 68512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6852
6853 * xftfont.c (struct xftfont_info): Delete the member ft_face.
6854 (xftfont_open): Don't keep locking face.
6855 (xftfont_close): Don't unlock face.
4c4475a8 6856 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
6857
6858 * fontset.c (fontset_find_font): Don't prefer a font of
6859 supplementary charset.
6860
73acf815 68612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6862
1f45f627
GM
6863 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
6864 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
6865 (OTF_TAG_STR): Terminate by '\0'.
6866 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
6867 listing to the script specified in that property. Fix arg to
6868 OTF_check_features.
6869
73acf815 68702008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6871
6872 * w32font.h: New file.
6873
6874 * w32font.c: Include it.
6875 (struct w32font_info): Add owning_frame field. Move to w32font.h.
6876 (w32font_open): Set owning_frame.
6877 (w32font_text_extents): Use owning_frame.
6878 (struct font_callback_data): Add opentype_only field.
6879 (add_font_entity_to_list): Use it to filter fonts.
6880 Don't check against full name.
6881 (w32font_list_internal): New function.
6882 (w32font_list): Use it.
6883 (w32font_match_internal): New function.
6884 (w32font_match): Use it.
6885 (w32font_open_internal): New function.
6886 (w32font_open): Use it.
6887 (w32font_get_cache, w32font_close, w32font_has_char)
6888 (w32font_encode_char, w32font_text_extents, w32font_draw):
6889 Make non-static.
6890
6891 * makefile.w32-in (w32font.o): Depend on w32font.h.
6892
73acf815 68932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6894
6895 * charset.c (Fdefine_charset_internal): Record a supplementary
6896 charset at the tail of Vcharset_order_list.
6897
6898 * font.c (Ffont_shape_text): Fix the return value.
6899
6900 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
6901
6902 * xdisp.c (handle_auto_composed_prop): Fix previous change.
6903
73acf815 69042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6905
6906 * ftfont.c (struct OpenTypeSpec): New struct.
6907 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
6908 (ftfont_get_open_type_spec): New function.
6909 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
6910
15139d67 6911 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 6912
73acf815 69132008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6914
6915 * w32font.c (add_font_entity_to_list): Compare only the beginning
6916 of full name.
6917
73acf815 69182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6919
15139d67
SM
6920 * xdisp.c (handle_auto_composed_prop): Simplify the code.
6921 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 6922
73acf815 69232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6924
6925 * font.c (font_gstring_produce): Delete it.
6926
15139d67
SM
6927 * composite.h (COMPOSITION_METHOD):
6928 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 6929
73acf815 69302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6931
15139d67 6932 * xfont.c (Qx): Delete.
aca7a3d2
MB
6933 (syms_of_xfont): Don't initialize Qx.
6934
15139d67
SM
6935 * composite.h (enum composition_method):
6936 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 6937
73acf815 69382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6939
6940 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
6941 (choose_face_font): Accept new form of font-spec.
6942
6943 * frame.h (font_driver_list): Declare it unconditionally.
6944 (struct frame): Define members font_driver_list and font_data_list
6945 unconditionally.
6946
6947 * fontset.c: Include "font.h" unconditionally.
15139d67 6948 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
6949 (Fset_fontset_font): Accept a font-spec object.
6950
6951 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
6952 PIXEL_SIZE part a wild card.
6953
6954 * dispextern.h (struct glyph_string): Define members clip and
6955 num_clips unconditionally.
6956 (struct face): Define members font_info and extra unconditionally.
6957
6958 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
6959 ftfont_info only when HAVE_LIBOTF is defined.
6960
73acf815 69612008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6962
6963 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
6964 and end.
6965
73acf815 69662008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6967
6968 * w32font.c (w32font_driver): Add new fields.
6969
73acf815 69702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6971
aca7a3d2
MB
6972 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
6973 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
6974 (LIBES): Add @M17N_FLT_CFLAGS@.
6975
6976 * composite.c (compose_text): Don't treat the new style
6977 composition specially.
6978
6979 * emacs.c (main): Call syms_of_font unconditionally.
6980
6981 * font.h (FONT_ENTITY_NOT_LOADABLE)
6982 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 6983 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 6984 (struct font_driver): New member shape.
1f45f627 6985 (font_registry_charsets): Extern it.
4c4475a8 6986 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
6987 (font_otf_capability, font_drive_otf): Delete their externs.
6988
6989 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
6990 (font_charset_alist, font_registry_charsets): Move from xfont.c
6991 and rename.
aca7a3d2
MB
6992 (font_prop_validate_otf): New function.
6993 (font_property_table): Register it for QCotf.
6994 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 6995 (font_drive_otf): Delete.
1f45f627 6996 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
6997 lispy gstring.
6998 (font_find_for_lface): New arg C.
15139d67 6999 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
7000 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
7001 lispy gstring.
aca7a3d2
MB
7002 (Ffont_shape_text): New function.
7003 (Fopen_font): If the font size is not given, use 12-pixel.
7004 (Ffont_at): New arg STRING.
15139d67
SM
7005 (syms_of_font): Initalize font_charset_alist.
7006 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
7007 conditionally.
7008
7009 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
7010 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
7011 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
7012 Adjust for the change of RFONT-DEF.
15139d67 7013 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
7014
7015 * ftfont.h: New file.
7016
7017 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
7018 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
7019 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
7020 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
7021 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 7022 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
7023 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
7024 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
7025 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 7026 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
7027 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
7028 (otf_gstring, gstring, m17n_flt_initialized): New variables.
7029
15139d67
SM
7030 * w32term.c (x_draw_composite_glyph_string_foreground):
7031 Adjust for the change of lispy gstring.
aca7a3d2 7032
15139d67 7033 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 7034 lispy gstring. Call a function for auto-composition with the
15139d67
SM
7035 third arg it->window.
7036 (fill_composite_glyph_string): Adjust for the change of lispy string.
7037 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 7038
15139d67 7039 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
7040 font_find_for_lface.
7041
1f45f627
GM
7042 * xfont.c (x_font_charset_alist): Move to font.c and rename.
7043 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
7044 (syms_of_xfont): Don't handle x_font_charset_alist.
7045
7046 * xftfont.c: Include "ftfont.h".
15139d67 7047 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
7048 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
7049 (xftfont_close) [HAVE_LIBOTF]: Close otf.
7050 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
7051 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
7052 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 7053
15139d67 7054 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
7055 the change of lispy gstring.
7056
73acf815 70572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7058
7059 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
7060
73acf815 70612008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7062
7063 * w32font.c (w32font_draw): Fill background manually.
7064
73acf815 70652008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7066
7067 * font.c (Qfontp): Remove unused symbol.
7068 (QCantialias): New symbol.
7069 (syms_of_font): Define it.
7070 (font_property_table): Set a validator for QCantialias.
7071
15139d67
SM
7072 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
7073 Define if not already.
aca7a3d2
MB
7074 (QCfamily): Share with xfaces.c.
7075 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 7076 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
7077 (w32_antialias_type, lispy_antialias_type): New functions.
7078 (w32_enumfont_pattern_entity): New arg requested_font.
7079 Set antialias parameter if non-default was requested.
7080 (fill_in_logfont): Fill in lfQuality if :antialias specified.
7081
73acf815 70822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7083
7084 * lread.c (read1): Undo the previous change.
7085
73acf815 70862008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
7087
7088 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 7089 USE_FONT_BACKEND is defined.
aca7a3d2 7090
73acf815 70912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7092
7093 * font.h (struct font_bitmap): New member bits_per_pixel.
7094 (struct font_driver): New members start_for_frame and end_for_frame.
7095 (struct font_data_list): New struct.
7096 (font_put_frame_data, font_get_frame_data): Extern them.
7097
7098 * frame.h (struct frame): New member font_data_list.
7099
7100 * font.c (font_update_drivers): Call driver->start_for_frame and
7101 driver->end_for_frame at proper timings.
7102 (font_put_frame_data, font_get_frame_data): New functions.
7103 (Ffont_spec): Add usage in the docstring.
7104
7105 * frame.c (make_frame): Initialize f->font_data_list to NULL.
7106 (Fdelete_frame): Call font_update_drivers.
7107
7108 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 7109 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
7110 (xftfont_get_xft_draw): New function.
7111 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
7112 (xftfont_end_for_frame): New function.
7113 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
7114
15139d67 7115 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 7116 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
7117 (struct ftxfont_frame_data): New struct.
7118 (ftxfont_draw_bitmap): New arg gc_fore and flush.
7119 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 7120 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
7121 (ftxfont_end_for_frame): New function.
7122 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
7123
7124 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
7125
73acf815 71262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7127
7128 * xselect.c (Vselection_coding_system)
7129 (Vnext_selection_coding_system): Delete them.
7130 (syms_of_xselect): Don't declare selection-coding-system and
7131 next-selection-coding-system. They are declared in select.el.
7132
73acf815 71332008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7134
7135 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
7136
7137 * w32fns.c: Include imm.h.
7138 (get_composition_string_fn, get_ime_context_fn): New optional
7139 system functions.
7140 (globals_of_w32fns): Load them from imm32.dll.
7141 (ignore_ime_char): New flag.
7142 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
7143 WM_IME_ENDCOMPOSITION messages.
7144
7145 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
7146 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
7147
73acf815 71482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7149
7150 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
7151 (READCHAR_REPORT_MULTIBYTE): New macro.
7152 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
7153 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
7154 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
7155 source.
7156
73acf815 71572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7158
7159 * xfaces.c (face_for_overlay_string): Call lookup_face with
7160 correct arguments (fix of synching with the trunk).
7161
73acf815 71622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7163
4c4475a8
GM
7164 * font.c (font_prop_validate_symbol, font_prop_validate_style)
7165 (font_prop_validate_non_neg, font_prop_validate_spacing):
7166 Delete argument prop_index.
15139d67
SM
7167 (font_property_table): Change arguments to validater. Change Callers.
7168 (font_lispy_object): Delete.
aca7a3d2
MB
7169 (font_at): Use font_find_object instead fo font_lispy_object.
7170
73acf815 71712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
7172
7173 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
7174 and file names.
7175
73acf815 71762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7177
7178 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
7179 (font_matches_spec): Remove debug output.
7180 (add_font_entity_to_list): Avoid using substituted fonts.
7181
73acf815 71822008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7183
7184 * doc.c (Fsnarf_documentation):
7185 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
7186
73acf815 71872008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 7188
290afd83 7189 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
7190 HAVE_WINDOW_SYSTEM is defined.
7191
73acf815 71922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
7193
7194 Fix up multi-tty merge.
7195
7196 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
7197 and indentation.
7198
7199 * xfaces.c (free_realized_face, clear_face_gcs):
7200 Include font_done_for_face in the input_blocked section, just in case.
7201
7202 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
7203 (get_char_face_and_encoding): Undo last change and remove the *other*
7204 duplicate definition (i.e. keep the one that's better scoped and that
7205 includes code for the font-backend).
7206
7207 * terminal.c (create_terminal): Default keyboard_coding to
7208 `no-conversion' and terminal_coding to `undecided'.
7209
7210 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
7211
7212 * fontset.c (free_realized_fontsets): Check that the table entry does
7213 contain a fontset before trying to compare it to `base'.
7214
7215 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
7216 syms_of_charset, and syms_of_coding earlier because init_window_once
7217 now needs Vcoding_system_hash_table to be setup.
7218
7219 * coding.h (default_buffer_file_coding): Remove.
7220
7221 * coding.c (default_buffer_file_coding): Remove.
7222 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
7223 than ->symbol, and use the terminal-local coding system.
7224 (syms_of_coding): Don't setup the coding-systems that are not
7225 terminal-local.
7226 (Fdefine_coding_system_internal): Use XCAR/XCDR.
7227
7228 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
7229 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
7230
7231 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
7232 in chartab.c and were re-added here by mistake.
7233 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
7234
7235 * doc.c (Fsnarf_documentation):
7236 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
7237 src to etc.
7238
7239 * ChangeLog.10: Add mistakenly removed entry.
7240
73acf815 72412008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
7242
7243 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
7244
73acf815 72452008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7246
7247 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
7248 Add extra args to FACE_FOR_CHAR.
7249
73acf815 72502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7251
7252 * keymap.c (where_is_internal_1): If key is a cons, store the copy
7253 in sequence.
7254
4c4475a8
GM
7255 * chartab.c (map_sub_char_table, map_char_table): If the range
7256 contains just one character, call the function with that character
7257 even if the depth is not 3.
aca7a3d2 7258
73acf815 72592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7260
7261 * w32font.c (w32font_text_extents): Calculate metrics for the
7262 whole string.
7263
73acf815 72642008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7265
7266 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
7267
73acf815 72682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7269
7270 * w32term.c (x_set_glyph_string_clipping): Use
7271 get_glyph_string_clip_rects.
4c4475a8
GM
7272 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
7273 Adjust for the change of struct glyph_string.
aca7a3d2
MB
7274
7275 * w32font.c (w32font_draw): Do clipping here.
7276
73acf815 72772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7278
1f45f627 7279 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
7280 glyph_string.
7281
7282 * xterm.c (x_set_glyph_string_clipping): Use
7283 get_glyph_string_clip_rects.
4c4475a8
GM
7284 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
7285 Adjust for the change of struct glyph_string.
aca7a3d2
MB
7286
7287 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
7288 the resulting clip(s}.
1f45f627 7289 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
7290 row->clip temporarily.
7291 (expose_window): Redraw rows overlapping the exposed area.
7292
7293 * dispextern.h (struct glyph_row): New member clip.
7294 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
7295 clip_height, new member clip, and num_clips.
7296
73acf815 72972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7298
7299 * data.c (Fchar_or_string_p): Fix docstring.
7300
73acf815 73012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7302
7303 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
7304 create a temporal XftDraw object.
7305
73acf815 73062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7307
7308 * font.c (Ffontp): Fix docstring.
7309
7310 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
7311 strong evidence of ISO-2022.
7312
73acf815 73132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7314
7315 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
7316 SYNTAX_ENTRY_FOLLOW_PARENT.
7317
73acf815 73182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
7319
7320 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
7321 its type.
7322 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
7323 Update to the new type of weak_hash_tables and next_weak.
7324
7325 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
7326 a plain C pointer to Lisp_Hash_Table.
7327
7328 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
7329 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
7330 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
7331 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
7332 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
7333 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
7334 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
7335 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
7336 (GC_EQ): Remove since they've been identical to their non-GC_
7337 alter-egos ever since the markbit was eradicated.
7338
290afd83
JB
7339 * alloc.c:
7340 * buffer.c:
7341 * buffer.h:
7342 * data.c:
7343 * fileio.c:
7344 * filelock.c:
7345 * fns.c:
7346 * frame.h:
7347 * lisp.h:
7348 * macterm.c:
7349 * print.c:
7350 * process.c:
7351 * w32fns.c:
7352 * w32menu.c:
7353 * w32term.c:
7354 * xfns.c:
7355 * xmenu.c:
7356 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 7357
73acf815 73582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7359
7360 * chartab.c (map_sub_char_table): Make it work for the top-level
7361 char-table. Fix handling of parent char-table.
c5ad7a3d 7362 (map_char_table): Adjust for the above change.
aca7a3d2 7363
73acf815 73642008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7365
7366 * w32font.c (Qgdi): Rename from Qw32.
7367
73acf815 73682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7369
7370 * w32bdf.c (get_quoted_string): Make function static.
7371
73acf815 73722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7373
7374 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
7375 bigger ascent and descent than those of the font, use them as
7376 font's ascent and descent.
7377
73acf815 73782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7379
7380 * Makefile.in (${lispsource}international/charprop.el): Move this
7381 target within "#ifdef HAVE_UNIDATA" and "#endif".
7382
73acf815 73832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7384
7385 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
7386 (shortlisp): Add ../lisp/language/tai-viet.el.
7387
1f45f627 73882008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
7389
7390 * Makefile.in (${lispsource}international/charprop.el): Depend on
7391 temacs${EXEEXT}.
7392
73acf815 73932008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7394
7395 * w32font.c (w32font_close): Delete the GDI font object.
7396
6f69e89b 7397 * w32menu.c: Include character.h.
aca7a3d2
MB
7398
7399 * w32proc.c: Likewise.
7400
7401 * w32select.c: Likewise.
7402
6f69e89b 7403 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 7404
73acf815 74052008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7406
7407 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
7408
7409 * w32menu.c (syms_of_w32menu): Likewise.
7410
7411 * w32proc.c (syms_of_ntproc): Likewise.
7412
7413 * w32select.c (syms_of_w32select): Likewise.
7414
7415 * w32term.c (syms_of_w32term): Likewise.
7416
73acf815 74172008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7418
7419 * w32font.c (w32font_draw): Delete brush after using it.
7420
73acf815 74212008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7422
7423 * w32font.c (w32font_open): Don't set font_idx.
7424 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
7425 to font settings.
7426 (w32font_draw): Fill background explicitly.
7427
73acf815 74282008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7429
7430 * w32term.c (w32_initialize): Don't call w32font_initialize.
7431
7432 * w32font.c (w32font_info): Remove subranges.
7433 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
7434 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
7435 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
7436 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
7437 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
7438 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
7439 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
7440 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
7441 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
7442 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
7443 New symbols.
7444 (font_callback_data): New struct.
7445 (w32font_list, w32font_match): Use it.
7446 (w32font_open): Don't populate subranges.
7447 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
7448 (w32font_encode_char): Always return unicode code-point as-is.
7449 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
7450 GetGlyphOutline. Never look up by glyph index. Avoid looping
7451 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 7452 glyph index version.
1f204af3 7453 (set_fonts_frame): Remove.
aca7a3d2 7454 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
7455 set frame parameter. Use backward compatible fake foundries.
7456 Save generic family in extra slot under QCfamily. Make width slot
7457 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
7458 binary subranges.
7459 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 7460 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
7461 unwanted fonts.
7462 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
7463 (w32_registry): Default to iso10646_1.
7464 (fill_in_logfont): Use dpi from extra slot. Don't bother with
7465 string font registries. Don't fill in font name if it is a generic
7466 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
7467 extra info to fill pitch, family and charset fields.
7468 (list_all_matching_fonts): Use font_callback_data struct.
7469 (unicode_range_for_char): Remove.
7470 (font_supported_scripts): New function.
7471 (w32font_initialize): Remove.
7472 (syms_of_w32font): Update which symbols are defined.
7473
73acf815 74742008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7475
7476 * font.c (font_pixel_size): Reverse assq_no_quit args.
7477
7478 * w32term.h (FONT_WIDTH): Report max width, not average.
7479 (FONT_MAX_WIDTH): Remove.
7480 (FONT_AVG_WIDTH): New macro.
7481
7482 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
7483 redefinition of FONT_WIDTH.
7484
7485 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
7486 (w32_cache_char_metrics): Use FONT_WIDTH.
7487
7488 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
7489
73acf815 74902008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7491
7492 * w32font.c (w32font_open): Make lfHeight negative.
7493
7494 * w32fns.c (x_default_font_parameter): Use new style font name.
7495 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
7496
73acf815 74972008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7498
7499 * w32font.c (QCsubranges): New symbol.
7500 (w32font_open, w32font_has_char): Get subranges from subproperty
7501 of extra.
7502 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
7503 (syms_of_w32font): Define :subranges symbol.
7504
7505 * font.c (font_put_extra): Expose externally.
7506
1f45f627 7507 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
7508
7509 * font.c (Ffont_get): Use font driver to determine otf capability.
7510 (adjust_anchor): Check if driver defines anchor_point before using.
7511
7512 * w32font.c (w32font_open): Handle size, height and pixel_size better.
7513 (w32font_draw): Use options.
7514 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
7515 Fix detection of truetype fonts.
7516 (registry_to_w32_charset): Handle charsets other than iso8859-1
7517 expressed as lisp symbols.
7518 (w32_registry): Express charset as lisp symbol.
7519 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 7520 Don't set width here. Set quality to default.
aca7a3d2
MB
7521
7522 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
7523 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
7524
7525 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7526 Remove redundant loop and allocation.
7527
7528 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 7529 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
7530 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
7531
7532 * xdisp.c (fill_composite_glyph_string): Make the first arg to
7533 STORE_XCHARB a valid l-value.
7534
7535 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
7536 calculations for non-Truetype fonts.
7537 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
7538 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
7539 Remove redundant code.
aca7a3d2
MB
7540 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
7541
7542 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
7543 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
7544
7545 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
7546 (x_to_w32_charset, w32_to_x_charset): Expose externally.
7547
7548 * w32font.c: New file for w32 font backend.
7549
73acf815 75502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7551
7552 * term.c: Don't include "buffer.h" twice.
7553
73acf815 75542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7555
7556 * character.c (Funibyte_string): New function.
7557 (syms_of_character): Defsubr it.
7558
73acf815 75592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7560
7561 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
7562 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
7563 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
7564 (x_draw_glyph_string, x_draw_glyph_string_foreground)
7565 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
7566 (x_free_frame_resources): Sync with xterm.c.
7567
73acf815 75682008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7569
7570 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
7571 char-table size.
7572
73acf815 75732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7574
c3f9fba8 7575 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 7576
73acf815 75772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7578
7579 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
7580 font_otf_gpos, add font_drive_otf.
7581
7582 * fontset.c (fontset_find_font): Pay attention to font size
7583 specified for a font.
7584 (reorder_font_vector): Check contents of font_def.
7585
7586 * font.c (struct otf_list): Delete it.
6f69e89b 7587 (otf_list): Make it a lisp variable.
aca7a3d2 7588 (otf_open): Use lispy otf_list.
1f45f627 7589 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 7590 (check_otf_features): New function.
c3f9fba8
JB
7591 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7592 New functions.
aca7a3d2
MB
7593 (font_drive_otf): New function merging font_otf_gsub and
7594 font_otf_gpos.
7595 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 7596 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
7597 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
7598 Ffont_otf_gpos.
7599 (syms_of_font): Staticpro otf_list. Delete defsubr of
7600 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
7601
1f45f627 7602 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
7603 font_open_for_lface.
7604
7605 * font.h (font_open_for_lface): Adjust prototype.
7606 (struct font_driver): Delete members otf_gsub and otf_gpos, add
7607 member otf_drive.
7608 (font_otf_gsub, font_otf_gpos): Delete externs.
7609 (font_drive_otf): Extern it.
7610
73acf815 76112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7612
7613 * font.c (font_at): If the window W is not on a window system,
7614 return Qnil.
7615
4c4475a8
GM
7616 * coding.c (produce_chars, encode_coding): Don't call
7617 insert_from_gap if no characters to produce.
aca7a3d2 7618
73acf815 76192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7620
7621 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
7622 Fclear_face_cache.
7623
7624 * xfaces.c (face_for_font): Check also face->font==font->font.font.
7625
73acf815 76262008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7627
7628 * emacs.c (main): Change default value of `enable_font_backend' to 1.
7629 Parse "--disable-font-backend" option.
7630 (standard_args): Add "--disable-font-backend" option.
7631
73acf815 76322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7633
7634 * fontset.c (fontset_find_font): New function.
7635 (fontset_font): Use fontset_find_font.
7636 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
7637 Register the specified font for all Latin characters.
7638 (new_fontset_from_font): Register the specified font for all Latin
7639 characters.
7640 (dump_fontset): For a realized fontset, include the base fontset
7641 name in the returned vector.
7642
73acf815 76432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7644
7645 * character.h (CHAR_STRING): Cast C to unsigned on calling
7646 char_string.
7647
7648 * character.c (char_string): Type of arg C changed to unsigned.
7649 Signal an error if C is an invalid character code.
7650
4c4475a8
GM
7651 * editfns.c (general_insert_function, Fchar_to_string):
7652 Use CHARACTERP, not INTEGERP.
aca7a3d2 7653
73acf815 76542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7655
7656 * character.h (MIN_MULTIBYTE_LEADING_CODE)
7657 (MAX_MULTIBYTE_LEADING_CODE): New macros.
7658
7659 * regex.c (analyse_first): Fix for multibyte characters in "case
7660 charset:" and "case categoryspec:".
7661
73acf815 76622008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
7663
7664 * Makefile.in (LIBES): Move standard libraries to the end.
7665
73acf815 76662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7667
7668 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
7669 nonzero, don't shrink the buffer nextb.
7670
7671 * buffer.h (struct buffer_text): New member inhibit_shrinking.
7672
7673 * coding.c (coding_alloc_by_making_gap): New arg offset.
7674 (alloc_destination): Call coding_alloc_by_making_gap with the arg
7675 offset.
7676 (decode_coding_iso_2022): Update coding->safe_charsets.
7677 (decode_coding_gap): Temporarily set
7678 current_buffer->text->inhibit_shrinking to 1.
7679
73acf815 76802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7681
7682 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
7683 indexing into elements of s->cmp and s->char2b.
7684
73acf815 76852008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
7686
7687 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
7688
73acf815 76892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7690
7691 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
7692 target_multibyte instead of multibyte.
7693 (re_match_2_internal): Call bcmp_translate with target_multibyte.
7694 (bcmp_translate): Change the argument name from multibyte to
7695 target_multibyte.
7696
73acf815 76972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7698
7699 These changes are to compile a regexp into a pattern that can be
7700 used both for multibyte and unibyte targets.
7701
7702 * Makefile.in (search.o): Depend on charset.h.
7703
7704 * character.c (multibyte_char_to_unibyte_safe): New function.
7705
7706 * search.c: Include "charset.h".
7707 (compile_pattern_1): Delete argument multibyte. Don't set
7708 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
7709 (compile_pattern): Don't compare cp->buf.target_multibyte.
7710 Compare cp->buf.charset_unibyte.
7711 (compile_pattern): Set cp->buf.target_multibyte.
7712
7713 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
7714
7715 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
7716
7717 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 7718 multibyte. Change callers.
aca7a3d2 7719 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
7720 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
7721 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
7722 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
7723 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
7724 (regex_compile): Make the compiled pattern usable both for
7725 multibyte and unibyte targets.
7726 (analyse_first): Make the fastmap usable both for multibyte and
7727 unibyte targets.
1f45f627 7728 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
7729 (re_match_2_internal): Pay attention to the case that the
7730 multibyteness of bufp and target may be different.
7731
73acf815 77322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7733
7734 * xdisp.c (x_produce_glyphs): When a font is not found, make the
7735 empty box occupy at least one column width.
7736
73acf815 77372008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7738
7739 * Makefile.in: Remove redundant HAVE_XFT clause.
7740
73acf815 77412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7742
7743 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
7744
73acf815 77452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7746
7747 * fontset.c (Finternal_char_font): Fix for the case of POSITION
7748 being nil.
7749
73acf815 77502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7751
7752 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
7753
73acf815 77542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7755
7756 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
7757
73acf815 77582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7759
7760 * search.c (simple_search): Fix previous change.
7761
73acf815 77622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7763
7764 * xftfont.c (ftfont_font_format): Extern declaration.
7765
7766 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
7767
7768 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
7769 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
7770
7771 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
7772 (ftfont_font_format): Fix previous change.
7773
7774 * font.h (Ffont_xlfd_name): EXFUN it.
7775
7776 * font.c (font_parse_xlfd): Fix the array size of `f'.
7777 (register_font_driver): Use EQ to compare driver->type.
7778
7779 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
7780 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
7781 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
7782
73acf815 77832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7784
4c4475a8
GM
7785 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
7786 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 7787
73acf815 77882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7789
7790 * xfont.c (xfont_open): Set font->format.
7791
7792 * xftfont.c (xftfont_open): Set font->format.
7793
7794 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
7795 (ftfont_list): Include FC_FONTFORMAT in FcObject.
7796 (ftfont_open): Set font->format.
7797 (ftfont_font_format): New function.
7798
7799 * font.h (struct font): New memeber format.
7800
7801 * font.c (Qopentype): New variable.
7802 (syms_of_font): Defsym it.
7803 (Fquery_font): Change the format of the last element of the return
7804 value.
7805
73acf815 78062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7807
7808 * xfns.c (xic_create_xfontset): Try the default fontset name as a
7809 last resort.
7810
73acf815 78112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7812
7813 * coding.c (detect_coding_charset): Fix detection of multi-byte
7814 charset.
7815
73acf815 78162008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
7817
7818 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
7819
73acf815 78202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7821
7822 * xdisp.c (get_next_display_element): Set it->face_id for the
7823 first component of a composition.
1f45f627 7824 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 7825
73acf815 78262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7827
7828 * fontset.c (Qlatin): New variable.
7829 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 7830 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 7831
73acf815 78322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7833
7834 * font.c (font_unparse_fcname): Pay attention to the case that
7835 some of font property is a null string.
7836
73acf815 78372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7838
7839 * term.c: Include "composite.h".
7840 (encode_terminal_code): Output all components of composition.
7841 Check the size of encode_terminal_src.
424c157f 7842 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
7843 (append_composite_glyph, produce_composite_glyph): New functions.
7844
7845 * xdisp.c (x_produce_glyphs): In handling composition, if a font
7846 is not found, get font_info from the current ascii face.
7847
73acf815 78482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7849
7850 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
7851 buffer-file-name to Qnil before calling insert_from_buffer.
7852
7853 * font.c (font_unparse_fcname): Pay attention to the case that
7854 foundry is a null string.
7855
73acf815 78562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7857
7858 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
7859
7860 * font.c (Qunicode_sip): New variable.
7861 (syms_of_font): Declare it as a Lisp symbol.
7862
7863 * font.h (Qunicode_sip): Extern it.
7864
73acf815 78652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7866
1f45f627 7867 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
7868
7869 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 7870 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
7871 the first elememnt of allocated memory.
7872
1f45f627 7873 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
7874
7875 * xdisp.c (handle_composition_prop): Set it->c to the first
7876 non-TAB component.
1f45f627
GM
7877 (fill_composite_glyph_string): Change argument.
7878 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
7879 (x_produce_glyphs): Fix handling of left/right padding.
7880
73acf815 78812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7882
7883 * coding.c (detect_coding_system): Fix for handling off
7884 inhibit_iso_escape_detection. Fix for the case that no coding
7885 system is defined for a specific coding category.
7886
73acf815 78872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7888
1f45f627 7889 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
7890
7891 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
7892 opening a font.
7893
7894 * fileio.c (Finsert_file_contents): On recovering a file, assume
7895 Unix-like eol.
7896 (choose_write_coding_system): On auto-saving a file, force
7897 Unix-like eol.
7898
7899 * coding.c (setup_coding_system): Fix setting of
7900 coding->common_flags based on eol_type.
7901 (coding_inherit_eol_type): If PARENT is not nil, be sure to
7902 inherit from it.
7903
73acf815 79042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7905
1f45f627 7906 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 7907
73acf815 79082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7909
1f45f627 7910 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
7911 (ftfont_list): Don't check :name property.
7912 (ftfont_match): New function.
7913 (ftfont_pattern_entity): If the pattern doesn't contain
7914 FC_SPACING, don't assuce FC_MONO.
7915
7916 * font.h (struct font_driver): New member `match'.
1f45f627 7917 (font_update_drivers): Adjust prototype.
aca7a3d2 7918
4c4475a8
GM
7919 * font.c (font_parse_fcname, font_parse_name): Don't change :name
7920 property of FONT.
aca7a3d2
MB
7921 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
7922 them unconditionally.
7923 (font_matching_entity): New function.
7924 (font_open_by_name): Try font_matching_entity if exact match is
7925 not found.
7926 (font_update_drivers): Delete the arg FONT. Return a list of
7927 actually used backends. Don't free faces, font caches here.
7928 Don't store data in frame parameters. Don't call x_set_font.
7929 (Ffont_spec): Store :name property as is.
7930 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
7931 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
7932 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
7933 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
7934 Call font->driver->otf_gsub instead of font_otf_gsub.
7935
7936 * frame.c (x_set_font_backend): Do more works that were done in
7937 font_update_drivers before.
7938
7939 * xfont.c (xfont_match): New function.
7940 (xfont_driver): Set xfont_driver.match to xfont_match.
7941 (xfont_draw): Set font in GC if necessary.
7942
7943 * ftxfont.c (ftxfont_match): New function.
7944 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
7945
7946 * xftfont.c (xftfont_match): New function.
7947 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
7948
73acf815 79492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7950
7951 * font.h (struct font): New member scalable.
7952 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 7953 (font_otf_gsub): Adjust prototype.
aca7a3d2 7954
1f45f627
GM
7955 * font.c (font_otf_capability): Fix handling of the default langsys.
7956 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
7957 Check the contents of SPEC.
7958 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
7959 (check_gstring): New function.
7960 (REPLACEMENT_CHARACTER): New macro.
7961 (font_otf_gsub): New arg alternate_subst. Be sure to set all
7962 glyph codes of GSTRING.
7963 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
7964 (font_prepare_composition): Set cmp->glyph_len.
7965 (font_open_entity): Set font->scalable.
7966 (Ffont_get): Handle :otf property.
7967 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
7968 functions.
7969 (Fquery_font): Use font->font.full_name.
7970 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
7971 Sfont_otf_alternates.
7972
7973 * ftfont.c (ftfont_open): Set font->font.full_name and
7974 font->font.name properly. Fix calculation of font->font.height
7975 and font->min_width.
7976
7977 * ftxfont.c (ftxfont_create_gcs): New function.
7978 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
7979 (ftxfont_draw_backgrond): Fix filling region.
7980 (ftxfont_default_fid): New function.
7981 (ftxfont_open): Set xfotn->fid to the return value of
7982 ftxfont_default_fid.
7983 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
7984 (ftxfont_done_face): Free only GCs that are created by
7985 ftxfont_create_gcs.
7986 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
7987
7988 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
7989 Clip to src->width, etc (not src->clip_XXX).
7990
7991 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
7992 FontBackend frame parameter.
7993
73acf815 79942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7995
7996 * font.h (struct font_driver_list): New member `on'.
7997 (Fclear_font_cache): EXFUN it.
7998 (font_update_drivers): Extern it.
7999
8000 * font.c (font_unparse_fcname): Fix typo (swidth->width).
8001 (font_list_entities): Check driver_list->on.
8002 (register_font_driver): Initalize `on' member to 0.
8003 (font_update_drivers): New function.
8004 (Fclear_font_cache): Check driver_list->on.
8005
8006 * frame.h (Qfont_backend): Extern it.
8007 (x_set_font_backend): Extern it.
8008
8009 * frame.c (Qfont_backend): New variable.
8010 (frame_parms): New element for font-backend.
8011 (x_set_font_backend): New function.
8012
8013 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
8014 FontBackend frame parameter.
8015 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
8016 x_set_font_backend.
8017
8018 * xfont.c (xfont_list): Don't try listing by :name property if the
8019 name is not for XLFD.
8020
73acf815 80212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8022
8023 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
8024 (LGLYPH_SET_TO): New macros.
8025 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
8026 element of G is vector or not.
8027 (font_at): Extern it.
8028
8029 * font.c: Include window.h.
8030 (font_lispy_object): New function.
8031 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
8032 end of valid glyph.
8033 (font_close_object): Fix getting (struct font *).
8034 (font_at): New function.
8035 (Ffont_get): If FONT is a font-object, get entity from it.
8036 (Ffont_make_gstring): Initialize elements of glyphs with nil.
8037 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
8038 range check.
8039 (Ffont_at): New function.
8040 (syms_of_font): Defsubr Sfont_at.
8041
8042 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 8043 before the entry for Qcomposition.
1f45f627 8044 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
8045 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
8046 the font in gstring.
8047 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
8048 LGLYPH_FORM (g) to detect the end of valid glyph.
8049 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
8050 we are composing with gstring.
8051
8052 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
8053 Check if adjustment is vector or not.
8054
8055 * Makefile.in (font.o): Make it depends on window.h.
8056
73acf815 80572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8058
8059 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
8060 adjustment is vector or not.
8061
73acf815 80622008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
8063
8064 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
8065
73acf815 80662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8067
8068 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
8069 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
8070 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
8071
1f45f627 8072 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 8073 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
8074 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
8075 LGLYPH format.
aca7a3d2 8076
1f45f627 8077 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
8078 the change of LGLYPH format.
8079
73acf815 80802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8081
8082 * ftfont.c (ftfont_list): Fix typo.
1f45f627 8083 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 8084
880820fe 80852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
8086
8087 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
8088
8089 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
8090 xftface_info is non-NULL.
8091
880820fe 80922008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 8093
1f45f627 8094 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 8095
73acf815 80962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8097
8098 * ftfont.c (ftfont_list): Pay attention to the case that
8099 FC_CAPABILITY is not defined.
8100
73acf815 81012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8102
8103 * xftfont.c (xftfont_open): Set charset related members to -1.
8104
1f45f627
GM
8105 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
8106 QCname.
aca7a3d2
MB
8107 (ftfont_open): Set charset related members to -1.
8108
8109 * fontset.c (Votf_script_alist): New variable.
8110 (syms_of_fontset): Initialize it.
8111 (fontset_font): Delete unused variable.
8112
8113 * fontset.h (Votf_script_alist): Extern it.
8114
1f45f627 8115 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
8116
8117 * font.h (font_close_object, font_merge_old_spec): Extern them.
8118
73acf815 81192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8120
8121 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
8122 (syms_of_font): Initialize them.
8123 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
8124 (font_prop_validate_type): Delete.
8125 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
8126 Change caller.
8127 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
8128 (font_prop_validate_extra): Delete.
aca7a3d2
MB
8129 (font_prop_validate_spacing): New function.
8130 (font_property_table): Add elements for all known properties.
1f45f627
GM
8131 (get_font_prop_index): Rename from check_font_prop_name. New
8132 argument FROM. Change caller.
aca7a3d2 8133 (font_prop_validate): Validate all known properties.
1f45f627 8134 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
8135 (font_expand_wildcards): Make it static. Fix the way of shrinking
8136 the possible range.
1f45f627 8137 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 8138 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 8139 Change caller.
aca7a3d2 8140 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
8141 (font_parse_fcname): Delete argument merge. Fix parsing of point
8142 size. Don't validate properties values here. Change caller.
8143 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
8144 (font_open_by_name): Delete unused variable.
8145 (Ffont_spec): Likewise. Validate property values.
8146 (Ffont_match_p): New function.
8147
8148 * font.h (QCscalable): Extern it.
1f45f627 8149 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 8150
1f45f627 8151 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 8152
1f45f627 8153 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
8154 (xfont_list_pattern): New function.
8155 (xfont_list): Use xfont_list_pattern.
8156
73acf815 81572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8158
8159 * font.h (Flist_fonts): EXFUN it.
8160
73acf815 81612008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8162
8163 * w32term.c (w32_initialize): Add back smoothing_type and
8164 smoothing_enabled definitions.
8165
73acf815 81662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8167
8168 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
8169 s->face->font on determining underline position.
8170
73acf815 81712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8172
8173 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
8174 (font_has_char): Accept font-object too.
8175 (font_find_for_lface): Try at first with a size specified in face.
8176
73acf815 81772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8178
8179 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
8180 font_open_by_name.
8181
73acf815 81822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8183
8184 * font.h (QCspacing, QCdpi): Extern them.
8185 (enum font_spacing): New enum.
8186 (FONT_PIXEL_SIZE_QUANTUM): New macro.
8187
8188 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
8189 (QCspacing, QCdpi): New variables.
8190 (syms_of_font): Initialize them.
8191 (font_pixel_size): New function.
8192 (font_put_extra): New function.
8193 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
8194 in FONT_EXTRA.
e9184ccb
JB
8195 (font_parse_fcname): Handle enumenrated values (e.g. bold).
8196 Fix handling font size. Add QCname property that contains only
aca7a3d2 8197 unknown properties.
1f45f627 8198 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 8199 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
8200 (font_sort_entites, font_list_entities, font_find_for_lface)
8201 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 8202 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
8203
8204 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
8205 include weight in listing pattern, instead check weight of each
8206 listed font. Don't include scalable in pattern. Pay attention to
8207 FONT_PIXEL_SIZE_QUANTUM.
8208
73acf815 82092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8210
aca7a3d2 8211 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 8212 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
8213 (font_list_entities): Handle float size correctly.
8214 (font_open_by_name): Prefer `normal' property values if the name
8215 doesn't specify them.
8216
8217 * fontset.c (Finternal_char_font): Use font_get_name, not
8218 Ffont_xlfd_name.
8219
8220 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
8221 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
8222 pattern. Don't force scalable.
8223
8224 * xftfont.c (xftfont_open): For generating a name, start from
8225 96-byte buffer.
8226
880820fe 82272008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
8228
8229 * frame.h (x_new_fontset2): Fix prototype.
8230
73acf815 82312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8232
1f45f627 8233 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
8234 (font_match_p, font_get_spec, font_parse_fcname)
8235 (font_unparse_fcname): Extern them.
1f45f627 8236 (font_get_name): Adjust prototype.
aca7a3d2
MB
8237
8238 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
8239 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
8240 (font_expand_wildcards): Fix handling ENCODING field. Avoid
8241 unnecessary checks for weight, slant, and swidth.
8242 (font_parse_fcname): New function.
8243 (font_unparse_fcname): New function.
8244 (font_parse_name): New function.
8245 (font_match_p): New function.
1f45f627 8246 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
8247 (font_get_spec): New function.
8248 (Qunspecified, Qignore_defface): Don't extern them.
8249 (font_find_for_lface): Assume that LFACE is fully specified.
8250 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
8251 object, use it for FACE.
8252 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
8253 driver->parse_name.
8254 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
8255
1f45f627
GM
8256 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
8257 prototype.
aca7a3d2 8258
1f45f627
GM
8259 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
8260 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
8261 make_fontset.
8262
1f45f627 8263 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 8264
1f45f627 8265 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
8266 of x_new_fontset2.
8267
8268 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
8269 (Qsans__serif): New variables.
8270 (ftfont_generic_family_list): New variable.
8271 (syms_of_ftfont): Initialize the above variables.
1f45f627 8272 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
8273 (ftfont_list_generic_family): New function.
8274 (ftfont_parse_name): Delete this function.
1f45f627 8275 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
8276 (ftfont_list_family): Fix args to FcObjectSetBuild.
8277
8278 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
8279 object in attrs[LFACE_FONT_INDEX].
8280 (set_lface_from_font_name): Cancel all changes for font-backend.
8281 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
8282 function.
8283 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
8284 font object in QCfont attribute.
8285 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
8286 (realize_default_face) [USE_FONT_BACKEND]: Call
8287 set_lface_from_font_and_fontset.
8288
8289 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
8290 "fixed", and signal error here if no suitable font was found.
8291
8292 * xfont.c (xfont_parse_name): Delete this function.
8293
8294 * xftfont.c (xftfont_open): Change coding style of error
8295 handling. Generate fontconfig's fontname pattern.
8296
8297 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
8298 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
8299
8300 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
8301 Both args FONTSET and FONT_OBJECT must be existing ones.
8302
73acf815 83032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8304
8305 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
8306
73acf815 83072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8308
8309 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
8310
8311 * font.h (struct font): Fix typo.
8312
8313 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
8314 XLFD_XXX_INDEX.
8315 (enum xlfd_field_mask): New enum.
1f45f627 8316 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
8317 are followed by non-digits, return a symbol.
8318 (font_expand_wildcards): New function.
8319 (font_parse_xlfd): Fix wildcard handling.
8320 (Ffont_spec): If :name is specified, reflect the info in the other
8321 properties.
8322
8323 * ftfont.c (ftfont_pattern_entity): Fix typo.
8324 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
8325 locale.
8326
73acf815 83272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8328
8329 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
8330
1f45f627 8331 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
8332 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
8333 registry doesn't specify encoding part.
8334 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
8335 (font_open_by_name): At first try parsing the name.
8336 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
8337 as Lisp symbols.
8338
8339 * fontset.c (reorder_font_vector): Pay attention to the case that
8340 the 3rd element of font_def is nil.
8341 (fontset_font): For the default fontset, append one more fontset
8342 elements for a script-based font specification. Don't add script
8343 attribute on finding a font.
8344 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
8345 font name.
8346 (fontset_ascii_font): If a font can't be opened, return nil.
8347
1f45f627 8348 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
8349 (ftfont_pattern_entity): New function.
8350 (ftfont_get_cache): Assume that freetype_font_cache is already
8351 initialized.
8352 (ftfont_list): Handle the case that a file is specified in font
8353 name. Use ftfont_pattern_entity to generate entities.
8354 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
8355 (syms_of_ftfont): Initialize freetype_font_cache.
8356
8357 * xftfont.c (xftfont_open): Make the font name fontconfig's
8358 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
8359 (xftfont_close): Free font->font.name if not NULL.
8360
8361 * xfont.c (xfont_list): If script is specified for a font, return
8362 null_vector.
8363 (xfont_list_family): Declare argument type.
8364
8365 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
8366 name, set LFACE_FONT (lface) to nil.
8367
8368 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
8369 return Qnil.
8370
73acf815 83712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8372
1f45f627 8373 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
8374 (standard_args): Add "-enable-font-backend".
8375
73acf815 83762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8377
8378 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
8379 (struct xftdraw_list, xftdraw_list): Delete them.
8380 (register_xftdraw, check_xftdraw): Delete them.
8381 (xftfont_prepare_face): Don't call register_xftdraw.
8382 (xftfont_done_face): Don't call check_xftdraw.
8383 (xftfont_draw): Get backroudn color only when with_background is
8384 nonzero.
8385
8386 * xfont.c (xfont_encode_char): Fix calculation of char2b.
8387
73acf815 83882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8389
8390 These changes are for the new font handling codes.
8391
8392 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
8393 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
8394 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
8395 (FONTSRC, FONTOBJ): New variables.
8396 (obj): Add $(FONTOBJ).
8397 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
8398 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
8399 @LIBOTF_LIBS@.
8400 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 8401 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 8402
1f45f627 8403 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
8404
8405 * character.h (Vscript_representative_chars): Extern it.
8406
8407 * character.c (Vscript_representative_chars): New variable.
8408 (syms_of_character): Declare it as a Lisp variable.
8409
8410 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
8411 enable_font_backend is nonzero, accept the composition method
8412 COMPOSITION_WITH_GLYPH_STRING.
8413
8414 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
8415 enumeration COMPOSITION_WITH_GLYPH_STRING.
8416
aca7a3d2
MB
8417 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
8418 members clip_x, clip_y, clip_width, and clip_height.
8419 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
8420
8421 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
8422 --enable-font-backend. Call syms_of_font.
8423
8424 * fns.c (assoc_no_quit): New function.
8425
8426 * fontset.h (FONT_INFO_FROM_FACE): New macro.
8427 (face_for_font, new_fontset_from_font)
8428 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
8429
8430 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
8431 (fontset_font, fontset_ascii, face_for_char)
8432 (make_fontset_for_ascii_face, Ffont_info)
8433 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
8434 is nonzero, use font-backend mechanism.
8435 (find_font_encoding): Make it non-static.
8436 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
8437 New functions.
8438
8439 * frame.h (struct frame): New members resx and resy.
8440 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
8441 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
8442
8443 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 8444 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
8445
8446 * lisp.h (assoc_no_quit): Extern it.
8447
8448 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
8449 Through out the file, use FONT_INFO_FROM_FACE instead of
8450 FONT_INFO_FROM_ID, use get_per_char_metric instead of
8451 rif->per_char_metric.
8452 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
8453 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
8454 (get_glyph_face_and_encoding, fill_composite_glyph_string)
8455 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8456 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
8457 nonzero, use font-backend mechanism.
8458 (get_per_char_metric): New function.
8459
8460 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
8461 (set_lface_from_font_name)
8462 (set_font_frame_param, free_realized_face)
8463 (prepare_face_for_display, clear_face_gcs)
8464 (Finternal_set_font_selection_order, realize_x_face)
8465 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
8466 font-backend mechanism.
1f45f627 8467 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
8468 (load_face_font) [USE_FONT_BACKEND]: Abort.
8469 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 8470 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
8471
8472 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
8473 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
8474 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
8475 nonzero, register all available font drivers. Call
8476 x_default_font_parameter for deciding a font.
8477 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
8478
8479 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
8480 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
8481 (x_set_glyph_string_clipping_exactly)
8482 (x_compute_glyph_string_overhangs)
8483 (x_draw_glyph_string_foreground)
8484 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
8485 (x_free_frame_resources) [USE_FONT_BACKEND]: If
8486 enable_font_backend is nonzero, use font-backend mechanism.
8487 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
8488
73acf815 84892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8490
fcb314b2 8491 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
8492 system_eol_type.
8493 (syms_of_coding): Initialize system_eol_type.
8494
fcb314b2
GM
8495 * process.c (Fset_process_coding_system): Inherit system's eol
8496 format if necessary.
aca7a3d2 8497
73acf815 84982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8499
8500 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
8501
73acf815 85022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8503
8504 * coding.c (decode_eol): Pay attention to buffer relocation in
8505 del_range_2.
8506 (decode_coding): Call decode_eol before restoring undo_list.
8507
73acf815 85082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8509
8510 * charset.c (Fdefine_charset_internal): Fix setting of
8511 emacs_mule_bytes.
8512
73acf815 85132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8514
8515 * keyboard.c (read_char): Check if C is a character or not before
8516 looking up Vkeyboard_translate_table.
8517
73acf815 85182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8519
8520 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
8521 condition to terminate the loop.
8522
73acf815 85232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8524
8525 * coding.c (produce_composition): Compare charbuf[i] instead of
8526 args[i] against 0.
8527 (Fterminal_coding_system): Use EQ to compare Lisp objects.
8528
73acf815 85292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8530
8531 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
8532 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
8533 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
8534 detect_coding.
8535 (emacs_mule_char): Handle old style (Emacs 20) component character
8536 of a composition.
4c4475a8
GM
8537 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
8538 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
8539 composition rule.
aca7a3d2
MB
8540 (decode_coding_emacs_mule): Handle invalid bytes correctly.
8541
73acf815 85422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8543
8544 * coding.c (encode_coding_ccl): Allocate destination dynamically
8545 when necessary.
8546
73acf815 85472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8548
8549 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
8550 the loop. When quitted, show a proper error message.
8551
73acf815 85522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8553
aca7a3d2
MB
8554 * xterm.c (x_set_glyph_string_clipping_exactly): Set
8555 src->clip_head and src->clip_tail temporarily instead of src->hl.
8556
8557 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
8558 character sequence.
8559 (Fccl_execute_on_string): Use ASET, not XSET.
8560
73acf815 85612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8562
1f45f627 8563 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 8564
73acf815 85652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8566
8567 * coding.c (decode_coding): Fix the condition of terminating the
8568 decoding loop.
8569
73acf815 85702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8571
8572 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 8573 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 8574
73acf815 85752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8576
8577 * charset.c (map_charset_chars): Fix for ascii-compatible charset
8578 made by a mapping table.
8579
73acf815 85802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8581
8582 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
8583 not.
8584 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
8585 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
8586
8587 * xterm.c (x_draw_composite_glyph_string_foreground): Check
8588 s->face is NULL or not.
8589
73acf815 85902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8591
8592 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
8593 (x_draw_glyph_string): Fix drawing of right_overhang and
8594 left_overhang around/on cursor.
8595
1f45f627 8596 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 8597
73acf815 85982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8599
8600 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
8601
73acf815 86022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8603
4c4475a8
GM
8604 * coding.c (Fdefine_coding_system_internal)
8605 (Fdefine_coding_system_alias): Avoid a duplicated element in
8606 Vcoding_system_alist.
aca7a3d2 8607
73acf815 86082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8609
8610 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
8611
fcb314b2 8612 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
8613 (syms_of_coding): Intern and staticpro it.
8614 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 8615 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
8616
8617 * coding.h (CODING_SYSTEM_P): If ID is not available, call
8618 Fcoding_system_p.
8619 (CHECK_CODING_SYSTEM): If ID is not available, call
8620 Fcheck_coding_system.
4c4475a8
GM
8621 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
8622 Try also Fcheck_coding_system.
aca7a3d2 8623
73acf815 86242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8625
aca7a3d2
MB
8626 * coding.c (code_conversion_restore): GCPRO arg.
8627
73acf815 86282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8629
8630 * character.c (lisp_string_width): Check multibyteness of STRING.
8631
73acf815 86322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8633
8634 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
8635 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
8636 (decode_mac_font_name): Use decode_coding_c_string instead of
8637 decode_coding.
8638 (x_load_font): Initialize fontp->fontset to -1. Set
8639 fontp->encoding_type.
8640
73acf815 86412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8642
8643 * search.c (search_buffer): Give up BM search on case-fold-search
8644 if one of a target character has a case-equivalence of different
8645 byte length even if that target charcter is an ASCII.
1f45f627
GM
8646 (simple_search): Fix calculation of byte length of matched text.
8647 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 8648
73acf815 86492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8650
8651 * coding.c (decode_coding): Fix handling of invalid bytes.
8652
73acf815 86532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8654
8655 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
8656 Unicode characters.
8657
73acf815 86582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8659
8660 * coding.c (encode_coding_object): If a pre-write-conversion
8661 function makes a new buffer, kill it.
8662
73acf815 86632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8664
8665 * coding.c (QCascii_compatible_p): New variable.
8666 (syms_of_coding): Initialize it.
4c4475a8
GM
8667 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
8668 calling string_char.
aca7a3d2
MB
8669 (record_conversion_result): Add `default:' case.
8670 (coding_charset_list): Delete unused variable `coding_type'.
8671 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
8672 property in the plist of the coding system.
8673 (Fcoding_system_put): Check QCascii_compatible_p.
8674
73acf815 86752008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
8676
8677 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
8678 removed calculation of frame `f', as it's now used.
8679
73acf815 86802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8681
1f45f627 8682 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
8683 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
8684 (UNIDATA): New variable.
8685 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
8686 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
8687 $(RUN_TEMACS) unconditionally.
8688
73acf815 86892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8690
1f45f627 8691 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
8692 (admindir): New variable.
8693 ($(lispsource)international/charprop.el): New target.
8694
73acf815 86952008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 8696
1f45f627 8697 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
8698 (syms_of_character): Remove its initialization.
8699
73acf815 87002008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
8701
8702 * w32select.c (validate_coding_system)
8703 (setup_windows_coding_system): New functions.
8704 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
8705 setup_windows_coding_system.
8706 (setup_config, Fw32_get_clipboard_data): Use
8707 validate_coding_system.
8708 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 8709 where signals are allowed.
aca7a3d2
MB
8710
8711 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
8712 (Fcheck_coding_system): Add declarations.
8713
73acf815 87142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8715
1f45f627 8716 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 8717
73acf815 87182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8719
8720 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
8721 string as the second argument for x_new_fontset.
8722
73acf815 87232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8724
8725 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
8726 (encode_coding_object): Use safe_call instead of call2.
8727
73acf815 87282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8729
1f45f627 8730 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
8731
8732 * Makefile.in (lisp): Include charprop.el.
8733
73acf815 87342008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8735
8736 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
8737 Not sure if it's unnecessary.
8738
73acf815 87392008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8740
8741 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
8742 some possibly unnecessary fontset checking code that crashed
1f45f627 8743 when creating a new frame.
aca7a3d2 8744
73acf815 87452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8746
8747 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
8748 lookup_face.
8749
8750 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
8751
1f45f627 8752 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 8753
73acf815 87542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8755
73acf815 8756 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
8757 (coding_charset_list): New function.
8758
8759 * coding.h (coding_charset_list): Extern it.
8760
73acf815 87612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8762
8763 * fontset.c (Fset_fontset_font): Call find_font_encoding with
8764 concatenation of family and registry.
8765
73acf815 87662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8767
8768 * character.h (BYTE8_STRING): Fix typo.
8769
8770 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
8771 string to multibyte (sync to HEAD).
8772
8773 * casefiddle.c (casify_region): Handle changes in byte-length
8774 using replace_range_2 (sync to HEAD).
8775
73acf815 87762008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8777
8778 * chartab.c (map_char_table): GCPRO table and arg.
8779
73acf815 87802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8781
8782 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
8783 already at limit.
8784
73acf815 87852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8786
8787 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
8788 instead of fast_c_string_match_ignore_case.
1f45f627 8789 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 8790 fast_string_match_ignore_case instead of
1f45f627 8791 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 8792
73acf815 87932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8794
8795 * xdisp.c (get_next_display_element): In unibyte case, decide to
8796 display in octal form by checking a chacter by
8797 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
8798
1f45f627 8799 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
8800
8801 * character.c (unibyte_has_multibyte_table): New variable.
8802
8803 * character.h (unibyte_has_multibyte_table): Extern it.
8804 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
8805
73acf815 88062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8807
8808 * coding.c (encode_coding_iso_2022): Fix handling of charset
8809 annotation.
8810
73acf815 88112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8812
8813 * coding.c (setup_coding_system): If coding_system is nil, use
8814 Qundecided.
8815 (Fterminal_coding_system): Return nil if terminal coding system is
8816 `undecided'.
8817 (syms_of_coding): Define coding-system `undecided' here. Setup
8818 terminal_coding as `undecided'.
8819
73acf815 88202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8821
8822 * xdisp.c (message_dolog, set_message_1): Call
8823 unibyte_char_to_multibyte with arg type int.
8824
aca7a3d2
MB
8825 * lread.c (read1): Fix reading of a char-table.
8826
8827 * print.c (print_object): Include sub char-table in cicularities
8828 detection.
8829
73acf815 88302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8831
8832 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 8833 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 8834
73acf815 88352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8836
8837 * fileio.c (report_file_error): Make a unibyte string from
8838 strerror (errorno).
8839 (Fsubstitute_in_file_name): Fix the arg to
8840 unibyte_char_to_multibyte. It is evaluated twice.
8841
73acf815 88422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8843
8844 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
8845
73acf815 88462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8847
8848 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
8849 BOM is not found.
4c4475a8
GM
8850 (detect_coding, detect_coding_system): Optimization for ISO-2022
8851 when no 8-bit data is found.
aca7a3d2 8852
73acf815 88532008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8854
8855 * w32fns.c (x_to_w32_font): Update to use new coding struct.
8856
73acf815 88572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8858
4c4475a8
GM
8859 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
8860 CHARS.
aca7a3d2 8861
73acf815 88622008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8863
8864 * macterm.c (mac_encode_char): Add charset argument and update
8865 to use encoding_type.
2a2e8de7 8866 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
8867 switch to pure fontset.
8868 (decode_mac_font_name): Temporarily remove decoding.
8869 (x_font_name_to_mac_font_name): Temporarily remove encoding.
8870 (x_load_font): Temporarily remove encoding.
aca7a3d2 8871
73acf815 88722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8873
8874 * xfaces.c (Fface_font): If frame is not on a window system,
8875 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
8876 refer to face->font.
8877 (split_font_name_into_vector, build_font_name_from_vector)
8878 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
8879 whne HAVE_WINDOW_SYSTEM is defined.
8880
73acf815 88812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8882
8883 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
8884 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 8885 cmp->glyph_len is zero.
aca7a3d2 8886
1f45f627 8887 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
8888 (Ffontset_info): Make it backward compatible. New arg ALL.
8889
73acf815 88902008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
8891
8892 * process.c (read_process_output): Grow decoding_buf when needed;
8893 this could cause a crash in allocate_string and compact_small_strings.
8894
73acf815 88952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8896
1f45f627 8897 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 8898
73acf815 88992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8900
8901 * coding.c (setup_coding_system): Set coding->common_flags
8902 correctly for raw-text.
8903 (consume_chars): On encoding unibyte text by raw-text, don't check
8904 multibyte form.
1f45f627 8905 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
8906
8907 * fileio.c (e_write): Short cut for the case of no encoding.
8908
73acf815 89092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8910
4c4475a8
GM
8911 * coding.c (detect_coding, detect_coding_system): Delete unused
8912 variables.
aca7a3d2 8913
73acf815 89142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8915
8916 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
8917 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
8918
73acf815 89192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8920
8921 * coding.c (Ffind_coding_systems_region_internal): Include
8922 raw-text and no-conversion in the result.
8923
73acf815 89242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8925
1f45f627 8926 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
8927 (load_font_get_repertory): Delete unnecessary check of ENCODING of
8928 FONT_DEF.
8929 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 8930 (set_fontset_font): Change argument.
aca7a3d2
MB
8931 (Fset_fontset_font): Fix for the case that TARGET is a script
8932 name and charset name.
8933 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
8934
73acf815 89352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8936
1f45f627
GM
8937 * fontset.c (fontset_font): Rename from fontset_face. Change return
8938 value.
4c4475a8
GM
8939 (face_suitable_for_char_p, face_for_char): Adjust for the change
8940 of fontset_font.
aca7a3d2
MB
8941 (make_fontset_for_ascii_face): Fix setting of the fontset element
8942 for ASCII.
8943 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
8944 to get a font name.
1f45f627 8945 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 8946
fcb314b2 8947 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
8948
8949 * character.h (LEADING_CODE_LATIN_1_MIN)
8950 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
8951
73acf815 89522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8953
fcb314b2 8954 * editfns.c (check_translation): New function.
aca7a3d2
MB
8955 (Ftranslate_region_internal): Handle M:N mapping.
8956
73acf815 89572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8958
8959 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
8960
73acf815 89612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8962
8963 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
8964 goto invalid_code.
8965 (decode_coding_iso_2022): Fix handling of invalid designation.
8966
8967 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
8968 after calling code_conversion_save.
8969
73acf815 89702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8971
8972 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
8973
8974 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
8975
8976 * fontset.c: Include "intervals.h".
8977 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
8978 (free_face_fontset, new_fontset_from_font_name): Fix
8979 Lisp_Object/int mixup.
aca7a3d2
MB
8980
8981 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
8982
8983 * coding.c: Add many prototypes for static functions.
8984 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 8985 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
8986 (Funencodable_char_position, Fcheck_coding_systems_region): Call
8987 get_translation_table with max_lookup NULL.
aca7a3d2 8988
73acf815 89892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8990
8991 * coding.c (get_translation_table): Declare it as Lisp_Object.
8992 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
8993 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
8994 instead of CHAR_TABLE_REF.
aca7a3d2 8995
73acf815 89962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8997
1f45f627 8998 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
8999 annotation data format.
9000 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 9001 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 9002 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 9003 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
9004 (decode_coding_ccl, decode_coding_charset): Pay attention to
9005 coding->charbuf_used.
aca7a3d2
MB
9006 (get_translation): New function.
9007 (produce_chars): New arguments translation_table and last_block.
9008 Translate characters here. Return number of carryover chars.
1f45f627
GM
9009 Change caller.
9010 (produce_composition): New argument pos. Change caller.
9011 Adjust for the change of annotation data format.
aca7a3d2
MB
9012 (produce_charset, produce_annotation): Likewise.
9013 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
9014 (consume_chars): New arg translation_table. Change caller.
9015 (translate_chars): Delete.
9016 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 9017
73acf815 90182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9019
9020 * search.c (simple_search): Fix setting this_pos_byte in backward
9021 search.
9022
9023 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
9024 byte sequence.
9025 (detect_coding_ccl): Fix setting of the variable valids.
9026
73acf815 90272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9028
9029 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
9030
9031 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
9032
1f45f627 9033 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
9034 Ftranslate_region. Accept a char-table in TABLE.
9035 (syms_of_editfns): Defsubr Stranslate_region_internal.
9036
9037 * xfaces.c (set_lface_from_font_name): If a font is specified for
9038 a frame, generate a fontset from the font.
9039 (build_scalable_font_name): If the scalable font is requested for
9040 a specific size, don't change that size.
9041 (try_font_list): Try a scalable font also in the case that a
1f45f627 9042 pattern string is specified.
aca7a3d2 9043
73acf815 90442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9045
9046 * xfaces.c (Fface_font): New optional arg CHARACTER.
9047
73acf815 90482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9049
9050 * charset.h (CHARSET_OFFSET): New macro.
9051
73acf815 90522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9053
9054 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
9055
9056 * fontset.c (fontset_face): Handle the case that repertory is a
9057 char-table.
9058 (find_font_encoding): Return nil for unknown encoding.
9059 (Fset_fontset_font): Ignore a font of unknown encoding.
9060
73acf815 90612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9062
1f45f627 9063 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
9064
9065 * fontset.c (fontset_face): Handle fallback fonts correctly.
9066 (Ffontset_info): Return infomation about fallback fonts.
9067
73acf815 90682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9069
9070 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 9071 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
9072 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
9073 the case that it is nil.
9074 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 9075 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
9076
9077 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
9078 subset or superset.
9079
73acf815 90802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9081
9082 * emacs.c (main): Call init_charset after syms_of_XXX.
9083
1f45f627 9084 * charset.c (Vcharset_map_directory): Delete.
1f204af3 9085 (Vcharset_map_path): New variable.
aca7a3d2
MB
9086 (load_charset_map_from_file): Use Vcharset_map_path instead.
9087 (init_charset): Initialize Vcharset_map_path.
9088 (syms_of_charset): Delete declaration of "charset-map-directory",
9089 add declaration of "charset-map-path".
9090
73acf815 90912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9092
4c4475a8
GM
9093 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
9094 ASCII only string.
aca7a3d2
MB
9095
9096 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
9097
9098 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 9099 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 9100
73acf815 91012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9102
9103 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
9104
9105 * coding.c (QCmnemonic, QCdefalut_char)
9106 (QCdecode_translation_table, QCencode_translation_table)
9107 (QCpost_read_conversion, QCpre_write_conversion): New variables.
9108 (get_translation_table): Return a list of translation tables if
9109 necessary.
9110 (decode_coding): Call get_translation_table with ENCODEP 0.
9111 (char_encodable_p): If translation_table is non-nil, always call
9112 translate_char.
9113 (Fdefine_coding_system_internal): Accept list of translation
9114 tables as :encode-translation-table and :decode-translation-table.
9115 (Fcoding_system_put): New function.
9116 (syms_of_coding): Declare new symbols. Defsubr
9117 Scoding_system_put.
4c4475a8
GM
9118 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
9119 typically JISX0212.
aca7a3d2
MB
9120
9121 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
9122 when the charset is superset type.
9123
9124 * character.c (translate_char): Accept list of translation tables.
9125
73acf815 91262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9127
1f45f627 9128 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
9129 (CODING_ATTR_TRANS_TBL): New macro.
9130
9131 * coding.c (get_translation_table): New function.
9132 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
9133 (decode_coding, encode_coding): Utilize get_translation_table.
9134 (char_encodable_p, Funencodable_char_position): Translate char if
9135 necessary.
9136 (Ffind_coding_systems_region_internal)
9137 (Fcheck_coding_systems_region): Setup translation table for encode
9138 in a coding system attribute vector in advance.
aca7a3d2
MB
9139 (Fdefine_coding_system_internal): Allow a symbol as translation
9140 table. For shift-jis type coding system, allow 4th charset.
9141
73acf815 91422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9143
9144 * coding.c (decode_coding_sjis): Check the first byte rigidly.
9145
9146 * xdisp.c (get_next_display_element): Pass -1 as POS to
9147 FACE_FOR_CHAR if displaying a C-string.
9148
73acf815 91492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9150
9151 * composite.c (get_composition_id): Handle xoff and yoff in a
9152 composition rule.
9153
9154 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
9155 (struct composition): New member lbearing and rbearing.
9156
9157 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
9158 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 9159 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
9160
9161 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
9162 composition glyph.
9163
73acf815 91642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9165
9166 * print.c: Include charset.h.
9167 (Vprint_charset_text_property): New variable.
9168 (Qdefault): Extern it.
9169 (PRINT_STRING_NON_CHARSET_FOUND)
9170 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
9171 (print_check_string_result): New variable.
9172 (print_check_string_charset_prop): New function.
9173 (print_prune_charset_plist): New variable.
9174 (print_prune_string_charset): New function.
9175 (print_object): Call print_prune_string_charset if
9176 Vprint_charset_text_property is not t.
9177 (print_interval): Print nothing if itnerval->plist is nil.
9178 (syms_of_print): Declare Vprint_charset_text_property as a lisp
9179 variable. Init and staticpro print_prune_charset_plist.
9180
73acf815 91812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9182
9183 * fontset.c (new_fontset_from_font_name): Use the specified font
9184 for all characters in the new fontset.
9185
9186 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
9187 OBJECT args.
9188
9189 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
9190 OBJECT args for composition too.
9191
9192 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
9193 OBJECT args.
9194
73acf815 91952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9196
9197 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
9198
1f45f627 9199 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 9200 FONT_DEF format.
1f45f627 9201 (fontset_face): New arg id. Change caller.
aca7a3d2 9202 (face_for_char): New args pos and object.
1f204af3 9203 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
9204 (fs_query_fontset): Check NAME by Fassoc too.
9205 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 9206 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 9207
1f45f627 9208 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 9209
4c4475a8
GM
9210 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
9211 (append_space, extend_face_to_end_of_line)
9212 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
9213 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
9214
9215 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
9216 POS and OBJECT args.
9217
9218 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
9219 POS and OBJECT args.
9220
73acf815 92212008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9222
9223 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
9224 of GlobalAlloc'ed memory.
9225
73acf815 92262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9227
9228 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
9229
9230 * charset.h (charset_table_used): Delete extern.
9231
9232 * charset.c (charset_table_used): Make it static.
9233 (map_charset_chars): Fix args to c_function with.
9234
9235 * chartab.c (map_sub_char_table_for_charset): Fix args to
9236 c_function with.
9237
9238 * coding.h (enum coding_result_code): Delete
9239 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
9240
9241 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 9242 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
9243 (Vlast_code_conversion_error): New variables.
9244 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
9245 (ONE_MORE_BYTE): Record error if any instead of signaling an
9246 error. If non-ASCII multibyte char is found, return the negative
9247 value of the code. All callers changed to check it.
9248 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
9249 (record_conversion_result): New function. Change all codes setting
9250 coding->result to call this function.
4c4475a8
GM
9251 (detect_coding_utf_8, decode_coding_utf_8)
9252 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
9253 Don't use the local variable incomplete.
aca7a3d2 9254 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
9255 (decode_coding): Fix of flushing out unprocessed data.
9256 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 9257 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
9258
9259 * fontset.c (set_fontset_font): Fix args.
9260
9261 * lisp.h (CHARACTERBITS): Define as 22.
9262
9263 * process.c (send_process): Be sure to set coding->src_multibyte.
9264
9265 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
9266
73acf815 92672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9268
9269 * xdisp.c (handle_auto_composed_prop): Give limit to
9270 Fnext_single_char_property_change.
9271
73acf815 92722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9273
424c157f 9274 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 9275 table weak.
aca7a3d2
MB
9276
9277 * fontset.c (Fset_fontset_font): Fix docstring.
9278
9279 * lisp.h (detect_coding_system): Adjust prototype.
9280
9281 * fileio.c (kill_workbuf_unwind): Delete this function.
9282 (Finsert_file_contents): Adjust the call of detect_coding_system.
9283 Get conversion_buffer by code_conversion_save. Use the macor
9284 CODING_MAY_REQUIRE_DECODING. After decoding, update
9285 coding_system.
9286
9287 * coding.h (make_conversion_work_buffer): Delete extern.
9288 (code_conversion_save): Extern it.
9289
9290 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 9291 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
9292 (decode_coding_utf_8): Don't do eol converion.
9293 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 9294 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
9295 (decode_coding_emacs_mule, decode_coding_iso_2022)
9296 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9297 Don't do eol converion.
aca7a3d2
MB
9298 (adjust_coding_eol_type): Return a new coding system.
9299 (detect_coding): Don't detect eol. Fix for utf-16 detection.
9300 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
9301 each change.
9302 (decode_coding): Pay attention to undo_list. Do eol convesion for
9303 all types of coding-systems (if necessary).
9304 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 9305 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
9306 Vcode_conversion_reused_work_buf.
9307 (Vcode_conversion_workbuf_name): New variable.
9308 (reused_workbuf_in_use): New variable.
9309 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 9310 (code_conversion_restore): Change argument to cons.
1f45f627
GM
9311 (code_conversion_save): Delete the argument BUFFER. Change callers.
9312 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
9313 Fix for utf-16 detection.
9314 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 9315 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
9316 reused_workbuf_in_use.
9317
73acf815 93182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9319
9320 * keymap.c (store_in_keymap): Pay attention to the case that idx
9321 is a cons specifying a character range.
9322
73acf815 93232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9324
9325 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
9326 HANDLED_RECOMPUTE_PROPS.
9327
9328 * coding.c (Fdefine_coding_system_internal): Fix checking of
9329 ascii compatibility.
9330
73acf815 93312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9332
1f45f627 9333 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
9334 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
9335
9336 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
9337 Resync charset_list to Vemacs_mule_charset_list.
9338
9339 * keymap.c (store_in_keymap): Pay attention to the case that idx
9340 is a cons specifying a character range.
9341
73acf815 93422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9343
9344 * composite.c (update_compositions): Bind inhibit-read-only, etc
9345 to t before calling remove-list-of-text-properties.
9346
9347 * print.c (print_object): Always print ASCII chars as is.
9348
73acf815 93492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9350
1f45f627 9351 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 9352
4c4475a8
GM
9353 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
9354 is a char table.
aca7a3d2 9355
73acf815 93562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9357
1f45f627 9358 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 9359
73acf815 93602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9361
9362 * xfaces.c (set_lface_from_font_name): Fix for the case that
9363 FONTNAME is not fontset name.
9364
73acf815 93652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9366
9367 * fns.c (base64_encode_1): Fix previous change.
9368
73acf815 93692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9370
9371 * fontset.c (set_fontset_font): New function.
9372 (Fset_fontset_font): If a font is specified for a charset, use
9373 map_charset_chars to store the font spec in a fontset.
9374
73acf815 93752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9376
1f204af3 9377 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
9378 (make_fontset): Don't create a fallback fontset here.
9379 (free_face_fontset): Free a fallback fontset (if any) too.
9380 (n_auto_fontsets): Delete this variable.
9381 (auto_fontset_alist): New variable.
9382 (new_fontset_from_font_name): Check auto_fontset_alist.
9383 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
9384 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
9385 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
9386 Defsubr Sfontset_list_all.
9387
73acf815 93882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9389
9390 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
9391
73acf815 93922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9393
9394 * fontset.c (Fnew_fontset): Check NAME more rigidly.
9395
73acf815 93962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9397
9398 * editfns.c (Fgoto_char): Fix docstring.
9399
73acf815 94002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9401
9402 * insdel.c (insert_from_gap): Adjust intervals correctly.
9403
73acf815 94042008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9405
9406 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
9407 (pfnGetFontUnicodeRanges): New dynamically loaded function.
9408 (w32_initialize): Try to load it.
9409 (x_get_font_repertory): Use it if available.
9410 (w32_encode_char): Add shortcut for unicode output.
9411
9412 * w32fns.c (w32_load_system_font): Default charset to -1.
9413 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 9414 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
9415 or wildcard charsets.
9416 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
9417 (w32_codepage_for_font): Return CP_UNICODE for unicode.
9418 (w32_to_x_font): Match charset to real charset.
9419 (enum_font_cb2): Always list unicode versions.
9420
9421 * makefile.w32-in (temacs): Increase EMHEAP.
9422
73acf815 94232008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
9424
9425 * w32term.c (w32_encode_char): New charset parameter.
9426 font_info.encoding becomes encoding_type.
1f45f627 9427 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
9428 (x_new_font): Return quickly if font already set.
9429 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
9430 Use new fs_query_fontset. Try new_fontset_from_font_name.
9431 Use fontset_name for return value.
aca7a3d2
MB
9432
9433 * w32term.h: Declare x_get_font_repertory.
9434
9435 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 9436 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
9437 of encode_coding.
9438 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
9439 decode_coding.
9440
9441 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
9442 of x_new_fontset.
9443 (w32_load_system_font): Initialize charset as unicode.
9444 font_info.encoding becomes encoding_type.
1f45f627
GM
9445 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
9446 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
9447 (syms_of_w32fns): Set get_font_repertory_func.
9448
1f45f627 9449 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 9450 from term.c.
1f45f627 9451 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
9452 encode_coding_object in place of encode_coding.
9453
9454 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
9455 encoding becomes encoding_type.
9456
9457 * term.c (terminal_encode_buffer): Make externally visible.
9458
9459 * makefile.w32-in: Add character.h dependancies.
9460 (character.o, chartab.o): New targets.
9461
73acf815 94622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9463
9464 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 9465 CODING_ID_EOL_TYPE.
aca7a3d2 9466
73acf815 94672008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
9468
9469 * coding.c (produce_chars): Revert last change.
9470
73acf815 94712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9472
9473 * charset.h (charset_unicode): Extern it.
9474
9475 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 9476 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 9477 arg MULTIBYTE.
1f45f627 9478 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
9479 change of find_charsets_in_text.
9480 (Fsplit_char): Fix doc. Never return unknown.
9481
9482 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
9483
9484 * coding.c (Fdefine_coding_system_alias): Update
9485 Vcoding_system_list.
9486
9487 * fontset.c (load_font_get_repertory): Pay attention to the case
9488 that ENCODING of a font is specified by a char-table.
9489
9490 * xterm.c (x_get_font_repertory): Handle the case that the
9491 encoding of font is other than Unicode.
9492
73acf815 94932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9494
9495 * term.c (encode_terminal_code): Don't handle glyph-table. Check
9496 if a character is encodable by the terminal coding system. If
9497 not, produces proper number of `?'s. Update
9498 terminal_encode_buffer and terminal_encode_buf_size if necessary.
9499 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
9500
73acf815 95012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9502
9503 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
9504 variables.
1f45f627 9505 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
9506 characters at once. Store the result of encoding in
9507 terminal_encode_buffer.
4c4475a8
GM
9508 (write_glyphs, insert_glyphs): Adjust for the change of
9509 encode_terminal_code.
aca7a3d2
MB
9510 (term_init): Initialize terminal_encode_buffer and
9511 terminal_encode_buf_size.
9512
9513 * coding.c (consume_chars): If coding->src_object is nil, don't
9514 check annotation.
9515
73acf815 95162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9517
9518 * character.c (char_string): Use ASCII_CHAR_P instead of
9519 SINGLE_BYTE_CHAR_P.
9520
73acf815 95212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9522
9523 * xdisp.c (handle_auto_composed_prop): Check if the last
9524 characters of auto-composed region is newly composed with the
9525 following characters.
9526 (handle_composition_prop): Fix checking of point being inside
9527 composition.
9528
73acf815 95292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9530
9531 * fns.c (concat): Don't change multibyteness of the result by
9532 concatenating an 8-bit character.
9533
9534 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
9535 multibyteness of the result when newelt is an 8-bit character.
9536
73acf815 95372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9538
9539 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
9540 EMACS_INT.
9541
9542 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
9543
9544 * xfaces.c (face_numeric_value): Declare dim size_t.
9545 (Finternal_lisp_face_equal_p): Remove unused f.
9546
9547 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
9548 (MATRIX_ROW): Remove unused vars.
9549 (draw_glyphs, x_insert_glyphs, fast_find_position)
9550 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
9551 byte/char counts.
9552
9553 * regex.c (regex_compile): Remove unused var.
9554
9555 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
9556
9557 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
9558 (Faccessible_keymaps, where_is_internal): Remove unused vars.
9559
9560 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
9561
9562 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
9563
9564 * fileio.c (Fwrite_region): Remove unused var.
9565
9566 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
9567 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
9568
9569 * composite.c (Fremove_list_of_text_properties): Declare.
9570
1f45f627
GM
9571 * coding.c (inhibit_pre_post_conversion): Remove (unused).
9572 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
9573 (coding_inherit_eol_type): Remove unused attrs.
9574 (detect_coding): Cast arg of detect_eol.
9575
9576 * charset.c (syms_of_charset): Remove unused var p.
9577 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
9578 byte/char counts.
9579
9580 * casetab.c (set_case_table): Remove unused var.
9581
9582 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 9583 unused vars.
aca7a3d2 9584
73acf815 95852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9586
9587 * xterm.c (x_bitmap_mask): Declare.
9588
73acf815 95892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9590
9591 * xterm.c (x_term_init): Fix type error.
9592
9593 * lisp.h: Add Funibyte_char_to_multibyte.
9594
9595 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
9596 (Fset_coding_system_priority): Doc fix.
9597
aca7a3d2
MB
9598 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
9599
9600 * indent.c (check_composition): Make start and end EMACS_INT.
9601
9602 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
9603
9604 * xdisp.c (handle_composition_prop, check_point_in_composition):
9605 Make buffer positions EMACS_INT.
9606
9607 * composite.c (find_composition, run_composition_function)
9608 (update_compositions, Ffind_composition_internal): Make buffer
9609 positions EMACS_INT.
9610
9611 * composite.h (find_composition, update_compositions): Make
9612 position args EMACS_INT.
9613
1f45f627 9614 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
9615
9616 * intervals.c (get_property_and_range):
9617 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
9618
9619 * unexalpha.c: Don't include varargs.h.
9620
73acf815 96212008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9622
9623 * coding.h (ENCODE_UTF_8): New.
9624
9625 * Makefile.in (gtkutil.o): Depend on coding.h.
9626
9627 * coding.c (Fset_coding_system_priority): Doc fix.
9628
73acf815 96292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9630
9631 * fileio.c (Finsert_file_contents): Call setup_coding_system in
9632 the case of auto saving.
9633
73acf815 96342008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 9635
4c4475a8
GM
9636 * chartab.c (map_char_table, map_char_table_for_charset): Protect
9637 `range' from GC.
aca7a3d2 9638
73acf815 96392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9640
9641 * coding.c (decode_coding_sjis): Check bytes more rigidly.
9642
73acf815 96432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9644
1f45f627 9645 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
9646 (Fwrite_region): Set Vlast_coding_system_used to the return value
9647 of choose_write_coding_system.
9648
73acf815 96492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9650
9651 * charset.c (Fset_charset_priority): Pay attention to duplicated
9652 arguments.
9653
9654 * coding.c (QCcategory): New variable.
9655 (syms_of_coding): Defsym it. Set all elements of
9656 Vcoding_category_table and their symbol values.
9657 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
9658 coding-category-XXX, and coding-category-list.
9659 (Fdefine_coding_system_internal): Add category in the plist.
9660
73acf815 96612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9662
9663 * callproc.c (Fcall_process): Handle carryover correctly.
9664
1f45f627 9665 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
9666 (raw_text_coding_system): Check NILP (coding_system).
9667 (coding_inherit_eol_type): Check NILP (coding_system) and
9668 NILP (parent).
9669 (consume_chars): Fix for the case of raw-text.
9670
9671 * process.c (read_process_output): Handle carryover correctly.
9672
73acf815 96732008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9674
9675 * regex.c (re_search_2): Fix last change.
9676
73acf815 96772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9678
9679 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
9680 target_multibyte. Even in a unibyte case, return a converted
9681 multibyte char.
9682 (GET_CHAR_AFTER): New macro.
9683 (PATFETCH): Translate via multibyte char.
9684 (HANDLE_UNIBYTE_RANGE): Delete this macro.
9685 (SETUP_MULTIBYTE_RANGE): New macro.
9686 (regex_compile): Setup compiled code so that its multibyteness
9687 matches that of a target. Fix the handling of "[X-YZ]" using
9688 SETUP_MULTIBYTE_RANGE.
9689 (analyse_first) <charset>: For filling fastmap for all multibyte
9690 characters, don't check by BASE_LEADING_CODE_P.
9691 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
9692 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 9693 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
9694 (TARGET_CHAR_AND_LENGTH): Delete this macro.
9695 (TRANSLATE_VIA_MULTIBYTE): New macro.
9696 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
9697 It is the same as RE_MULTIBYTE_P (bufp) now.
9698 <exactn>: Translate via multibyte.
9699 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
9700 translate it.
9701 <charset, charset_not>: Fetch a character by
9702 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
9703 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
9704 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
9705 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
9706 by GET_CHAR_AFTER.
c5ad7a3d 9707 (bcmp_translate): Likewise.
aca7a3d2
MB
9708
9709 * search.c (compile_pattern): Check the member target_multibyte,
9710 not the member multibyte of buf.
9711
9712 * lread.c (read1): While reading a string, set force_singlebyte
9713 and force_multibyte correctly.
9714
4c4475a8
GM
9715 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
9716 up of unibyte_to_multibyte_table.
aca7a3d2 9717
73acf815 97182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9719
9720 * coding.c (setup_coding_system): If coding has
9721 post-read-conversion or pre-write-conversion, set
9722 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
9723 respectively.
9724 (decode_coding_gap): Run post-read-conversion if any.
9725
9726 * fileio.c (Finsert_file_contents): Even if we read into a
9727 unibyte buffer, check if we must decode the result or not.
9728
73acf815 97292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9730
9731 * coding.c (make_conversion_work_buffer): Change the work buffer
9732 name to the same one as that of Emacs 21.
9733
73acf815 97342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9735
1f45f627 9736 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
9737 (code_conversion_restore): Don't extern it.
9738
9739 * coding.c (detected_mask): Delete unused variable.
9740 (decode_coding_iso_2022): Pay attention to the byte sequence of
9741 CTEXT extended segment, and retain those bytes as is.
9742 (decode_coding_ccl): Delete unused variable `valids'.
9743 (setup_coding_system): Delete unused variable `category'.
9744 (consume_chars): Delete unused variable `category'. Make it work
9745 for non-multibyte case.
1f45f627 9746 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
9747 (saved_coding): Delete unused variable.
9748 (code_conversion_restore): Don't check saved_coding->destination.
9749 (code_conversion_save): New function.
9750 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
9751 instead of record_unwind_protect.
1f45f627 9752 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 9753 (detect_coding_system): Delete unused variable `mask'.
1f45f627 9754 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
9755
9756 * fileio.c (kill_workbuf_unwind): New function.
9757 (Finsert_file_contents): On replacing, call
9758 make_conversion_work_buffer with correct args, and call
9759 record_unwind_protect with the first arg kill_workbuf_unwind.
9760
9761 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
9762
73acf815 97632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9764
1f45f627 9765 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
9766 (fontset_add): Fix for the case that TO is less than TO1.
9767 (Ffontset_info): Don't use fallback fontset on checking the
9768 default fontset.
9769 (dump_fontset): New function for debugging.
9770
9771 * coding.c (Fdefine_coding_system_internal): Fix for the case that
9772 coding_type is Qcharset.
9773
73acf815 97742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9775
9776 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
9777 (map_char_table): Don't inherit the value from the parent on
1f45f627 9778 initializing VAL. Adjust for the above change.
aca7a3d2 9779
73acf815 97802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9781
9782 * coding.c (Qsignature, Qendian): Delete these variables.
9783 (syms_of_coding): Don't initialize them.
9784 (CATEGORY_MASK_UTF_16_AUTO): New macro.
9785 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
9786 detect_info->found.
9787 (decode_coding_utf_16): Don't detect BOM here.
9788 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
9789 is NOT utf_16_without_bom.
9790 (setup_coding_system): For a coding system of type utf-16, check
9791 if the attribute :endian is Qbig or not (not nil or not), and set
9792 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
9793 (detect_coding): If coding type is utf-16 and BOM detection is
9794 required, detect it.
9795 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 9796 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 9797
73acf815 97982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9799
9800 * coding.c (coding_set_source): Fix for the case that the current
9801 buffer is different from coding->src_object.
9802 (decode_coding_object): Don't use the conversion work buffer if
9803 DST_OBJECT is a buffer.
9804
73acf815 98052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9806
9807 * lread.c (read_emacs_mule_char) [len==2]: Index
9808 emacs_mule_charset correctly.
9809
73acf815 98102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9811
9812 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
9813 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 9814 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
9815 treated specially.)
9816 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
9817 (detected_mask): Remove Big5 bits.
9818
73acf815 98192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9820
9821 The following changes are to make the font rescaling facility
9822 compatible with Emacs 21.
9823
1f45f627 9824 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
9825 Vface_resizing_fonts.
9826 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 9827 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
9828 (split_font_name): Set font->rescale_ratio.
9829 (better_font_p): Pay attention to font->rescale_ratio.
9830 (build_scalable_font_name): Likewise. Change RESX, and RESY
9831 fields.
1f45f627 9832 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 9833
73acf815 98342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9835
9836 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
9837 (Qutf_16_le): Remove these variables.
9838 (syms_of_coding): Don't DEFSYM them.
9839 (decode_coding_utf_16): Fix handling of BOM.
9840 (encode_coding_utf_16): Fix handling of BOM.
9841
73acf815 98422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9843
9844 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 9845 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 9846
73acf815 98472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9848
9849 * coding.c (Fcheck_coding_systems_region): Fix type errors.
9850
73acf815 98512008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9852
9853 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9854 and fix C types.
9855
73acf815 98562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9857
9858 * xdisp.c (SKIP_GLYPHS): New macro.
9859 (set_cursor_from_row): Pay attention to string display properties.
9860
9861 * category.c (copy_category_entry): Fix for the case that RANGE
9862 is an integer.
9863
9864 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
9865
1f45f627 9866 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 9867
73acf815 98682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9869
9870 * charset.c (Fcharset_id_internal): New function.
9871 (syms_of_charset): Defsubr it.
9872
9873 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
9874 with the last arg charset_list acquired from coding.
9875 (Fdefine_coding_system_internal): For ccl-based coding system, fix
9876 the attribute coding_attr_ccl_valids.
9877
9878 * coding.h (enum define_coding_ccl_arg_index): Set the first
9879 member coding_arg_ccl_decoder to coding_arg_max.
9880
1f45f627 9881 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
9882
9883 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
9884 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
9885 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
9886 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
9887 last arg Qnil.
aca7a3d2 9888
73acf815 98892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9890
9891 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
9892 call encode_char.
9893
1f45f627 9894 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 9895
73acf815 98962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9897
1f45f627 9898 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 9899
73acf815 99002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9901
9902 * dispextern.h (check_face_attributes, generate_ascii_font_name)
9903 (font_name_registry): Don't extern them.
1f45f627 9904 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
9905
9906 * fontset.h (Qfontset): Don't extern it.
9907 (new_fontset_from_font_name): Extern it.
9908
9909 * fontset.c: Give 8 extra slots to fontset objects.
9910 (Qfontset_info): New variable.
9911 (syms_of_fontset): Defsym it.
9912 (FONTSET_FALLBACK): New macro.
9913 (fontset_face): Try also the default fontset.
1f45f627
GM
9914 (make_fontset): Realize a fallback fontset from the default fontset.
9915 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
9916 using split_font_name_into_vector and build_font_name_from_vector.
9917 (Fset_fontset_font): Access the elements of font_spec by enum
9918 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
9919 name by using split_font_name_into_vector.
9920 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
9921 generate a proper font name from the fontset name. Update
9922 Vfontset_alias_alist.
9923 (n_auto_fontsets): New variable.
9924 (new_fontset_from_font_name): New function.
9925 (Ffont_info): Store the information about fonts generated from the
1f45f627 9926 default fontset in the first extra slot of the returned char-table.
aca7a3d2 9927
1f45f627
GM
9928 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
9929 (font_name_registry): Delete function.
aca7a3d2
MB
9930 (split_font_name_into_vector): New function.
9931 (build_font_name_from_vector): New function.
1f45f627 9932 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
9933 (choose_face_font): If we are choosing an ASCII font, and ATTRS
9934 specifies an explicit font name, return the name as is. Make a
9935 list of registy names.
9936
1f45f627 9937 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
9938 of x_new_fontset.
9939 (Fx_create_frame): Don't call x_new_fontset here. Just use
9940 x_list_fonts to check the existence of fonts.
9941
1f45f627 9942 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
9943
9944 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
9945 string. Use new_fontset_from_font_name to create a fontset from a
9946 font name.
9947
1c8658b9
GM
99482008-02-01 Kenichi Handa <handa@m17n.org>
9949
9950 * syntax.c (Vfind_word_boundary_function_table): New name for
9951 Vnext_word_boundary_function_table.
9952 (find-word-boundary-function-table): New name for
9953 next-word-boundary-function-table.
9954
73acf815 99552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9956
9957 * Makefile.in: Fix some dependencies.
9958
9959 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
9960 set it to nil before returning.
9961
9962 * composite.c (update_compositions): Fix type error.
9963
9964 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
9965
73acf815 99662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9967
9968 * xterm.c (x_new_font): Optimize for the case that the font is
9969 already set for the frame.
9970
73acf815 99712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9972
9973 * chartab.c (char_table_ascii): Check if the char table contents
9974 is sub-char-table or not.
4c4475a8
GM
9975 (char_table_set, char_table_set_range): Fix argument to
9976 char_table_ascii.
aca7a3d2
MB
9977
9978 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
9979 (detect_coding_utf_8, detect_coding_utf_16)
9980 (detect_coding_emacs_mule, detect_coding_iso_2022)
9981 (detect_coding_sjis, detect_coding_big5)
9982 (detect_coding_ccl, detect_coding_charset): Change argument MASK
9983 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 9984 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
9985 (MAX_ANNOTATION_LENGTH): New macro.
9986 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
9987 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
9988 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 9989 (ADD_CHARSET_DATA): New macro.
1f45f627 9990 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
9991 (decode_coding_emacs_mule, decode_coding_iso_2022)
9992 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9993 Produce charset annotation data in coding->charbuf.
9994 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
9995 to charset annotation data in coding->charbuf.
9996 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
9997 coding->common_flags if the coding system is iso-2022 based and
9998 uses designation.
1f45f627 9999 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
10000 (produce_charset): New function.
10001 (produce_annotation): Handle charset annotation.
10002 (handle_composition_annotation, handle_charset_annotation): New
10003 functions.
10004 (consume_chars): Handle charset annotation. Utilize the above two
10005 functions.
10006 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
10007 buffer, get the deleted text as a string and set
10008 coding->src_object to that string.
10009 (detect_coding, detect_coding_system): Use the new struct
10010 coding_detection_info.
10011
10012 * coding.h (struct coding_detection_info): New structure.
1f45f627 10013 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
10014 (CODING_ANNOTATE_CHARSET_MASK): New macro.
10015
73acf815 100162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10017
10018 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
10019
73acf815 100202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10021
1f45f627 10022 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
10023 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
10024 to new local and nullify apropos_accumulate before returning.
10025 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
10026
73acf815 100272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10028
10029 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
10030 correctly.
10031
73acf815 100322008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10033
10034 * fns.c (Flanginfo): Call synchronize_system_time_locale.
10035
73acf815 100362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10037
10038 The following changes are to make character composition happen
10039 automatically on displaying.
10040
2a2e8de7 10041 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 10042
1f45f627
GM
10043 * composite.h (Qauto_composed, Vauto_composition_function)
10044 (Qauto_composition_function): Extern them.
aca7a3d2 10045
1f45f627
GM
10046 * composite.c (Vcomposition_function_table)
10047 (Qcomposition_function_table): Delete variables.
10048 (Qauto_composed, Vauto_composition_function)
10049 (Qauto_composition_function): New variables.
aca7a3d2
MB
10050 (run_composition_function): Don't call
10051 compose-chars-after-function.
10052 (update_compositions): Clear `auto-composed' text property.
10053 (compose_chars_in_text): Delete this function.
10054 (syms_of_composite): Staticpro Qauto_composed and
10055 Qauto_composition_function. Declare Vauto_composition_function as
10056 a Lisp variable.
10057
10058 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
10059
10060 * xdisp.c (it_props): Add an entry for Qauto_composed.
10061 (handle_auto_composed_prop): New function.
10062
10063 * xselect.c (selection_data_to_lisp_data): Don't call
10064 compose_chars_in_text.
10065
73acf815 100662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10067
10068 * keyboard.c (read_char): Modify checking around use of
10069 Vkeyboard_translate_table.
10070
10071 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
10072 and fix C types.
10073
73acf815 100742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10075
4c4475a8
GM
10076 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
10077 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10078 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 10079 the case that the last byte is '\r' correctly.
1f45f627
GM
10080 (decode_coding): Flush out the unprocessed data correctly.
10081 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 10082
73acf815 100832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10084
f245f2c6
JB
10085 * xterm.c (XTread_socket): Fix changes for defined keysyms.
10086 Add XK_ISO... case.
aca7a3d2
MB
10087 (xaw_scroll_callback): Revert last change.
10088
73acf815 100892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10090
1f45f627 10091 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 10092
73acf815 100932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10094
10095 * xfaces.c (Vface_resizing_fonts): New variable.
10096 (struct font_name): New member `resizing_ratio'.
10097 (font_resizing_ratio): New function.
10098 (split_font_name): Set font->resizing_ratio.
10099 (better_font_p): Pay attention to font->resizing_ratio.
10100 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
10101 RESX, and RESY fields.
10102 (try_alternative_families): Try scalable fonts if
10103 Vscalable_fonts_allowed is not Qt.
10104 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
10105
73acf815 101062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10107
10108 * xterm.c (xaw_scroll_callback): Cast correctly.
10109
73acf815 101102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10111
10112 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
10113 (lispy_kana_keys): Comment out.
10114 (make_lispy_event) [XK_kana_A]: Comment out.
10115
10116 * xterm.c (xaw_scroll_callback): Cast call_data.
10117 (XTread_socket): Deal with ASCII keysyms.
10118 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
10119
73acf815 101202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10121
10122 * xterm.c (Vx_keysym_table): New.
10123 (syms_of_xterm): Initialize it.
10124 (XTread_socket): Use it.
10125 From head: Eliminate incorrect optimization that tried to avoid
10126 decoding the output of X*LookupString.
10127 (x_get_font_repertory): Delete charset declaration.
10128
73acf815 101292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10130
1f45f627
GM
10131 * coding.c (detect_coding_charset): If only ASCII bytes are found,
10132 return 0.
aca7a3d2
MB
10133 (Fdefine_coding_system_internal): Setup
10134 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
10135
73acf815 101362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10137
10138 * coding.c (Fcheck_coding_system): Doc fix.
10139
10140 * editfns.c (Finsert_byte): Return a proper value.
10141
73acf815 101422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10143
10144 * coding.c (decode_coding): Fix args to translate_chars. Pay
10145 attention to Vstandard_translation_table_for_decode.
10146 (encode_coding): Fix args to translate_chars. Pay attention to
10147 Vstandard_translation_table_for_encode.
10148
10149 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
10150 SINGLE_BYTE_CHAR_P.
10151
10152 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
10153 not by SINGLE_BYTE_CHAR_P.
10154
10155 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
10156 SINGLE_BYTE_CHAR_P.
10157
10158 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
10159 SINGLE_BYTE_CHAR_P.
10160
10161 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
10162 by SINGLE_BYTE_CHAR_P.
10163
10164 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
10165 SINGLE_BYTE_CHAR_P.
10166
73acf815 101672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10168
10169 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
10170
73acf815 101712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10172
10173 * fns.c (Flanginfo): Fix typo.
10174
10175 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
10176
73acf815 101772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10178
4c4475a8
GM
10179 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
10180 (detect_coding_emacs_mule, detect_coding_iso_2022)
10181 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
10182 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 10183 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 10184 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 10185 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 10186
73acf815 101872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10188
1f45f627
GM
10189 * character.c (char_string): Rename from
10190 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
10191 (string_char): Rename from string_char.
aca7a3d2 10192
4c4475a8
GM
10193 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
10194 if C is greater than MAX_3_BYTE_CHAR.
10195 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
10196 string_char instead of string_char_with_unification.
aca7a3d2 10197
73acf815 101982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10199
10200 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
10201
73acf815 102022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10203
1f45f627 10204 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
10205
10206 * regex.c (re_search_2): Fix for the case of unibyte buffer.
10207
73acf815 102082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10209
10210 * charset.c (define_charset_internal): Rename `supprementary'.
10211
10212 * Makefile.in (lisp, shortlisp): Remove latin-N.
10213
73acf815 102142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10215
10216 * xfns.c (x_window, x_window): Use use_xim.
10217
10218 * xterm.c (use_xim): Initialize.
10219 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
10220 (x_term_init): Maybe set use_xim.
10221
10222 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
10223
73acf815 102242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10225
10226 * search.c (search_buffer): Fix case-fold-search of multibyte
10227 characters.
10228 (boyer_moore): Rename the last argument to char_high_bits.
10229
73acf815 102302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10231
10232 * xdisp.c (display_string): Fix for the case of zero width glyph.
10233
10234 * xfns.c (x_set_font): Change the error message of the case that
10235 x_new_fontset returns Qt.
10236
10237 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
10238 (Finternal_set_lisp_face_attribute): Use signal_error for the
10239 error of invalid fontset.
10240
10241 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
10242 fontset, return Qt.
10243
73acf815 102442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10245
aca7a3d2
MB
10246 * unexelf.c (unexec): Make .got handling not SGI-specific.
10247
10248 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
10249
10250 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
10251
10252 * keyboard.c (read_key_sequence): Fix type error.
10253
10254 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
10255 type error.
10256
10257 * fontset.c (fontset_add): Return Lisp_Object.
10258
73acf815 102592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10260
10261 * charset.h (charset_ordered_list_tick): Declare extern.
10262
73acf815 102632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10264
73acf815 10265 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
10266 for handling syntax, category, and case conversion for unibyte
10267 characters by converting them to multibyte on the fly. With these
10268 changes, we don't have to setup syntax and case tables for unibyte
10269 characters in each language environment.
10270
10271 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
10272 multibyte if necessary.
10273
10274 * bytecode.c (Fbyte_code): Likewise.
10275
10276 * character.h (LEADING_CODE_LATIN_1_MIN)
10277 (LEADING_CODE_LATIN_1_MAX): New macros.
10278 (unibyte_to_multibyte_table): Extern it.
10279 (unibyte_char_to_multibyte): New macro.
10280 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
10281 (CHAR_LEADING_CODE): New macro.
10282 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
10283
10284 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 10285 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
10286 (multibyte_char_to_unibyte): If C is an eight-bit character,
10287 convert it to the corresponding byte value.
10288
10289 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
10290 not 1, singals an error. Update the elements of
10291 unibyte_to_multibyte_table.
10292 (init_charset_once): Initialize unibyte_to_multibyte_table.
10293 (syms_of_charset): Define the charset `iso-8859-1'.
10294
aca7a3d2
MB
10295 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
10296 as is without converting it to unibyte. In a unibyte buffer,
10297 convert C to multibyte before checking the syntax.
10298
1f45f627 10299 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
10300
10301 * minibuf.c (Fminibuffer_complete_word): Use the macro
10302 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
10303
10304 * regex.h (struct re_pattern_buffer): New member target_multibyte.
10305
10306 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
10307 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
10308 that is zero, convert an eight-bit char to multibyte.
10309 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
10310 non-emacs case.
10311 (PATFETCH): Convert an eight-bit char to multibyte.
10312 (HANDLE_UNIBYTE_RANGE): New macro.
10313 (regex_compile): Setup the compiled pattern for multibyte chars
10314 even if the given regex string is unibyte. Use PATFETCH_RAW
10315 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 10316 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 10317 only for ASCII chars.
1f45f627 10318 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
10319 is multibyte.
10320 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
10321 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 10322 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
10323 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
10324 multibyte always 1.
10325 (re_search_2): In emacs, set the locale variable multibyte to 1,
10326 otherwise to 0. New local variable target_multibyte. Check it
10327 to decide the multibyteness of STR1 and STR2. If
10328 target_multibyte is zero, convert unibyte chars to multibyte
10329 before translating and checking fastmap.
10330 (TARGET_CHAR_AND_LENGTH): New macro.
10331 (re_match_2_internal): In emacs, set the locale variable multibyte
10332 to 1, otherwise to 0. New local variable target_multibyte. Check
10333 it to decide the multibyteness of STR1 and STR2. Use
10334 TARGET_CHAR_AND_LENGTH to fetch a character from D.
10335 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 10336 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
10337 target_multibyte, not with multibyte.
10338 <begline>: Declare the local variable C as `unsigned'.
10339 (bcmp_translate): Change the last arg name to target_multibyte.
10340
10341 * search.c (compile_pattern_1): Don't adjust the multibyteness of
10342 the regexp pattern and the matching target. Set cp->buf.multibyte
10343 to the multibyteness of the regexp pattern. Set
1f45f627 10344 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
10345 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
10346 FETCH_STRING_CHAR_ADVANCE.
10347 (Freplace_match): Convert unibyte chars to multibyte.
10348
4c4475a8
GM
10349 * syntax.c (char_quoted, back_comment, scan_words)
10350 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
10351 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 10352 unibyte chars to multibyte.
1f45f627
GM
10353 (skip_chars): Delete the arg syntaxp, and move the code for
10354 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
10355 Fix the case that the multibyteness of STRING and the current
10356 buffer doesn't match.
10357 (skip_syntaxes): New function.
10358 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
10359 SINGLE_BYTE_CHAR_P.
aca7a3d2 10360
73acf815 103612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10362
10363 * xfaces.c (QCfontset): New variable.
10364 (LFACE_FONTSET): New macro.
10365 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
10366 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
10367 (Finternal_set_lisp_face_attribute)
10368 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
10369 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
10370 check also LFACE_FONTSET_INDEX.
10371 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
10372 attrs[LFACE_FONT_INDEX].
10373 (syms_of_xfaces): Intern and staticpro QCfontset.
10374
10375 * dispextern.h (enum lface_attribute_index): New member
10376 LFACE_FONTSET_INDEX.
10377
10378 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
10379
73acf815 103802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10381
10382 * coding.c (coding_set_destination): Fix coding->destination for
10383 the case converting a region.
10384 (encode_coding_utf_8): Encode eight-bit chars as single byte.
10385 (encode_coding_object): Fix coding->dst_pos and
10386 coding->dst_pos_byte for the case converting a region.
10387
10388 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
10389
10390 * character.h (BYTE8_STRING): New macro.
10391
10392 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
10393
73acf815 103942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10395
10396 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
10397 characters by octal form.
10398
10399 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10400
1f45f627 10401 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
10402 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
10403 _fetch_multibyte_char_len.
aca7a3d2
MB
10404 (FETCH_CHAR_AS_MULTIBYTE): New macro.
10405
1f45f627 10406 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 10407
1f45f627 10408 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 10409 the case conversion change the byte length.
1f45f627 10410 (casify_region): Likewise.
aca7a3d2 10411
1f45f627 10412 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 10413
1f45f627 10414 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
10415 (syms_of_character): Setup Vprintable_chars.
10416
10417 * editfns.c (Fchar_equal): Fix for the unibyte case.
10418 (Finsert_byte): New function.
10419 (syms_of_editfns): Defsubr it.
10420
10421 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
10422 of direct code 0x3ffff.
10423
10424 * search.c (Freplace_match): Fix for the unibyte case.
10425
73acf815 104262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10427
10428 * lread.c (safe_to_load_p): Fix the logic.
10429
10430 * syntax.c (scan_words): Don't treat characters belonging to
10431 different scripts as constituting a word.
10432
10433 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10434
1f45f627 10435 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
10436
10437 * emacs.c (main): In the case of --unibyte, instead of aborting on
10438 finding non-empty buffer, make it unibyte.
10439
73acf815 104402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10441
10442 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
10443 to create a fontset.
10444
73acf815 104452008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10446
10447 * character.c (Funibyte_char_to_multibyte): Doc fix.
10448
10449 * xfns.c [HAVE_STDLIB_H]: Fix last change.
10450
73acf815 104512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10452
10453 * fontset.c (fontset_add): Make the type `int'.
10454 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
10455
4c4475a8
GM
10456 * character.c (unibyte_char_to_multibyte)
10457 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 10458 charset_unibyte, not charset_primary.
aca7a3d2 10459
1f45f627 10460 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 10461
1f45f627
GM
10462 * charset.c (charset_unibyte): Rename from charset_primary.
10463 (Funibyte_charset): Rename from Fprimary_charset.
10464 (Fset_unibyte_charset): Rename from Fset_primary_charset.
10465 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
10466
10467 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10468 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10469 it->multibyte_p is zero.
10470
10471 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 10472 Delete extern.
aca7a3d2 10473
73acf815 104742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10475
10476 * coding.c (Fdefine_coding_system_internal): Fix category setting
10477 for a coding system of type iso-2022.
10478
73acf815 104792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10480
1f45f627 10481 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 10482
73acf815 104832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10484
10485 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
10486 (next-word-boundary-function-table): Declare it as a Lisp variable
10487 in syms_of_syntax.
aca7a3d2
MB
10488 (scan_words): Call functions in Vnext_word_boundary_function_table
10489 if any.
10490
10491 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
10492
10493 * fontset.c (fs_load_font): If fontp->charset is not negative,
10494 return fontp without setting its members.
10495
73acf815 104962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10497
aca7a3d2
MB
10498 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
10499
10500 * m/sparc.h (HAVE_ALLOCA): Delete.
10501
10502 * s/irix6-5.h: Don't include strings.h.
10503 (bcopy, bzero, bcmp): Don't undef.
10504
10505 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
10506
10507 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
10508 (TIOCSIGSEND): Don't test IRIX6.
10509 (bcopy, bzero, bcmp): Define conditionally.
10510
73acf815 105112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10512
10513 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 10514 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
10515 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
10516
10517 * callproc.c (Fcall_process): Don't call insert_1_both directly if
10518 we are inserting a process output into a multibyte buffer.
10519
10520 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
10521 multibyte_char_to_unibyte.
10522
10523 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
10524 by the primary charset, make it eight-bit char.
10525 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
10526
1f45f627
GM
10527 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
10528 (charset_8_bit__control, charset_8_bit_graphic)
10529 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
10530 (define_charset_internal): New function.
10531 (syms_of_charset): Call define_charset_internal for pre-defined
10532 charsets.
10533
10534 * charset.h (charset_8_bit): Extern it.
10535
1f45f627 10536 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
10537 of Fset_buffer_multibyte.
10538 (encode_coding_raw_text): Increment p0 in the loop.
10539
1f45f627 10540 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 10541
1f45f627 10542 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
10543 for the change of Fset_buffer_multibyte.
10544
10545 * fns.c (Fstring_to_multibyte): New function.
10546 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
10547
73acf815 105482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10549
10550 * xfns.c (x_put_x_image): Declare args.
10551
1f45f627 10552 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
10553 (try_font_list): Declare an arg.
10554
10555 * xdisp.c (message2_nolog, set_message): Declare an arg.
10556
10557 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
10558
10559 * syntax.c (scan_sexps_forward): Declare an arg.
10560
10561 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
10562 Declare an arg.
10563
10564 * lisp.h (Fnew_fontset): Declare.
10565
10566 * keymap.c (push_key_description): Call CHARACTERP correctly.
10567
1f45f627 10568 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
10569 (face_for_char): Delete unused vars.
10570 (Fset_fontset_font): Doc fix. Delete unused vars.
10571
10572 * doc.c (Fsubstitute_command_keys): Delete unused vars.
10573
10574 * composite.c (update_compositions): Declare arg.
10575
10576 * cm.c (calccost, cmgoto): Declare args.
10577
10578 * charset.c: Remove `emacs' conditional. Doc fixes.
10579 (map_char_table_for_charset): Declare.
10580
1f45f627 10581 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 10582
1f45f627 10583 * ccl.c: Remove `emacs' conditional.
aca7a3d2 10584
73acf815 105852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10586
10587 The following changes are to allow specifying multiple font
10588 patterns for a character range (specified by script or charset).
10589
10590 * Makefile.in (abbrev.o): Depend on syntax.h.
10591 (xfaces.o): Depend on charset.h.
10592
10593 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
10594 SINGLE_BYTE_CHAR_P.
10595
10596 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
10597
10598 * character.h (Vchar_script_table): Extern it.
10599
1f45f627 10600 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
10601 (Vchar_script_table, Qchar_script_table): New variable.
10602 (syms_of_character): Declare Vchar_script_table as a lisp variable
10603 and initialize it.
10604
1f45f627 10605 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
10606 have property char-table-extra-slots, make no extra slot.
10607
1f45f627 10608 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
10609 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
10610 SINGLE_BYTE_CHAR_P.
1f45f627
GM
10611 (choose_face_font, lookup_non_ascii_face, font_name_registry):
10612 Add prototypes.
10613 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
10614 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
10615
10616 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 10617 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
10618 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
10619
10620 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 10621 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
10622 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
10623 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
10624 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
10625 (fontset_ref_and_range, fontset_add, reorder_font_vector)
10626 (load_font_get_repertory): New functions.
1f45f627 10627 (fontset_set): Delete.
aca7a3d2 10628 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 10629 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
10630 (free_face_fontset): Use ASET istead of AREF (X) = Y.
10631 (face_for_char): Don't call lookup_face.
10632 (make_fontset_for_ascii_face): New arg FACE.
10633 (fs_load_font): New arg CHARSET_ID. Don't check
10634 Vfont_encoding_alist here.
10635 (find_font_encoding): New function.
10636 (list_fontsets): Use STRINGP, not ! NILP.
10637 (accumulate_script_ranges): New function.
10638 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
10639 re-written to handle new fontset structure.
10640 (Ffontset_font): Return a copy of element.
10641 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
10642 docstring of font-encoding-alist.
10643
10644 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
10645 (Fset_fotset_font): Fix arguments to 5.
10646
1f45f627 10647 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
10648
10649 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
10650 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 10651 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
10652 lookup_named_face.
10653
10654 * xfaces.c: Include charset.h.
1f45f627
GM
10655 (load_face_font): Delete argument C. Change caller.
10656 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
10657 (font_name_registry): New function.
10658 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 10659 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
10660 Lookup only ascii faces.
10661 (lookup_non_ascii_face): New function.
1f45f627
GM
10662 (lookup_named_face): Delete argument C. Change caller.
10663 (lookup_derived_face): Delete argument C. Change caller.
10664 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 10665 a string, just call font_list with it.
1f45f627
GM
10666 (choose_face_font): Delete arguments FACE and C. New arg
10667 FONT_SPEC. Change caller.
4c4475a8
GM
10668 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
10669 Change caller.
aca7a3d2
MB
10670 (realize_non_ascii_face): New function.
10671 (realize_x_face): Call load_face_font here.
1f45f627 10672 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
10673 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
10674 get a face ID.
10675 (dump_realized_face): Don't print charset of FACE.
10676
10677 * xfns.c (x_set_font): Always call x_new_fontset and
10678 store_frame_parameter.
10679 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 10680 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
10681
10682 * xterm.h (x_get_font_repertory): Extern it.
10683
10684 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
10685 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
10686 it->multibyte_p is zero.
10687 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
10688 (x_new_fontset): If FONTSETNAME doesn't match any existing
10689 fontsets, create a new one.
10690 (x_get_font_repertory): New function.
10691
73acf815 106922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10693
10694 * coding.c (Ffind_coding_systems_region_internal): Detect an
10695 ASCII only string correctly.
10696
10697 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
10698 version is 0.
10699
73acf815 107002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10701
10702 * lread.c: Include "coding.h".
1f45f627
GM
10703 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
10704 (load_each_byte, unread_char): New variables.
10705 (readchar_backlog): Delete.
aca7a3d2
MB
10706 (readchar): Return a character unless load_each_byte is nonzero.
10707 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
10708 cons. If unread_char is not -1, simply return it.
10709 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
10710 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
10711 (read_multibyte): Delete.
aca7a3d2
MB
10712 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
10713 (read_emacs_mule_char): New functions.
10714 (Fload): Even if the file doesn't have the extention ".elc", if
10715 safe_to_load_p returns a positive version number, assume that the
10716 file contains bytecompiled code. If the version is less than 22,
10717 load the file while decoding multibyte sequences by emacs-mule.
10718 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
10719 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
10720 (Fread_from_string): Pay attention to the case that STREAM is a cons.
10721 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
10722 (read1): Set load_each_byte to 1 temporarily while handling
10723 #@NUMBER. Don't call read_multibyte.
10724 (read_vector): Call Fread with a cons. If readcharfun is
10725 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 10726 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
10727 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
10728 and Qload_force_doc_strings.
10729
73acf815 107302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10731
10732 * xdisp.c (face_before_or_after_it_pos): Call
10733 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10734
73acf815 107352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10736
10737 * character.h (TRAILING_CODE_P): New macro.
1f45f627 10738 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
10739 (string_char_with_unification): Fix prototype.
10740 (Vscript_alist): Extern it.
10741
10742 * character.c (Vscript_alist): New variable.
4c4475a8
GM
10743 (string_char_with_unification, str_as_unibyte)
10744 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
10745 (syms_of_character): Declare script-alist as a Lisp variable.
10746
10747 * charset.h (Vcharset_ordered_list): Extern it.
10748 (charset_ordered_list_tick): Extern it.
10749 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
10750 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
10751 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 10752 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 10753 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
10754
10755 * charset.c (charset_ordered_list_tick): New variable.
10756 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
10757 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
10758 deunify intead of unify a charset.
10759 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
10760 (find_charsets_in_text): Add `const' to arguemnts and local variables.
10761 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
10762 detecting of invalid code.
10763 (Fset_charset_priority): Increment charset_ordered_list_tick.
10764 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
10765 and TO_CODE.
10766
10767 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
10768 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
10769 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
10770 (decode_coding_ccl, consume_chars)
10771 (Ffind_coding_systems_region_internal)
10772 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
10773
10774 * print.c (print_object): Use octal form for printing the
10775 contents of a bool vector.
10776
73acf815 107772008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10778
10779 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
10780 <version == 20>: Refuse to load.
10781
73acf815 107822008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10783
10784 * fns.c: Move coding.h.
10785 (Qcodeset, Qdays, Qmonths): New.
10786 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 10787 (Flocale_codeset): Delete.
aca7a3d2 10788 (Flanginfo): New function.
1f45f627 10789 (syms_of_fns): Change accordingly.
aca7a3d2
MB
10790
10791 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
10792
73acf815 107932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10794
10795 * casetab.c (init_casetab_once, init_casetab_once): Fix
10796 CHAR_TABLE_SET call.
10797
10798 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
10799
10800 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
10801
10802 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
10803 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
10804 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
10805
10806 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
10807
10808 * coding.c (ENCODE_DESIGNATION, decode_eol)
10809 (make_conversion_work_buffer, code_conversion_restore)
10810 (Fdefine_coding_system_internal): Convert Lisp types.
10811 (code_conversion_restore): Use EQ, not ==.
10812 (Fencode_coding_string): Fix code_convert_string call.
10813
10814 * coding.h (code_convert_region): Fix prototype.
10815
1f45f627 10816 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
10817
10818 * fontset.c (fontset_ref, fontset_set, fs_load_font)
10819 (Ffontset_info): Convert Lisp types.
10820
10821 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
10822
10823 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
10824
10825 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
10826
10827 * chartab.c: Include "...h", not <...h> in some cases.
10828
10829 * callproc.c (Fcall_process): Remove unused variables.
10830
73acf815 108312008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10832
10833 * coding.c (Fset_coding_system_priority): Allow null arg list.
10834
73acf815 108352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10836
10837 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
10838 (Fself_insert_and_exit): Use CHARACTERP.
10839
10840 * callproc.c (Fcall_process): Remove unused vars.
10841
10842 * xterm.c (XTread_socket): Add extra dead keysyms.
10843
10844 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
10845
10846 * dispextern.h: Remove prototypes for redraw_frame,
10847 redraw_garbaged_frames.
10848
10849 * cmds.c (Fself_insert_command): Use CHARACTERP.
10850
10851 * chartab.c (make_sub_char_table): Remove unused var.
10852 (Fset_char_table_default, Fmap_char_table): Doc fix.
10853
10854 * keymap.c (access_keymap): Remove generic char code.
10855 (push_key_description): Use CHARACTERP.
10856
73acf815 108572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10858
10859 * charset.c: Doc fixes.
10860 (Funify_charset): Extra checking.
10861
73acf815 108622008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10863
10864 * lread.c: Remove some unused variables.
10865 (safe_to_load_p): If safe, return the magic number version byte.
10866 (Fload): Maybe use load-with-code-conversion.
10867
73acf815 108682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10869
10870 * category.c (Fmodify_category_entry): Don't modify the contents
10871 of category_set for characters out of the range. Avoid
10872 unnecessary modification.
10873
1f45f627 10874 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
10875 Vchar_unify_table. The default value of the table is now nil.
10876
10877 * character.c (syms_of_character): Setup Vchar_width_table for
10878 eight-bit-control and raw-byte chars.
10879
10880 * charset.h (enum define_charset_arg_index): Delete
10881 charset_arg_parents and add charset_arg_subset and
10882 charset_arg_superset.
10883 (enum charset_attr_index): Delete charset_parents and add
10884 charset_subset and charset_superset.
10885 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
10886 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 10887 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
10888 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
10889 (CHARSET_SUPERSET): New macros.
10890 (charset_work): Extern it.
10891 (ENCODE_CHAR): Use charset_work.
1f45f627 10892 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
10893 (map_charset_chars): Extern it.
10894
10895 * charset.c (load_charset_map): Set the default value of encoder
10896 and deunifier char-tables to nil.
1f45f627 10897 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
10898 map_char_table_for_charset instead of map_char_table.
10899 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 10900 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
10901 `define-charset' (:parents -> :subset or :superset).
10902 (charset_work): New variable.
4c4475a8
GM
10903 (encode_char, syms_of_charset): Adjust for the change of
10904 Fdefine_charset_internal.
aca7a3d2
MB
10905 (Ffind_charset_string): Setup the vector `charsets' correctly.
10906
1f45f627 10907 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 10908 the previous change.
1f45f627 10909 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
10910 (map_sub_char_table_for_charset): New function.
10911 (map_char_table_for_charset): New function.
10912
10913 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 10914 (describe_char_table): Delete.
aca7a3d2 10915
1f45f627 10916 * lisp.h (map_charset_chars): Delete.
aca7a3d2 10917
73acf815 109182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10919
10920 * fns.c (count_combining): Comment out (unused).
10921 (Flocale_codeset): New.
10922 (syms_of_fns): Defsubr it.
10923
10924 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 10925 (size_t): Remove.
aca7a3d2 10926
73acf815 109272008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10928
6f69e89b 10929 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 10930
73acf815 109312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10932
10933 * character.c (syms_of_character): Set the default value of
10934 Vprintable_chars to Qnil.
10935
73acf815 109362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10937
10938 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
10939
73acf815 109402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10941
10942 * charset.c (load_charset_map): Handle the case that from < to
10943 correctly.
10944
4c4475a8
GM
10945 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
10946 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
10947 Pay attention to raw-8-bit chars.
aca7a3d2 10948
73acf815 109492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10950
4c4475a8
GM
10951 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
10952 It is not bytecompiled now.
aca7a3d2
MB
10953
10954 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
10955 (charset_jisx0208): New variables.
10956 (Fdefine_charset_internal): Setup them if appropriate.
10957 (init_charset_once): Initialize them to -1.
10958
1f45f627
GM
10959 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
10960 (charset_jisx0208): Extern them.
aca7a3d2 10961
1f204af3 10962 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 10963 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
10964 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
10965 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
10966 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
10967 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
10968 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
10969 (encode_coding_iso_2022): Change the 1st arg to
10970 ENCODE_ISO_CHARACTER to a variable.
10971
73acf815 109722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10973
10974 * charset.h (enum define_charset_arg_index): New enums
10975 charset_arg_min_code and charset_arg_max_code.
10976 (struct charset): New member char_index_offset.
10977
4c4475a8
GM
10978 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
10979 Take charset->char_index_offset into account.
aca7a3d2
MB
10980 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
10981 args[charset_arg_max_code]. Setup charset.char_index_offset.
10982 (syms_of_charset): Fix args to Fdefine_charset_internal.
10983
73acf815 109842008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10985
10986 * coding.c (decode_coding_utf_8): Reject overlong sequences.
10987
73acf815 109882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10989
10990 * coding.c: Doc fixes.
10991 (Fcoding_system_aliases): Fix return value.
10992 (Qmac): Remove (duplicated) definition.
10993
73acf815 109942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10995
10996 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
10997 functions.
10998
10999 * character.c (Fstring): Doc fix.
11000
11001 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
11002
11003 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
11004 ids.
11005 (font-encoding-alist): Doc fix.
11006
73acf815 110072008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11008
11009 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 11010 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
11011
11012 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11013 for K&R.
11014
11015 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
11016
11017 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 11018 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 11019
1f45f627 11020 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
11021
11022 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
11023
73acf815 110242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11025
11026 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
11027
1f45f627 11028 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 11029
2a2e8de7 110302008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
11031
11032 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
11033
1f45f627 11034 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 11035
73acf815 110362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 11037
4c4475a8 11038 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 11039 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 11040
73acf815 110412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 11042
1f45f627 11043 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
11044 Fdefine_coding_system_internal.
11045 (Fdefine_coding_system_internal): For a coding system of
11046 `charset' type, store a list of charset IDs in
11047 `charset_attr_charset_valids' element of coding attributes.
11048
73acf815 110492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11050
11051 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
11052 (emacs_mule_char): New arg src. Delete arg `composition'. Change
11053 caller. Handle 2-byte and 3-byte charsets correctly.
11054 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
11055 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
11056 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
11057 (DECODE_EMACS_MULE_21_COMPOSITION): Call
11058 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
11059 sequence.
11060 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 11061 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
11062 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
11063 and alt&rule composition.
11064 (decode_coding_iso_2022): Handle composition correctly.
11065 (init_coding_once): Setup emacs_mule_bytes for private charsets.
11066
11067 * charset.c (Fdefine_charset_internal): Fix bug for the case of
11068 re-defining a charset. If the charset has :emacs-mule-id, setup
11069 emacs_mule_bytes.
1f45f627 11070 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 11071
73acf815 110722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 11073
4c4475a8
GM
11074 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
11075 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
11076 encoding, produce a character specified by
11077 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 11078
73acf815 110792008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11080
11081 * xterm.c (XSetIMValues): Declare.
11082
11083 * process.c: Conditionally include sys/wait.h, pty.h.
11084
1f45f627 11085 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 11086
1f45f627 11087 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
11088
11089 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
11090
11091 * fontset.c (Fclear_face_cache): Declare.
1f45f627 11092 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
11093 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
11094 variables.
11095
11096 * character.h (string_escape_byte8): Declare.
11097
11098 * charset.c (load_charset_map, load_charset_map_from_file): Remove
11099 unused vars.
11100 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
11101 (Fmap_charset_chars): Doc fix.
11102
1f45f627 11103 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
11104 (Fset_coding_system_priority, Fset_coding_system_priority)
11105 (Fdefine_coding_system_internal): Doc fix.
11106
73acf815 111072008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11108
11109 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
11110
73acf815 111112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11112
11113 * character.c (string_escape_byte8): Make multibyte string with
11114 correct size.
11115
11116 * charset.c (Fmake_char): Delete unnecessary code.
11117
73acf815 111182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11119
11120 * xfns.c (x_encode_text): Allocate coding.destination here, and
11121 call encode_coding_object with dst_object Qnil.
11122
11123 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
11124 multibyte form correctly.
11125
11126 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
11127 against Vfont_encoding_alist.
11128
11129 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
11130 handling of charset list.
11131 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
11132 (decode_coding_object): Move point to coding->dst_pos before
11133 calling post-read-conversion function.
11134 (encode_coding_object): Give correct arguments to
11135 pre-write-conversion. Ignore the return value of
11136 pre-write-conversion function. Pay attention to the case that
11137 pre-write-conversion changes the current buffer. If dst_object is
11138 Qt, even if coding->src_bytes is zero, allocate at least one byte
11139 to coding->destination.
11140
11141 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
11142
11143 * charset.c (Fmake_char): Make it more backward compatible.
11144 (Fmap_charset_chars): Fix docstring.
11145
73acf815 111462008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11147
11148 * coding.c: Doc fixes.
11149 (Fdefine_coding_system_alias): Use names, not symbols, in
11150 coding-system-alist.
11151
73acf815 111522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11153
11154 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
11155 of calling free_realized_face.
11156
2a2e8de7 111572008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 11158
1f45f627
GM
11159 * charset.c (read_hex): Don't treat SPC as a comment starter.
11160 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
11161 (Fdecode_char): Fix typo.
11162
73acf815 111632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11164
11165 * charset.h (struct charset): New member `code_space_mask'.
11166
1f45f627 11167 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
11168 (encode_coding_charset, Fdefine_coding_system_internal):
11169 Delete the local variable charset.
aca7a3d2
MB
11170 (Fdefine_coding_system_internal): Setup
11171 attrs[coding_attr_charset_valids] correctly.
11172
11173 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
11174 member to check if CODE is valid or not.
11175 (Fdefine_charset_internal): Initialize `code_space_mask' member.
11176 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
11177 is within the range of charset->min_code and carset->max_code.
11178
73acf815 111792008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
11180
11181 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
11182
11183 * dispextern.h (generate_ascii_font): Fix return type.
11184
11185 * xfaces.c (generate_ascii_font): Fix arg declaration.
11186
11187 * coding.c (coding_inherit_eol_type)
11188 (Fset_terminal_coding_system_internal)
11189 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
11190
73acf815 111912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11192
11193 * coding.c (decode_coding_charset, encode_coding_charset): Handle
11194 multiple charsets correctly.
11195
73acf815 111962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11197
11198 * search.c (boyer_moore): Fix handling of mulitbyte character
11199 translation.
11200
11201 * xdisp.c (display_mode_element): When the variable `elt' is
11202 changed, update `this' and `lisp_string'.
11203
73acf815 112042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11205
11206 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
11207
11208 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 11209 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
11210
11211 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
11212 (load_charset_map): Rename from parse_charset_map. New args
11213 entries and n_entries. Change caller.
11214 (load_charset_map_from_file): Rename from load_charset_map.
11215 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
11216 the tail.
11217 (load_charset_map_from_vector): New function.
11218 (Fdefine_charset_internal): Setup charset.compact_codes_p.
11219 (encode_char): If the charset is compact, change a character index
11220 to a code point.
11221
11222 * coding.c (coding_alloc_by_making_gap): Check the case that the
11223 source and destination are the same correctly.
11224 (decode_coding_raw_text): Set coding->consumed_char and
11225 coding->consumed to 0.
11226 (produce_chars): If coding->chars_at_source is nonzero, update
11227 coding->consumed_char and coding->consumed before calling
11228 alloc_destination.
11229 (Fdefine_coding_system_alias): Register ALIAS in
11230 Vcoding_system_alist.
11231 (syms_of_coding): Define `no-convesion' coding system at the tail.
11232
11233 * fileio.c (Finsert_file_contents): Set coding_system instead of
11234 val. If the current buffer is multibyte, always call
11235 decode_coding_gap.
11236
11237 * xfaces.c (try_font_list): Give higher priority to fontset's
11238 family than face's family.
11239
73acf815 112402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11241
11242 * callproc.c (Fcall_process): Be sure to give the current buffer
11243 to decode_coding_c_string.
11244
11245 * xfaces.c (try_font_list): Give a family specified in a fontset
11246 higher priority than a family specified in a face.
11247
73acf815 112482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11249
11250 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
11251 Fix arguments to insert_from_buffer.
11252
11253 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
11254
73acf815 112552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11256
11257 * coding.c (produce_chars): Set the variable `multibytep' correctly.
11258 (decode_coding_gap): Set coding->dst_multibyte correctly.
11259
73acf815 112602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11261
11262 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 11263 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
11264 (encode_coding_utf_16): Substitute coding->default_char for
11265 non-Unicode characters.
11266 (decode_coding): Don't call record_insert here.
11267 (setup_coding_system): Initialize `surrogate' of
11268 coding->spec.utf_16 to 0.
11269 (EMIT_ONE_BYTE): Fix for multibyte case.
11270
11271 * insdel.c (insert_from_gap): Call record_insert.
11272
73acf815 112732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11274
11275 * casefiddle.c (casify_region): Fix multibyte case.
11276
11277 * character.c (c_string_width): Add return type `int'.
1f45f627 11278 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
11279
11280 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 11281 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
11282 (CHAR_STRING_ADVANCE): Make it do-while statement.
11283
1f45f627 11284 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
11285 DEPTH == 3. Add workaround code for a GCC optimization bug.
11286
11287 * charset.c (parse_charset_map): Remove an unused variable.
11288
11289 * coding.c: Delete unused variables.
11290
11291 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
11292 earlier. If inserted is zero and the coding system doesn't
11293 require flushing, don't call decode_coding_gap.
11294
11295 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
11296
73acf815 112972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
11298
11299 The following changes are for using Unicode as an internal
11300 character model, and use UTF-8 format for buffer/string
11301 representation.
11302
1f45f627 11303 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
11304 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
11305
11306 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 11307 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
11308 (*.o): For many files, change dependency on charset.h to
11309 character.h, and add dependency on character.h.
11310 (character.o, chartab.o): New targets.
11311
1f45f627
GM
11312 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
11313 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
11314 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
11315 of "charset.h".
11316
11317 * dired.c, filelock.c: Include "character.h".
11318
11319 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 11320 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
11321 (syms_of_alloc): Remove defsubr for Smake_char_table.
11322
11323 * buffer.c: Include "character.h" instead of "charset.h", don't
11324 include "coding.h".
1f45f627 11325 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
11326
11327 * buffer.h: EXFUN Fbuffer_live_p.
11328
11329 * callproc.c: Include "character.h" instead of "charset.h".
11330 (Fcall_process): Big change for the new code-conversion APIs.
11331
11332 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 11333 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
11334 map_char_table spec.
11335 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
11336 accessing the char table structure.
11337
11338 * chartab.c: New file that implements char table.
11339
11340 * category.c: Include "character.h".
11341 (copy_category_entry): New function.
11342 (copy_category_table): Call map_char_table and copy_category_entry.
11343 (Fmake_category_table): Initialize all top-vel slots.
11344 (char_category_set): New function.
1f45f627 11345 (modify_lower_category_set): Delete.
aca7a3d2
MB
11346 (Fmodify_category_entry): Call char_table_ref_and_range.
11347
11348 * category.h (CATEGORY_SET): Just call char_category_set.
11349
11350 * ccl.c: Include "character.h".
11351 (Qccl, Qcclp): New variables.
11352 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
11353 it's less than 256.
1f45f627
GM
11354 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
11355 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 11356 and DST type.
1f45f627
GM
11357 (ccl_driver): Change types of argument, adjust code accordingly.
11358 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
11359 ccl_driver.
11360 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
11361
1f45f627
GM
11362 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
11363 New members src_multibyte, dst_multibyte, consumed, and produced.
11364 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 11365 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 11366 (ccl_driver): Update prototype.
aca7a3d2
MB
11367 (Qccl, Qcclp, Fccl_program_p): Extern them.
11368 (CHECK_CCL_PROGRAM): New macro.
11369
11370 * character.c, character.h, chartab.c: New files.
11371
1f45f627
GM
11372 * charset.c: Mostly re-written. Move character and multibyte sequence
11373 handling codes to character.c.
aca7a3d2 11374
1f45f627
GM
11375 * charset.h: Mostly re-written. Move character and multibyte sequence
11376 handling codes to character.h.
aca7a3d2
MB
11377
11378 * coding.c, coding.h: Mostly re-written.
11379
11380 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
11381 (CHAR_WIDTH): Move to character.h.
11382 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 11383
1f45f627
GM
11384 * composite.h (enum composition_method): Change order of enumeration
11385 symbols.
aca7a3d2
MB
11386
11387 * data.c: Include "character.h" instead of "charset.h".
11388 (Faref): Call CHAR_TABLE_REF for a char table.
11389 (Faset): Call CHAR_TABLE_SET for a char table.
11390
1f45f627
GM
11391 * dispextern.h (free_realized_face, check_face_attribytes)
11392 (generate_ascii_font): Extern them.
11393 (free_realized_multibyte_face): Delete extern.
aca7a3d2 11394
1f45f627 11395 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
11396 table structure.
11397
11398 * editfns.c: Include "character.h" instead of "charset.h".
11399 (Fchar_to_string): Always call CHAR_STRING.
11400
11401 * emacs.c (main): Call init_charset_once, init_charset,
11402 syms_of_chartab, and syms_of_character.
11403
11404 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 11405 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 11406 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 11407 (build_annotations_2): Delete.
aca7a3d2
MB
11408 (e_write): Big change for the new code-conversion API.
11409
11410 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 11411 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
11412 (Fcopy_sequence): Call copy_char_table for a char table.
11413 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
11414 (string_char_to_byte, string_byte_to_char): Adjust for the new
11415 multibyte form.
1f45f627
GM
11416 (internal_equal): Adjust for the change of char table structure.
11417 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
11418 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
11419 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
11420 (char_table_translate, optimize_sub_char_table)
11421 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 11422 chartab.c.
1f45f627
GM
11423 (char_table_ref_and_index): Delete.
11424 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 11425 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
11426 Vcoding_category_list. Adjust for the new code-conversion API.
11427 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
11428 chartab.c.
11429
11430 * fontset.c: Mostly re-written.
11431
1f45f627 11432 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 11433 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
11434 (fontset_font_pattern, fs_load_font): Update prototype.
11435 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
11436
11437 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 11438 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
11439
11440 * insdel.c: Include "character.h" instead of "charset.h".
11441 (copy_text): Don't refer to Vnonascii_translation_table.
11442 (insert_from_gap): New function.
11443
11444 * keyboard.c: Include "character.h" instead of "charset.h".
11445 (command_loop_1): Never call direct_output_forward_char before
11446 a non-ASCII character.
11447 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 11448 translate a character.
aca7a3d2
MB
11449
11450 * keymap.c: Include "character.h".
11451 (store_in_keymap): Handle the case that IDX is a cons.
11452 (Fdefine_key): Handle the case that KEY is a cons and the car part
11453 is also a cons (range).
1f45f627 11454 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
11455 (describe_vector): Call describe_char_table for a char table.
11456 (describe_char_table): New function.
11457
11458 * keymap.h (describe_char_table): Extern it.
11459
11460 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
11461 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
11462 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
11463 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
11464 Delete.
11465 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
11466 structure.
11467 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
11468 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
11469 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 11470 (chartab_size): Extern it.
1f45f627 11471 (struct Lisp_Char_Table): Re-design.
aca7a3d2 11472 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
11473 (HASH_KEY, HASH_VALUE): Move from fns.c.
11474 (CHARACTERBITS): Define as 22.
11475 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
11476 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
11477 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
11478 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
11479 (code_convert_string_norecord): Deleted extern.
11480 (init_character_once, syms_of_character, init_charset)
11481 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
11482
11483 * lread.c: Include "character.h".
11484 (read_multibyte): New arg NBYTES.
1f45f627
GM
11485 (read_escape): Change the meaning of returned *BYTEREP.
11486 (to_multibyte): Delete.
11487 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
11488
11489 * print.c: Include "character.h" instead of "charset.h".
11490 (print_string): Convert 8-bit raw bytes to octal form by
11491 string_escape_byte8.
1f45f627 11492 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
11493 raw bytes always in octal form. Handle sub char table correctly.
11494
11495 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
11496 (read_process_output, send_process): Adjust for the new
11497 code-conversion API.
aca7a3d2 11498
1f45f627 11499 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
11500
11501 * regex.c: Include "character.h" instead of "charset.h".
11502 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
11503 (regex_compile): Accept a range whose starting and ending
11504 character have different leading bytes.
1f45f627 11505 (analyse_first): Adjust for the above change.
aca7a3d2
MB
11506
11507 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
11508 (search_buffer, boyer_moore): Adjust for the new multibyte form.
11509 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
11510
11511 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 11512 (syntax_parent_lookup): Delete.
aca7a3d2 11513 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 11514 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
11515 (init_syntax_once): Call char_table_set_range instead of directly
11516 accessing the structure of a char table.
11517
11518 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 11519 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
11520 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
11521 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
11522
11523 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
11524 (encode_terminal_code, write_glyphs): Adjust for the new
11525 code-conversion API.
aca7a3d2
MB
11526 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
11527
1f45f627 11528 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
11529
11530 * xdisp.c: Include "character.h".
1f45f627
GM
11531 (get_next_display_element): Adjust for the new multibyte form.
11532 (disp_char_vector): Adjust for the new char table structure.
11533 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 11534 coding system.
1f45f627 11535 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
11536
11537 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 11538 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
11539 FS_LOAD_FONT.
11540 (generate_ascii_font): New function.
1f45f627
GM
11541 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
11542 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 11543 (free_realized_face): Make it public.
1f45f627 11544 (free_realized_faces_for_fontset): Rename from
aca7a3d2 11545 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 11546 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
11547 fontset_font_pattern and FS_LOAD_FONT.
11548
11549 * xfns.c: Include "character.h".
1f45f627 11550 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
11551
11552 * xselect.c: Don't include "charset.h".
1f45f627 11553 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
11554
11555 * xterm.c: Include "character.h".
1f45f627 11556 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
11557 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
11558 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
11559 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
11560 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
11561 (XTread_socket): Adjust for the new code-conversion API.
11562 (x_new_font): Adjust for the change of FS_LOAD_FONT.
11563 (x_load_font): Adjust for the change of struct font.
aca7a3d2 11564
d6abfc14
SM
115652008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11566
11567 * xfaces.c (face_at_buffer_position): Remove unused vars.
11568
0acdaf8d
KH
115692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11570
4c4475a8
GM
11571 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
11572 Fix overflow checking.
0acdaf8d 11573
6c8a0ebf
GM
115742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11575
11576 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
11577 Cancel previous change.
11578
115792008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
11580
11581 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
11582 ccl->eight_bit_control. Fix check for buffer overflow.
11583 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
11584 (ccl_driver): Initialize extra_bytes to 0.
11585
a32aad64
KH
115862008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
11587
11588 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
11589 return it ORed with ctrl_modifier.
11590
8b329dba
MB
115912008-01-29 Miles Bader <miles@gnu.org>
11592
11593 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
11594
548667aa
JR
115952008-01-28 Jason Rumney <jasonr@gnu.org>
11596
11597 * w32.c (stat): Don't double check for networked drive.
11598
0975aa24
SM
115992008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
11600
ef264c42
SM
11601 * window.c (run_window_configuration_change_hook): New function.
11602 Code extracted from set_window_buffer. Set the selected frame.
11603 (set_window_buffer): Use it.
11604 * window.h (run_window_configuration_change_hook): Declare.
11605 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
11606
0975aa24
SM
11607 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
11608
9c28b587
DN
116092008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
11610
11611 * Makefile.in: Remove references to unused macros.
11612
c617afce
EZ
116132008-01-26 Eli Zaretskii <eliz@gnu.org>
11614
11615 * w32.c (g_b_init_get_sid_sub_authority)
11616 (g_b_init_get_sid_sub_authority_count): New static variables.
11617 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
11618 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
11619 (init_user_info): Use them to retrieve uid and gid.
11620 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
11621 (fstat): Use pw_uid and pw_gid from the_passwd structure for
11622 st_uid and st_gid of the file.
c617afce 11623
302d7d54
JR
116242008-01-26 Jason Rumney <jasonr@gnu.org>
11625
11626 * w32.c (logon_network_drive): New function.
11627 (stat): Use it.
11628
3ac7a21e
CY
116292008-01-26 Chong Yidong <cyd@stupidchicken.com>
11630
11631 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
11632 invisible text covered with an ellipsis.
11633
bbb9fc1f
RS
116342008-01-25 Richard Stallman <rms@gnu.org>
11635
11636 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
11637 jump back to beginning. Move some other initializations after that.
11638 (Qwindow_text_change_functions, Vwindow_text_change_functions):
11639 New variables.
11640 (syms_of_xdisp): Init them.
11641
11642 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
11643
0975aa24
SM
11644 * buffer.c (reset_buffer_local_variables):
11645 Implement `permanent-local-hook'.
bbb9fc1f 11646 (Qpermanent_local_hook): New variable.
0975aa24 11647 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 11648
79235cbe
MA
116492008-01-25 Michael Albinus <michael.albinus@gmx.de>
11650
11651 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
11652
ccd8f7fe
TTN
116532008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
11654
11655 * fns.c (Fclrhash): Return TABLE.
11656
dfbe40f2 116572008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
11658
11659 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
11660 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
11661 is set even without positional changes.
11662 (x_scroll_bar_clear): Set bar->redraw_needed_p.
11663
11664 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
11665
dfbe40f2 116662008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 11667
d6169680
JR
11668 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
11669
602e142f
JR
11670 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
11671 the unicode range available in MULE by locale-coding-system.
c041e2d1 11672 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
11673 earlier.
11674
dfbe40f2 116752008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
11676
11677 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
11678 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 11679 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
11680 when used on child processes.
11681
8c7a4ac5
MA
116822008-01-21 Michael Albinus <michael.albinus@gmx.de>
11683
e0df1b73 11684 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 11685 Fdbus_method_return.
e0df1b73 11686 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 11687 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 11688 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 11689
8abe0f97
MR
116902008-01-20 Martin Rudalics <rudalics@gmx.at>
11691
11692 * undo.c (undo_inhibit_record_point): New variable.
11693 (syms_of_undo): Initialize it.
11694 (record_point): Don't record point when undo_inhibit_record_point
11695 is set.
11696
c3b232e4
SM
116972008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
11698
e69c4cae
SM
11699 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
11700
823e0ebb
SM
11701 * xdisp.c (Qauto_hscroll_mode): New var.
11702 (syms_of_xdisp): Initialize it.
11703 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
11704 window's buffer.
11705 (hscroll_windows): Don't check automatic_hscrolling_p here.
11706
c3b232e4
SM
11707 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
11708 vscroll if we're setting window-buffer to the value it already has.
11709
76ed5e01
DN
117102008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
11711
11712 * m/intel386.h: Remove references to XENIX.
11713
55e6d9b2
AS
117142008-01-17 Andreas Schwab <schwab@suse.de>
11715
11716 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
11717 instead of HAVE_X86_64_LIB64_DIR.
11718 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
11719
b16ed52d
GM
117202008-01-17 Glenn Morris <rgm@gnu.org>
11721
11722 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
11723 to HAVE_X86_64_LIB64_DIR.
11724
6bed5c4a
DN
117252008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
11726
11727 * s/irix3-3.h:
11728 * s/irix4-0.h:
11729 * s/386-ix.h:
11730 * s/domain.h:
11731 * s/hpux9-x11r4.h:
11732 * s/hpux9shxr4.h: Remove files for systems no longer supported.
11733
11734 * sysdep.c: Remove code containing references to symbols defined
11735 by unsupported systems.
11736
fdecf907
GM
117372008-01-16 Glenn Morris <rgm@gnu.org>
11738
11739 * coding.c (select-safe-coding-system-function): Doc fix.
11740
9292328f
GM
117412008-01-15 Glenn Morris <rgm@gnu.org>
11742
11743 * config.in: Revert 2008-01-13 change: this is a generated file.
11744
944df511
MO
117452008-01-13 Tom Tromey <tromey@redhat.com>
11746
11747 * lisp.h: Fix typo.
11748
8111ec05
DN
117492008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11750
f40f5dc3
DN
11751 * m/sequent-ptx.h:
11752 * m/sequent.h:
11753 * s/ptx.h:
11754 * s/ptx4-2.h:
11755 * s/ptx4.h: Remove files for systems no longer supported.
11756
ce20b664 11757 * callproc.c (Fcall_process): Fix previous change.
8111ec05 11758
e39a993c
DN
117592008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11760
052e457f 11761 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 11762
290afd83
JB
11763 * m/mips.h:
11764 * m/intel386.h:
e39a993c
DN
11765 * callproc.c:
11766 * config.in:
11767 * ecrt0.c:
11768 * emacs.c:
11769 * fileio.c:
11770 * frame.c:
11771 * getpagesize.h:
11772 * keyboard.c:
11773 * lread.c:
11774 * process.c:
11775 * puresize.h:
11776 * sysdep.c:
11777 * systty.h:
11778 * syswait.h:
11779 * unexec.c:
11780 * xdisp.c:
11781 * alloc.c: Remove code containing references to symbols defined by
11782 unsupported systems.
11783
81cd7687
KH
117842008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
11785
11786 * coding.c (detect_coding_mask): Fix previous change.
11787
218b3b76
KH
117882008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
11789
11790 * coding.c (detect_coding_iso2022): New arg
11791 latin_extra_code_state. Allow Latin extra codes only
11792 when *latin_extra_code_state is nonzero.
11793 (detect_coding_mask): If there is a NULL byte, detect the encoding
11794 as UTF-16 or binary. If Latin extra codes exist, detect the
11795 encoding as ISO-2022 only when there's no other proper encoding is
11796 found.
11797
59ce725a 117982008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 11799
59ce725a
MB
11800 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
11801 #ifdef MAC_OS.
048addec 11802
59ce725a 118032008-01-08 Richard Stallman <rms@gnu.org>
048addec 11804
59ce725a 11805 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 11806
8290574e
NR
118072008-01-06 Nick Roberts <nickrob@snap.net.nz>
11808
a0a3805c 11809 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
11810 menu bar in parentheses.
11811
f3041af1
DN
118122008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
11813
11814 * m/7300.h:
11815 * m/acorn.h:
11816 * m/alliant-2800.h:
11817 * m/alliant.h:
11818 * m/alliant1.h:
11819 * m/alliant4.h:
11820 * m/altos.h:
11821 * m/amdahl.h:
11822 * m/apollo.h:
11823 * m/att3b.h:
11824 * m/aviion-intel.h:
11825 * m/aviion.h:
11826 * m/celerity.h:
11827 * m/clipper.h:
11828 * m/cnvrgnt.h:
11829 * m/convex.h:
11830 * m/cydra5.h:
11831 * m/delta88k.h:
11832 * m/dpx2.h:
11833 * m/dual.h:
11834 * m/elxsi.h:
11835 * m/f301.h:
11836 * m/gould-np1.h:
11837 * m/gould.h:
11838 * m/i860.h:
11839 * m/ibmps2-aix.h:
11840 * m/ibmrt-aix.h:
11841 * m/ibmrt.h:
11842 * m/irist.h:
11843 * m/is386.h:
11844 * m/isi-ov.h:
11845 * m/mega68.h:
11846 * m/mg1.h:
11847 * m/news-r6.h:
11848 * m/news-risc.h:
11849 * m/news.h:
11850 * m/nh3000.h:
11851 * m/nh4000.h:
11852 * m/ns16000.h:
11853 * m/ns32000.h:
11854 * m/nu.h:
11855 * m/orion.h:
11856 * m/orion105.h:
11857 * m/paragon.h:
11858 * m/pfa50.h:
11859 * m/plexus.h:
11860 * m/pyramid.h:
11861 * m/pyrmips.h:
11862 * m/sh3el.h:
11863 * m/sps7.h:
11864 * m/sr2k.h:
11865 * m/stride.h:
11866 * m/sun1.h:
11867 * m/sun2.h:
11868 * m/sun3-68881.h:
11869 * m/sun3-fpa.h:
11870 * m/sun3-soft.h:
11871 * m/sun3.h:
11872 * m/sun386.h:
11873 * m/symmetry.h:
11874 * m/tad68k.h:
11875 * m/tahoe.h:
11876 * m/targon31.h:
11877 * m/tek4300.h:
11878 * m/tekxd88.h:
11879 * m/tower32.h:
11880 * m/tower32v3.h:
11881 * m/ustation.h:
11882 * m/wicat.h:
11883 * m/xps100.h:
11884 * s/cxux.h:
11885 * s/cxux7.h:
11886 * s/dgux.h:
11887 * s/dgux4.h:
11888 * s/dgux5-4-3.h:
11889 * s/dgux5-4r2.h:
11890 * s/esix.h:
11891 * s/esix5r4.h:
11892 * s/hiuxmpp.h:
11893 * s/hiuxwe2.h:
11894 * s/iris3-5.h:
11895 * s/iris3-6.h:
11896 * s/isc2-2.h:
11897 * s/isc3-0.h:
11898 * s/isc4-0.h:
11899 * s/isc4-1.h:
11900 * s/newsos5.h:
11901 * s/newsos6.h:
11902 * s/osf1.h:
11903 * s/osf5-0.h:
11904 * s/riscix1-1.h:
11905 * s/riscix12.h:
11906 * s/sco4.h:
11907 * s/sco5.h:
11908 * s/sunos4-0.h:
11909 * s/sunos4-1.h:
11910 * s/sunos413.h:
11911 * s/sunos4shr.h:
11912 * s/umax.h:
11913 * s/unipl5-2.h:
11914 * s/xenix.h:
11915 * cxux-crt0.s:
11916 * unexapollo.c:
11917 * unexconvex.c:
11918 * unexenix.c:
11919 * unexsni.c: Remove files for systems no longer supported.
11920
11921 * m/intel386.h: Remove references to unsupported systems.
11922
11923 * w32.c (get_emacs_configuration): Remove reference to i860.
11924
11925 * sysdep.c: Remove dead code.
11926
d35e1cd7
DN
119272008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
11928
11929 * s/rtu.h:
a0a3805c 11930 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 11931
abe136ee
MA
119322008-01-04 Michael Albinus <michael.albinus@gmx.de>
11933
11934 * dbusbind.c (Fdbus_method_return): New function.
11935 (xd_read_message): Add the serial number to the event.
11936 (Fdbus_register_method): Activate the function.
11937
87df3c32
SM
119382008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * keyboard.c (read_key_sequence): Fix typo.
11941
5125905e
MA
119422008-01-03 Michael Albinus <michael.albinus@gmx.de>
11943
11944 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
11945 (xd_signature, xd_append_arg): Handle element type detection for
11946 empty arrays.
11947 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
11948 SDATA () calls; this must be solved more general.
11949 (Fdbus_register_signal): Use SBYTES instead of strlen.
11950
8bba1b5c
MH
119512008-01-03 Magnus Henoch <magnus@zemdatav>
11952
11953 * dbusbind.c (xd_append_arg): Use unsigned char instead of
11954 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 11955 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 11956
a0a3805c 119572007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
11958
11959 * dbusbind.c (xd_read_message): Use non-static input_event struct.
11960
a271e124
MH
119612007-12-31 Magnus Henoch <mange@freemail.hu>
11962
11963 * dbusbind.c (xd_signature): Signature of variant is just "v".
11964
17bc8f94
MA
119652007-12-30 Michael Albinus <michael.albinus@gmx.de>
11966
87df3c32 11967 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 11968 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
11969 (XD_ERROR, XD_DEBUG_MESSAGE)
11970 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
11971 (xd_append_arg): Part for basic D-Bus types rewitten.
11972 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
11973 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
11974 appropriate.
11975 (xd_read_message): Return Qnil. Don't signal an error; it is not
11976 useful during event reading.
11977 (Fdbus_register_signal): Signal an error if the check for
11978 FUNCTIONP fails.
11979 (Fdbus_register_method): New function. The implementation is not
11980 complete, the call of the function signals an error therefore.
11981 (Fdbus_unregister_object): New function, renamed from
11982 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 11983 the object is not well formed.
17bc8f94 11984
dd6f2802
RS
119852007-12-30 Richard Stallman <rms@gnu.org>
11986
11987 * textprop.c (get_char_property_and_overlay):
11988 Signal error if POSITION is out of range in a buffer.
11989
1da8a031
MR
119902007-12-29 Martin Rudalics <rudalics@gmx.at>
11991
11992 * w32fns.c (Fx_create_frame): Make copy of frame parameters
11993 because the original parameters are in pure storage now.
11994
5742be86
YM
119952007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11996
11997 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
11998
b014713c
EZ
119992007-12-22 Eli Zaretskii <eliz@gnu.org>
12000
b17f53ab
MB
12001 * callint.c (syms_of_callint) <command-history>: Add reference to
12002 history-length in the doc string.
048addec 12003
b17f53ab 120042007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 12005
b17f53ab
MB
12006 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
12007 before passing as wParam.
048addec 12008
9af5078b
MA
120092007-12-22 Michael Albinus <michael.albinus@gmx.de>
12010
12011 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
12012 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
12013 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
12014 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
12015 as number.
12016 (Fdbus_call_method): Fix docstring.
12017
87cf1a39
MA
120182007-12-21 Michael Albinus <michael.albinus@gmx.de>
12019
12020 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
12021 New macros.
87df3c32 12022 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
12023 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
12024 Simplify.
87cf1a39
MA
12025 (xd_signature): New function.
12026 (xd_append_arg): Compute also signatures. Major rewrite.
12027 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
12028 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
12029 Check for signatures of arguments.
87cf1a39 12030
54371585
MA
120312007-12-19 Michael Albinus <michael.albinus@gmx.de>
12032
12033 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
12034 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
12035 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
12036 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
12037 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 12038 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
12039 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
12040 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 12041 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
12042 (xd_append_arg): New function.
12043 (Fdbus_call_method, Fdbus_send_signal): Apply it.
12044
f5306ca3
MA
120452007-12-16 Michael Albinus <michael.albinus@gmx.de>
12046
12047 * dbusbind.c (top): Include <stdio.h>.
12048 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
12049 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
12050 (Fdbus_register_signal): Rename unique_name to uname.
12051 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
12052 non-existing unique name. Fix typos in matching rule. Return an
12053 object which is useful in Fdbus_unregister_signal.
12054 (Fdbus_unregister_signal): Reimplementation, in order to remove
12055 only the corresponding entry.
12056 (Vdbus_registered_functions_table): Change the order of entries.
12057 Apply these changes in xd_read_message and Fdbus_register_signal.
12058
77a28bbf
AS
120592007-12-16 Andreas Schwab <schwab@suse.de>
12060
12061 * fileio.c (Finsert_file_contents): Fix overflow check to not
12062 depend on undefined integer overflow.
12063
2e3566d8
JR
120642007-12-14 Jason Rumney <jasonr@gnu.org>
12065
12066 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
12067 for characters above 127.
12068
bf254037
JR
120692007-12-13 Jason Rumney <jasonr@gnu.org>
12070
12071 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
12072 before dereferencing array.
12073 (lookup_vk_code): Remove zero comparison.
12074
eb7c7bf5
MA
120752007-12-14 Michael Albinus <michael.albinus@gmx.de>
12076
12077 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
12078 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
12079 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
12080 (xd_read_message, Fdbus_register_signal): Split expressions into
12081 multiple lines before operators "&&" and "||", according to the
12082 GNU Coding Standards.
12083
34fb0fc9
EZ
120842007-12-14 Eli Zaretskii <eliz@gnu.org>
12085
12086 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
12087
c7d97628
JL
120882007-12-12 Juri Linkov <juri@jurta.org>
12089
12090 * buffer.c (Frename_buffer): In interactive spec replace
12091 `read-buffer' with `read-string' that uses `buffer-name-history'
12092 as history, and the current buffer's name as default.
12093
3709505e
SM
120942007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
12095
12096 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
12097 manipulating the backtrace manually.
12098 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
12099 (struct backtrace, backtrace_list): Remove.
12100 (command_loop_1): Remove dead var `no_direct'.
12101
12102 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
12103 preserve non-built-in buffer-local variables.
12104 (Fkill_all_local_variables): Don't re-create&re-set permanent
12105 buffer-local variables.
12106
e2bec886
JL
121072007-12-09 Juri Linkov <juri@jurta.org>
12108
12109 * buffer.c (Frename_buffer): Change interactive spec from "s" to
12110 Lisp code that uses `read-buffer' with current buffer as default.
12111
a31d47c7
MA
121122007-12-08 Michael Albinus <michael.albinus@gmx.de>
12113
12114 * dbusbind.c (xd_read_message): Generate an event for every
12115 registered handler. There might be several handlers registered
12116 for the same signal.
12117 (Fdbus_register_signal): Don't overwrite a registration for the
12118 same signal. Add a new registration if handlers are different.
12119 (Vdbus_registered_functions_table): Rework doc string.
12120
52da95fa
MA
121212007-12-07 Michael Albinus <michael.albinus@gmx.de>
12122
12123 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
12124 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
12125 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
12126 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
12127 Unify argument lists.
a0a3805c 12128 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
12129 arguments and hash table keys. Use unique name for service.
12130 (Fdbus_unregister_signal): Remove checks.
12131 (Vdbus_registered_functions_table): Fix doc string.
12132
e5e76c04 121332007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
12134
12135 * process.c (make_process): Initialize pty_flag to 0.
12136
e5e76c04 121372007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
12138
12139 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
12140 specified XBMs.
12141
e5e76c04 121422007-12-05 Richard Stallman <rms@gnu.org>
048addec 12143
e5e76c04 12144 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 12145
e5e76c04 121462007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 12147
e5e76c04
MB
12148 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
12149 New variable.
12150 (mac_try_close_socket) [MAC_OSX]: New function.
12151 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
12152 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 12153
e5e76c04
MB
12154 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
12155 Use mac_try_close_socket.
048addec 12156
e5e76c04 121572007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 12158
e5e76c04
MB
12159 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
12160 reloc_base.
12161 (copy_dysymtab): Compute relocation base here.
12162 (rebase_reloc_address) [__ppc64__]: New function.
12163 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
12164 changed.
048addec 12165
e5e76c04 121662007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 12167
e5e76c04 12168 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 12169
e5e76c04 121702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 12171
e5e76c04
MB
12172 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
12173 __objc_* sections.
12174 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 12175
96faeb40
MA
121762007-12-05 Michael Albinus <michael.albinus@gmx.de>
12177
12178 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
12179 Move check for Vdbus_registered_functions_table to
12180 xd_read_queued_messages.
12181 (xd_read_queued_messages): Protect xd_read_message calls by
12182 internal_condition_case_1.
12183
39abdd4a
MA
121842007-12-04 Michael Albinus <michael.albinus@gmx.de>
12185
87df3c32 12186 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 12187 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 12188 (Vdbus_intern_symbols): Remove.
39abdd4a 12189 (Vdbus_registered_functions_table): New hash table.
87df3c32 12190 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 12191 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 12192 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
12193 Vdbus_registered_functions_table.
12194
880820fe 121952007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
12196
12197 * xterm.c: Update URL to Window Manager Specification in comment.
12198
033b73e2
MA
121992007-12-02 Michael Albinus <michael.albinus@gmx.de>
12200
12201 * config.in (HAVE_DBUS): Add.
12202
a0a3805c 12203 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
12204 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
12205 (obj): Add $(DBUS_OBJ).
12206 (LIBES): Add $(DBUS_LIBS).
12207 (dbusbind.o): New target.
12208
12209 * dbusbind.c: New file.
12210
12211 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
12212
12213 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 12214 (Qdbus_event): New Lisp symbol.
033b73e2 12215 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 12216 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
12217 (keys_of_keyboard ): Define dbus-event.
12218
12219 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
12220
39d0bf74
RS
122212007-12-01 Richard Stallman <rms@gnu.org>
12222
12223 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
12224
f3157c65
JR
122252007-11-30 Jason Rumney <jasonr@gnu.org>
12226
12227 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
12228 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
12229 (w32_face_attributes): Don't use color indexes that are out of range.
12230 Only reverse the default colors.
f3157c65
JR
12231
12232 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
12233 WINDOWSNT.
12234
12235 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
12236
b510360c
JR
122372007-11-29 Jason Rumney <jasonr@gnu.org>
12238
12239 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
12240 (w32_face_attributes): Use Vtty_defined_color_alist to determine
12241 if the terminal colors are initialized.
12242 (unspecified_fg, unspecified_bg): Remove unused declarations.
12243
4b7ab1c4
AS
122442007-11-29 Andreas Schwab <schwab@suse.de>
12245
12246 * keyboard.c (apply_modifiers): Fix typo.
12247
4bb6c266
RS
122482007-11-29 Richard Stallman <rms@gnu.org>
12249
12250 * keymap.c (Fcurrent_local_map): Doc fix.
12251
aa44cd84
GM
122522007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
12253
12254 * s/gnu-kfreebsd.h: New file.
12255
21ec2c43
SM
122562007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
12257
cc648cef
SM
12258 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
12259 Don't cast redundantly.
12260
21ec2c43
SM
12261 * keyboard.c (KEY_TO_CHAR): New macro.
12262 (parse_modifiers, apply_modifiers): Accept integer arguments.
12263 (read_key_sequence): Use them to unify the "shift->unshift" mapping
12264 for chars and symbol keys.
12265 After doing such remapping, apply function-key-map again.
12266
73e72da4
DN
122672007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
12268
12269 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
12270 compiled anymore.
12271
254693ff
AS
122722007-11-26 Andreas Schwab <schwab@suse.de>
12273
12274 * process.c (list_processes_1): Fix indentation level of the
12275 command column.
12276
ff6e6ac8
AS
122772007-11-23 Andreas Schwab <schwab@suse.de>
12278
12279 * editfns.c (Fformat): Handle %c specially since it requires the
12280 argument to be of type int.
12281
f7cf8b20
SM
122822007-11-23 Markus Triska <markus.triska@gmx.at>
12283
12284 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 12285 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 12286
569c11e3
SM
122872007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
12288
8787dd73
SM
12289 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
12290 (find_symbol_value): Use do_symval_forwarding.
12291
569c11e3
SM
12292 * data.c (set_internal): Set the value in the `cons-cell' (for
12293 Buffer_Local_values) not only for frame-local variables.
12294
6af1696d
AS
122952007-11-22 Andreas Schwab <schwab@suse.de>
12296
12297 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
12298 values to sprintf.
12299 * keymap.c (Fsingle_key_description): Likewise.
12300 * print.c (print_object): Likewise.
12301
880820fe 123022007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
12303
12304 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
12305 file for image is nil.
12306
7c401d15
DN
123072007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
12308
12309 * term.c: Include stdarg.h.
569c11e3 12310 (fatal): Implement using varargs.
a0a3805c 12311 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 12312
64e16c3c
SM
123132007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12314
12315 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
12316 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
12317 Update call to buffer_slot_type_mismatch.
12318 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
12319 (buffer_slot_type_mismatch): Update.
12320 * buffer.c (buffer_local_types): Remove.
12321 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
12322 (defvar_per_buffer): Set the type in the buffer_objfwd.
12323
d4aa48db 123242007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 12325
64e16c3c
SM
12326 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
12327 CreateFileMapping returns NULL on failure.
5f42a7eb 12328
d4aa48db 123292007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 12330
d4aa48db
MB
12331 * search.c (Fset_match_data): Remove the `evaporate' feature.
12332 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 12333
bdae0540
JR
123342007-11-21 Jason Rumney <jasonr@gnu.org>
12335
12336 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
12337
12338 * w32console.c (w32con_write_glyphs): Remove unused variables.
12339
202c09a8
DN
123402007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
12341
b951420f
DN
12342 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
12343
202c09a8
DN
12344 * s/darwin.h (MULTI_KBOARD): Remove.
12345
12346 * macfns.c (x_create_tip_frame, Fx_create_frame)
12347 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
12348
bae72c12
SM
123492007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
12350
e7c10f83
SM
12351 * buffer.c (Fbuffer_local_value): Remove redundant test.
12352 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
12353 than in `current-buffer' to match the comment.
12354 Do the swap using swap_in_global_binding.
12355
136eb6ed
SM
12356 * data.c (store_symval_forwarding, set_internal):
12357 * eval.c (specbind): Remove dead code.
12358
bae72c12
SM
12359 * coding.c (detect_coding, Fupdate_coding_systems_internal):
12360 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
12361 Since we do not want to see internal Lisp_*fwd objects here.
12362
880820fe 123632007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 12364
3d66b985
JD
12365 * sysdep.c (init_system_name): Use getaddrinfo if available.
12366
95fbaefc
JD
12367 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
12368 (x_scroll_bar_note_movement): start, end, with, height in struct
12369 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
12370
6c1d8cb6
DN
123712007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
12372
12373 * puresize.h (BASE_PURESIZE): Increase to 1190000.
12374
30f95089
SM
123752007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
12376
66b04bd4
SM
12377 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
12378 This undoes Richard's change of 14-Oct-2002.
12379
6d3f2bb2
SM
12380 * alloc.c (allocate_other_vector):
12381 * lisp.h (allocate_other_vector): Remove.
12382
b05b4e27
SM
12383 * window.c (struct save_window_data): Move non-lisp data to the end
12384 and make it `int' rather than Lisp_Object.
12385 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
12386 Done wrap/unwrap integer values.
12387 (Fset_window_configuration, compare_window_configurations):
12388 Update use of fields to their new types.
12389
056ce195
SM
12390 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
12391 Turn integer fields into `int'. Merge x_window_low and x_window_high.
12392 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
12393 (SET_SCROLL_BAR_X_WINDOW): Remove.
12394 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
12395 Access the new x_window field directly.
12396 * xterm.c (x_scroll_bar_create): Use a pseudovector.
12397 Don't wrap/unwrap integers into Lisp_Objects.
12398 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
12399 (x_scroll_bar_report_motion):
12400 Don't wrap/unwrap integers into Lisp_Objects.
12401 (x_term_init): Use SDATA.
12402 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
12403 (x_scroll_bar_set_handle, x_scroll_bar_remove)
12404 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
12405 (x_scroll_bar_report_motion, x_scroll_bar_clear):
12406 * xfns.c (x_set_background_color):
12407 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
12408 Access the new x_window field directly.
12409
30f95089
SM
12410 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
12411 (allocate_pseudovector): Make non-static.
6d3f2bb2 12412
30f95089
SM
12413 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
12414 (allocate_pseudovector): Declare.
6f69e89b 12415 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 12416
9b6112e8
AS
124172007-11-15 Andreas Schwab <schwab@suse.de>
12418
30f95089
SM
12419 * editfns.c (Fformat): Correctly format EMACS_INT values.
12420 Also take precision into account when formatting an integer.
0f860bd7 12421
9b6112e8
AS
12422 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
12423
262fcd41
SM
124242007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
12425
58da34c7
SM
12426 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
12427 (syms_of_keyboard): Defsubr it.
12428
262fcd41
SM
12429 * data.c (swap_in_global_binding): Fix longstanding bug where
12430 store_symval_forwarding was not called with the right second argument,
12431 thus causing objfwd-ing from being dropped.
12432
d29a9848
JB
124332007-11-14 Juanma Barranquero <lekktu@gmail.com>
12434
12435 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
12436 (Fx_display_pixel_height, Fx_display_planes)
12437 (Fx_display_color_cells, Fx_server_max_request_size)
12438 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12439 (Fx_display_visual_class, Fx_display_save_under):
12440 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
12441 (Fx_display_pixel_height, Fx_display_planes)
12442 (Fx_display_color_cells, Fx_server_max_request_size)
12443 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12444 (Fx_display_mm_height, Fx_display_mm_width)
12445 (Fx_display_backing_store, Fx_display_visual_class)
12446 (Fw32_select_font, Fx_display_save_under):
12447 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
12448 (Fx_display_pixel_height, Fx_display_planes)
12449 (Fx_display_color_cells, Fx_server_max_request_size)
12450 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
12451 (Fx_display_save_under): Fix typos in docstrings.
12452
74084731
JB
124532007-11-14 Juanma Barranquero <lekktu@gmail.com>
12454
12455 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
12456 corresponding to deleted entries; they are an implementation detail.
12457 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
12458 Remove variables.
12459 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
12460 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
12461 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
12462 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
12463 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 12464 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 12465 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
12466 Fix typos in docstrings.
12467 (Fx_server_version): Reflow docstring.
12468 (Fw32_shell_execute): Doc fixes.
74084731 12469
fb053a1f
JB
124702007-11-13 Juanma Barranquero <lekktu@gmail.com>
12471
12472 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
12473 if w32_parse_hot_key returned nil.
12474
a457417e 124752007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 12476
a457417e 12477 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 12478
4b219faa
JR
124792007-11-09 Jason Rumney <jasonr@gnu.org>
12480
12481 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
12482
12483 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
12484
12485 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
12486 Remove W32_SCROLL_BAR_CLICK_EVENT.
12487
12488 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
12489 Add MULTIMEDIA_KEY_EVENT.
12490
12491 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
12492 (lispy_multimedia_keys) [WINDOWSNT]: New array.
12493 (make_lispy_event) [WINDOWSNT]: Use it to translate
12494 MULTIMEDIA_KEY_EVENT.
12495
12496 * w32term.h (WM_APPCOMMAND): Define if not already.
12497 (GET_APPCOMMAND_LPARAM): Likewise.
12498
12499 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
12500 WM_APPCOMMAND.
12501
12502 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
12503 (syms_of_w32fns): Export and initialize it.
12504 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
12505
c12ecb0a 125062007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
12507
12508 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
12509 twice.
12510
12511 * xdisp.c (handle_face_prop): Fix last change.
12512
c12ecb0a 125132007-11-09 Richard Stallman <rms@gnu.org>
048addec 12514
c12ecb0a
MB
12515 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
12516 not just for after-strings and before-strings.
12517 Call face_for_overlay_string and pass the overlay to it.
12518 (handle_display_prop): Determine whether property came from an overlay.
12519 Pass OVERLAY arg to handle_single_display_spec.
12520 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
12521 (load_overlay_strings): Fill in it->string_overlays.
12522 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 12523
c12ecb0a
MB
12524 * xfaces.c (face_for_overlay_string): Function renamed from
12525 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 12526
c12ecb0a
MB
12527 * dispextern.h (struct it): New elt string_overlays.
12528 New elt from_overlay, also in stack.
12529 Rearrange a few elements.
12530 (face_for_overlay_string): Decl renamed from
12531 face_at_buffer_position_no_overlays, and add argument.
15fff01d 12532
c12ecb0a 125332007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 12534
c12ecb0a
MB
12535 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
12536 to get the base face for an overlay string.
0d8466cc 12537
c12ecb0a 12538 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 12539
c12ecb0a 12540 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 12541
c12ecb0a 12542 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 12543
c12ecb0a 125442007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 12545
c12ecb0a
MB
12546 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
12547 Fix conversion from Lisp object to ATSUFontID.
07025a55 12548
c12ecb0a 125492007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 12550
c12ecb0a 12551 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 12552
c12ecb0a 125532007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 12554
c12ecb0a
MB
12555 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
12556 Don't assume regions are aligned to page boundary.
12557 (print_load_command_name): Add LC_UUID if defined.
3a232704 12558
c12ecb0a 125592007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 12560
c12ecb0a 12561 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 12562
b8ddfbcc
JR
125632007-11-07 Jason Rumney <jasonr@gnu.org>
12564
12565 * s/windows95.h: Remove.
12566
880820fe 125672007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
12568
12569 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
12570 abort with a message on unhandled store_type values.
12571
880820fe 125722007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
12573
12574 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
12575 Remove HAVE_X11R5 and HAVE_X11R4.
12576
04a697fe
DN
125772007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
12578
12579 * Makefile.in: Remove references to sunfns.c and sunfns.o.
12580
880820fe 125812007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
12582
12583 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 12584 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
12585 x_set_glyph_string_gc from x_draw_glyph_string.
12586
07e5c0b0
DN
125872007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
12588
2a2e8de7 12589 * sunfns.c: Remove file.
07e5c0b0
DN
12590
12591 * m/sun386.h:
12592 * m/sun2.h:
12593 * m/sparc.h: Remove Sun windows code.
12594
1bc973c2
SM
125952007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
12596
12597 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
12598 (init_keyboard): Set current_kboard's window-system to nil.
12599 (tty_read_avail_input): Typo.
12600 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
12601
c22140f6
DN
126022007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
12603
12604 * s/usg5-4.h:
12605 * s/usg5-3.h:
12606 * s/ptx.h:
12607 * m/is386.h:
12608 * m/ibmps2-aix.h:
2a2e8de7 12609 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
12610
12611 * dispnew.c (syms_of_display): Don't mention version 10.
12612
660a8219
JB
126132007-10-28 Juanma Barranquero <lekktu@gmail.com>
12614
12615 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
12616 ($(BLD)/abbrev.$(O)): Remove.
12617
e047f448
SM
126182007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12619
12620 Rewrite abbrev.c in Elisp.
12621 * image.c (Qcount): Don't declare as extern.
12622 (syms_of_image): Initialize and staticpro `Qcount'.
12623 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
12624 * emacs.c (main): Don't call syms_of_abbrev.
12625 * Makefile.in (obj): Remove abbrev.o.
12626 (abbrev.o): Remove.
12627 * abbrev.c: Remove.
12628
67b73e3a
MR
126292007-10-26 Martin Rudalics <rudalics@gmx.at>
12630
12631 * window.c (window_min_size_2): Don't count header-line.
12632
e3d7bd83
DN
126332007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
12634
12635 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 12636 field to take advantage of the available space. Group all the
e3d7bd83
DN
12637 chars together to reduce wasted space due to padding.
12638
a3547743
JB
126392007-10-26 Juanma Barranquero <lekktu@gmail.com>
12640
e298936f
JB
12641 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
12642
d3d47262
JB
12643 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
12644 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
12645 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
12646 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
12647 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
12648 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
12649 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
12650 (last_marked, mark_object_loop_halt): Make static.
12651
a3547743
JB
12652 * frame.c (syms_of_frame) <delete-frame-functions>:
12653 Fix typo in docstring.
12654
14c71d8b
JB
126552007-10-25 Juanma Barranquero <lekktu@gmail.com>
12656
12657 * w32.c (init_environment): Fix tiny memory leak.
66199f74 12658 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 12659
70b8d0a4
SM
126602007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
12661
12662 Make `window-system' into a keyboard-local variable (rather than
12663 frame-local as done originally by multi-tty).
12664
12665 * keyboard.h (struct kboard): Add Vwindow_system.
12666 * keyboard.c (init_kboard): Set a default for Vwindow_system.
12667 (mark_kboards): Mark Vwindow_system.
12668
12669 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
12670 (init_display): Don't set the obsolete `window-system' frame-param.
12671
12672 * xterm.c (x_term_init):
12673 * w32term.c (w32_create_terminal):
12674 * term.c (init_tty): Set Vwindow_system.
12675 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
12676 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
12677
12678 * xfns.c (Fx_create_frame, x_create_tip_frame):
12679 * w32fns.c (Fx_create_frame, x_create_tip_frame):
12680 * macfns.c (Fx_create_frame):
12681 Don't set the obsolete `window-system' frame-param.
12682
12683 * frame.h (Qwindow_system): Remove.
12684 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
12685 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
12686
fdc90613 126872007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 12688
fdc90613
MB
12689 * frame.c (x_figure_window_size): For fullscreen case,
12690 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 12691
fdc90613 12692 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 12693
fdc90613 12694 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 12695
7357cb04
SM
126962007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12697
98228e72
SM
12698 * process.c (unwind_request_sigio): Only define if __ultrix__.
12699
1baf6db9
SM
12700 * callproc.c (child_setup): Remove spurious *.
12701
4d0ac3d7
SM
12702 * lisp.h (Fget_text_property): Declare.
12703 (have_menus_p): Declare it here rather than in sys-dep header files.
12704 * macterm.h (have_menus_p):
12705 * msdos.h (have_menus_p):
12706 * xterm.h (have_menus_p): Remove.
12707
7357cb04
SM
12708 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12709 (Fmake_variable_frame_local): Just check the variable's const-ness
12710 rather than checking nil or t.
12711
866e6dd6
JR
127122007-10-22 Jason Rumney <jasonr@gnu.org>
12713
b00afeae
JR
12714 * w32fns.c: Include math.h.
12715 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 12716
c8f7c76b
JR
12717 * s/ms-w32.h (HAVE_STDLIB_H): Define.
12718 (abort): Redefinition moved to nt/config.nt.
12719
866e6dd6
JR
12720 * m/windowsnt.h: Remove.
12721
e79beb56
JB
127222007-10-22 Juanma Barranquero <lekktu@gmail.com>
12723
12724 * emacs.c (Fdump_emacs): Fix typo in message.
12725 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
12726 <installation-directory>: Reflow docstring.
12727
fb30dfd2
JL
127282007-10-22 Juri Linkov <juri@jurta.org>
12729
12730 * minibuf.c: Allow minibuffer default to be a list of default values.
12731 With empty input use the first element of this list as returned default.
e79beb56 12732 (string_to_object)
0f7f11b7 12733 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
12734 (read_minibuf): If defalt is cons, set histstring to its car.
12735 (Fread_string): If default_value is cons, set val to its car.
12736 (Fread_buffer): If def is cons, use its car.
12737 (Fcompleting_read): If defalt is cons, set val to its car.
12738
1f163f28
MA
127392007-10-21 Michael Albinus <michael.albinus@gmx.de>
12740
12741 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
12742
db3534c3
JB
127432007-10-20 Juanma Barranquero <lekktu@gmail.com>
12744
12745 * doc.c (Fdocumentation): Check for advice in all cases.
12746
c6f18a07
CY
127472007-10-19 Chong Yidong <cyd@stupidchicken.com>
12748
12749 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
12750
2a1534d3
RS
127512007-10-19 Richard Stallman <rms@gnu.org>
12752
12753 * doc.c (Fdocumentation): Check for and handle an advised function.
12754
7b82c3b6
JB
127552007-10-19 Juanma Barranquero <lekktu@gmail.com>
12756
12757 * process.c (Fset_process_filter): Doc fix.
12758
3278f20e
SM
127592007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12760
12761 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
12762 which caused key-translation-map to applied repeatedly (thus breaking
12763 double-mode).
12764
99784d63
SM
127652007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12766
12767 * xselect.c (x_own_selection, x_handle_selection_clear)
12768 (x_clear_frame_selections):
12769 * w32menu.c (list_of_panes, list_of_items):
12770 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
12771 * textprop.c (validate_plist, interval_has_all_properties)
12772 (interval_has_some_properties, interval_has_some_properties_list)
12773 (add_properties, text_property_list):
12774 * process.c (Fget_buffer_process, list_processes_1, status_notify):
12775 * minibuf.c (Fassoc_string):
12776 * macselect.c (x_own_selection, x_clear_frame_selections)
12777 (Fx_disown_selection_internal):
12778 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
12779 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
12780
44bb704d
CY
127812007-10-17 Chong Yidong <cyd@stupidchicken.com>
12782
12783 * process.c: Link to libs for calling res_init() if available.
12784 (Fmake_network_process): Call res_init() before getaddrinfo or
12785 gethostbyname, if possible.
12786
d314756e
SM
127872007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12788
2504022a
SM
12789 * lread.c (read1): Set pvectype for char_tables.
12790
19fa82b9
SM
12791 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
12792 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
12793 Add type checks.
12794 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
12795
d314756e
SM
12796 * alloc.c (free_misc): Use XMISCTYPE.
12797 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
12798
94b9aaa2
GM
127992007-10-17 Glenn Morris <rgm@gnu.org>
12800
12801 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
12802 (syms_of_minibuf): Add Qcompletion_ignore_case.
12803 * dired.c (Qcompletion_ignore_case): Change to external.
12804 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
12805 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
12806 (Fread_file_name): Use it rather than intern'ing.
12807
12808 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
12809 (Fread_coding_system): Ignore case of user input.
12810
da6658e8
YM
128112007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12812
12813 * xdisp.c (handle_display_prop): Ignore display specs after
12814 replacing one when string text is being replaced.
12815 (handle_single_display_spec): Pretend as if characters with display
12816 property haven't been consumed only when buffer text is being replaced.
12817
11fb4bdb
SM
128182007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
12819
9beb8baa
SM
12820 * xfns.c (Fx_create_frame, Fx_display_list):
12821 * window.c (window_fixed_size_p, enlarge_window)
12822 (shrink_window_lowest_first):
12823 * macterm.c (init_font_name_table):
12824 * macfns.c (Fx_create_frame, Fx_display_list):
12825 * lread.c (close_load_descs):
12826 * keyboard.c (read_char_x_menu_prompt):
12827 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
12828 * coding.c (code_convert_region_unwind): Test the type of an object
12829 rather than just !NILP before extracting data from it.
12830
d3f41ff5
SM
12831 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
12832
67ee9f6e
SM
12833 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
12834 (XMISCANY): New macro.
12835 (XMISCTYPE): Use it.
12836 (struct Lisp_Misc_Any): New type.
12837 (union Lisp_Misc): Use it.
12838 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
12839 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
12840 (find_symbol_value, set_internal, default_value, Fset_default)
12841 (Fmake_variable_buffer_local, Fmake_local_variable)
12842 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
12843 (Flocal_variable_if_set_p, Fvariable_binding_locus):
12844 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
12845 * alloc.c (allocate_buffer): Set the size and tag.
12846 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
12847 Use XMISCANY.
12848 (die): Follow the GNU convention for error messages.
12849 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
12850 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
12851 tag any more.
12852 (set_buffer_internal_1):
12853 * frame.c (store_frame_param):
12854 * eval.c (specbind):
12855 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
12856
11fb4bdb
SM
12857 * doc.c (Fsnarf_documentation): Simplify.
12858
decb374a
JB
128592007-10-14 Juanma Barranquero <lekktu@gmail.com>
12860
12861 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
12862 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
12863
b5a40ee7
SM
128642007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
12865
12866 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
12867
35277b03
JB
128682007-10-14 Juanma Barranquero <lekktu@gmail.com>
12869
12870 * eval.c (do_autoload): Don't save autoloads.
12871
12872 * data.c (Ffset): Save autoload of the function being set.
12873
35fdaa62
GM
128742007-10-07 John Paul Wallington <jpw@pobox.com>
12875
12876 * xfns.c (x_create_tip_frame): Set the `display-type' frame
12877 parameter before setting up faces.
12878
1ea40aa2
EZ
128792007-10-13 Eli Zaretskii <eliz@gnu.org>
12880
35fdaa62 12881 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
12882 * keyboard.c (append_tool_bar_item): Reformat last change.
12883
1ea40aa2
EZ
12884 * lisp.h (eabs): Rename from `abs'. All callers changed.
12885
35277b03 128862007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
12887
12888 * buffer.c (add_overlay_mod_hooklist):
12889 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
12890 * fontset.c (make_fontset):
12891 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
12892 (append_tool_bar_item):
12893 * macmenu.c (grow_menu_items):
35fdaa62 12894 * w32menu.c (grow_menu_items):
71d00ce4 12895 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 12896
bc82f120
EZ
128972007-10-13 Eli Zaretskii <eliz@gnu.org>
12898
12899 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
12900 selected frame'' on MSDOS).
12901
d57d5a78
MR
129022007-10-12 Martin Rudalics <rudalics@gmx.at>
12903
12904 * frame.c (Qexplicit_name): New variable.
12905 (x_report_frame_params): Report it in parameter alist.
12906 (syms_of_frame): Intern and staticpro it.
12907
35277b03 129082007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
12909
12910 * macfns.c (x_create_tip_frame): Set terminal for frame.
12911
c7a4b95b
SM
129122007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
12913
26f9c7b7
SM
12914 * frame.c (Qenvironment): Remove.
12915 (syms_of_frame) <Qenvironment>: Don't initialize.
12916 (Fdelete_frame): Don't treat the `environment' param specially.
12917 * frame.h (Qenvironment): Don't declare.
12918 * callproc.c (set_initial_environment): Don't set unused frame param.
12919
c7a4b95b
SM
12920 * frame.c (Fframe_with_environment): Remove.
12921 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 12922
c7a4b95b
SM
12923 * lisp.h (Fframe_with_environment): Don't declare.
12924
c86f7377
JB
129252007-10-10 Juanma Barranquero <lekktu@gmail.com>
12926
12927 * indent.c (indent_tabs_mode, last_known_column)
12928 (last_known_column_modified): Make static.
12929 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
12930
d1b3a122
KY
129312007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
12932
12933 * puresize.h (BASE_PURESIZE): Increase to 1170000.
12934
d57d5a78
MR
129352007-10-09 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32term.c (x_set_window_size): Disable code that attempts to tell
12938 Lisp code about a size change before it actually happens.
12939
81d3d428 129402007-10-09 Richard Stallman <rms@gnu.org>
91175673 12941
81d3d428
MB
12942 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
12943 return HANDLED_RETURN.
91175673 12944
1af74d06 129452007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 12946
1af74d06
MB
12947 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
12948 when there's an unread command event.
e0fead5d 12949
c7a4b95b 12950 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
12951 window autoselection act appropriately when leaving selected frame.
12952 (syms_of_frame): Initialize focus_follows_mouse.
12953 * frame.h (focus_follows_mouse): Extern it.
12954 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 12955 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
12956 * msdos.c (dos_rawgetc): Likewise.
12957 * w32term.c (w32_read_socket): Likewise.
12958 * xterm.c (handle_one_xevent): Likewise.
12959 * xdisp.c (syms_of_xdisp): In doc-string of
12960 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 12961
1af74d06 129622007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 12963
1af74d06
MB
12964 * macterm.c (mac_load_query_font): Fix missing return value.
12965 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
12966 Add BLOCK_INPUT.
c186cdb3 12967
1af74d06 129682007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 12969
1af74d06
MB
12970 * xdisp.c (get_window_cursor_type): Implement documented behavior
12971 for cursor-in-non-selected-windows = t.
c186cdb3 12972
1af74d06 129732007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 12974
1af74d06 12975 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 12976
1af74d06 129772007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 12978
1af74d06 12979 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 12980
1af74d06 12981 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 12982
1af74d06 129832007-10-08 Richard Stallman <rms@gnu.org>
a3c83618 12984
c7a4b95b 12985 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 12986
1af74d06 129872007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 12988
1af74d06 12989 * buffer.c (Foverlays_at): Doc fix.
036e218d 12990
1af74d06 129912007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 12992
1af74d06 12993 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 12994
1af74d06 129952007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 12996
1af74d06 12997 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 12998
1af74d06 12999 * frame.h (enum): Remove trailing comma.
90647b07 13000
8993ad2e 130012007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 13002
1af74d06 13003 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 13004
1af74d06 130052007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 13006
1af74d06 13007 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 13008
1af74d06
MB
13009 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
13010 last-repeatable-command.
13011 (init_kboard): Initialize Vlast_repeatable_command.
13012 (command_loop_1): Set it to real_this_command unless that was
13013 bound to an input event.
13014 (mark_kboards): Mark it.
9fbc32aa 13015
1af74d06 130162007-10-08 Richard Stallman <rms@gnu.org>
036e218d 13017
1af74d06 13018 * eval.c (condition-case): Doc fix.
9fbc32aa 13019
1af74d06 130202007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 13021
1af74d06
MB
13022 * xfaces.c (tty_supports_face_attributes_p): Fix code
13023 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
13024 was copied and not edited.
9fbc32aa 13025
beb9f745
SM
130262007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
13027
c86f7377 13028 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
13029 escape sequences.
13030 * keyboard.h (struct kboard): Add Vinput_decode_map.
13031 Remove Vlocal_key_translation_map.
13032 * keyboard.c (read_key_sequence): Add support for input-decode-map.
13033 (init_kboard): Init input-decode-map.
13034 Replace local-key-translation-map back with key-translation-map.
13035 (syms_of_keyboard): Declare input-decode-map.
13036 Remove local-key-translation-map. Update docstrings.
13037 (mark_kboards): Mark Vinput_decode_map.
13038 Don't mark Vlocal_key_translation_map.
13039 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
13040 Replace local-key-translation-map back with key-translation-map.
13041 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
13042 Bind in input-decode-map rather than function-key-map.
13043
beb9f745
SM
13044 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
13045 This was made redundant by the previous introduction of XSETPVECTYPE.
13046
65342ae3
RS
130472007-10-09 Richard Stallman <rms@gnu.org>
13048
beb9f745 13049 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
13050
130512007-09-29 Richard Stallman <rms@gnu.org>
13052
13053 * eval.c (internal_condition_case_2, internal_condition_case_1)
13054 (internal_condition_case): Reenable abort if x_catching_errors ()
13055 to see if that really happens and why.
13056
6cff77fd
AS
130572007-10-06 Andreas Schwab <schwab@suse.de>
13058
13059 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
13060
bbe6f2aa
JB
130612007-10-04 Juanma Barranquero <lekktu@gmail.com>
13062
13063 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
13064
a390930c
SM
130652007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
13066
13067 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
13068
d6aa1876
SM
130692007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
13070
d0fdb6da
SM
13071 * window.h (struct window):
13072 * window.c (struct save_window_data, struct saved_window):
13073 * termhooks.h (struct terminal):
13074 * process.h (struct Lisp_Process):
13075 * frame.h (struct frame):
13076 * buffer.h (struct buffer):
13077 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
13078 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
13079 The size field of (pseudo)vectors is now unsigned.
13080 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
13081
878f97ff
SM
13082 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
13083 Turn `count' into an integer.
d0fdb6da 13084
878f97ff
SM
13085 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
13086 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
13087 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
13088 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
13089 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
13090
d2029e5b
SM
13091 * alloc.c (allocate_pseudovector): New fun.
13092 (ALLOCATE_PSEUDOVECTOR): New macro.
13093 (allocate_window, allocate_terminal, allocate_frame)
13094 (allocate_process): Use it.
13095 (mark_vectorlike): New function.
13096 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
13097 (mark_terminals): Use it.
13098 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
13099 (Fmake_byte_code): Use XSETPVECTYPE.
13100
13101 * frame.c (Fframe_parameters): Minor simplification.
13102
13103 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
13104
13105 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
13106
13107 * buffer.c (Fget_buffer_create, init_buffer_once):
13108 * lread.c (defsubr):
13109 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
13110
13111 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
13112 defined differently in the m/*.h files.
13113 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
13114 (XSETPVECTYPE): New macro.
13115 (XSETPSEUDOVECTOR): Use it.
13116
d6aa1876
SM
13117 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
13118 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 13119
d6aa1876
SM
13120 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
13121 * lread.c (defvar_per_buffer):
13122 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
13123
13124 * window.c (candidate_window_p): Only consider as visible frames that
13125 are on the same terminal.
13126
13127 * m/ibms390x.h (MARKBIT): Remove unused macro.
13128
88852d45
JB
131292007-10-01 Juanma Barranquero <lekktu@gmail.com>
13130
13131 * lread.c (Fload): Fix typo in docstring.
13132
880820fe 131332007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
13134
13135 * floatfns.c (Fexpt): Manually check for overflows, so that a power
13136 of a non-zero value can't yield zero.
13137
ed0c79c6
SM
131382007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
13139
b870aa61
SM
13140 * term.c (term_clear_mouse_face, term_mouse_highlight)
13141 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
13142
4c37a414
SM
13143 * print.c (safe_debug_print): Use XHASH.
13144
b9466edb
SM
13145 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
13146 Lisp elements such as tags.
13147 (XHASH): New macro.
13148 (EQ): Use it.
13149 (SREF, SSET, STRING_COPYIN): Use SDATA.
13150 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
13151
9c545a55
SM
13152 * alloc.c (mark_terminal): Remove left-over declaration.
13153 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
13154 (allocate_vectorlike): Remove type argument. Adjust callers.
13155 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
13156 Only handle the one remaining MEM_TYPE_VECTORLIKE.
13157
dafc79fa
SM
13158 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
13159 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
13160 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
13161 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
13162 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
13163 Use them.
13164
ed0c79c6
SM
13165 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
13166 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
13167 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
13168
3c81afd4
DN
131692007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13170
13171 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
13172 loaded by default.
13173
6178ce5e
SM
131742007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
13175
4ce5ab77
SM
13176 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
13177 on this tty.
13178 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
13179
6178ce5e
SM
13180 * term.c (mouse_face_window): Rename from Qmouse_face_window.
13181 Update all users.
13182 (handle_one_term_event): Use Gpm_DrawPointer.
13183 (Fgpm_mouse_start): Rename from Fterm_open_connection.
13184 Signal errors instead of returning nil. Always return nil.
13185 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
13186 Make it a noop if gpm-mouse was not activated.
13187 (syms_of_term): Update names.
13188
bdf5f8ef
SM
131892007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
13190
75a8734b
SM
13191 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
13192 (init_sys_modes): Check that gpm_tty is the current tty.
13193
13559ee0
SM
13194 * alloc.c (allocate_terminal): Set the vector size to only count the
13195 lisp fields. Initialize those to nil.
13196 (mark_object): Don't treat terminals specially.
13197 (mark_terminal): Remove.
13198 (mark_terminals): Use mark_object instead.
13199
ff16b875
SM
13200 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
13201 the GC to the beginning.
13202
83155776
SM
13203 * indent.h:
13204 * indent.c: Use EMACS_INT for ints coming from Elisp data.
13205
bdf5f8ef
SM
13206 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
13207
ec8705b6
JR
132082007-09-25 Jason Rumney <jasonr@gnu.org>
13209
13210 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
13211
13212 * w32console.c (create_w32cons_output): Remove.
13213
13214 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
13215
13216 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
13217 (reset_sys_modes): Use reset_terminal_modes_hook.
13218
7351b242
SM
132192007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
13220
13221 * eval.c (do_autoload): Don't output any message.
13222
16706228
JL
132232007-09-24 Juri Linkov <juri@jurta.org>
13224
13225 * emacs.c (standard_args): Change priority of "--no-splash"
13226 from 40 to 3. Add "--no-desktop" with the same priority.
13227
3ae2e3a3
RS
132282007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
13229
13230 * alloc.c (gc_sweep): Check cons cell mark bits word by word
13231 and optimize the case where they are all 1.
13232
7a58fb43
GM
132332007-09-23 Johannes Weiner <hannes@saeurebad.de>
13234
3ae2e3a3
RS
13235 * lisp.h (abs): Define if not defined.
13236 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
13237 Don't define `abs', since it's defined in lisp.h.
7a58fb43 13238
78048085
EZ
132392007-09-22 Eli Zaretskii <eliz@gnu.org>
13240
c7a4b95b 13241 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
13242 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
13243 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
13244 (init_tty): Use DEV_TTY instead of "/dev/tty".
13245 [WINDOWSNT]: No need to protect from NAME arg being null.
13246
23d4cba5
DN
132472007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13248
13249 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
13250 up the tty state.
13251
71f44e7a
SM
132522007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
13253
13254 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
13255 (gpm_tty): Change its type.
13256 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
13257 (gpm_tty): Change its type and initialize it.
13258 (Fterm_open_connection): Check the frame is indeed a tty.
13259 Use the new gpm_tty.
13260 (Fterm_close_connection): Use the new gpm_tty.
13261 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
13262 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
13263
def7fa34
JB
132642007-09-21 Juanma Barranquero <lekktu@gmail.com>
13265
13266 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
13267 underline_color, to draw strike-through.
13268
d2bb6598
SM
132692007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
13270
273f164c
SM
13271 * lisp.h (allocate_terminal): Declare.
13272
ca2d5566
SM
13273 * window.c (candidate_window_p): Consider frames that are being placed
13274 by the user as somewhere between visible and iconified.
13275 (window_loop): Prefer windows on the current frame.
13276 (Fselect_window): Move the use of select-frame to the beginning so we
13277 can just delegate all the work (it'll call us back anyway).
13278
6168122d
SM
13279 * frame.c (Qdisplay_environment_variable):
13280 * frame.h (Qdisplay_environment_variable): Delete.
13281
c51842ec
SM
13282 * .gdbinit (xbacktrace): Print the arg's address rather than the value
13283 of the first arg, since that value may be a union.
13284
d2bb6598
SM
13285 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
13286 parameter rather than Qdisplay_environment_variable. If all else
13287 fails, look for DISPLAY in initial-environment.
13288
6f022c19
GM
132892007-09-21 Glenn Morris <rgm@gnu.org>
13290
13291 * Makefile.in (emacstool): Remove target.
f466320b 13292 (lisp, shortlisp): Remove termdev.elc.
6f022c19 13293
ea1bf8c7
GM
132942007-09-21 Markus Triska <markus.triska@gmx.at>
13295
d2bb6598 13296 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 13297
d30a25b3
SM
132982007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
13299
db699fc6
SM
13300 * callproc.c (getenv_internal_1): New function.
13301 (getenv_internal): Use it.
13302 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
13303
d2bb6598 13304 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
13305 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
13306 (Fset_terminal_parameter): Work with dead terminals as well.
13307 (Fmodify_terminal_parameters): Remove.
13308
d30a25b3
SM
13309 * terminal.c (get_terminal): Handle terminals.
13310 Make sure the terminal returned is live.
13311 (create_terminal): Use allocate_terminal.
13312 (mark_terminals): Move to alloc.c.
13313 (delete_terminal): Use terminal->name as liveness status.
13314 NULL out fields after freeing their contents.
13315 Don't deallocate the object.
13316 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
13317 rather than an int.
13318 (Fterminal_live_p): Accept non-integer arguments.
13319 (Fterminal_list): Return terminal objects rather than an ints.
13320
13321 * alloc.c (enum mem_type): New member for `terminal' objects.
13322 (allocate_terminal): New function.
d2bb6598
SM
13323 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
13324 Handle terminals.
d30a25b3
SM
13325 (mark_terminal): New fun.
13326 (mark_terminals): Move from terminal.c.
13327
13328 * term.c (get_tty_terminal): Don't treat output_initial specially.
13329 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
13330 (delete_tty): Use terminal->name as liveness status.
13331
13332 * termhooks.h (struct terminal): Make it into a pseudovector.
13333 Remove `deleted' replaced by checking `name's nullness.
13334
13335 * print.c (print_object): Handle terminals.
13336
13337 * lisp.h (enum pvec_type): New `terminal' pseudovector.
13338 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
13339
13340 * frame.c (make_terminal_frame):
13341 * keyboard.c (tty_read_avail_input):
13342 * w32term.c (x_delete_terminal):
13343 * xfns.c (Fx_create_frame, x_create_tip_frame):
13344 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
13345
eba25e7c
GM
133462007-09-20 Glenn Morris <rgm@gnu.org>
13347
13348 * process.c (Fmake_network_process): Doc fix.
13349
2a29c3c1
JR
133502007-09-19 Jason Rumney <jasonr@gnu.org>
13351
13352 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
13353
880820fe 133542007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
13355
13356 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
13357 Fix a C warning regarding variable constness.
13358
13359 * xterm.c (handle_one_xevent): Fix a C warning.
13360
334a1195
JR
133612007-09-18 Jason Rumney <jasonr@gnu.org>
13362
13363 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
13364
880820fe 133652007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
13366
13367 * gtkutil.c (gdpy_def): New variable.
13368 (xg_initialize): Initialize gdpy_def.
13369 (xg_display_close): If no other display exists, set gdpy_def to a
13370 new connection.
13371
880820fe 133722007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
13373
13374 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
13375 when we have no file name for the icon.
13376 (xg_tool_bar_expose_callback): Remove.
13377 (xg_create_tool_bar): Don't connect expose signal to
13378 xg_tool_bar_expose_callback.
13379 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
13380
4d580af2
AS
133812007-09-16 Andreas Schwab <schwab@suse.de>
13382
13383 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
13384 values instead of zapping them.
13385
aca946f3
GM
133862007-09-14 Glenn Morris <rgm@gnu.org>
13387
13388 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
13389 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
13390 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
13391 scope and rename to omfib_buffer for clarity.
13392 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
13393
25c460e5
KH
133942007-09-14 Kenichi Handa <handa@m17n.org>
13395
13396 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
13397
09b69f01
JR
133982007-09-13 Jason Rumney <jasonr@gnu.org>
13399
13400 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
13401
13402 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
13403
13404 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
13405 (mac_term_init): Call here instead, passing rif.
13406
442218db
GM
134072007-09-13 Glenn Morris <rgm@gnu.org>
13408
13409 * s/hpux.h: No longer define `static' as nothing.
13410
880820fe 134112007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
13412
13413 * callint.c (Fcall_interactively): Remove unused var `fun'.
13414
1971a872
RF
134152007-09-12 Romain Francoise <romain@orebokech.com>
13416
13417 * window.c (prefer_window_split_horizontally, display_buffer):
13418 Revert 2007-09-08 change.
13419
2d33f506
GM
134202007-09-12 Glenn Morris <rgm@gnu.org>
13421
585474ae 13422 * alloca.c: Remove file.
ca7af97a
GM
13423 * Makefile.in (alloca): Do not undef.
13424 (allocaobj, alloca.o): Remove.
13425 (otherobj): Remove allocaobj.
13426 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
13427 * regex.c (C_ALLOCA): Remove all references and code that was only
13428 used when this was defined.
13429 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
13430 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
13431 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
13432
2d33f506 13433 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
13434
13435 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
13436 (menu_grab_callback): All uses changed.
13437
13438 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
13439 (x_reply_selection_request): All uses changed.
2d33f506 13440
18a4a65e
SM
134412007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
13442
13443 * lread.c (load_warn_old_style_backquotes): Change message to look
13444 better when it appears in the middle of byte-compiler messages.
13445
47cc8819
DN
134462007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
13447
b7ea0894
DN
13448 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
13449
47cc8819
DN
13450 * xterm.c (x_create_terminal): Add comment.
13451
13452 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
13453
5632bd0f
RS
134542007-09-10 Richard Stallman <rms@gnu.org>
13455
13456 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
13457
880820fe 134582007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 13459
4bca9161
MC
13460 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
13461 (DEFUN): Document `intspec', use it instead of `prompt'.
13462
04724b69
MC
13463 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
13464
8a6d230a
MC
13465 * data.c (Finteractive_form): If the interactive specification starts
13466 with a `(', use it as a Lisp form.
13467
09fbdf6c
MC
13468 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
13469 name and file modes.
13470
ccb5c14f
MC
13471 * callint.c (Fcall_interactively): Comment fixes.
13472
023accd6
SM
134732007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
13474
13475 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
13476 and compiled functions.
13477
f26b9544
EZ
134782007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
13479
13480 * window.c (prefer_window_split_horizontally): New variable.
13481 (display_buffer): Consider splitting window horizontally depending
13482 on prefer_window_split_horizontally.
13483
4d395425
EZ
134842007-09-08 Eli Zaretskii <eliz@gnu.org>
13485
97ddc760 13486 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 13487
08c1d235
SM
134882007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13489
179cef48
SM
13490 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
13491
08c1d235
SM
13492 * frame.c (x_set_frame_parameters): Check number is positive before
13493 using XFASTINT.
13494
13495 * window.c (freeze_window_start): Don't presume selected_window holds
13496 a window object.
92f94a12 13497 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 13498
97ddc760 134992007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
13500
13501 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
13502
90ab5c62
SM
135032007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13504
13505 * window.c (Vsplit_window_preferred_function): New var.
13506 (Fdisplay_buffer): Use it.
13507 (syms_of_window): Export, and initialize it.
13508
1ab2cd43
TTN
135092007-09-06 Pixel <pixel@mandriva.com> (tiny change)
13510
13511 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
13512
0b0515bc
GM
135132007-09-06 Glenn Morris <rgm@gnu.org>
13514
57fd5c55 13515 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
13516 * xselect.c (x_reply_selection_request) <cnt>: Move static
13517 variable to file scope.
13518
98594580
SM
135192007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
13520
13521 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
13522 consistent values of selected_frame and selected_window.
13523
0f4c7aef
JR
135242007-09-04 Jason Rumney <jasonr@gnu.org>
13525
13526 * w32console.c (initialize_w32_display): Zero unused hooks.
13527
e4019195
DN
135282007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
13529
13530 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
13531 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
13532
bce179b5
JR
135332007-09-04 Jason Rumney <jasonr@gnu.org>
13534
a0236551
JR
13535 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
13536 in w32console.c. Set up input. Remove XXX comments that have been
13537 confirmed as correct.
13538
a4926668
JR
13539 * s/ms-w32.h (MULTI_KBOARD): Define.
13540
953bf0dc
JR
13541 * w32console.c (one_and_only_w32cons): Remove.
13542 (initialize_w32_display): Take terminal argument.
13543
13544 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
13545 initialize_w32_display.
13546 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
13547
bce179b5
JR
13548 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
13549
13550 * keyboard.c (discard_mouse_events): Discard it.
13551 (make_lispy_event): Translate it to a lisp event.
13552 (lispy_wheel_names): Add wheel-left and right events.
13553 (syms_of_keyboard): Enlarge wheel_syms.
13554
13555 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
13556 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
13557
13558 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
13559
13560 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
13561 from WM_MOUSEHWHEEL.
13562 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
13563
13564 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
13565 terminal.
13566
13567 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
13568 keyboard for the terminal.
13569
92cd6a7c
DN
135702007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
13571
13572 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
13573 (Vresume_tty_hook): Rename from Vresume_tty_functions.
13574 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
13575 and resume-tty-function to resume-tty-hook.
13576 (Fsuspend_tty, Fresume_tty): Use new names.
13577
880820fe 135782007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
13579
13580 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
13581 if it starts with "n:".
13582
880820fe 135832007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
13584
13585 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
13586
6b8e474c
SM
135872007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13588
92d9c1d4
SM
13589 * frame.h:
13590 * frame.c (Qterm_environment_variable): Remove.
13591 (syms_of_frame): Don't init and staticpro it.
13592
92d9c1d4
SM
13593 * callproc.c (getenv_internal): Remove special case for $TERM.
13594
6b8e474c
SM
13595 * callproc.c (Vinitial_environment): New variable.
13596 (set_initial_environment): Initialize it.
13597 (syms_of_callproc): Declare it.
13598 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
13599 TERM under which a process runs is never related to the TERM in which
13600 Emacs is running.
13601
0f1444e1
DN
136022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
13603
13604 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
13605 * s/darwin.h: ... do it here.
13606
b8866860
SM
136072007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
13608
13609 * lisp.h (set_initial_environment): Rename from set_global_environment.
13610
13611 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
13612 removed by mistake on the multi-tty branch.
13613
13614 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
13615 (Fmodify_frame_parameters): Return a value.
13616
13617 * image.c (png_load): Comment-out var only used in commented-out code.
13618
13619 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
13620 before passing it to mark_object.
13621
13622 * xfaces.c (internal_resolve_face_name): Return a value.
13623 (internal_resolve_face_name, resolve_face_name_error): Comment out.
13624
13625 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
13626 (x_icon): Comment-out var only used in commented-out code.
13627
0a42be6d
RF
136282007-08-29 Romain Francoise <romain@orebokech.com>
13629
13630 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
13631 QUIT hasn't been provided.
13632
8d9cc0b7
MB
136332007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
13634
13635 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 13636 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
13637 (set_initial_environment): Initialise Vprocess_environment.
13638
13639 * config.in: Disable multi-keyboard support on a mac.
13640
13641 * frame.c (Qterm_environment_variable)
13642 (Qdisplay_environment_variable): New variables.
13643 (syms_of_frame): Intern and staticpro them.
13644 (Fmake_terminal_frame): Disable output method test.
13645
13646 * frame.h: Declare them here.
13647
13648 * macfns.c (x_set_mouse_color): Get rif from the frame.
13649 (x_set_tool_bar_lines): Don't use updating_frame.
13650 (mac_window): Add 2 new parameters for consistency with other systems.
13651 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
13652 frame parameters following what is done in X11 and w32. Don't use
13653 FRAME_MAC_DISPLAY_INFO.
13654 (Fx_open_connection, start_hourglass): Remove window-system check.
13655 (x_create_tip_frame): Get the keyboard from the terminal.
13656
13657 * macmenu.c: Reorder includes.
13658 (Fx_popup_menu): Use terminal specific mouse_position_hook.
13659
13660 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
13661 terminal parameter.
13662 (x_clear_frame): Add a frame parameter.
13663 (note_mouse_movement): Get rif from the frame.
13664 (mac_term_init): Initialize the terminal.
13665 (mac_initialize): Make static and move terminal initialization ...
13666 (mac_create_terminal): ... to this new function.
13667
13668 * macterm.h (struct mac_display_info): Add terminal.
7196c970 13669 (mac_initialize): Delete declaration.
8d9cc0b7 13670
381864b2 13671 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
13672
13673 * sysdep.c: Comment out text after #endif.
13674
13675 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
13676 is defined. Better initialize ttys in windows. Use terminal
13677 specific mouse_position_hook.
13678
13679 * termhooks.h (union display_info): Add mac_display_info.
13680
b8866860
SM
13681 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
13682 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
13683 frame parameters following what is done in X11.
13684
13685 * w32term.c (w32_initialize): Make static.
13686
13687 * xselect.c (x_handle_selection_clear): Only access
13688 terminal->kboard when MULTI_KBOARD is defined.
13689
13690 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
13691 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
13692
136932007-08-29 Jason Rumney <jasonr@gnu.org>
13694
13695 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
13696 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
13697
13698 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
13699 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
13700
13701 * keyboard.c (restore_kboard_configuration): Only define when
13702 MULTI_KBOARD defined.
13703
35277b03 13704 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
13705 (OBJ1): Add terminal.$(O)
13706
b8866860
SM
13707 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
13708 Don't define function body.
8d9cc0b7
MB
13709 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
13710
13711 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
13712
13713 * w32.c (request_sigio, unrequest_sigio): Remove.
13714
13715 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
13716 (w32con_clear_frame, w32con_clear_end_of_line)
13717 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
13718 (w32con_delete_glyphs, w32con_set_terminal_window)
13719 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
13720 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
13721 Add terminal arg.
8d9cc0b7
MB
13722 (PICK_FRAME): Remove.
13723 (w32con_write_glyphs): Use frame specific terminal coding.
13724 (one_and_only_w32cons): New global variable.
13725 (initialize_w32_display): Use it for storing hooks.
13726 (create_w32cons_output): New function.
13727
13728 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
13729 arg a frame.
13730
b8866860
SM
13731 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
13732 Set window_system.
8d9cc0b7
MB
13733 (x_set_tool_bar_lines): Don't use updating_frame.
13734 (Fx_create_frame): Set terminal and ref count.
13735 (Fx_open_connection): Remove window-system check.
13736
13737 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
13738
13739 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
13740 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
13741 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
13742 Add frame arg.
13743 (x_delete_terminal, w32_create_terminal): New functions.
13744 (w32_term_init): Create a terminal.
13745 (w32_initialize): Move terminal specific initialization to
13746 w32_create_terminal.
13747
b8866860 13748 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
13749 (w32_clear_rect, w32_clear_area): Use background from frame.
13750 (w32_display_info): Add terminal.
13751 (w32_sys_ring_bell, x_delete_display): Declare here.
13752
13753 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
13754
13755 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
13756
137572007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
13758
13759 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
13760 Fix get_named_tty calls for the controlling tty.
13761
137622007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
13763
13764 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
13765
137662007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
13767
13768 * term.c (tty_insert_glyphs): Add missing first parameter.
13769
880820fe 137702007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 13771
b8866860
SM
13772 * buffer.c (Fbuffer_list, Fbury_buffer):
13773 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
13774
13775 * cm.c (current_tty): New variable, for cmputc().
13776 (cmputc): Use it.
13777 (cmcheckmagic): Add tty parameter, look up terminal streams there.
13778 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
13779 (cmgoto): Add tty parameter. Pass it on to calccost().
13780 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
13781
13782 * cm.h (emacs_tputs): New macro to set current_tty, and then call
13783 tputs().
13784 (current_tty): New variable, for cmputc().
13785 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
13786
13787 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
13788 (internal_condition_case, internal_condition_case_1)
13789 (internal_condition_case_2): Don't abort when x_catching_errors.
13790
13791 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
13792 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
13793 prevent crashes caused by bogus longjmps in read_char.
13794
13795 * keymap.h (Fset_keymap_parent): Add EXFUN.
13796
13797 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
13798 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13799 Remove redundant definition.
13800
b8866860
SM
13801 * macfns.c (x_set_mouse_color, x_make_gc):
13802 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 13803
b8866860
SM
13804 * w32term.c (x_free_frame_resources):
13805 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13806 (w32_initialize): Use the accessor macros for terminal characteristics.
13807
13808 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
13809 Use the accessor macros for terminal characteristics.
13810 * msdos.c (internal_terminal_init): Use the accessor macros for
13811 terminal characteristics.
b8866860
SM
13812 (ScreenVisualBell, internal_terminal_init):
13813 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13814
13815 * termopts.h (no_redraw_on_reenter): Declare.
13816
13817 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 13818 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 13819 (Fgarbage_collect): Call them.
03f06e5c 13820 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
13821
13822 * prefix-args.c: Include stdlib.h for exit.
13823
13824 * syssignal.h: Add comment.
13825
13826 * indent.c: Include stdio.h.
13827
13828 * window.h (Vinitial_window_system): Declare.
13829 (Vwindow_system): Delete declaration.
13830
13831 * fontset.c (Finternal_char_font): Use FRAME_RIF.
13832
13833 * image.c (lookup_image): Don't initialize `c' until the xasserts
13834 have been run.
13835
13836 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
13837 FRAME_FOREGROUND_PIXEL.
13838
13839 * print.c (print_preprocess): Don't lose print_depth levels while
13840 iterating.
13841
b8866860
SM
13842 * widget.c (update_from_various_frame_slots):
13843 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13844
13845 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
13846 frames.
13847 (window_internal_height): Remove bogus make_number call.
b8866860 13848 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
13849
13850 * fileio.c (Fread_file_name): Update comment.
13851
b8866860
SM
13852 * callint.c (Fcall_interactively):
13853 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
13854 Make sure it is correctly unwound.
13855
13856 * xsmfns.c (x_session_close): New function.
13857
03f06e5c 13858 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
13859 Delete declarations.
13860
13861 * xterm.h: Remove declaration for x_fully_uncatch_errors.
13862 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 13863 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 13864 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
13865
13866 * lread.c: Include setjmp.h. Update declaration of `read_char'.
13867 (read_filtered_event): Call `read_char' with a local
13868 `wrong_kboard_jmpbuf'.
13869
b8866860
SM
13870 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
13871 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
13872
13873 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
13874 systems.
13875
b8866860 13876 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 13877 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 13878 (Fset_quit_char): EXFUN.
03f06e5c 13879 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
13880 (init_sys_modes, reset_sys_modes): Update prototypes.
13881 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
13882
b8866860
SM
13883 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
13884 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 13885 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 13886 Delete declarations.
03f06e5c
JB
13887 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
13888 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
13889 New declarations.
13890
13891 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
13892 already does that during init_display(). Call syms_of_keymap
b8866860
SM
13893 before syms_of_keyboard. Call `syms_of_terminal'.
13894 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
13895 (shut_down_emacs): Call reset_all_sys_modes() instead of
13896 reset_sys_modes().
13897
13898 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
13899 (internal_resolve_face_name, resolve_face_name_error): New functions.
13900 (resolve_face_name): Protect against loops and errors thrown by Fget.
13901 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
13902 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
13903
13904 * scroll.c: Replace CURTTY() with local variables throughout the
13905 file (where applicable).
13906 (calculate_scrolling, calculate_direct_scrolling)
13907 (scrolling_1, scroll_cost): Use the accessor macros for terminal
13908 characteristics.
13909
13910 * keymap.c (Vfunction_key_map): Remove.
b8866860 13911 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
13912 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
13913 (Vkey_translation_map): Remove.
13914 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 13915 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
13916 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
13917 Update for terminal-local key-translation-map.
13918
13919 * Makefile.in (callproc.o): Update dependencies.
13920 (lisp, shortlisp): Add termdev.elc.
13921 (obj): Add terminal.o.
13922 (terminal.o): Add dependencies.
13923 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
13924 (data.o, fns.o): Add termhooks.h dependency.
13925 (SOME_MACHINE_LISP): Add dnd.elc.
13926 (minibuf.o): Fix typo.
13927 Update dependencies.
13928
13929 * data.c (do_symval_forwarding, store_symval_forwarding)
13930 (find_symbol_value): Use the selected frame's keyboard, not
13931 current_kboard.
13932
13933 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
13934 Vwindow_system.
13935
13936 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
13937 Fmenu_bar_open.
13938 (syms_of_xmenu): Update defsubr.
13939 (mouse_position_for_popup, Fx_popup_menu)
13940 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
13941 (set_frame_menubar, free_frame_menubar)
13942 (create_and_show_popup_menu, xmenu_show, )
13943 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
13944 an X frame.
13945
13946 * xselect.c (x_own_selection): Abort if not an X frame.
13947 (some_frame_on_display): Check if it is an X frame.
13948 (x_handle_selection_clear): Deal with MULTI_KBOARD.
13949
13950 * coding.c: Include frame.h and termhooks.h.
03f06e5c 13951 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
13952 (Fset_terminal_coding_system_internal)
13953 (Fset_keyboard_coding_system_internal)
13954 (Fkeyboard_coding_system)
03f06e5c
JB
13955 (Fterminal_coding_system): Add a terminal parameter.
13956 Get terminal_coding from the terminal.
8d9cc0b7
MB
13957 (init_coding_once): Don't call setup_coding_system here.
13958
13959 * dispextern.h (set_scroll_region, turn_off_insert)
13960 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
13961 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 13962 (delete_tty, updating_frame)
8d9cc0b7
MB
13963 (produce_special_glyphs, produce_glyphs, write_glyphs)
13964 (insert_glyphs): Remove.
13965 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 13966 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 13967 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
13968
13969 * frame.h (enum output_method): Add output_initial.
13970 (struct x_output): Delete.
b8866860
SM
13971 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13972 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
13973 (tty_display): Delete.
13974 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 13975 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
13976 (union output_data): Add tty.
13977 (FRAME_KBOARD): Get the kboard from the terminal.
13978 (FRAME_INITIAL_P): New macro.
13979 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
13980 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
13981 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
13982 New declarations.
8d9cc0b7
MB
13983
13984 * termchar.h (tty_output, tty_display_info): New structures.
13985 (tty_list): Declare.
13986 (FRAME_TTY, CURTTY): New macros.
13987 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
13988 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
13989 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
13990 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
13991
13992 * callproc.c: Include frame.h and termhooks.h, for terminal
13993 parameters.
13994 (add_env): New function.
13995 (child_setup): Use it.
b8866860 13996 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
13997 (getenv_internal): Fix get_terminal_param call.
13998 (Fgetenv_internal, egetenv): Update doc.
13999 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 14000 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
14001 strings.
14002 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
14003 (getenv_internal): Add terminal parameter.
14004 Handle Vlocal_environment_variables.
8d9cc0b7
MB
14005 (Fgetenv_internal): Add terminal parameter.
14006 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 14007 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
14008 (set_initial_environment): Rename from set_global_environment.
14009 Store Emacs environment in initial frame parameter.
14010
14011 * xdisp.c (redisplay_internal): Update references to
14012 `previous_terminal_frame'.
14013 (display_mode_line, Fformat_mode_line): Replace calls to
14014 `push_frame_kboard' with `push_kboard'.
14015 (get_glyph_string_clip_rects): Add extra parentheses and
14016 braces to prevent compiler warnings.
14017 (calc_pixel_width_or_height): Add xassert to check that the
14018 frame is alive. Don't call `lookup_image' on a termcap frame.
14019 (message2_nolog, message3_nolog, redisplay_internal)
14020 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
14021 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
14022 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
14023 (Fx_display_pixel_width, Fx_display_pixel_height)
14024 (Fx_display_planes, Fx_display_color_cells)
14025 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
14026 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
14027 (Fx_display_backing_store, Fx_display_visual_class)
14028 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 14029 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
14030
14031 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
14032 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
14033 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
14034 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
14035 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
14036 terminal that is being deleted.
14037 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 14038 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
14039 (Fx_close_connection, Fx_synchronize): Unify argument names with
14040 the rest of the DEFUNs.
14041
14042 * dispnew.c (Fsend_string_to_terminal): Update call to
14043 `get_tty_terminal'.
14044 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 14045 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
14046 FRAME_TERMCAP_P and FRAME_TTY.
14047 (window_change_signal): Don't believe width/height values that are
14048 impossibly small.
14049 (Vinitial_window_system): Rename from Vwindow_system.
14050 (termscript, Wcm, rif): Delete.
14051
14052 * termhooks.h (struct terminal): New struct containing the
14053 previously global text display hooks and new members NAME,
14054 DELETED and PARAM_ALIST.
14055 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
14056 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
14057 (FRAME_RIF): New macros.
14058 (get_terminal_param, get_device): New declarations.
14059 (termscript): Delete declaration.
14060
14061 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
14062 (XTflash, x_free_frame_resources, x_scroll_bar_create)
14063 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
14064 FRAME_FOREGROUND_PIXEL.
14065 (x_fully_uncatch_errors): Disable definition.
14066 (x_scroll_bar_expose): Fix reference to foreground pixel.
14067 (XTread_socket): Disable loop on all X displays.
14068 (x_delete_terminal): Don't set terminal->deleted and let
14069 delete_terminal delete the frames on the terminal.
14070 (x_delete_display): Doc update to reflect changes in
14071 delete_terminal.
14072 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
14073 (deleting_tty): Remove old variable.
14074 (Fsuspend_tty): Call clear_tty_hooks.
14075 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
14076 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
14077 errors on X frames.
14078 (x_catch_errors_unwind): Abort if x_error_message is NULL.
14079 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 14080 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
14081 (XTset_terminal_modes, XTreset_terminal_modes)
14082 (XTread_socket, x_connection_closed, x_term_init)
14083 (x_term_init, x_delete_display): Add terminal parameter.
14084 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
14085 X connections.
14086
bf380f53
GM
14087 * frame.c: Include termchar.h.
14088 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
14089 (Qwindow_system, Qenvironment, Qterm_environment_variable)
14090 (Qdisplay_environment_variable): New vars.
14091 (Fframep): Deal with output_initial.
14092 (Fframe-live-p): Doc fix.
14093 (Fwindow-system): New function.
8d9cc0b7
MB
14094 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
14095 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 14096 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 14097 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
14098 (Fmake_terminal_frame): Handle NULL tty names correctly.
14099 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
14100 (Fdelete_frame): Remove unused variable `count'. Don't allow other
14101 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 14102 (Fframe_with_environment): New function.
b8866860 14103 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
14104 (get_future_frame_param): New function.
14105 (Fmake_terminal_frame): Use it.
2d33f506 14106 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
14107
14108 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
14109 * sysdep.c (reset_sys_modes): Update for renames.
14110
14111 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 14112 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
14113 (syms_of_keyboard): Defsubr them.
14114 (Fset_input_meta_mode, Fset_quit_char): New functions.
14115 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
14116 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
14117 parameter. Use it in call to `read_char'.
b8866860
SM
14118 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
14119 Set wrong_kboard_jmpbuf correctly in recursive calls.
14120 Use current_kboard to access Vkeyboard_translate_table.
14121 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
14122 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
14123 Update longjmp invocations. Remember the original current_kboard,
14124 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
14125 changes it. Comment out unnecessary calls to
14126 `record_single_kboard_state' and `any_kboard_state'.
14127 Update recursive calls.
8d9cc0b7
MB
14128 (wrong_kboard_jmpbuf): Remove global variable.
14129 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
14130 Handle deleted interrupted_kboards correctly; that is a legal
14131 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 14132 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
14133 (any_kboard_state, single_kboard_state)
14134 (push_frame_kboard): Remove function.
14135 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
14136 been deleted. Remove unused variable. Help debugging by not
14137 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
14138 kboard of the selected frame when the stored kboard object has
14139 been deleted before pop_kboard.
14140 (temporarily_switch_to_single_kboard): Change first parameter to a
14141 frame pointer. Throw an error when caller wants to change kboards
14142 while in single_kboard mode. Don't push_kboard if we weren't in
14143 single kboard state. Don't pop_kboard if we popped into any
14144 kboard state.
14145 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 14146 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
14147 up single_kboard mode.
14148 (Frecursive_edit): Switch to single_kboard mode only in nested
14149 command loops.
b8866860
SM
14150 (cmd_error, command_loop, command_loop_1, timer_check):
14151 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
14152 `record_single_kboard_state'.
14153 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 14154 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
14155 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
14156 `fatal_error_signal'.
14157 (record_single_kboard_state): Don't push_kboard if we weren't in
14158 single kboard state. Don't pop_kboard if we popped into any
14159 kboard state.
14160 (push_frame_kboard): Rename to push_kboard.
14161 (kbd_buffer_get_event): Use FRAME_TERMINAL.
14162 (read_avail_input): Read input from all terminals.
14163 (mark_kboards): Also mark Vkeyboard_translate_table.
14164 (kbd_buffer_store_event_hold): Simplify condition.
14165 (read_key_sequence): Reinitialize fkey and keytran at each replay.
14166 (Vkeyboard_translate_table): Move to struct kboard.
14167 (init_kboard): Initialize Vkeyboard_translate_table.
14168 (syms_of_keyboard): Use DEFVAR_KBOARD to define
14169 Vkeyboard_translate_table. Update doc strings. Update docs of
14170 local-function-key-map and function-key-map.
14171
14172 * terminal.c: New file.
14173
14174 * term.c: Include errno.h.
14175 (Vring_bell_function, device_list, initial_device)
14176 (next_device_id, ring_bell, update_begin, update_end)
14177 (set_terminal_window, cursor_to, raw_cursor_to)
14178 (clear_to_end, clear_frame, clear_end_of_line)
14179 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
14180 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
14181 (syms_of_term): Move their initialization to terminal.c.
14182 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
14183 (Ftty_display_color_cells)
14184 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 14185 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
14186 (init_tty, maybe_fatal): New functions.
14187 (Ftty_type): Return nil if terminal is not on a tty instead of
14188 throwing an error. Doc update.
14189 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 14190 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
14191 (delete_tty): Use terminal->deleted.
14192 (tty_set_terminal_modes): Rename from set_terminal_modes.
14193 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
14194 (set_scroll_region): Rename to `tty_set_scroll_region'.
14195 (turn_on_insert): Rename to `tty_turn_on_insert'.
14196 (turn_off_insert): Rename to `tty_turn_off_insert'.
14197 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
14198 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
14199 (toggle_highligh): Rename to `tty_toggle_highlight'.
14200 (background_highlight): Rename to `tty_background_highlight'.
14201 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
14202 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
14203 (tty_set_scroll_region, tty_background_highlight)
14204 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
14205 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
14206 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
14207 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
14208 Add static modifier.
14209 (tty_reset_terminal_modes, tty_set_terminal_window)
14210 (tty_set_scroll_region, tty_background_highlight)
14211 (tty_highlight_if_desired, tty_cursor_to)
14212 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
14213 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
14214 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
14215 renames.
14216
880820fe 142172007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
14218
14219 * keyboard.c: Qrtl is new.
14220 (parse_tool_bar_item): Handle :rtl keyword.
14221 (syms_of_keyboard): Intern :rtl keyword.
14222
14223 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
14224
14225 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
14226 so no Lisp code is executed.
14227 (file_for_image, find_rtl_image): New functions.
1f204af3 14228 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
14229 (update_frame_tool_bar): If direction is RTL, use RTL image if
14230 defined. Use Gtk stock images if defined.
14231
83cc8d35
YM
142322007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14233
14234 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
14235 for nonexistent or zero-width glyph in composition glyph.
14236
e60c4e15
SM
142372007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
14238
d7e2a28f
SM
14239 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
14240
e60c4e15
SM
14241 * xdisp.c (Finvisible_p): New function.
14242 (syms_of_xdisp): defsubr it.
14243
ee163e6d
JB
142442007-08-24 Juanma Barranquero <lekktu@gmail.com>
14245
14246 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
14247 Doc fixes.
14248
90fa408d
YM
142492007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14250
35277b03 14251 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 14252
cac4219c
MR
142532007-08-24 Martin Rudalics <rudalics@gmx.at>
14254
14255 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
14256 whether decoding has modified buffer contents.
14257
5fc9fdeb
JR
142582007-08-24 Jason Rumney <jasonr@gnu.org>
14259
14260 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
14261 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
14262 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
14263 (init_svg_functions) [HAVE_NTGUI]: New function.
14264 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
14265 (svg_load_image): Use them.
14266 (svg_load_image) [HAVE_NTGUI]: Implement background.
14267
93b23406
YM
142682007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14269
14270 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
14271 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
14272 (LIBX): Remove @RSVG_LIBS@.
14273 (LIBES): Add $(RSVG_LIBS).
14274
14275 * image.c (svg_load_image): Blend with specified background if exists.
14276 Use IMAGE_BACKGROUND. Add Mac OS Support.
14277
14278 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
14279 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
14280 Remove macros.
14281 [MAC_OSX] (socket_callback): Do nothing.
14282 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
14283 ReceiveNextEvent.
14284 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
14285 socket_callback.
14286 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
14287
2467875c
GM
142882007-08-22 Glenn Morris <rgm@gnu.org>
14289
ff8da443 14290 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 14291
4ab27a43
GM
142922007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
14293
14294 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 14295
666e0eda
GM
14296 * image.c: Add support for SVG images. Some additional comments
14297 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
14298 (svg_image_p): New function to test for SVG image.
14299 (svg_load): New function to load SVG image.
14300 (svg_load_image): New function, helper for svg_load.
14301 (Qsvg): New Lisp_object.
14302 (svg_keyword_index): New enum.
14303 (svg_format): New static `image_keyword' struct.
14304 (svg_type): New static `image_type' struct.
14305 (librsvg/rsvg.h): Include it.
4ab27a43 14306
b636b4c1
SM
143072007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
14308
14309 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
14310
9ecb827b
SM
143112007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
14312
1d064697
SM
14313 * lread.c (Qold_style_backquotes): New var.
14314 (syms_of_lread): Init and staticpro it.
14315 (load_warn_old_style_backquotes): New fun.
14316 (Fload): Use them to warn about old style backquotes.
14317 (end_of_file_error, Fload): Remove unused vars.
14318
5772ed4b
SM
14319 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
14320
9ecb827b 14321 * lread.c (Vold_style_backquotes): New var.
5aa273b0 14322 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
14323 (read1): Set it when we find an old-style (back)quote.
14324
32e1c7b1
JR
143252007-08-22 Jason Rumney <jasonr@gnu.org>
14326
14327 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
14328
b8fa755b
KY
143292007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
14330
14331 * puresize.h (BASE_PURESIZE): Increase to 1140000.
14332
1283140e
RS
143332007-08-19 Richard Stallman <rms@gnu.org>
14334
14335 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
14336
2c4685ee
AS
143372007-08-19 Andreas Schwab <schwab@suse.de>
14338
14339 * alloc.c (pure): Round PURESIZE up.
14340
880820fe 143412007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
14342
14343 * xterm.c (handle_one_xevent): Remove check that mouse click is in
14344 active frame.
14345
6e33efc4
RS
143462007-08-16 Richard Stallman <rms@gnu.org>
14347
14348 * eval.c (Fcommandp): Add parens to clarify.
14349
14350 * minibuf.c (Fall_completions): Use enum for type of table.
14351
14352 * emacs.c (USAGE2): Improve text.
14353
fcf8ff2e
GM
143542007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
14355
5205ee62
GM
14356 * term.c (tty_default_color_capabilities): Declare static
14357 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 14358
880820fe 143592007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
14360
14361 * gtkutil.c (update_frame_tool_bar): Use -1 as index
14362 to gtk_toolbar_insert.
14363
4a181359
SM
143642007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
14365
1bc99c9c
SM
14366 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
14367
4a181359
SM
14368 * insdel.c (reset_var_on_error): New fun.
14369 (signal_before_change, signal_after_change):
14370 Use it to reset (after|before)-change-functions to nil in case of error.
14371 Bind inhibit-modification-hooks to t.
14372 Don't bind (after|before)-change-functions to nil while they run.
14373
6c28435c
YM
143742007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14375
14376 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
14377 filling pixmap with stippled background.
14378
ad3b3e02
YM
143792007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14380
14381 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
14382 Don't use invisible frame as parent window for repositioning.
14383
a22dec27
SM
143842007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
14385
14386 * print.c (new_backquote_output): Rename from old_backquote_output.
14387 (print): Inverse its logic (according to its name) so as to match the
14388 behavior of new_backquote_flag in lread.c.
14389
7b7d07bb
YM
143902007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14391
14392 * gmalloc.c (posix_memalign): New function.
14393
14394 * macterm.c (frame_highlight, frame_unhighlight): Don't call
14395 ActivateControl/DeactivateControl here.
14396 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
14397 frame-notice-user-settings is non-nil.
14398 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
14399 for kEventParamFMFontStyle.
14400 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
14401 mac_pass_command_to_system and mac_pass_control_to_system here.
14402 (XTread_socket): Call ActivateControl/DeactivateControl here.
14403 (XTread_socket) [TARGET_API_MAC_CARBON]:
14404 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
14405 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
14406 for window repositioning.
7b7d07bb 14407
22e9fe24
GM
144082007-08-08 Glenn Morris <rgm@gnu.org>
14409
14410 * Replace `iff' in doc-strings and comments.
14411
ae494350
CY
144122007-08-07 Chong Yidong <cyd@stupidchicken.com>
14413
14414 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
14415
6f2528d8
MR
144162007-08-07 Martin Rudalics <rudalics@gmx.at>
14417
14418 * fileio.c (Finsert_file_contents): Run format-decode and
14419 after_insert_file_functions on entire buffer when REPLACE is
14420 non-nil and inhibit modification_hooks and point_motion_hooks.
14421 For consistency, run after_insert_file_functions iff something
14422 got inserted. Move signal_after_change and update_compositions
14423 after code running after_insert_file_functions. Make sure that
6b8e474c 14424 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 14425
3ceeb306
YM
144262007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14427
14428 * emacs.c (main)
14429 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
14430 Call malloc_enable_thread on interactive startup.
14431
14432 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
14433 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
14434 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
14435 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
14436 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
14437 New functions.
14438
ca5e6fd5
CY
144392007-08-06 Chong Yidong <cyd@stupidchicken.com>
14440
32bfce5d
CY
14441 * xdisp.c (redisplay_window): When restoring original buffer
14442 position, make sure it is still valid.
14443
ca5e6fd5
CY
14444 * image.c (png_load): Ignore png-supplied background color.
14445
a5b11587
YM
144462007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14447
14448 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
14449 Use kCFAbsoluteTimeIntervalSince1970.
14450
14451 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
14452 New variable.
14453 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
14454 event loop should be quit.
14455 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
14456 Quit dialog event loop if quit_dialog_event_loop is set.
14457
14458 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
14459 (Selection): New typedef. Use instead of ScrapRef.
14460 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
14461 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
14462 (mac_clear_selection): Rename from clear_scrap.
14463 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 14464 scrap_has_target_type. All uses changed.
a5b11587
YM
14465 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14466 (mac_selection_has_target_p): New functions.
14467 (mac_put_selection_value): Rename from put_scrap_string.
14468 (mac_get_selection_value): Rename from get_scrap_string.
14469 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
14470 (put_scrap_private_timestamp, scrap_has_target_type)
14471 (get_scrap_private_timestamp): Remove functions.
14472 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
14473 (x_own_selection, x_get_local_selection):
14474 Use mac_valid_selection_value_p.
14475 (x_own_selection): Don't use put_scrap_private_timestamp.
14476 Record OWNERSHIP-INFO into Vselection_alist instead.
14477 (x_get_local_selection): Don't check type if request is local.
14478 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
14479 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
14480
880820fe 144812007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
14482
14483 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
14484 add comment explaining why.
14485
73ff9d42
RS
144862007-08-03 Richard Stallman <rms@gnu.org>
14487
14488 * fileio.c (Fvisited_file_modtime): Use make_time.
14489
54ed9a2d 144902007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
14491
14492 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
14493 build.
14494
65a9c8e2
SM
144952007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
14496
14497 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
14498
c5925799
KY
144992007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
14500
14501 * puresize.h (BASE_PURESIZE): Increase to 1130000.
14502
adef3de7
RS
145032007-07-30 Richard Stallman <rms@gnu.org>
14504
14505 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
14506
880820fe 145072007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
14508
14509 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
14510
a10421a1
NR
145112007-07-28 Nick Roberts <nickrob@snap.net.nz>
14512
14513 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
14514 remote default-directory.
14515
14516 * buffer.c (mode-line-format): Update doc string.
14517
0cb1ae20
YM
145182007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14519
14520 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
14521 scroll bar gap.
14522 (x_scroll_bar_create): Set bar->fringe_extended_p.
14523 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
14524 on frame edge. Check fringe background extension. Don't clear
14525 extended fringe background area.
14526
14527 * w32term.h (struct scroll_bar): New member fringe_extended_p.
14528 (w32_fill_area): Enclose multiple statements with do ... while (0).
14529
14530 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
14531 Extend fringe background to scroll bar gap.
14532 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
14533 Set bar->fringe_extended_p.
14534 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14535 Put leftmost/rightmost scroll bars on frame edge. Check fringe
14536 background extension. Don't clear extended fringe background area.
14537
14538 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
14539 New member fringe_extended_p.
14540
cacc7b51
GM
145412007-07-25 Glenn Morris <rgm@gnu.org>
14542
14543 * Relicense all FSF files to GPLv3 or later.
14544
14545 * COPYING: Switch to GPLv3.
14546
89835619
SM
145472007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
14548
c4f46926
SM
14549 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
14550
14551 * data.c (Finteractive_form): Check for the presence of an
14552 `interactive-form' symbol property more thoroughly.
14553
14554 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
14555 present, analogous to the function-documentation property.
14556
ee04257d
JR
145572007-07-24 Jason Rumney <jasonr@gnu.org>
14558
14559 * w32fns.c (x_real_positions): Get real position from OS instead of
14560 calculating it.
14561
50624218
JR
145622007-07-23 Jason Rumney <jasonr@gnu.org>
14563
14564 * filelock.c (current_lock_owner): Allow for @ sign in username.
14565
3650f60e
NR
145662007-07-22 Nick Roberts <nickrob@snap.net.nz>
14567
14568 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
14569 remote default-directory.
14570
14571 * buffer.c (mode-line-format): Describe above case in doc string.
14572
1e899515 145732007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 14574
75be5258
EZ
14575 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
14576 Define if not defined.
14577
2b6e2f4d
JR
145782007-07-18 Jason Rumney <jasonr@gnu.org>
14579
14580 * w32proc.c (w32_executable_type): Handle 64 bit executables.
14581
23dacf80
JB
145822007-07-18 Richard Stallman <rms@gnu.org>
14583
14584 * data.c (Fsetq_default): Doc fix.
14585
14586 * eval.c (Fsetq): Doc fix.
14587
145882007-07-18 Juanma Barranquero <lekktu@gmail.com>
14589
14590 * coding.c (Ffind_operation_coding_system):
14591 * eval.c (For, Fand): Doc fixes.
880820fe 14592 Reported by Johan Bockgård.
23dacf80 14593
880820fe 145942007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 14595
23dacf80 14596 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 14597
23dacf80 14598 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
14599
14600 * xterm.c (x_ewmh_activate_frame): New function.
14601 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
14602
71ec17e6
MR
146032007-07-17 Martin Rudalics <rudalics@gmx.at>
14604
14605 * window.c (Fdisplay_buffer): If largest or LRU window is the
14606 only window, split it even if it is not eligible for splitting.
14607 This restores the original behavior broken by the 2007-07-15
14608 change.
14609
e9818042
GM
146102007-07-17 Glenn Morris <rgm@gnu.org>
14611
14612 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
14613 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
14614 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
14615 constituents. Doc fix.
14616
e6fca843
SM
146172007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14618
14619 * process.c (Fstart_process, Fmake_network_process)
14620 (read_process_output): Fix up last changes.
14621
b5d2b4ab
EZ
146222007-07-16 Eli Zaretskii <eliz@gnu.org>
14623
14624 * makefile.w32-in (clean): Don't delete *~.
14625
413a79ad
AS
146262007-07-16 Andreas Schwab <schwab@suse.de>
14627
14628 * window.c (Fdisplay_buffer): Use NILP.
14629 (Fset_window_scroll_bars): Likewise.
14630
f1de8c77
MR
146312007-07-15 Martin Rudalics <rudalics@gmx.at>
14632
14633 * window.c (window_min_size_2): New function.
14634 (window_min_size_1, size_window, Fdisplay_buffer)
14635 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
14636 windows without mode- or header-lines when window-min-height is
14637 too small.
14638 (size_window): Reset nodelete_p after testing it, following an
14639 earlier note by Kim F. Storm.
14640 (display_buffer): Do not set split_height_threshold to twice the
14641 value of window_min_height to avoid changing the value of a
14642 customizable variable. Rather explicitly check whether the
14643 height of the window that shall be splitted is at least as large
14644 as split_height_threshold.
1af74d06
MB
14645 (Fwindow_full_width_p): New defun.
14646 (syms_of_window): Defsubr it.
d31053f9 14647
1af74d06 14648 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 14649
5e1ab613
JR
146502007-07-14 Jason Rumney <jasonr@gnu.org>
14651
14652 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
14653
f01cbfdd
RS
146542007-07-14 Richard Stallman <rms@gnu.org>
14655
14656 * eval.c (maybe_call_debugger): New function.
14657 (find_handler_clause): Use maybe_call_debugger.
14658 Call it when the handler says `debug'.
14659 Eliminate DEBUGGER_VALUE_PTR.
14660 (Fsignal): Eliminate debugger_value.
14661 (Qdebug): New variable.
14662 (syms_of_eval): Initialize it.
14663
1bab435a
JB
146642007-07-14 Juanma Barranquero <lekktu@gmail.com>
14665
14666 * eval.c (Fprogn):
14667 * keyboard.c (Ftrack_mouse):
14668 * print.c (Fwith_output_to_temp_buffer):
14669 * window.c (Fsave_window_excursion): Doc fix.
14670
be436d23
SM
146712007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
14672
14673 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
14674
60f0fb11
SM
146752007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
14676
14677 * process.h (struct Lisp_Process): Turn slots infd, outfd,
14678 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
14679 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
14680 read_output_delay, and read_output_skip from Lisp_Objects to ints.
14681 Remove unused encoding_carryover.
14682 * process.c: Adjust all functions accordingly.
14683
d8b18043
RS
146842007-07-12 Richard Stallman <rms@gnu.org>
14685
14686 * term.c: Include unistd.h only if HAVE_UNISTD_H.
14687
d5781bb6
JR
146882007-07-11 Jason Rumney <jasonr@gnu.org>
14689
14690 * makefile.w32-in (LIBS): Include OLE32.
14691
14692 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
14693 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
14694
5bb7dfee
SM
146952007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
14696
14697 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
14698 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
14699 from a Lisp_Object into a bare pointer.
14700 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14701 Adjust the code correspondingly.
14702
14703 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
14704
14705 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
14706 (term_show_mouse_face): Remove unused var `j'.
14707 (handle_one_term_event): Remove unused vars `i' and `j'.
14708 Don't cast return value of ttyname since it's not necessary.
14709
a1be1ce8
SM
147102007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
14711
5045e68e
SM
14712 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
14713 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
14714
8071c00f
SM
14715 * fns.c (map_char_table): Use an array of int for `indices' rather than
14716 an array of Lisp_Objects (which are only ever integers anyway).
14717 (Fmap_char_table): Update caller.
14718 * lisp.h: Update prototype.
14719 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
14720 * fontset.c (Ffontset_info):
14721 * casetab.c (set_case_table): Update callers.
14722
14723 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
14724
fab84e3c
SM
14725 * keymap.c (struct accessible_keymaps_data)
14726 (struct where_is_internal_data): New structures.
14727 (accessible_keymaps_1, where_is_internal_1): Use them to change
14728 interface to adhere to the one used by map_keymap.
14729 (Faccessible_keymaps, where_is_internal): Use map_keymap.
14730 (accessible_keymaps_char_table, where_is_internal_2): Remove.
14731
a1be1ce8
SM
14732 * keymap.h (map_keymap_function_t): More informative prototype.
14733
ef887810
RS
147342007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
14735
14736 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
14737 (looking_at_1): Don't change search_regs and last_thing_searched
14738 if `inhibit-changing-match-data' is non-nil.
14739 (string_match_1, search_buffer, set_search_regs): Likewise.
14740 (syms_of_search): Add Lisp level definition for
14741 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
14742 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
14743 start and end of the match, instead of using values in search_regs.
ef887810 14744
4d02fc25
SM
147452007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
14746
14747 * minibuf.c (Fcompleting_read): New value `confirm-only'
14748 for `require-match'.
14749
fe45b81f
SM
147502007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
14751
14752 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
14753 part of the 2007-06-27 change to syms_of_fileio.
14754
a56dd283
YM
147552007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14756
14757 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
14758 Check WINDOWP before using XWINDOW. Consolidate return statements.
14759
0cf9f5b5
RS
147602007-06-27 Richard Stallman <rms@gnu.org>
14761
14762 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14763
a66f285a
JB
147642007-06-27 Juanma Barranquero <lekktu@gmail.com>
14765
14766 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
14767
8d0d84d2
YM
147682007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14769
14770 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
14771 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
14772 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
14773 (_free_internal, memalign): Use them.
14774 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
14775 Initialize to PTHREAD_MUTEX_INITIALIZER.
14776 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
14777 (morecore_nolock): Rename from morecore. All uses changed.
14778 Use only nolock versions of internal allocation functions.
14779 (_malloc_internal_nolock, _realloc_internal_nolock)
14780 (_free_internal_nolock): New functions created from
14781 _malloc_internal, _realloc_internal, and _free_internal.
14782 (_malloc_internal, _realloc_internal, _free_internal): Use them.
14783 Copy hook value to automatic variable before its use.
14784 (memalign): Copy hook value to automatic variable before its use.
14785
5a0bbd9a
KH
147862007-06-26 Kenichi Handa <handa@m17n.org>
14787
14788 * coding.c (Ffind_operation_coding_system): Docstring improved.
14789 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
14790
9a51747b
DK
147912007-06-25 David Kastrup <dak@gnu.org>
14792
14793 * keymap.c (Fcurrent_active_maps): Add `position' argument.
14794 (Fwhere_is_internal): Adjust call to `current-active-maps' to
14795 cater for additional parameter.
14796
14797 * keymap.h: Adjust number of parameters to `current-active-maps'.
14798
14799 * doc.c (Fsubstitute_command_keys): Adjust call of
14800 `current-active-maps'.
14801
e4305426
DK
148022007-06-25 David Kastrup <dak@gnu.org>
14803
14804 * callint.c (Fcall_interactively): Make the parsing of interactive
14805 specs somewhat more readable.
14806
511a18d9
YM
148072007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14808
14809 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
14810 to scroll bar gap also when bitmap fills fringe. Draw only foreground
14811 if extended background has already been filled.
14812
512eb161
YM
148132007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14814
14815 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
14816 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
14817
14818 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
14819 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
14820 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
14821 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
14822 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
14823 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
14824 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
14825 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
14826 Run timers during dialog popup.
14827 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
14828
2386b1f1
JR
148292007-06-21 Jason Rumney <jasonr@gnu.org>
14830
14831 * image.c (convert_mono_to_color_image): Swap fore and background.
14832
fab8b787
JR
148332007-06-20 Jason Rumney <jasonr@gnu.org>
14834
14835 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
14836 (w32_free_bdf_font): Unmap memory not handle.
14837
15bdd7a0 148382007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
14839
14840 * gmalloc.c (__morecore): Fix the declaration to comply with the
14841 definition.
14842
1bb8a291
JB
148432007-06-20 Juanma Barranquero <lekktu@gmail.com>
14844
14845 * w32term.c (w32_delete_display): Remove leftover declaration.
14846 (w32_define_cursor, w32_initialize): Make static.
14847
14848 * w32.c (_wsa_errlist): Fix typo in error message.
14849 (init_environment): Ignore any environment variable from the
14850 registry having a null value.
14851
92648dea
GM
148522007-06-20 Glenn Morris <rgm@gnu.org>
14853
14854 * Makefile.in (LIBGIF): Default to -lgif.
14855
ff25d115
JR
148562007-06-17 Jason Rumney <jasonr@gnu.org>
14857
14858 * w32menu.c (add_menu_item): Don't use multibyte string functions on
14859 unicode strings.
14860
a1a578a5
JB
148612007-06-16 Juanma Barranquero <lekktu@gmail.com>
14862
14863 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
14864 Fix typo in docstring.
14865
af41f8a8
EZ
148662007-06-16 Eli Zaretskii <eliz@gnu.org>
14867
14868 * w32menu.c (add_menu_item): Escape `&' characters in menu items
14869 and their keybindings.
14870
8b29cab9
CY
148712007-06-15 Chong Yidong <cyd@stupidchicken.com>
14872
14873 * composite.c (update_compositions): Fix last fix.
14874
c433c134
JR
148752007-06-14 Jason Rumney <jasonr@gnu.org>
14876
14877 * w32.c (get_process_times_fn): New function pointer.
14878 (globals_of_w32): Intialize it if present in kernel32.dll.
14879 (w32_get_internal_run_time): New function.
14880
14881 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
14882
553d3164
KH
148832007-06-14 Kenichi Handa <handa@etlken.m17n.org>
14884
14885 * composite.c (update_compositions): Check the validness of
14886 compositions.
14887
446ba96f
YM
148882007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14889
14890 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
14891 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
14892
14893 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
14894 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
14895
14896 * macgui.h (USE_MAC_TOOLBAR): New define.
14897
14898 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14899 Return immediately unless popup is activated.
14900
14901 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
14902 background to scroll bar gap.
14903 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
14904 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
14905 scroll bars on frame edge. Check fringe background extension.
14906 Don't clear extended fringe background area.
14907 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
14908 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
14909 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
14910 [USE_MAC_TOOLBAR]: New macros.
14911 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
14912 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
14913 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
14914 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
14915 [USE_MAC_TOOLBAR]: New functions.
14916 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
14917 manually if previous repositioning has failed.
14918 (mac_handle_keyboard_event): Use precomputed event kind.
14919 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
14920 as tool bar item click. Handle mouse movement over tool bar items.
14921
14922 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
14923 toolbar_win_gravity.
14924 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
14925 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
14926 Add externs.
14927
14928 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
14929 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
14930
9720173f
CY
149312007-06-14 Chong Yidong <cyd@stupidchicken.com>
14932
14933 * image.c (search_image_cache): Remove unused variable.
14934
1217dd00
CY
149352007-06-13 Chong Yidong <cyd@stupidchicken.com>
14936
14937 * xfns.c, xmenu.c: Link to xaw3d if available.
14938
c5b8e0ea
YM
149392007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14940
14941 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
14942 frame_foreground and frame_background.
14943
14944 * image.c (lookup_image): Save frame foreground and background colors.
14945 (search_image_cache): Check if saved and current frame colors match.
14946
c69b0314
SM
149472007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14948
14949 * regex.c (regex_compile): Remove the `regnum' counter.
14950 Use bufp->re_nsub instead. Add support for \(?N:RE\).
14951
c9612b8e
SM
149522007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14953
14954 * term.c: Include intervals.h to declare Fget_text_property.
14955
843d2458
JR
149562007-06-10 Jason Rumney <jasonr@gnu.org>
14957
14958 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
14959
1e0d2d60 149602007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
14961
14962 * callint.c (Fcall_interactively):
14963 * editfns.c (Fdelete_and_extract_region):
14964 * fileio.c (Fread_file_name):
14965 * fns.c (Fmapconcat):
14966 * keyboard.c (cmd_error_internal):
14967 * keymap.c (Fkey_description):
14968 * lread.c (openp):
14969 * minibuf.c (read_minibuf):
14970 * search.c (wordify):
14971 * sunfns.c (sel_read):
14972 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
14973 * xfns.c (x_default_scroll_bar_color_parameter):
14974 * xmenu.c (menu_help_callback):
14975 * xselect.c (Fx_get_atom_name):
14976 * xterm.c (x_term_init): Use empty_unibyte_string.
14977
15bdd7a0 149782007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
14979
14980 * alloc.c (init_strings): Initialize canonical empty strings.
14981 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
14982 canonical empty string when the requested size is 0.
14983
14984 * emacs.c (empty_unibyte_string): Rename from empty_string.
14985 (empty_multibyte_string): New canonical empty string.
14986 (syms_of_emacs): Don't initialize empty_string.
14987
14988 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
14989 string, if appropriate.
14990 (empty_unibyte_string, empty_multibyte_string): New externs.
14991 (empty_string): Remove extern.
14992
14993 * lread.c (syms_of_lread): Use empty_unibyte_string.
14994
42c4c67a
JR
149952007-06-07 Jason Rumney <jasonr@gnu.org>
14996
14997 * s/ms-w32.h: Don't define HAVE_TZNAME.
14998
14999 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
15000
aa8280d3
YM
150012007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15002
15003 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
15004
15005 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
15006 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
15007
15008 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
15009 Don't call next handler.
15010 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
15011 Remove argument. Install handler to application.
15012 (set_frame_menubar): Don't change deep_p.
1e0d2d60 15013 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
15014 FRAME_OUTER_TO_INNER_DIFF_Y.
15015 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15016 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15017 [HAVE_DIALOGS]: New macros.
15018 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
15019 Use them.
15020 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
15021
15022 * macselect.c [MAC_OSX] (install_service_handler): Rename from
15023 init_service_handler. All callers changed. Return OSStatus value.
15024
15025 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
15026 All callers changed so as not to call SetPortWindowPort.
15027 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
15028 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
15029 mac_draw_string_common.
15030 (mac_draw_image_string_qd): Likewise.
15031 (mac_draw_string_common): Use them. Add INLINE.
15032 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
15033 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
15034 GetGlobalMouse.
15035 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
15036 and FRAME_OUTER_TO_INNER_DIFF_Y.
15037 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
15038 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
15039 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
15040 repositioning window to mac_handle_window_event.
15041 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
15042 saving window location to mac_handle_window_event
15043 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
15044 (install_menu_target_item_handler): Remove argument in extern.
15045 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
15046 Also accept command events.
15047 (do_keystroke): New function created from XTread_socket.
15048 (init_command_handler): Remove functions.
15049 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
15050 and save window location by kEventWindowShowing and kEventWindowHiding
15051 handlers here. Don't call next handler for window state change and
15052 focus events.
15053 (mac_handle_application_event, mac_handle_keyboard_event)
15054 [TARGET_API_MAC_CARBON]: New functions.
15055 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
15056 kEventWindowShowing and kEventWindowHiding events. Move installation
15057 of mouse, font, text input and menu target item handlers to
15058 install_application_handler.
15059 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
15060 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15061 New function.
15062 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15063 Register it.
c9612b8e
SM
15064 (XTread_socket) [TARGET_API_MAC_CARBON]:
15065 Consolidate SendEventToEventTarget calls.
15066 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
15067 Move application activation handler to mac_handle_application_event.
15068 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
15069 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
15070 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
15071 init_command_handler. Call install_application_handler.
15072
15073 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
15074 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
15075
6926c954
GM
150762007-06-07 Glenn Morris <rgm@gnu.org>
15077
15078 * emacs.c (main): Use `emacs-copyright' in --version output.
15079
6fe04c89
CY
150802007-06-06 Chong Yidong <cyd@stupidchicken.com>
15081
c9612b8e 15082 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 15083
7eb0d727
YM
150842007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15085
15086 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
785ce0ac 15087
7eb0d727
YM
15088 * macgui.h: Replace WindowPtr with WindowRef.
15089
15090 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
15091 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
15092 Replace ControlHandle with ControlRef.
15093 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
15094
15095 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
15096 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
15097 Replace ControlHandle with ControlRef.
15098 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
15099 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
15100
15101 * macterm.h (struct scroll_bar): Rename member control_handle_low
15102 and control_handle_high to control_ref_low and control_ref_high.
15103 All uses changed.
15104 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
15105 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
15106 respectively. All uses changed.
15107 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
15108 (install_window_handler, remove_window_handler): Replace WindowPtr
15109 with WindowRef in externs.
15110
65fddb74
JB
151112007-06-05 Juanma Barranquero <lekktu@gmail.com>
15112
15113 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
15114
db1213a9
NR
151152007-06-03 Nick Roberts <nickrob@snap.net.nz>
15116
15117 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
15118
65fddb74 15119 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
15120 Condition on HAVE_GPM too.
15121
15122 * term.c (term_mouse_highlight): Remove unused variables.
15123 (Fterm_open_connection): Set gpm_zerobased to 1.
15124 (term_mouse_movement, term_mouse_click, handle_one_term_event):
15125 Use zero based co-ordinates.
15126 (handle_one_term_event): Report a drag as mouse movement too.
15127
15128 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
15129
d94df25b
CY
151302007-06-03 Chong Yidong <cyd@stupidchicken.com>
15131
15132 * image.c (search_image_cache): New function. Require background
15133 color match if background color is unspecified in the image spec.
15134 (uncache_image, lookup_image): Use it.
15135
4797b6d9
JB
151362007-06-01 Juanma Barranquero <lekktu@gmail.com>
15137
15138 * window.c (Fshrink_window): Reflow docstring.
15139
1ffe7343
NR
151402007-06-02 Chong Yidong <cyd@stupidchicken.com>
15141
15142 * Version 22.1 released.
15143
151442007-06-01 Richard Stallman <rms@gnu.org>
15145
15146 * xfns.c (x_encode_text): Add GCPRO.
15147
151482007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15149
15150 * xfns.c (x_set_name_internal): Save encoded name before
15151 x_encode_text in case string data is relocated.
15152
151532007-05-31 Richard Stallman <rms@gnu.org>
15154
15155 * buffer.c (syms_of_buffer): Doc fix.
15156
151572007-05-30 Nick Roberts <nickrob@snap.net.nz>
15158
15159 * sysdep.c (init_sys_modes): Add rather than replace with
15160 O_NONBLOCK.
15161
15162 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
15163 term_mouse_moveto.
15164
15165 * termhooks.h (term_mouse_moveto): New extern.
15166
15167 * term.c (mouse_face_window): Rename...
15168 (Qmouse_face_window): ...to this.
15169 (term_show_mouse_face, term_clear_mouse_face)
15170 (term_mouse_highlight): Use Qmouse_face_window.
15171 (term_mouse_moveto): New function.
15172 (term_mouse_position): Make it work.
15173 (syms_of_term): Uncomment assignment to mouse_position_hook.
15174 Staticpro Qmouse_face_window.
15175
151762007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15177
15178 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
15179 around current_column call.
15180
151812007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
15182
15183 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
15184 * xdisp.c (next_element_from_buffer):
15185 * window.c (delete_window):
15186 * term.c (term_mouse_highlight):
15187 * msdos.c (getdefdir):
15188 * macterm.c (mac_create_bitmap_from_bitmap_data)
15189 (init_font_name_table):
15190 * fns.c (Fsxhash):
15191 * data.c (Fmake_local_variable):
15192 * ccl.c (ccl_driver): Likewise.
15193
151942007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15195
15196 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
15197 Call mac_wakeup_from_rne on window size change.
15198
151992007-05-25 Chong Yidong <cyd@stupidchicken.com>
15200
15201 * image.c (uncache_image): Fix typo.
15202
152032007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
15204
15205 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
15206
152072007-05-22 Richard Stallman <rms@gnu.org>
15208
15209 * xterm.c (x_connection_closed): Remove NO_RETURN.
15210
152112007-05-22 Martin Rudalics <rudalics@gmx.at>
15212
15213 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
15214
152152007-05-21 Chong Yidong <cyd@stupidchicken.com>
15216
15217 * image.c (uncache_image): New function.
15218 (Fimage_refresh): New function.
15219
880820fe 152202007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
15221
15222 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
15223
152242007-05-20 Nick Roberts <nickrob@snap.net.nz>
15225
15226 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
15227 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
15228
152292007-05-20 Nick Roberts <nickrob@snap.net.nz>
15230
15231 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
15232 conditional on [HAVE_GPM_H].
15233
152342007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15235
15236 * syntax.c (skip_chars): Update syntax-table only after we checked that
15237 the new location is valid.
15238
152392007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15240
15241 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
15242 mac_get_window_bounds.
15243
152442007-05-20 Nick Roberts <nickrob@snap.net.nz>
15245
15246 * Makefile.in (LIBGPM): Allow it to be set from configure.
15247 If set then link Emacs with it.
15248
15249 * config.in: Regenerate.
15250
15251 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
15252 New externs.
15253
15254 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
15255 Include gpm.h.
15256 (handle_one_term_event, term_gpm): New externs.
15257
15258 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
15259 and allow it to be interrupted by SIGIO.
15260
15261 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
15262 (wait_reading_process_output): Wait on gpm_fd too.
15263 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
15264 (add_gpm_wait_descriptor_called_flag): New variable.
15265 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
15266
15267 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
15268 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
15269 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
15270 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
15271 (make_lispy_event): Add case GPM_CLICK_EVENT.
15272 (read_avail_input): Handle mouse input.
15273
15274 * term.c (write_glyphs_with_face): New function.
15275 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
15276 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
15277 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
15278 (mouse_face_face_id, term_gpm, pos_x, pos_y)
15279 (last_mouse_x, last_mouse_y): New variables.
15280 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
15281 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
15282 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
15283 (Fterm_close_connection): New functions.
15284 (term_init): Initialise mouse_face_window.
15285
152862007-05-19 Chong Yidong <cyd@stupidchicken.com>
15287
15288 * xdisp.c (redisplay_window): If first window line is a
15289 continuation line, recompute the new window start instead of
15290 recentering.
15291
152922007-05-18 Glenn Morris <rgm@gnu.org>
15293
15294 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
15295 Suggested by Alfred M. Szmidt <ams@gnu.org>.
15296
152972007-05-17 Glenn Morris <rgm@gnu.org>
15298
15299 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
15300
153012007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15302
15303 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
15304 dead key repeat and up events.
15305
153062007-05-14 Chong Yidong <cyd@stupidchicken.com>
15307
15308 * image.c (pbm_load): Check image size for monochrome pbm.
15309
153102007-05-13 Chong Yidong <cyd@stupidchicken.com>
15311
15312 * xterm.c (XTread_socket): Revert last change.
15313
153142007-05-12 Chong Yidong <cyd@stupidchicken.com>
15315
15316 * image.c (pbm_load): Correctly check image size for greyscale pbm.
15317
15318 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
15319
153202007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
15321
15322 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
15323 mixup (YAILOM).
15324
153252007-05-07 Andreas Schwab <schwab@suse.de>
15326
15327 * keymap.c (Flookup_key): Fix typo in last change.
15328
153292007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
15330
15331 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
15332 mapping for unibyte strings.
15333
153342007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15335
15336 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
15337 (Fx_popup_dialog) [MAC_OSX]: Likewise.
15338
153392007-04-29 Richard Stallman <rms@gnu.org>
15340
15341 * insdel.c (replace_range): For undo, record insertion first.
15342
153432007-04-29 Andreas Schwab <schwab@suse.de>
15344
15345 * lisp.h (VECSIZE): Use OFFSETOF.
15346
153472007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15348
15349 * xdisp.c (try_window_reusing_current_matrix): Fix number of
15350 disabled lines.
15351
153522007-04-28 Richard Stallman <rms@gnu.org>
15353
15354 * lread.c (read_escape): In a string, \s is always space.
15355
880820fe 153562007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
15357
15358 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
15359
15360 * gtkutil.c (xg_update_menubar, create_menus): Create empty
15361 submenu for menu bar items.
15362
382c648d 15363See ChangeLog.10 for earlier changes.
6922b018
KH
15364
15365;; Local Variables:
880820fe 15366;; coding: utf-8
33462dfa 15367;; add-log-time-zone-rule: t
67e8d28a 15368;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 15369;; End:
2a34a036 15370
59ce725a 15371 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
15372
15373 This file is part of GNU Emacs.
15374
5a1dde61 15375 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 15376 it under the terms of the GNU General Public License as published by
5a1dde61
GM
15377 the Free Software Foundation, either version 3 of the License, or
15378 (at your option) any later version.
7f6d64f8
GM
15379
15380 GNU Emacs is distributed in the hope that it will be useful,
15381 but WITHOUT ANY WARRANTY; without even the implied warranty of
15382 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15383 GNU General Public License for more details.
15384
15385 You should have received a copy of the GNU General Public License
5a1dde61 15386 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 15387
28f60c3d 15388;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40