* emacs.c (main): Print and error and exit when no data is read
[bpt/emacs.git] / src / ChangeLog
CommitLineData
fd95644b
DN
12008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * emacs.c (main): Print and error and exit when no data is read
4 from the pipe.
5
e6eee6ae
JR
62008-12-17 Jason Rumney <jasonr@gnu.org>
7
8 * w32font.c (w32font_has_char): Always return -1.
9
a35dd56b
KH
102008-12-16 Kenichi Handa <handa@m17n.org>
11
12 * font.c (font_open_entity): Fix previous change.
13
0e3635c2
DN
142008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15
16 * process.c: Include <limits.h>.
17
d4835507 182008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
19
20 * font.c (font_update_drivers): Fix mistake in reconstructing the
21 driver list.
22
232008-12-16 Chong Yidong <cyd@stupidchicken.com>
24
25 * font.c (font_clear_cache): Fix format of font cache data.
26
e2cbc401
CY
272008-12-15 Chong Yidong <cyd@stupidchicken.com>
28
29 * xftfont.c (xftfont_open): Free Xft font pattern if
30 XftFontOpenPattern fails.
31
32 * xterm.c (x_free_frame_resources): Remove extraneous call to
33 free_frame_faces.
34
b131d535
CY
352008-12-13 Chong Yidong <cyd@stupidchicken.com>
36
37 * xterm.c (x_delete_display): Move xim_close_dpy call to
38 x_delete_terminal.
39 (x_delete_terminal): Call xim_close_dpy.
40
e6df5336
JR
412008-12-13 Jason Rumney <jasonr@gnu.org>
42
43 * w32font.c (intern_font_name): New function.
44 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
45 (w32font_open_internal, Fx_select_font): Decode font name.
46 (fill_in_logfont, list_all_matching_fonts): Encode font name.
47
48 * w32font.h (intern_font_name): Declare new function.
49
50 * w32uniscribe.c (add_opentype_font_name_to_list):
51 Use intern_font_name.
52
20d68145
CY
532008-12-13 Chong Yidong <cyd@stupidchicken.com>
54
9f2554de
CY
55 * frame.c (Fdelete_frame): Call free_font_driver_list.
56
3d9bec9a
CY
57 * font.c (free_font_driver_list): Implement missing function.
58
20d68145
CY
59 * w32term.c (w32_term_init): Don't initialize the image cache
60 here; it will be done in init_frame_faces.
61
62 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
63 (struct x_display_info): Remove unused member null_pixel. New
64 member xim_callback_data.
65
66 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
67 (xim_initialize): Save pointer to callback function data.
68 (xim_close_dpy): Free callback function data. Call XCloseIM,
69 reverting 2008-11-04 change by David Smith.
70 (x_term_init): Don't initialize the image cache here; it will be
71 done in init_frame_faces. Remove ancient "null_pixel" cruft.
72 (x_delete_display): Free x_dnd_atoms member.
73
96f9306b
KH
742008-12-13 Kenichi Handa <handa@m17n.org>
75
76 * font.c (font_rescale_ratio): Moved from xfaces.c. Argument
77 type changed. Handle a font-spec too.
78 (font_score): Check Vface_font_rescale_alist.
79 (font_open_entity): Likewise.
80
81 * xfaces.c (font_rescale_ratio): Moved to font.c.
82
8d5b4964
CY
832008-12-13 Chong Yidong <cyd@stupidchicken.com>
84
85 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
86
e6df5336
JR
872008-12-12 Jason Rumney <jasonr@gnu.org>
88
89 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
90 Vwindow_system_version to the real w32 major version.
91
97c6058a
DN
922008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
93
94 * term.c (init_tty): Move setting the terminal name before the
95 potential user: maybe_fatal.
96
ec4e88d7
CY
972008-12-11 Chong Yidong <cyd@stupidchicken.com>
98
d4835507
JB
99 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
100 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 101
b4233ec9
JR
1022008-12-11 Jason Rumney <jasonr@gnu.org>
103
8ec71e23
JR
104 * w32font.c (fill_in_logfont): Don't assume symbol script means
105 SYMBOL_CHARSET.
106
b4233ec9
JR
107 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
108 size for surrogates.
109
011a0143
JB
1102008-12-11 Juanma Barranquero <lekktu@gmail.com>
111
112 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
113
3c309f34
JB
1142008-12-11 Juanma Barranquero <lekktu@gmail.com>
115
116 * process.c (Fsystem_process_attributes, syms_of_process):
117 Fix typo in name of Ssystem_process_attributes.
118 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
119
fedc6ab5
JB
1202008-12-11 Juanma Barranquero <lekktu@gmail.com>
121
122 * syntax.c (Fmodify_syntax_entry): Doc fix.
123
ba3de0e8
JB
1242008-12-10 Juanma Barranquero <lekktu@gmail.com>
125
126 * font.c (Ffont_spec): Move usage to end of docstring.
127
174f1c74
JR
1282008-12-10 Jason Rumney <jasonr@gnu.org>
129
130 * w32font.c (Qcham): New symbol.
131 (font_supported_scripts): Add cham, and comments for other new
132 scripts in bitfield from OpenType spec.
9d32f818
JR
133 (add_font_entity_to_list): Limit unicode-sip fonts to those that
134 contain characters beyond the bmp.
174f1c74 135
7b649478
KH
1362008-12-10 Kenichi Handa <handa@m17n.org>
137
138 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 139 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
140 Qunicode_sip.
141
2133e2d1
JB
1422008-12-10 Juanma Barranquero <lekktu@gmail.com>
143
144 * coding.c (QCdefault_char): Rename from QCdefalut_char.
145 (Fcoding_system_put): Use QCdefault_char.
146 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
147
9af886ee
CY
1482008-12-09 Chong Yidong <cyd@stupidchicken.com>
149
74d819eb
CY
150 * xftfont.c (syms_of_xftfont): Fix typo.
151
4ccfa1c0 152 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 153
7c19d3ae
DN
1542008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
155
156 * emacs.c (main): Close daemon_pipe on exec.
157
567826bb
CY
1582008-12-08 Chong Yidong <cyd@stupidchicken.com>
159
160 * termchar.h (struct tty): New members termcap_term_buffer and
161 termcap_strings_buffer.
162
163 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 164 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
165 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
166 All callers changed.
167 (init_tty): Store termcap data and string buffers in new struct
168 tty members termcap_term_buffer and termcap_strings_buffer.
169 (delete_tty): Free them.
4ccfa1c0 170 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 171
aa96c42b
SZ
1722008-12-07 Seiji Zenitani <zenitani@mac.com>
173
174 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 175 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 176
b7e1d896
CY
1772008-12-06 Chong Yidong <cyd@stupidchicken.com>
178
179 * coding.c (make_conversion_work_buffer): Disable buffer
180 modification hooks in the work buffer.
181
b5ec91a5
EZ
1822008-12-05 Eli Zaretskii <eliz@gnu.org>
183
184 * process.c (procfs_system_process_attributes): If `nread' has a
185 negative value, assign zero to it.
186
a5d2a52b
CY
1872008-12-05 Chong Yidong <cyd@stupidchicken.com>
188
68c5540b 189 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 190
7bf1bb21
KH
1912008-12-05 Kenichi Handa <handa@m17n.org>
192
193 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
194 second character is a combining character.
195
2fdc7d00
EZ
1962008-12-05 Eli Zaretskii <eliz@gnu.org>
197
198 * process.c (procfs_system_process_attributes): Don't use cmd,
199 cmdsize, and q without initializing them first.
200
bf6bfba8
JR
2012008-12-04 Jason Rumney <jasonr@gnu.org>
202
203 * w32font.c (w32font_draw): Initialize orig_clip before getting
204 it, and delete it when finished.
205
a3b1a468
DN
2062008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
207
208 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
209 case when running as a daemon before detaching.
210
8b8be8eb
JB
2112008-12-03 Juanma Barranquero <lekktu@gmail.com>
212
805f2638 213 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 214
b1bde622
KH
2152008-12-03 Kenichi Handa <handa@m17n.org>
216
e500c47d
KH
217 * font.c (font_at): Set `multibyte' at first.
218
ca516334
KH
219 * coding.c (decode_coding_charset): Check type of an element of
220 vector VALIDS.
7bf1bb21 221 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 222
4ccfa1c0 223 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
224 (font_for_char): Likewise.
225
1e5ecd37
CY
2262008-12-03 Chong Yidong <cyd@stupidchicken.com>
227
d5b01609 228 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
229 (font_update_lface): Handle fonts with corrupted size specs,
230 i.e. non-int and non-float.
d5b01609 231
11e3a6e4 232 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 233 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 234 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 235
ab06788b
CY
236 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
237
1e5ecd37 238 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 239 underline_minimum_offset for underline position.
1e5ecd37 240
63c125ab
DN
2412008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
242
243 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
244
245 * character.c (c_string_width): Specify the type for LEN.
246
3a8406e1
KH
2472008-12-03 Kenichi Handa <handa@m17n.org>
248
4ccfa1c0 249 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 250 (decode_coding_utf_8): Likewise.
4ccfa1c0 251 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 252 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 253
651df7d9
CY
2542008-12-02 Chong Yidong <cyd@stupidchicken.com>
255
256 * keyboard.c (make_lispy_position): Only use PT if the selected
257 window is current.
258
1f625c6c
AS
2592008-12-02 Andreas Schwab <schwab@suse.de>
260
f7741ce9
AS
261 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
262
1f625c6c
AS
263 * doprnt.c (doprnt1): Fix size of charbuf.
264
92bc2678
CY
2652008-12-02 Chong Yidong <cyd@stupidchicken.com>
266
267 * keyboard.c (timer_check): Revert last change.
268
93b9e8cc
JB
2692008-12-02 Juanma Barranquero <lekktu@gmail.com>
270
271 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
272
fd7a37d5
JB
2732008-12-01 Juanma Barranquero <lekktu@gmail.com>
274
275 * makefile.w32-in: Update dependencies.
276 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
277
c115043b
AS
2782008-12-01 Andreas Schwab <schwab@suse.de>
279
280 * font.c (register_font_driver): Use xmalloc.
281 (font_put_frame_data): Likewise.
282
f5668d2a
CY
2832008-12-01 Chong Yidong <cyd@stupidchicken.com>
284
860d96be
CY
285 * xfaces.c (realize_x_face): Make abort condition clearer.
286
f5668d2a
CY
287 * gtkutil.c (update_frame_tool_bar): Initialize variable.
288
379c17e7
CY
2892008-11-30 Chong Yidong <cyd@stupidchicken.com>
290
291 * keyboard.c (timer_check): After a timer runs, ensure that the
292 selected window's buffer is current.
293
35f36d65
JB
2942008-11-30 Juanma Barranquero <lekktu@gmail.com>
295
f952c61c
JB
296 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
297 It was accidentally restored by the Unicode merge.
298
35f36d65
JB
299 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
300
b23077df
JB
3012008-11-29 Juanma Barranquero <lekktu@gmail.com>
302
303 * w32proc.c: Include "coding.h".
304 (Fw32_short_file_name): Encode filename passed to Windows API.
305 (Fw32_long_file_name): Encode filename passed to Windows API and
306 decode back the result. (Bug#1433)
307
b8ebe9dd
KH
3082008-11-29 Kenichi Handa <handa@m17n.org>
309
8cc53f96
KH
310 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
311 not before accessing it.
312
b8ebe9dd
KH
313 * charset.c (Fdefine_charset_internal): After calculating
314 min_char, max_char, and fastmap, copy the charset structure again.
315 (encode_char): Fix the previous change.
316
59bc82c0
SZ
3172008-11-28 Seiji Zenitani <zenitani@mac.com>
318
319 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
320
321 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
322
323 * nsterm.m (x_set_frame_alpha): New function.
324
32247e3d
EZ
3252008-11-27 Eli Zaretskii <eliz@gnu.org>
326
327 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
328
b003e5ff
JB
3292008-11-27 Juanma Barranquero <lekktu@gmail.com>
330
331 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
332 pointer to check_face_name.
333
708550f5
KH
3342008-11-27 Kenichi Handa <handa@m17n.org>
335
336 * category.h (SET_CATEGORY_SET): Call set_category_set.
337 (set_category_set): Extern it.
338
339 * category.c (hash_get_category_set): New function.
340 (Fmodify_category_entry): Adjusted for the change of
341 char_table_ref_and_range. Call hash_get_category_set to get a
342 category set to store in the table.
343
344 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
345 Funify_charset.
346
2ae37cf0 347 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
348 (DECODE_CHAR): Check if the decoder vector is ready.
349 (ENCODE_CHAR): Check if the encoder char-table is ready.
350 (maybe_unify_char): Extern it.
351
352 * charset.c (Vchar_unified_charset_table): Delete it.
353 (inhibit_load_charset_map): New variable.
354 (temp_charset_work): New variable.
355 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
356 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
357 New macros.
358 (load_charset_map): Meaning of control_flag changed. If
359 inhibit_load_charset_map is nonzero, setup a table in
360 temp_charset_work.
361 (load_charset): New argument control_flag.
362 (map_charset_for_dump): New function.
363 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
364 map_charset_for_dump.
365 (Fdefine_charset_internal): If the charset method is MAP, load
366 mapping tables by calling load_charset.
367 (Funify_charset): Don't load a mapping table but directly set
368 Vchar_unify_table.
369 (maybe_unify_char): New function.
370 (decode_char): Don't handle the deleted method MAP_DEFERRED.
371 Handle the case of inhibit_load_charset_map being nonzero.
372 (encode_char): Don't handle the deleted method MAP_DEFERRED.
373 Handle the case of inhibit_load_charset_map being nonzero.
374 (Fclear_charset_maps): Just free temp_charset_work.
375 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
376 variable.
377
378 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
379 change of char_table_ref_and_range.
380 (char_table_ref_and_range): Change the meaning of argument FROM
381 and TO. Now the caller must provide initial values for *FROM
382 and *TO.
383
384 * fontset.c (fontset_add): Adjusted for the change of
385 char_table_ref_and_range.
386 (fontset_get_font_group): Likewise.
387 (Ffontset_info): Likewise.
388
389 * keymap.c (describe_vector): Adjusted for the change of
390 char_table_ref_and_range. For char-table, put boundary between
391 non-ASCII and 8-bit characters.
392
393 * print.c (print_object): For bool-vector, delete unnecessary
394 check of ASCII_BYTE_P.
395
9196133b
JR
3962008-11-26 Jason Rumney <jasonr@gnu.org>
397
398 * w32font.c (w32font_open_internal): Don't include external
399 leading in font height.
400
9f688acf
GM
4012008-11-26 Glenn Morris <rgm@gnu.org>
402
403 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
404 redefinition with ifdef. (Bug#1383)
405
90d19aff
AR
4062008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
407
408 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
409
4ccfa1c0 4102008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
411
412 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
413 New EmacsView methods.
414 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
415 Fixes bug #1048,1357,1414.
416
4172008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
418
419 Fix bug #1362.
420 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
421 is not an indexed color.
422 * nsterm.m (free_indexed_color): Add argument checking.
423 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
424
e7d5ecb3
CY
4252008-11-24 Chong Yidong <cyd@stupidchicken.com>
426
427 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
428 Document confirm-after-completion value for
429 minibuffer-completion-confirm.
430
c285743c
JR
4312008-11-24 Jason Rumney <jasonr@gnu.org>
432
433 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
434 warning.
435
b0857706
JR
4362008-11-23 Jason Rumney <jasonr@gnu.org>
437
438 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
439 restored before returning.
440
441 * w32font.c (check_face_name): New function.
442 (add_font_entity_to_list): Use it to filter out common substituted
443 fonts.
444
ee50ff07
MR
4452008-11-22 Martin Rudalics <rudalics@gmx.at>
446
447 * buffer.c (Fswitch_to_buffer): Reword and mention new option
448 confirm-nonexistent-file-or-buffer in doc-string.
449
b8ff72fa
SM
4502008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
451
452 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
453 Fix copy/paste typo. Add checks.
454
cee53ed4
KH
4552008-11-21 Kenichi Handa <handa@m17n.org>
456
457 * coding.c (detect_coding_iso_2022): Reject invalid composition
458 sequence.
459 (DECODE_COMPOSITION_START): If the current source is the last
460 block, and the current composition doesn't end, regard this
461 sequence as invalid.
462 (decode_coding_iso_2022): Handle invalid composition sequence.
463
f6ef1e65
MR
4642008-11-20 Martin Rudalics <rudalics@gmx.at>
465
466 * window.c (coordinates_in_window): Don't return
467 ON_VERTICAL_BORDER for the rightmost position of a mode/header
468 line when the window is not the rightmost one. (Bug#1372)
469
e08b1705
MR
4702008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
471
472 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
473
ad98e89f
EZ
4742008-11-15 Eli Zaretskii <eliz@gnu.org>
475
476 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
477 and bright_bg if noninteractive is non-zero.
478
fb098a4b
CY
4792008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
480
481 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
482 x_draw_glyph_string_background.
483
484 * w32term.c (x_draw_glyph_string): Likewise.
485
ce952b6e
CY
4862008-11-15 Chong Yidong <cyd@stupidchicken.com>
487
488 * xterm.c (x_draw_glyph_string): Stop drawing the background of
489 the next glyph string once past the overhang width.
490
491 * nsterm.m (ns_draw_glyph_string): Likewise.
492
493 * w32term.c (x_draw_glyph_string): Likewise.
494
26ea7079
CY
4952008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
496
497 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
498 double file close.
499
1c33c906
MR
5002008-11-14 Martin Rudalics <rudalics@gmx.at>
501
502 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
503 dedicated status of window before attempting to display another
504 buffer in it.
505
8fc29035
JB
5062008-11-14 Juanma Barranquero <lekktu@gmail.com>
507
508 * msdos.c (Fmsdos_long_file_names):
509 (syms_of_msdos) <dos-unsupported-char-glyph>:
510 * dosfns.c (Fint86): Fix typos in docstrings.
511
55fb4286
EZ
5122008-11-14 Eli Zaretskii <eliz@gnu.org>
513
514 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
515
3fda0315
KY
5162008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
517
518 * puresize.h (BASE_PURESIZE): Increase to 1260000.
519
7e849c17
CY
5202008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
521
522 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
523
524 * frame.h: Negative alpha means "don't touch".
525
526 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
527
528 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
529
b9fd67bd
DN
5302008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
531
532 * hftctl.c:
533 * chpdef.h:
534 * acldef.h: Remove files used only for systems no longer supported.
535
536 * Makefile.in: Fix .o alphabetical ordering.
537 (hftctl.o): Remove dependency, file removed.
538 (keymap.o, print.o): Depend on charset.h.
539
d5998e03
KH
5402008-11-10 Kenichi Handa <handa@m17n.org>
541
2ae37cf0 542 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 543
be70e183
CY
5442008-11-08 Chong Yidong <cyd@stupidchicken.com>
545
546 * dired.c (file_name_completion): If completion_ignore_case is
547 enabled, ignore case when checking completion-regexp-list.
548
7cf94eac
EZ
5492008-11-08 Eli Zaretskii <eliz@gnu.org>
550
551 * vm-limit.c (get_lim_data): Fix last change.
552
ee107a89
KH
5532008-11-08 Kenichi Handa <handa@m17n.org>
554
555 * character.c (Fget_byte): New function.
556 (syms_of_character): Defsubr Fget_byte.
557
5fd15622
CY
5582008-11-07 Chong Yidong <cyd@stupidchicken.com>
559
560 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
561 cursor position is valid after scrolling.
562
13d62fad
JB
5632008-11-06 Juanma Barranquero <lekktu@gmail.com>
564
565 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
566
a1dd2936
GM
5672008-11-06 Glenn Morris <rgm@gnu.org>
568
569 * xterm.c (handle_one_xevent): Don't let popup menus cause
570 mouse-autoselect-window related window switching. (Bug#1261)
571
860cd236
CY
5722008-11-04 David Smith <davidsmith@acm.org> (tiny change)
573
574 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
575
653a3150
AS
5762008-11-04 Andreas Schwab <schwab@suse.de>
577
578 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
579
870f5cac
CY
5802008-11-03 Chong Yidong <cyd@stupidchicken.com>
581
582 * xfns.c (Fx_wm_set_size_hint): New function.
583
1e02f3cb
MR
5842008-11-03 Martin Rudalics <rudalics@gmx.at>
585
586 * textprop.c (Fprevious_single_char_property_change): Return 0
587 when there's no change in a string. (Bug#1301)
588
e630dfc6
MR
5892008-11-02 Martin Rudalics <rudalics@gmx.at>
590
591 * frame.c (do_switch_frame): New argument NORECORD passed to
592 Fselect_window.
593 (Fselect_frame): New argument NORECORD passed to
594 do_switch_frame.
595 (Fset_frame_selected_window): New argument NORECORD passed to
596 Fselect_frame.
597 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
598 in call of do_switch_frame.
599 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
600 Handle NORECORD argument in call of Fselect_frame.
601 * lisp.h (do_switch_frame, Fselect_frame)
602 (Fset_frame_selected_window): Adjust declarations.
603 * window.c (select_frame_norecord): New function.
604 (run_window_configuration_change_hook): Use it and call
605 Fselect_frame with NORECORD set.
606 (Fselect_window): Pass NORECORD to Fselect_frame.
607 (Fset_window_configuration): Handle NORECORD argument in call of
608 do_switch_frame.
609 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
610 Fset_frame_selected_window.
611 * keyboard.c (command_loop_1): Handle NORECORD in call of
612 Fselect_frame (currently ifdefd).
613
9020b223
GM
6142008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
615
616 * emacs.c (USAGE2): Untabify.
617
793ffee8
SM
6182008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
619
620 * composite.c (fill_gstring_header): Fix copy/paste typo.
621
ab6d1131
MR
6222008-10-31 Martin Rudalics <rudalics@gmx.at>
623
624 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
625 (Fother_window): Rename argument and rewrite doc-string.
626 (select_window_norecord): Fix return value. (Bug#1276)
627
601a9cf1
JB
6282008-10-30 Juanma Barranquero <lekktu@gmail.com>
629
630 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
631 new frames overriding foreground for tooltips. Based on similar patch
632 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
633
813b0652
CY
6342008-10-29 Chong Yidong <cyd@stupidchicken.com>
635
636 * emacs.c (Fdaemon_initialized): Initialize nfd.
637
4414f58f
MR
6382008-10-29 Martin Rudalics <rudalics@gmx.at>
639
640 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
641 (Fwindow_text_height): Clarify doc-strings.
642 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
643 doc-string of window-scroll-functions.
644
ecdcaa09
RS
6452008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
646
647 * category.c (syms_of_category): Fix typo in docstring.
648
23fe745a
JB
6492008-10-28 Juanma Barranquero <lekktu@gmail.com>
650
651 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
652 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
653 Fix typos in docstrings.
654
ff808935
DN
6552008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
656
657 * emacs.c (daemon_pipe): Make non-static.
658 (IS_DAEMON): Move definition ...
659 * lisp.h (IS_DAEMON): ... here.
660 (daemon_pipe): Declare.
661 (is_daemon): Remove.
662 * dispnew.c (init_display): Use IS_DAEMON.
663
fc012771
SM
6642008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
665
666 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
667 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
668
669 * emacs.c (is_daemon): Remove.
670 (main): Don't set is_daemon.
671 (IS_DAEMON): New macro.
672 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 673 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
674 parent exits.
675 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
676
d8bdbe6f
CY
6772008-10-27 Chong Yidong <cyd@stupidchicken.com>
678
d1a072bf
CY
679 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
680 over-sized glyph, draw it with the default glyph width.
681
e2e325aa
CY
682 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
683 glyph, draw it with the default glyph width.
684
685 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
686 glyph, draw it with the default glyph width.
687
d8bdbe6f
CY
688 * xdisp.c (try_scrolling): When computing the distance from the
689 scroll margin to PT, try moving some distance past the window
690 bottom before giving up.
691
7bfac547
MR
6922008-10-27 Martin Rudalics <rudalics@gmx.at>
693
694 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
695 (Fset_window_buffer): Explain in doc-string that a window can be
696 "strongly" dedicated to its buffer.
697
4ff029f6
DN
6982008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
699
700 * emacs.c (daemon_name): New variable.
701 (main): Deal with --daemon=SERVER_NAME.
702 (Fdaemonp): Return a name if one was passed to --daemon.
703
5790ef40
DN
7042008-10-26 Romain Francoise <romain@orebokech.com>
705
f9bd0df9 706 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
707 (main): Create a pipe before forking, make the parent exit only after
708 the child has closed its end of the pipe. Move closing the
709 descriptors ...
710 (Fdaemon_initialized): ... here. New function.
711
f5385255
SM
7122008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
713
4d632321
SM
714 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
715 the previous unoptimized table.
716
f5385255
SM
717 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
718 the distinction between non-nil and non-t value of `dedicated'.
719
6c56a0f3
CY
7202008-10-25 Chong Yidong <cyd@stupidchicken.com>
721
722 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 723 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 724
fec89261
MR
7252008-10-25 Martin Rudalics <rudalics@gmx.at>
726
727 * window.c (Fget_buffer_window, Fdelete_windows_on)
728 (Freplace_buffer_in_windows): Make buffer argument optional and
729 rename to buffer_or_name.
730
34fcddd0
CY
7312008-10-24 Chong Yidong <cyd@stupidchicken.com>
732
f5385255
SM
733 * xdisp.c (handle_single_display_spec, handle_display_prop):
734 Undo 2005-05-16 change.
34fcddd0
CY
735 (handle_stop): Pop iterator if it's loaded with an empty string.
736 (get_overlay_strings_1): Don't save iterator if it's loaded with
737 an empty string (bug#1201).
738
064766f2
KH
7392008-10-24 Kenichi Handa <handa@m17n.org>
740
741 * ftfont.c (ftfont_otf_features): Fix previous change.
742 (ftfont_otf_capability): Check FeatureList.FeatureCount before
743 calling ftfont_otf_features.
744
f9bd0df9 7452008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
746
747 * font.c (font_match_p): Fix for the case that a vector of
748 characters is in script-representative-chars.
749
1dae9197
MA
7502008-10-24 Michael Albinus <michael.albinus@gmx.de>
751
752 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 753 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
754 (xd_read_queued_messages): Catch Qdbus_error from the macros.
755 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
756 macro. (Bug#1186).
757
f9bd0df9 7582008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
759
760 * s/sol2-10.h: New file.
761
878a4584
JB
7622008-10-23 Juanma Barranquero <lekktu@gmail.com>
763
764 * xdisp.c (fill_glyph_string): Fix typo in source (though the
765 poor beast has survived 9+ years and the jump from xterm.c!).
766
cd265ca6
MR
7672008-10-23 Martin Rudalics <rudalics@gmx.at>
768
769 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
770 Reword doc-string.
f5385255 771 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 772
472a4dc9
JB
7732008-10-23 Juanma Barranquero <lekktu@gmail.com>
774
775 * character.c (syms_of_character) <script-representative-chars>:
776 <unicode-category-table>: Doc fixes.
777
159bd5a2
NF
7782008-10-23 Noah Friedman <friedman@splode.com>
779
780 * coding.c (make_conversion_work_buffer): Check that
781 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
782 Fget_buffer_create.
783
49f9c344
KH
7842008-10-23 Kenichi Handa <handa@m17n.org>
785
786 * font.c (font_add_log): Check the values of extra properties.
787
12bb3111
MR
7882008-10-22 Martin Rudalics <rudalics@gmx.at>
789
790 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
791 Reword doc-string.
792 (Fset_window_parameter): Use NILP.
793 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 794 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 795
bbeb4e99
JB
7962008-10-22 Juanma Barranquero <lekktu@gmail.com>
797
798 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
799
8002008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
801
802 * nsfns.m (ns_appkit_version): New function.
803 (x-server-version): Use it.
804 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
805 (x-server-vendor): Don't check_ns().
806
807 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
808
a9b555d3
JB
8092008-10-22 Juanma Barranquero <lekktu@gmail.com>
810
811 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
812 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
813
4626499f
KH
8142008-10-22 Kenichi Handa <handa@m17n.org>
815
e3681952
KH
816 * syntax.c (scan_words): Call word_boundary_p instead of comparing
817 scripts.
818
4626499f
KH
819 * category.c (word_boundary_p): Check scripts instead of charset.
820 Handle nil value in word-separating-categories and
821 word-combining-categories.
822 (syms_of_category): Fix docstrings of word-separating-categories
823 and word-combining-categories.
824
1560f91a
EZ
8252008-10-21 Eli Zaretskii <eliz@gnu.org>
826
827 * coding.c (Fencode_coding_region, Fdecode_coding_region)
828 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
829
f4668441
MR
8302008-10-21 Martin Rudalics <rudalics@gmx.at>
831
832 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
833 Rename arg "buffer" to "buffer_or_name".
834 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
835 it optional.
836 (no_switch_window): Remove since the return value is not used.
a9b555d3 837 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
838 Consider window as dedicated when Fwindow_dedicated_p returns a
839 non-nil value.
840 * lisp.h: Remove prototype for no_switch_window.
841
fd75ddb2
JD
8422008-10-21 Jan Djärv <jan.h.d@swipnet.se>
843
844 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 845 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 846
07295713
KH
8472008-10-21 Kenichi Handa <handa@m17n.org>
848
849 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
850 check Vlatin_extra_code_table.
851
712adc82
EZ
8522008-10-20 Eli Zaretskii <eliz@gnu.org>
853
854 * fileio.c (Fset_file_modes): Doc fix.
855
f549eb0b
MA
8562008-10-19 Michael Albinus <michael.albinus@gmx.de>
857
858 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
859 in arrays.
860
aac0c6e3
MR
8612008-10-19 Martin Rudalics <rudalics@gmx.at>
862
863 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
864 Mention kill-buffer in doc-string.
865 (Fset_window_buffer): Reinsert tem check removed in last commit.
866 (Fenlarge_window, Fshrink_window): Have argument names and
867 doc-string follow Elisp manual more closely.
868
8692008-10-18 Eli Zaretskii <eliz@gnu.org>
870
871 * fileio.c (Fset_file_modes): Doc fix.
872
8732008-10-18 Martin Rudalics <rudalics@gmx.at>
874
875 * window.c (Fwindow_width, Fset_window_start)
876 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
877 (Fdelete_windows_on, Freplace_buffer_in_windows):
878 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
879 (Fwindow_dedicated_p): Make window argument optional.
880 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
881 (Fset_window_buffer): Respect any non-nil dedicated value for
882 window. Rename "buffer" argument to "buffer_or_name".
883
8842008-10-18 Ulrich Mueller <ulm@gentoo.org>
885
886 * m/sh3.h: New file, machine description for SuperH.
887
8882008-10-17 Martin Rudalics <rudalics@gmx.at>
889
890 * window.c (Fsplit_window): Rename arg horflag to horizontal.
891
8922008-10-17 Kenichi Handa <handa@m17n.org>
893
894 * ftfont.c (ftfont_otf_features): Fix indexing
895 gsub_gpos->FeatureList.Feature. Check the validity of indices.
896
8972008-10-16 Magnus Henoch <mange@freemail.hu>
898
899 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
900 (Fdbus_call_method_asynchronously): Ditto.
901 This change makes C-h f display the argument list.
902
9032008-10-16 Chong Yidong <cyd@stupidchicken.com>
904
905 * fileio.c (Fexpand_file_name): Doc fix.
906
907 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
908 of :foreground and :background equivalent to unspecified (20.x
909 compatibility).
910
9112008-10-15 Eli Zaretskii <eliz@gnu.org>
912
913 * buffer.c (syms_of_buffer): Doc fix.
914
9152008-10-14 Kenichi Handa <handa@m17n.org>
916
917 * font.c (font_clear_prop): When clearing font width, clear the
918 average width field too.
919
9202008-10-12 Andreas Schwab <schwab@suse.de>
921
922 * ftfont.c (ftfont_shape_by_flt): Make static.
923 * ftfont.h (ftfont_shape_by_flt): Don't declare.
924
925 * font.c: Don't include <m17n-flt.h>.
926
9272008-10-10 Eli Zaretskii <eliz@gnu.org>
928
929 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
930
9312008-10-09 Eli Zaretskii <eliz@gnu.org>
932
933 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
934 away code.
935
9362008-10-09 Chong Yidong <cyd@stupidchicken.com>
937
938 * dispnew.c (update_text_area): Avoid looping due to large glyph
939 overhangs (bug#1070).
940
9412008-10-09 Kenichi Handa <handa@m17n.org>
942
943 * fontset.c (face_for_char): If face->fontset is negative, just
944 return ascii_face.
945
f5385255
SM
946 * font.c (font_delete_unmatched): Fix previous change.
947 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
948
9492008-10-09 Martin Rudalics <rudalics@gmx.at>
950
951 * frame.c (Fraise_frame): On text-only terminals select frame in
952 order to make it visible. (Bug#1061)
953
9542008-10-08 Chong Yidong <cyd@stupidchicken.com>
955
956 * fontset.c (fontset_find_font): Check frame validity.
957
9582008-10-07 Chong Yidong <cyd@stupidchicken.com>
959
a9b555d3 960 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
961 (xg_display_close): Allow Emacs to close all displays (bug#985).
962
9632008-10-06 Andreas Schwab <schwab@suse.de>
964
f5385255 965 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
966
9672008-10-06 Chong Yidong <cyd@stupidchicken.com>
968
f5385255 969 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 970
a9b555d3 971 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
972
973 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
974 during initialization.
975
9762008-10-04 Eli Zaretskii <eliz@gnu.org>
977
978 * xdisp.c (redisplay_internal): If frame switched, redisplay the
979 whole thing on MSDOS frames as well as on a TTY.
980
981 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
982 well as for TTY.
983 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
984 well as on a TTY.
985
986 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
987 as well as for TTY.
988
989 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
990
991 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
992 MSDOS frames as well.
993
9942008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
995
996 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
997 correct arguments.
998 * menu.c (find_and_return_menu_selection) Add cast.
999
10002008-10-03 Glenn Morris <rgm@gnu.org>
1001
1002 * emacs.c (USAGE1): Add --daemon.
1003
10042008-10-02 Eli Zaretskii <eliz@gnu.org>
1005
1006 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
1007 100, so it's in percents as advertised.
1008
10092008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1010
1011 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
1012 (ns_output.current_cursor, ns_output.desired_cursor)
1013 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
1014 (FRAME_NEW_CURSOR_COLOR): Remove.
1015
1016 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 1017 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
1018 enumeration (HOLLOW_BOX_CURSOR, etc.).
1019
1020 * nsterm.m (ns_frame_rehighlight): Remove commented code.
1021 (draw_window_cursor): Simplify code.
f5385255
SM
1022 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
1023 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 1024 updates manually.
a9b555d3
JB
1025 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
1026 Use core Emacs cursor types.
aac0c6e3 1027
b8ff72fa 1028 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
1029
10302008-10-02 Martin Rudalics <rudalics@gmx.at>
1031
1032 * process.c (Faccept_process_output): Fix doc-string.
1033
10342008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
1035
1036 * gmalloc.c (__sbrk): Also define for uClibc.
1037
1038 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
1039 for uClibc.
1040
10412008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1042
1043 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
1044 styles.
1045 (nsfont_open): Reenable the cache.
1046
10472008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
1048
1049 * font.c (font_matching_entity): Reflect ATTRS in font selection.
1050 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
1051
10522008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
1053
1054 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
1055 a suspended terminal.
1056
10572008-09-30 Michael Albinus <michael.albinus@gmx.de>
1058
1059 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
1060
10612008-09-30 Eli Zaretskii <eliz@gnu.org>
1062
1063 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
1064
10652008-09-30 Chong Yidong <cyd@stupidchicken.com>
1066
1067 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
1068 in a continued line coincides with a line beginning.
1069
10702008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1071
1072 * nsfont.m (nsfont_trait_distance): Fix bug.
1073 (nsfont_list): Return a list rather than a vector (syncs with Handa
1074 changes of 2008-05-14).
1075 (nsfont_open): Improve logging.
1076
10772008-09-29 Andreas Schwab <schwab@suse.de>
1078
1079 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1080
10812008-09-28 Martin Rudalics <rudalics@gmx.at>
1082
1083 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
1084 name as char-resolve-modifiers.
1085 Reported by: Markus Triska <markus.triska@gmx.at>
1086
10872008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
1088
1089 * dispnew.c (init_display): Return earlier when running as a daemon.
1090
10912008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1092
1093 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
1094
10952008-09-27 Eli Zaretskii <eliz@gnu.org>
1096
1097 * composite.c (Fcomposition_get_gstring)
1098 (Fcompose_region_internal, Fcompose_string_internal)
1099 (Ffind_composition_internal): Doc fix.
1100 (syms_of_composite) <compose-chars-after-function>: Doc fix.
1101 (syms_of_composite) <auto-composition-function>: Doc fix.
1102 (syms_of_composite) <composition-function-table>: Doc fix.
1103
11042008-09-25 Chong Yidong <cyd@stupidchicken.com>
1105
1106 * search.c (wordify): New argument for lax word-ends.
1107 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
1108
11092008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
1110
1111 * lisp.h (is_daemon): Declare.
1112 * dispnew.c (init_display): Do not try to initialize the terminal
1113 when running as a daemon.
1114
11152008-09-22 Chong Yidong <cyd@stupidchicken.com>
1116
1117 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
1118 x_display_pixel_height.
1119
11202008-09-22 Martin Rudalics <rudalics@gmx.at>
1121
1122 * undo.c (record_point): Don't call Fundo_boundary for first
1123 change. (Bug#731)
1124
11252008-09-22 Juanma Barranquero <lekktu@gmail.com>
1126
1127 * emacs.c (Fdaemonp): Doc fix.
1128
11292008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
1130
1131 * emacs.c (main): Place #ifdef in the proper place.
1132
11332008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1134
1135 * emacs.c (standard_args): Add --daemon.
1136 (main): Disconnect from the terminal when --daemon is passed.
1137 (is_daemon): New variable.
1138 (Fdaemonp): New function.
1139 (syms_of_emacs): Defsubr it.
1140
11412008-09-20 Chong Yidong <cyd@stupidchicken.com>
1142
1143 * xdisp.c (get_next_display_element): Handle string display
1144 correctly when checking for the end of a box run.
1145
11462008-09-20 Glenn Morris <rgm@gnu.org>
1147
1148 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
1149 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
1150 (Frename_file): Avoid copying to trash if a rename involves
1151 a delete. (Bug#964).
1152
11532008-09-20 Eli Zaretskii <eliz@gnu.org>
1154
1155 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
1156 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
1157 frames as well as termcap frames.
1158 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
1159 get_named_tty.
1160
11612008-09-19 Eli Zaretskii <eliz@gnu.org>
1162
1163 * process.c (procfs_system_process_attributes): Fix cmdline in
1164 case /proc/PID/cmdline is empty.
1165
1166 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
1167 x_display_pixel_height.
1168
11692008-09-19 Juanma Barranquero <lekktu@gmail.com>
1170
1171 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
1172
1173 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
1174 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
1175
11762008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
1177
1178 * dispextern.h (struct it): Move line_wrap away from the middle of
1179 bitfields. Move voffset in struct iterator_stack_entry after the
1180 bitfields. Move tab_width near after another short.
1181
11822008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
1183
1184 * frame.h (struct frame): Move alpha from the middle of bitfields.
1185
1186 * window.h (struct window): Move frozen_window_start_p after the
1187 rest of the bitfields to reduce padding.
1188
11892008-09-18 Chong Yidong <cyd@stupidchicken.com>
1190
1191 * xterm.h (x_display_info): Remove `height' and `width' members.
1192
1193 * nsterm.h (ns_display_info): Remove `height' and `width' members.
1194
1195 * w32term.h (w32_display_info): Remove `height', `width',
1196 `height_in', and `width_in' members.
1197
b8ff72fa
SM
1198 * xterm.c (x_display_pixel_height, x_display_pixel_width):
1199 New functions.
aac0c6e3
MR
1200 (x_calc_absolute_position): Use them.
1201 (x_term_init): Omit removed `height' and `width' members.
1202
b8ff72fa
SM
1203 * w32term.c (x_display_pixel_height, x_display_pixel_width):
1204 New functions.
aac0c6e3
MR
1205 (w32_read_socket, x_calc_absolute_position): Use them.
1206 (w32_initialize_display_info, w32_term_init): Omit removed members
1207 of w32_display_info.
1208
b8ff72fa
SM
1209 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
1210 New functions.
1211 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 1212
b8ff72fa
SM
1213 * xterm.c (x_display_pixel_height, x_display_pixel_width):
1214 New functions.
aac0c6e3
MR
1215 (x_calc_absolute_position): Use them.
1216 (x_term_init): Omit removed `height' and `width' members.
1217
1218 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
1219 (compute_tip_xy):
1220 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
1221 * xmenu.c (menu_position_func): Use x_display_pixel_height and
1222 x_display_pixel_width.
1223
12242008-09-18 Kenichi Handa <handa@m17n.org>
1225
1226 * composite.c (fill_gstring_header): Don't check FROM and TO here.
1227 (composition_compute_stop_pos): Fix handling of static composition.
1228 (Fcomposition_get_gstring): Check FROM and TO at first.
1229
12302008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1231
1232 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
1233 mixup (YAILOM).
1234
12352008-09-17 Chong Yidong <cyd@stupidchicken.com>
1236
1237 * indent.c (Fvertical_motion): Use position reported by iterator
1238 instead of PT for determining screen motion (bug#943).
1239
12402008-09-17 Romain Francoise <romain@orebokech.com>
1241
1242 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
1243
12442008-09-17 Kenichi Handa <handa@m17n.org>
1245
1246 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
1247
1248 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
1249 if necessary.
1250
12512008-09-16 Kenichi Handa <handa@m17n.org>
1252
1253 * coding.c (make_conversion_work_buffer): Avoid calling
1254 Fget_buffer_create if it is not necessary.
1255
12562008-09-15 Martin Rudalics <rudalics@gmx.at>
1257
1258 * window.c (Fselect_window): Don't update window_select_count and
1259 use_time when norecord is not nil.
1260
12612008-09-14 Kenichi Handa <handa@m17n.org>
1262
1263 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
1264 specpdl_ptr.
1265
12662008-09-12 Kenichi Handa <handa@m17n.org>
1267
1268 * indent.c (scan_for_column): Don't handle automatic composition
1269 if the current buffer is not associated with a window.
1270
1271 * composite.c (composition_reseat_it): If the current buffer is
1272 not associated with a window, ignore the automatic composition.
1273 (find_automatic_composition): Likewise.
1274
12752008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1276
1277 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
1278 (Fgpm_mouse_stop): Use it.
1279 * termhooks.h (close_gpm): Declare.
1280 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
1281 connection if Gpm_GetEvent fails.
1282
1283 * window.c (set_window_buffer): Always preserve current-buffer.
1284
12852008-09-12 Glenn Morris <rgm@gnu.org>
1286
1287 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
1288
12892008-09-11 Glenn Morris <rgm@gnu.org>
1290
1291 * charset.c (charset-map-path): Doc fix.
1292
12932008-09-10 Kenichi Handa <handa@m17n.org>
1294
1295 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
1296
1297 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
1298 compose a grapheme cluster with the preceding base glyph.
1299
1300 * composite.c (composition_compute_stop_pos): Fix previous change.
1301 Reset cmp_it->id to -1 at first.
1302
13032008-09-10 Glenn Morris <rgm@gnu.org>
1304
1305 * Makefile.in (character.o, chartab.o): Fix config.h typo.
1306
13072008-09-09 Chong Yidong <cyd@stupidchicken.com>
1308
1309 * keyboard.c (read_key_sequence): Reapply translation maps when
1310 switching keyboards.
1311
13122008-09-09 Kenichi Handa <handa@m17n.org>
1313
1314 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
1315 characters.
1316
1317 * composite.c (FORWARD_CHAR): Fix calculation
1318 of (POSITION).pos_byte.
1319 (composition_compute_stop_pos): Limit the search of composition to
1320 at most 500 characters ahead. If we reach the limit or find a
1321 newline, set cmp_it->ch to -2 and return 0.
1322 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
1323
13242008-09-08 Kenichi Handa <handa@m17n.org>
1325
1326 * indent.c (Fvertical_motion): Be sure to set
1327 it_overshoot_expected if it.cmp_it.id is non-negative.
1328
13292008-09-07 Andreas Schwab <schwab@suse.de>
1330
1331 * callproc.c (Fcall_process): Don't hold references to string data
1332 across garbage collection. Move initialisation of new_argv down
1333 to avoid compiler bug.
1334
13352008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
1336
1337 * process.c (Fsystem_process_attributes): Doc fix.
1338
13392008-09-07 Chong Yidong <cyd@stupidchicken.com>
1340
1341 * callproc.c (Fcall_process): Canonicalize current directory name.
1342
1343 * xdisp.c (move_it_to): When moving by vpos, ensure that the
1344 iterator advances to the next line if the current line ends in a
1345 continued tab.
1346
13472008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
1348
1349 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
1350 member to point to cmp_from.
1351
1352 * xdisp.c: Doc fix for references to gidx data member.
1353
13542008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1355
1356 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
1357
13582008-09-07 Kenichi Handa <handa@m17n.org>
1359
1360 * composite.c (FORWARD_CHAR): Check STOP after
1361 incrementing (POSITION).pos.
1362
13632008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
1364
1365 * process.c (Fsystem_process_attributes): Doc fix.
1366
13672008-09-06 Chong Yidong <cyd@stupidchicken.com>
1368
1369 * keyboard.c (Ftop_level): Doc fix.
1370
13712008-09-06 Eli Zaretskii <eliz@gnu.org>
1372
1373 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
1374 minibuffer, don't let lower part of menu invade the echo area.
1375
1376 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
1377 "char *q" to access menu text and advance through it. Revert the
1378 change that displayed ">" instead of ASCII character 0x10.
1379
13802008-09-05 Eli Zaretskii <eliz@gnu.org>
1381
1382 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
1383 toggle boxes and radio buttons on MS-DOS as well.
1384
13852008-09-05 Kenichi Handa <handa@m17n.org>
1386
1387 * composite.c (autocmp_chars): Check lookback count.
1388 (composition_compute_stop_pos): Set cmp_it->lookback.
1389 (composition_reseat_it): Check lookback count.
1390 (struct position_record): New struct.
1391 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
1392 (find_automatic_composition): New function.
1393 (composition_adjust_point): Use find_automatic_composition.
1394
1395 * dispextern.h (struct composition_it): New member lookback.
1396
13972008-09-02 Chong Yidong <cyd@stupidchicken.com>
1398
1399 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
1400 if moving by a single line.
1401
14022008-09-02 Andreas Schwab <schwab@suse.de>
1403
1404 * xterm.c (x_delete_display): Fix merge error.
1405
1406 * fileio.c (Fexpand_file_name): Remove unused variables.
1407
14082008-09-02 Eli Zaretskii <eliz@gnu.org>
1409
1410 * fileio.c (Fexpand_file_name): Copy argument `name' into local
1411 storage on all platforms, not just on DOS_NT.
1412
14132008-09-02 Jason Rumney <jasonr@gnu.org>
1414
b8ff72fa
SM
1415 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
1416 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
1417
14182008-09-01 Chong Yidong <cyd@stupidchicken.com>
1419
1420 * xfaces.c (Finternal_set_alternative_font_family_alist)
1421 (Finternal_set_alternative_font_registry_alist): Properly copy
1422 entire alist structure.
1423
14242008-09-01 Kenichi Handa <handa@m17n.org>
1425
1426 * ftfont.c (ftfont_spec_pattern): Don't create a charset of the
1427 representative chars of the script is a vector.
1428 (ftfont_list): Handle the case the representative chars of the
1429 script is a vector.
1430
1431 * character.c (syms_of_character): Docstring of
1432 script-representative-chars fixed.
1433
14342008-08-31 Eli Zaretskii <eliz@gnu.org>
1435
1436 * msdos.c (BUILD_CHAR_GLYPH): New macro.
1437 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
1438 the menu. Allocate larger buffer for `text', to account for
1439 possible ^C characters.
1440
14412008-08-31 Martin Rudalics <rudalics@gmx.at>
1442
1443 * xdisp.c (prepare_menu_bars): Don't call
1444 Vwindow_size_change_functions with arg Qt.
1445
14462008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1447
1448 * font.h (font_range):
1449 * fileio.c (report_file_error):
1450 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
1451
14522008-08-30 Glenn Morris <rgm@gnu.org>
1453
1454 * data.c (Fmake_variable_frame_local): Doc fix.
1455
1456 * frame.c (Fmodify_frame_parameters): Doc fix.
1457
14582008-08-30 Eli Zaretskii <eliz@gnu.org>
1459
1460 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
1461 needed by GetTokenInformation.
1462 (w32_system_process_attributes): Check return values of all system
1463 APIs.
1464
1465 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
1466 only when the state changes.
1467 (IT_update_begin, IT_update_end): Add termscript trace.
1468
1469 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
1470 clipboard is unavailable. Set dst to NULL if it doesn't point to
1471 malloc'ed data.
1472 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
1473 passing random values to xfree.
1474
1475 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 1476 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
1477
14782008-08-29 Jason Rumney <jasonr@gnu.org>
1479
1480 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
1481
14822008-08-29 Eli Zaretskii <eliz@gnu.org>
1483
1484 * composite.c (fill_gstring_body): Avoid compiler warnings.
1485
1486 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
1487 LGLYPH_SET_CODE to avoid compiler warnings.
1488
2ae37cf0 1489 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
1490
1491 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
1492
1493 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
1494 LGLYPH_SET_CODE.
1495
14962008-08-29 Kenichi Handa <handa@m17n.org>
1497
1498 * fileio.c (report_file_error): Don't downcase the first character
1499 of errstring if it is still unibyte.
1500
15012008-08-29 Kenichi Handa <handa@m17n.org>
1502
1503 These changes are to re-implement the automatic composition so
1504 that it doesn't use text properties.
1505
1506 * Makefile.in (ftfont.o): Depend on composite.h.
1507 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
1508
1509 * character.h (Vunicode_category_table): Extern it.
1510
1511 * character.c (Vunicode_category_table): New variable.
1512 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
1513
1514 * chartab.c (optimize_sub_char_table): Perform more greedy
1515 optimization.
1516
b8ff72fa
SM
1517 * composite.h (enum composition_method):
1518 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
1519 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
1520 (Vcomposition_function_table): Extern it.
1521 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
1522 (composition_gstring_put_cache, composition_gstring_from_id)
1523 (composition_gstring_p, composition_gstring_width)
1524 (composition_compute_stop_pos, composition_reseat_it)
1525 (composition_update_it, composition_adjust_point): Extern them.
1526 (Fcomposition_get_gstring): EXFUN it.
1527
1528 * composite.c: Include window.h, frame.h, dispextern.h font.h.
1529 (Vcomposition_function_table)
1530 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
1531 (gstring_hash_table, gstring_work, gstring_work_headers):
1532 New variables.
aac0c6e3
MR
1533 (gstring_lookup_cache, composition_gstring_put_cache)
1534 (composition_gstring_from_id, composition_gstring_p)
1535 (composition_gstring_width, fill_gstring_header)
1536 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
1537 (composition_reseat_it, composition_update_it)
b8ff72fa 1538 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
1539 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
1540 and gstring_work_headers. DEFVAR_LISP composition-function-table.
1541 Defsubr compostion_get_gstring.
1542
1543 * dispextern.h (struct glyph): New union u.cmp. Delete the member
1544 cmp_id.
1545 (struct glyph_string): Delete the member gidx. New members
1546 cmp_id, cmp_from, and cmp_to.
1547 (enum it_method): Delete GET_FROM_COMPOSITION.
1548 (struct composition_it): New struct.
1549 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
1550 Delete c, len, cmp_id, cmp_len in u.comp.
1551
1552 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 1553 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 1554 (enum lglyph_indices): Likewise.
b8ff72fa 1555 (font_range): Adjust extern.
aac0c6e3
MR
1556 (font_fill_lglyph_metrics): Extern it.
1557
1558 * font.c (QCf): New variable.
1559 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
1560 (font_prepare_composition): Delete this function.
1561 (font_range): Type and arguments changed.
1562 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
1563 (font_fill_lglyph_metrics): New function.
b8ff72fa 1564 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 1565 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
1566 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
1567 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
1568
1569 * fontset.h (font_for_char): Extern it.
1570
1571 * fontset.c (font_for_char): New function.
1572
1573 * ftfont.c: Include composite.h.
1574 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 1575 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
1576
1577 * indent.c: Include composite.h and dispextern.h.
1578 (check_composition): Delete this function.
1579 (scan_for_column): Handle composition by
1580 composition_compute_stop_pos, composition_reseat_it, and
1581 composition_update_it.
1582 (compute_motion): Likewise.
1583 (Fvertical_motion): Fix checking of composition.
1584
1585 * keyboard.c (adjust_point_for_property): Check composition by
1586 composition_adjust_point.
1587
b8ff72fa 1588 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
1589 struct glyph_string.
1590
b8ff72fa
SM
1591 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
1592 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
1593 struct glyph.
1594 (produce_composite_glyph): Likewise.
1595
b8ff72fa
SM
1596 * w32term.c (x_draw_composite_glyph_string_foreground):
1597 Adjust for the change of struct glyph_string.
aac0c6e3
MR
1598 (x_draw_glyph_string): Likewise.
1599
1600 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
1601 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
1602
1603 * xdisp.c: Include font.h.
1604 (it_props): Delete the entry for Qauto_composed.
1605 (init_iterator): Initialize it->cmp_it.id to -1.
1606 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 1607 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
1608 (handle_auto_composed_prop): Delete it.
1609 (handle_composition_prop): Handle only static composition.
1610 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
1611 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 1612 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
1613 (pop_it): Likewise.
1614 (get_next_element): Delete next_element_from_composition.
1615 (CHAR_COMPOSED_P): New macro.
1616 (get_next_display_element): For automatic composition, get a face
1617 from the font in the glyph-string.
1618 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 1619 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
1620 (next_element_from_string): Check if the character at the current
1621 position is composed by CHAR_COMPOSED_P.
1622 (next_element_from_buffer): Likewise.
b8ff72fa 1623 (next_element_from_composition): Adjust for the change of struct
aac0c6e3 1624 it. Update it->cmp_it.
b8ff72fa
SM
1625 (dump_glyph): Adjust for the change of struct glyph.
1626 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
1627 it and struct glyph. Don't handle automatic composition here.
1628 (fill_gstring_glyph_string): New function.
1629 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 1630 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
1631 (BUILD_GSTRING_GLYPH_STRING): New macro.
1632 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
1633 automatic composition.
b8ff72fa 1634 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 1635 struct glyph.
b8ff72fa 1636 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 1637
b8ff72fa 1638 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
1639 the change of struct glyph_string.
1640 (x_draw_glyph_string): Likewise.
1641
16422008-08-29 Glenn Morris <rgm@gnu.org>
1643
1644 * buffer.c (word-wrap): Doc fix.
1645 * xdisp.c (truncate-partial-width-windows): Doc fix.
1646 Increase default to 50.
1647
16482008-08-29 Chong Yidong <cyd@stupidchicken.com>
1649
1650 * xdisp.c (update_tool_bar_unwind): New function.
1651 (update_tool_bar): Temporarily set selected frame before building
1652 tool-bar items.
1653
16542008-08-28 Michael Albinus <michael.albinus@gmx.de>
1655
1656 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
1657 snprintf, respectively.
1658 (xd_append_arg): Convert strings with Fstring_make_unibyte.
1659
16602008-08-28 Chong Yidong <cyd@stupidchicken.com>
1661
1662 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
1663 LDFLAGS to GNUstep CC invocation.
1664
16652008-08-27 Chong Yidong <cyd@stupidchicken.com>
1666
1667 * indent.c (Fvertical_motion): Revert last change. Handle the
1668 general case where we are moving forward, and PT spans multiple
1669 screen lines.
1670
1671 * eval.c (find_handler_clause): Temporarily increase
1672 max-lisp-eval-depth while printing the backtrace buffer, to
1673 guarantee that help-mode code can run.
1674
16752008-08-27 Eli Zaretskii <eliz@gnu.org>
1676
1677 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
1678 colors under -rv.
1679 (IT_set_frame_parameters): Don't swap foreground and background
1680 colors if `(reverse . t)' is present in the frame properties.
1681 (internal_terminal_init): Call init_frame_faces only for the
1682 initial frame.
1683
16842008-08-27 Andreas Schwab <schwab@suse.de>
1685
1686 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
1687
16882008-08-27 Andreas Schwab <schwab@suse.de>
1689
1690 * search.c (search_buffer): Set char_base to zero only at the end.
1691
16922008-08-27 Kenichi Handa <handa@m17n.org>
1693
b8ff72fa 1694 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
1695
16962008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
1697
1698 * xterm.c (x_term_init): Temporarily hide the partially
1699 initialized terminal while calling vendor-specific-keysyms.
1700
17012008-08-26 Eli Zaretskii <eliz@gnu.org>
1702
1703 * msdos.c (internal_terminal_init): Most initializations done only
1704 once, especially initial_screen_colors[] and termscript open.
1705
17062008-08-26 Chong Yidong <cyd@stupidchicken.com>
1707
1708 * eval.c (Fcondition_case): Doc fix.
1709
1710 * widgetprv.h (EmacsFramePart): Change font member to the new font
1711 struct.
1712
1713 * widget.c: Include character.h and font.h for XSETFONT.
1714 (setup_frame_gcs): Compute X font id from font struct, just once.
1715
17162008-08-26 Eli Zaretskii <eliz@gnu.org>
1717
1718 * term.c (get_named_tty): Fix last change.
1719
17202008-08-26 Chong Yidong <cyd@stupidchicken.com>
1721
1722 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 1723 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
1724
17252008-08-25 Eli Zaretskii <eliz@gnu.org>
1726
1727 * frame.c (do_switch_frame): Mark previously displayed frame as
1728 obscured for FRAME_MSDOS_P frames as well.
1729
17302008-08-24 Eli Zaretskii <eliz@gnu.org>
1731
1732 * frame.c (make_terminal_frame): Initialize f->terminal,
1733 f->terminal->reference_count, and scroll bars on MS-DOS as well.
1734 Set the top frame to newly created frame.
1735 (Fmake_terminal_frame): Reuse the_only_display_info.
1736
1737 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
1738 estimating available memory.
1739
b97439ce 17402008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
1741
1742 * nsterm.m (ns_draw_window_cursor): Don't call
1743 NSDisableScreenUpdates and NSEnableScreenUpdates on
1744 non-NS_IMPL_COCOA systems.
1745
17462008-08-23 Andreas Schwab <schwab@suse.de>
1747
1748 * process.c (procfs_system_process_attributes): Fix use of
1749 uninitialized variables.
1750
17512008-08-23 Eli Zaretskii <eliz@gnu.org>
1752
1753 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
1754
1755 * dispnew.c (init_display): Remove MS-DOS specific conditions for
1756 calling tty-set-up-initial-frame-faces.
1757
b8ff72fa
SM
1758 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
1759 Allow MSDOS frames along with X frames.
aac0c6e3
MR
1760
1761 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
1762 addition to output_termcap.
1763
1764 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
1765
1766 * termchar.h (FRAME_TTY): Support output_msdos_raw.
1767 (struct tty_display_info) [MSDOS]: Add fields related to mouse
1768 highlight.
1769
1770 * process.c [!subprocesses]: Define QCname.
1771 (syms_of_process): Intern and staticpro it.
1772
1773 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
1774 Adjust for changes in encoding/decoding routines.
1775 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
1776 encode_coding and decode_coding.
1777
b8ff72fa 1778 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
1779
1780 * dosfns.c: Include frame.h before termhooks.h.
1781 (dos_cleanup): Use CURTTY ()->termscript instead of a global
1782 variable termscript.
1783
1784 * s/msdos.h (USER_FULL_NAME): Define.
1785 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
1786
1787 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
1788 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
1789 pw->pw_gecos.
1790
1791 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
1792 SELECTED_FRAME as additional (1st) argument.
1793 (tty_read_avail_input): Handle output_msdos_raw in
1794 addition to output_termcap.
1795
1796 * msdos.c: Include frame.h before termhooks.h.
1797 (mouse_on, mouse_off, mouse_moveto, mouse_init)
1798 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
1799 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
1800 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
1801 (IT_set_terminal_modes, IT_reset_terminal_modes)
1802 (IT_set_frame_parameters): Use tty->termscript instead of a global
1803 variable termscript.
1804 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
1805 global variable terminal_coding. Don't refer to
1806 Vnonascii_translation_table.
1807 (internal_terminal_init): Set Vwindow_system in current_kboard.
1808 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
1809 Announce date and time of session start, if termscript is open.
1810 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
1811 term.c:init_tty). Open termscript only of not already open.
1812 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
1813 here instead of dos_ttraw. Don't initialize display if this is an
1814 initial tty. Don't set FRAME_FONT.
1815 (Vwindow_system_version): Bump to 23.
1816 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
1817 is available, set up mouse_position_hook.
1818 (dos_ttraw, IT_set_terminal_modes): If called with initial
1819 terminal, do nothing.
1820 (IT_set_frame_parameters): Handle the Qtty_type frame
1821 parameter by calling internal_terminal_init.
1822 (dos_set_window_size, show_mouse_face)
1823 (clear_mouse_face, IT_note_mode_line_highlight)
1824 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
1825 (dos_rawgetc): Use tty_display_info instead of x_display_info.
1826 (initialize_msdos_display): New function.
1827 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
1828 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
1829 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
1830 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 1831 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
1832 (request_sigio, unrequest_sigio): Don't define, now defined on
1833 sysdep.c.
1834 (IT_write_glyphs): Rewrite to use encode_terminal_code.
1835
1836 * term.c [MSDOS]: Include msdos.h.
1837 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
1838 conditional to DOS_NT. Allow only one call to this function in a
1839 session. Don't allocate a new struct tty_display_info; instead,
1840 reuse the_only_display_info. Call get_tty_size to get screen
1841 dimensions. Call init_baud_rate to set bad_rate.
1842 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
1843 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 1844 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
1845 (get_tty_terminal, get_named_tty, Ftty_type)
1846 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
1847 output_termcap.
b8ff72fa
SM
1848 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
1849 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 1850 only when subprocesses are supported.
aac0c6e3
MR
1851
1852 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
1853 f->output_data.x.
1854 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
1855 terminal devices.
1856
1857 * msdos.h Remove definition of struct x_display_info and struct
1858 x_output.
1859 (FRAME_FONT): Use output_data.tty.
1860 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
1861 (struct x_display_info): Rename from display_info. Update all users in
1862 msdos.c.
aac0c6e3 1863 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 1864 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
1865 (dos_ttraw): Update prototype.
1866
1867 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
1868 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
1869
18702008-08-23 Jason Rumney <jasonr@gnu.org>
1871
1872 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
1873 (fn_TIFFSetDirectory): New library function used.
1874 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
1875 (tiff_load): Use :index to select among multiple images. Set count
1876 property when multiple images exist.
1877 (gif_format): Use :index, not :image.
1878
18792008-08-23 Chong Yidong <cyd@stupidchicken.com>
1880
1881 * xdisp.c (try_scrolling): Check INT_MAX instead of
1882 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
1883 to obtain INT_MAX.
1884
18852008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
1886
1887 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
1888
18892008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
1890
1891 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
1892 GNUstep library location.
1893
18942008-08-21 Chong Yidong <cyd@stupidchicken.com>
1895
1896 * xfaces.c (x_update_menu_appearance): Check validity of menu font
1897 before using it.
1898
1899 * puresize.h (BASE_PURESIZE): Increase to 1250000.
1900
19012008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1902
1903 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
1904 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
1905 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
1906 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
1907 (EmacsApp-cursor_blink_handler): Remove declaration.
1908 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
1909 match 01 Feb 2008 changes in xterm.c.
1910 (ns_read_socket): Add cast to avoid warning.
1911 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
1912 GNUstep.
1913
19142008-08-20 Chong Yidong <cyd@stupidchicken.com>
1915
1916 * xselect.c (x_get_foreign_selection): Return nil if desired
1917 selection could not be obtained, instead of signalling an error.
1918
19192008-08-20 David Reitter <david.reitter@gmail.com>
1920
1921 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
1922 * nsterm.m: Remove ns-specific code for cursor blinking.
1923 (ns_draw_window_cursor): Clear cursor properly rather than
1924 redrawing the area. Respect width of bar cursors.
1925 These changes enable the use of generic blink-cursor-mode and
1926 generic cursor types in NS and support smooth cursor movements (do
1927 not blink off after command).
1928 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
1929 Nextstep, too.
1930
19312008-08-19 Kenichi Handa <handa@m17n.org>
1932
1933 * font.c (Vfont_log_deferred): New variable.
1934 (font_add_log): Check Vfont_log_deferred.
1935 (font_deferred_log): New function.
1936
1937 * font.h (font_deferred_log): Extern it.
1938
1939 * fontset.c (reorder_font_vector): Use encoding charset of fonts
1940 for sorting.
1941 (face_for_char): Use deferred log.
1942
19432008-08-18 Kenichi Handa <handa@m17n.org>
1944
1945 * fontset.c (face_for_char): Add font log.
1946
1947 * font.c (font_add_log): Add the font properties :script, :lang,
1948 and :otf in the log.
1949
19502008-08-17 Chong Yidong <cyd@stupidchicken.com>
1951
1952 * xdisp.c: Remove dead code.
1953 (handle_invisible_prop, next_overlay_string): Defer call to
1954 setup_for_ellipsis.
1955 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
1956
19572008-08-15 Chong Yidong <cyd@stupidchicken.com>
1958
1959 * xfaces.c (lookup_derived_face): Properly handle possible zero
1960 return value of get_lface_attributes.
1961 (merge_faces): Don't tell lookup_derived_face to signal an error
1962 if face is not found.
1963
1964 * dired.c (Fdirectory_files): Doc fix.
1965
1966 * process.c (make_process): Initialize kill_without_query struct
1967 member.
1968
19692008-08-15 Eli Zaretskii <eliz@gnu.org>
1970
1971 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
1972 Alternative calculation of totphys for Visual Studio 6.
1973
1974 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
1975
1976 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
1977 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
1978 All users changed.
1979 (stat): Only root directory passed to GetDriveType. Allow RAM
1980 disk as well as local fixed disk when w32-get-true-file-attributes
1981 is set to `local'.
1982 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
1983 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
1984 (w32_cached_id, w32_add_to_cache): New functions.
1985 (get_name_and_id): Look account names in the cache before calling
1986 lookup_account_sid.
1987 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
1988 New initialization flags.
1989 (globals_of_w32): Initialize them to zero.
1990 (w32_system_process_attributes): Use w32_cached_id and
1991 w32_add_to_cache.
1992
19932008-08-14 Lawrence Mitchell <wence@gmx.li>
1994
1995 * lread.c (Fread_char, Fread_char_exclusive): If no character
1996 event is read before timeout is reached, return nil, rather than
1997 converting to a number.
1998
19992008-08-14 Chong Yidong <cyd@stupidchicken.com>
2000
2001 * fns.c (use_dialog_box): Doc fix.
2002
2003 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
2004 on OS X.
2005
20062008-08-13 Chong Yidong <cyd@stupidchicken.com>
2007
2008 * frame.c (Qns_parse_geometry): New var.
2009 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
2010
20112008-08-11 Chong Yidong <cyd@stupidchicken.com>
2012
2013 * xdisp.c (x_produce_glyphs): Handle the case when font has no
2014 space character in calculating tabs.
2015
20162008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
2017
2018 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
2019
20202008-08-10 Glenn Morris <rgm@gnu.org>
2021
2022 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
2023 silence gcc "limited range of data type" warnings in some
2024 make_fixnum_or_float calls.
2025
20262008-08-09 Eli Zaretskii <eliz@gnu.org>
2027
2028 * w32.c (w32_system_process_attributes): If the process does not
2029 exist, return nil.
2030
2031 * w32.c: Include thelp32.h, psapi.h and coding.h.
2032 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
2033 declarations.
2034 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
2035 (Process32Next_Proc): New typedefs.
2036 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
2037 (g_b_init_process32_next, g_b_init_open_thread_token)
2038 (g_b_init_impersonate_self, g_b_init_revert_to_self)
2039 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
2040 (g_b_init_get_process_working_set_size)
2041 (g_b_init_global_memory_status_ex): New static variables.
2042 (globals_of_w32): Initialize them.
2043 (create_toolhelp32_snapshot, process32_first, process32_next)
2044 (open_thread_token, impersonate_self, revert_to_self)
2045 (get_process_memory_info, get_process_working_set_size)
2046 (global_memory_status, global_memory_status_ex): New wrapper
2047 functions.
2048 (w32_list_system_processes, w32_system_process_attributes)
2049 (enable_privilege, restore_privilege, ltime, process_times):
2050 New functions.
2051 (convert_time_raw): New function.
2052 (convert_time): Remove conversion of FILETIME into time in 100
2053 nsec units, call convert_time_raw instead.
2054
2055 * process.h (w32_list_system_processes, w32_system_process_attributes):
2056 Add prototypes.
2057 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
2058 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
2059 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
2060 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
2061
2062 * process.c (Fsystem_process_attributes): Doc fix.
2063
20642008-08-08 Chong Yidong <cyd@stupidchicken.com>
2065
2066 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
2067 a continued multi-char glyph; if so, advance to the actual glyph.
2068
20692008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2070
2071 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
2072
2073 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
2074 (.m.o): Use it.
2075 * config.in: Regenerate.
2076
20772008-08-07 Chong Yidong <cyd@stupidchicken.com>
2078
2079 * xdisp.c (redisplay_window): Revert last change.
2080 (try_window): Check bottom scroll margin too.
2081
20822008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2083
2084 * config.in: Regenerate.
2085
2086 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
2087 -list-load-path-shadows'.
2088 (nsgui.h): Reduce number of things depending on it.
2089
20902008-08-06 Chong Yidong <cyd@stupidchicken.com>
2091
2092 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
2093 instead of window-end which does the wrong thing at eob.
2094 (try_cursor_movement): Minor optimization.
2095 (redisplay_window): If scroll margin is defined, don't assume
2096 window doesn't need scrolling.
2097
20982008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2099
2100 * config.in: Regenerate.
2101
2102 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
2103 (mostlyclean): Don't delete *.d under NS.
2104
2105 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
2106
21072008-08-06 Kenichi Handa <handa@m17n.org>
2108
2109 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
2110
21112008-08-06 Andreas Schwab <schwab@suse.de>
2112
2113 * config.in: Regenerate.
2114
21152008-08-05 Chong Yidong <cyd@stupidchicken.com>
2116
2117 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
2118 forcing a window start.
2119
2120 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
2121 (auto_save_1): Update modtime when auto-save-list-file-name is on.
2122
21232008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2124
2125 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
2126 argument.
2127
21282008-08-05 Juanma Barranquero <lekktu@gmail.com>
2129
2130 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
2131 <scroll-down-aggressively, before-change-functions>:
2132 <after-change-functions>: Reflow docstrings.
2133
21342008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2135 Ken Raeburn <raeburn@gnu.org>
2136
2137 Dock menu customization, based on a patch by Ken Raeburn, plus some
2138 other fixes.
2139 * nsmenu.m (dockMenu): New variable.
2140 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
2141
2142 * nsterm.h (dockMenu): Declare.
2143
2144 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
2145 (ns_term_init): Initialize dockMenu.
2146 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
2147 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
2148 left.
2149
2150 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
2151
21522008-08-04 Chong Yidong <cyd@stupidchicken.com>
2153
2154 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
2155
2156 * config.in: Regenerate.
2157
21582008-08-04 Seiji Zenitani <zenitani@mac.com>
2159
2160 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
2161
21622008-08-04 Chong Yidong <cyd@stupidchicken.com>
2163
2164 * nsterm.h (find_and_call_menu_selection): Fix prototype.
2165
21662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2167
2168 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
2169
2170 * keyboard.h: Comment an #endif.
2171
2172 * lisp.h (have_menus_p): Adjust comment.
2173
2174 * menu.c (find_and_return_menu_selection): Fix comparison with
2175 client_data.
2176
2177 * nsmenu.m (popup_activated_flag): New variable.
2178 (popup_activated): New function.
2179 (menu-or-popup-active-p): New exported lisp definition.
2180 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
2181 when popup done.
2182 (ns_popup_dialog): Set popup_activated_flag.
2183
2184 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
2185 version for GNUstep (handled by conditional typedef in nsterm.m).
2186 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
2187 in rgb.txt).
2188
2189 * process.c (init_process): Use DARWIN_OS, not DARWIN.
2190
2191 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
2192
2193 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
2194
2195 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
2196 shortcircuit if popup_activated like GTK and X toolkit.
2197
2198 * m/inter386.h: Change DARWIN to DARWIN_OS.
2199
2200 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
2201 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
2202 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
2203 comment on NO_SOCK_SIGIO.
2204
22052008-08-03 Chong Yidong <cyd@stupidchicken.com>
2206
2207 * nsterm.m (windowDidResize): Remove stopModal call.
2208
22092008-08-03 Andreas Schwab <schwab@suse.de>
2210
2211 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
2212 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
2213
22142008-08-02 Chong Yidong <cyd@stupidchicken.com>
2215
2216 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
2217 Don't use uninitialized pointer variable when using getrlimit.
2218
22192008-08-02 Jason Rumney <jasonr@gnu.org>
2220
2221 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
2222
22232008-08-02 Eli Zaretskii <eliz@gnu.org>
2224
2225 * alloc.c (NSTATICS): Bump to 0x640.
2226
2227 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
2228
2229 * lisp.h: Add prototype for directory_files_internal.
2230
2231 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
2232 New functions.
2233 (syms_of_process): Defsubr them. Add initializations for various
2234 Q* symbols used in procfs_system_process_attributes.
2235 (procfs_list_system_processes, procfs_system_process_attributes)
2236 [HAVE_PROCFS]: New functions.
2237 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
2238 (procfs_get_total_memory): New functions.
2239
22402008-08-01 Juanma Barranquero <lekktu@gmail.com>
2241
2242 * xfaces.c (Fx_load_color_file): Fix previous change;
2243 it is #ifdef WINDOWSNT, not WINDOWS_NT.
2244
22452008-08-01 Michael Albinus <michael.albinus@gmx.de>
2246
2247 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
2248
22492008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2250
2251 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
2252
22532008-08-01 Chong Yidong <cyd@stupidchicken.com>
2254
2255 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
2256
2257 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
2258 define NSApplicationDelegateReplySuccess.
2259 (EmacsView -converstationIdentifier): Use long instead of
2260 NSInteger for GNUstep, since it doesn't have NSInteger.
2261
2262 * xmenu.c: Revert last change.
2263
2264 * keyboard.h: Fix last change.
2265
22662008-08-01 Juanma Barranquero <lekktu@gmail.com>
2267
2268 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
2269 on Windows.
2270
22712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2272
2273 Warning clearing and clean-up in NS port.
2274 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
2275 Add prototypes.
2276 * nsgui.h (FACE_DEFAULT): Remove, unused.
2277 (XGCValues): Change colors to unsigned long.
2278 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
2279 nsterm.m.
2280 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
2281 (ns_list_fonts): Remove, unused.
2282 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
2283 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
2284 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
2285 (nsfont_draw): Compare face colors to 0, not nil.
2286 * nsmenu.m (struct widget_value): Drop unneeded declaration.
2287 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
2288 (-addSubmenuWithTitle:): Use NSMenuItem class.
2289 (ns_popup_menu): Use NO, not NULL, for enabled setting.
2290 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
2291 (ns_clip_to_row): Make gc arg a BOOL.
2292 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
2293 ns_clip_to_row() call.
2294 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
2295 used). Cast FRAME_FONT assignments.
2296 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
2297 (ns_string_to_lispmod): Change arg to const char.
2298 (ns_term_init): Use NSMenuItem class.
2299 (EmacsApp -openFile:): Move to different section of file.
2300 (EmacsApp -application:openFiles:): Don't return a value, call
2301 -replyToOpenOrPrint:.
2302 (EmacsView -keyDown:): Fix up cast.
2303 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
2304 (EmacsView -menuDown:): Cast tag in call to
2305 find_and_call_menu_selection().
2306 (ns_list_fonts): Remove, unused.
2307 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
2308 (ns_fontname_to_xlfd): Make static.
2309 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
2310 Remove prototypes (now in keyboard.h).
2311 (next_menubar_widget_id): Remove, unused.
2312 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
2313 Remove prototypes (now in keyboard.h).
2314 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
2315
23162008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
2317
2318 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
2319 (floatfns.o): Depend on syssignal.h.
2320 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
2321
2322 * systty.h: Fix previous change that removed BSD_TERMIOS.
2323 Add comments to #ifdefs.
2324
23252008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2326
2327 * w32fns.c (w32-load-color-file): Remove.
2328 (x-open-connection): Use renamed Fx_load_color_file.
2329 * xfaces.c (x-load-color-file): Add.
2330 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
2331 Emacs.clr.
2332 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
2333
23342008-07-31 Michael Albinus <michael.albinus@gmx.de>
2335
2336 * dbusbind.c (Fdbus_call_method_asynchronously)
2337 (Fdbus_method_error_internal): New defuns.
2338 (xd_read_message): Handle also reply messages.
2339 (Vdbus_registered_functions_table): Extend docstring.
2340
23412008-07-31 Juanma Barranquero <lekktu@gmail.com>
2342
2343 * keyboard.c (gobble_input): Fix previous change.
2344
23452008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2346
2347 * bitmaps/README:
2348 * xfns.c:
2349 * termcap.c:
2350 * term.c:
2351 * syswait.h:
2352 * systty.h:
2353 * systime.h:
2354 * syssignal.h:
2355 * sysdep.c:
2356 * process.h:
2357 * process.c:
2358 * print.c:
2359 * ndir.h:
2360 * lread.c:
2361 * keyboard.c:
2362 * getpagesize.h:
2363 * floatfns.c:
2364 * fileio.c:
2365 * emacs.c:
2366 * doc.c:
2367 * dispnew.c:
2368 * dired.c:
2369 * data.c:
2370 * callproc.c:
2371 * buffer.c:
2372 * README:
2373 * Makefile.in:
2374 * s/template.h:
2375 * s/msdos.h:
2376 * m/vax.h: Remove VMS support.
2377 * s/vms.h:
2378 * vlimit.h:
2379 * uaf.h:
2380 * temacs.opt:
2381 * param.h:
2382 * ioctl.h: Remove file.
2383
23842008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2385
2386 * s/ms-w32.h (MULTI_KBOARD): Remove.
2387 * xterm.c:
2388 * xselect.c:
2389 * xfns.c:
2390 * window.c:
2391 * w32term.c:
2392 * w32fns.c:
2393 * terminal.c:
2394 * termhooks.h:
2395 * term.c:
2396 * sysdep.c:
2397 * keyboard.h:
2398 * keyboard.c:
2399 * frame.h:
2400 * frame.c:
2401 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
2402 * config.in: Regenerate.
2403
24042008-07-30 Jason Rumney <jasonr@gnu.org>
2405
2406 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
2407
2408 * w32font.c (w32font_encode_char): Leave as unicode if in range.
2409 (w32font_open_internal): Get unicode version of textmetrics.
2410 Don't enable or disable glyph indices here.
2411 (w32font_open): Disable use of glyph indices.
2412
2413 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
2414
24152008-07-30 Chong Yidong <cyd@stupidchicken.com>
2416
2417 * minibuf.c (Vread_buffer_function): Doc fix.
2418
24192008-07-30 John Paul Wallington <jpw@pobox.com>
2420
2421 * minibuf.c (read_buffer_completion_ignore_case): New var.
2422 (Fread_buffer): Use it.
2423
24242008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2425
2426 * systty.h (sensemode): Remove empty #if. Remove reference to
2427 BSD_TERMIOS, unused.
2428
2429 * sysdep.c: Remove reference to DGUX.
2430 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
2431
2432 * config.in: Regenerate.
2433
24342008-07-30 Jason Rumney <jasonr@gnu.org>
2435
2436 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
2437
24382008-07-29 Jason Rumney <jasonr@gnu.org>
2439
2440 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
2441 is populated.
2442 (uniscribe_encode_char): Always use uniscribe.
2443 Avoid using context if cache is populated.
2444
24452008-07-29 Jan Djärv <jan.h.d@swipnet.se>
2446
2447 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
2448 open menu.
2449
2450 * gtkutil.c (menu_nav_ended): Remove.
2451 (create_menus): Remove signal connect for menu_nav_ended.
2452
24532008-07-28 Chong Yidong <cyd@stupidchicken.com>
2454
2455 * xdisp.c (redisplay_window): Check return value of
2456 compute_window_start_on_continuation_line before forcing a window
2457 start.
2458
24592008-07-28 Jason Rumney <jasonr@gnu.org>
2460
2461 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
2462
2463 * w32term.c (w32_enable_unicode_output, cleartype_active):
2464 Remove obsolete display options.
2465 (x_draw_glyph_string_background): Don't use old cleartype_active
2466 workaround.
2467 (w32_initialize): Remove cleartype_active initialization.
2468 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
2469
24702008-07-28 Andreas Schwab <schwab@suse.de>
2471
2472 * lisp.h (init_weak_hash_tables, syms_of_font)
2473 (xd_read_queued_messages, syms_of_dbusbind): Declare.
2474 (remove_hash_entry): Don't declare.
2475 * eval.c (maybe_call_debugger): Make static and move before use.
2476 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
2477 * xdisp.c: Include "gtkutil.h" if USE_GTK.
2478 * xterm.h (x_set_frame_alpha): Declare.
2479
24802008-07-28 Jan Djärv <jan.h.d@swipnet.se>
2481
2482 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
2483 (create_menus): Connect selection-done to menu_nav_ended.
2484
24852008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2486
2487 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
2488 Set Vx_resource_name to a fallback. Replace read of 'buffered'
2489 parameter with read of 'alpha' one.
2490 (Qns_frame_parameter): Remove.
2491 * nsselection.m (selection-coding-system)
2492 (next-selection-coding-system, Vselection_coding_system)
2493 (Vnext_selection_coding_system): Drop.
2494
24952008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2496
2497 * nsfns.m (do-applescript, do_applescript): Rename to
2498 ns-do-applescript, ns_do_applescript, and move within file.
2499
25002008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2501
2502 Remove support for Mac Carbon.
2503 * mactoolbox.c:
2504 * macterm.h:
2505 * macterm.c:
2506 * macselect.c:
2507 * macmenu.c:
2508 * macgui.h:
2509 * macfns.c:
2510 * mac.c: Remove file.
2511 * s/darwin.h:
2512 * m/intel386.h:
2513 * xfaces.c:
2514 * xdisp.c:
2515 * window.c:
2516 * tparam.c:
2517 * termhooks.h:
2518 * termcap.c:
2519 * term.c:
2520 * syssignal.h:
2521 * sysselect.h:
2522 * sysdep.c:
2523 * process.c:
2524 * lread.c:
2525 * lisp.h:
2526 * keyboard.c:
2527 * image.c:
2528 * fringe.c:
2529 * frame.h:
2530 * frame.c:
2531 * fontset.c:
2532 * font.h:
2533 * font.c:
2534 * fns.c:
2535 * fileio.c:
2536 * emacs.c:
2537 * dispnew.c:
2538 * dispextern.h:
2539 * config.in:
2540 * atimer.c:
2ae37cf0 2541 * Makefile.in: Remove code for Carbon.
aac0c6e3
MR
2542
25432008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2544
2545 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
2546
25472008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2548
2549 * macterm.h (kCGBitmapByteOrder32Host): New define for
2550 non-universal SDKs.
2551
2552 * image.c (mac_create_cg_image_from_image, image_load_image_io)
2553 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
2554
2555 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
2556 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
2557
25582008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
2559
2560 * w32inevt.c: Include dispextern.h.
2561
25622008-07-26 Andreas Schwab <schwab@suse.de>
2563
2564 * print.c (print_object): Fix off-by-one in last change.
2565
25662008-07-25 Juanma Barranquero <lekktu@gmail.com>
2567
2568 * term.c (syms_of_term): Don't initialize default_orig_pair,
2569 default_set_foreground and default_set_background on Windows.
2570
25712008-07-25 Jason Rumney <jasonr@gnu.org>
2572
2573 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
2574 ScriptItemize. Clean up return value checking. Remove unused
2575 variables.
2576 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
2577 shaping engine.
2578
2579 * w32font.c (w32font_has_char): Handle the case where we can't
2580 determine the script for a character.
2581
25822008-07-25 Chong Yidong <cyd@stupidchicken.com>
2583
2584 * term.c (syms_of_term): Initialize default_orig_pair,
2585 default_set_foreground, and default_set_background.
2586
2587 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
2588 clash (bug#86).
2589 (getloadavg): Callers changed.
2590
2591 * image.c (svg_load_image): Fix last change.
2592 (svg_load_image): Use rsvg_handle_get_dimensions to check that
2593 image size is valid. Use g_object_unref instead of deprecated
2594 rsvg_handle_free to free rsvg handle.
2595 (x_from_xcolors): Don't initialize pixmap (silence compiler).
2596
25972008-07-25 Jason Rumney <jasonr@gnu.org>
2598
2599 * w32font.c (w32font_encode_char): Encode characters outside BMP as
2600 surrogates before looking up glyph index.
2601 (w32font_text_extents): Encode as surrogates if falling back to
2602 functions that need UTF-16 wide chars.
2603
2604 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
2605 BMP as surrogates before looking up glyph index.
2606
26072008-07-25 Chong Yidong <cyd@stupidchicken.com>
2608
2609 * image.c (svg_load_image): Check for failure in return value of
2610 rsvg_handle_get_pixbuf. Free rsvg handle when done.
2611
26122008-07-25 Jason Rumney <jasonr@gnu.org>
2613
2614 * w32font.c (Fx_select_font): Reverse sense of second arg.
2615
26162008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
2617
2618 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
2619 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
2620
2621 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
2622 (PURESIZE): Use it.
2623
26242008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2625
2626 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
2627 * m/alpha.h (TEXT_END):
2628 * m/ibmrs6000.h (TEXT_END):
2629 * m/macppc.h (TEXT_END):
2630 * s/darwin.h (TEXT_END):
2631 * s/msdos.h (TEXT_END): Remove, unused.
2632 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
2633 * s/cygwin.h: Remove comment.
2634
2635 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
2636 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
2637 * m/intel386.h (DOT_GLOBAL_START):
2638 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
2639 (USG): Remove, file not used on USG platforms.
2640
2641 * Makefile.in (HAVE_X11): Remove empty #else.
2642
26432008-07-24 Andreas Schwab <schwab@suse.de>
2644
2645 * fileio.c (Finsert_file_contents): Properly adjust undo list
2646 after format conversion.
2647
26482008-07-24 Jan Djärv <jan.h.d@swipnet.se>
2649
2650 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
2651 (menu_nav_ended): Remove.
2652 (create_menus): Remove signal connect for menu_nav_ended.
2653 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
2654 create_menus.
2655 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
2656
26572008-07-23 Jason Rumney <jasonr@gnu.org>
2658
2659 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
2660 with opened font.
2661 (w32font_open): Set font type to gdi.
2662
2663 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
2664
26652008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
2666
2667 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
2668 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
2669 defines it.
2670 * unexec.c (ADDR_CORRECT): Define unconditionally.
2671
2672 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
2673
2674 * unexec.c: Remove code depending on !COFF and USG, the file is
2675 not used for such systems.
2676
2677 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
2678 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
2679 (LD_SWITCH_SYSTEM_1): Remove, update users.
2680
2681 * s/darwin.h (DATA_END):
2682 * m/intel386.h (DATA_END):
2683 * m/ibmrs6000.h (DATA_END):
2684 * m/alpha.h (DATA_END): Remove, unused.
2685
2686 * config.in: Regenerate.
2687 * s/ms-w32.h (subprocesses): Define unconditionally.
2688 * s/template.h (subprocesses): Update comment.
2689 * s/vms.h (subprocesses):
2690 * s/usg5-4.h (subprocesses):
2691 * s/hpux10-20.h (subprocesses):
2692 * s/gnu-linux.h (subprocesses):
2693 * s/cygwin.h (subprocesses):
2694 * s/bsd-common.h (subprocesses):
2695 * s/aix4-2.h (subprocesses):
2696 * s/darwin.h (subprocesses): Do not define, defined by default now.
2697
2698 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
2699 Remove all references.
2700 (temacs): Add GNUstep specific ld flags.
2701
2702 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
2703 similarly to what X does.
2704
27052008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2706
2707 * nsfns.m (x-list-fonts): Remove.
2708 (syms_of_nsfns): Drop the x-list-fonts declaration.
2709 * nsterm.m: Get rid of remaining "//" comments.
2710
27112008-07-22 Chong Yidong <cyd@stupidchicken.com>
2712
2713 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
2714
2715 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
2716 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
2717 (Fns_own_selection_internal, Fx_disown_selection_internal)
2718 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
2719
2720 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
2721 ... */' style of docstrings. Doc fixes.
2722
27232008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
2724
2725 * terminfo.c (UP, BC, PC): Undo previous change.
2726
2727 * nsfns.m: Rename ns prefixed functions/variables to the
2728 corresponding x versions. Update references.
2729
27302008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
2731
2732 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
2733
27342008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
2735
2736 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
2737 Remove forwarding functions.
2738 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
2739 non-static.
2740 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
2741 non-static.
2742 (ns_frame_parm_handlers): Use the new names.
2743 (syms_of_nsfns): Move to the end of file.
2744
2745 * nsterm.m (syms_of_nsterm): Move to the end of file.
2746
2747 * dispnew.c (init_display): Remove code for X10.
2748
27492008-07-22 Jason Rumney <jasonr@gnu.org>
2750
2751 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
2752 bare drive.
2753
27542008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2755
2756 * nsterm.m (syms_of_nsterm): Remove debugging println.
2757
27582008-07-22 David Reitter <david.reitter@gmail.com>
2759
2760 * nsfns.m (do_applescript, F_do_applescript): NS version of the
2761 Carbon implementation of the same functionality: execute arbitrary
2762 AppleScript code.
2763
27642008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2765
2766 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
2767 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
2768 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2769 (Fx_display_mm_height, Fx_display_mm_width)
2770 (Fx_display_backing_store, Fx_display_visual_class)
2771 (Fx_display_save_under, Fx_open_connection)
2772 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
2773 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
2774 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
2775 (Fx_display_pixel_width, Fx_display_pixel_height)
2776 (Fx_display_usable_bounds, Fx_display_planes)
2777 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
2778 ... */' style of docstrings.
2779
27802008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
2781
2782 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
2783 on this platform.
2784 (mips):
2785 * m/iris4d.h (mips): Do not define.
2786 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
2787
2788 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
2789
2790 * image.c:
2791 * nsfns.m:
2792 * nsselect.m:
2793 * nsterm.h:
2794 * nsterm.m: Rename ns prefixed functions/variables to the
2795 corresponding x versions. Update references.
2796
2797 * m/ibms390x.h (NO_REMAP): Do not undefine.
2798
2799 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
2800
28012008-07-21 Chong Yidong <cyd@stupidchicken.com>
2802
2803 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
2804 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
2805 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
2806 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
2807 (Fns_display_mm_height, Fns_display_mm_width)
2808 (Fns_display_backing_store, Fns_display_visual_class)
2809 (Fns_display_save_under, Fns_open_connection)
2810 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
2811 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
2812 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
2813 (Fns_display_pixel_width, Fns_display_pixel_height)
2814 (Fns_display_usable_bounds, Fx_display_planes)
2815 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
2816
28172008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
2818
2819 * print.c (print_object): Check print_depth before searching for
2820 circularities.
2821
28222008-07-21 Michael Albinus <michael.albinus@gmx.de>
2823
2824 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
2825 only sprintf.
2826
28272008-07-21 Kenichi Handa <handa@m17n.org>
2828
2829 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
2830
28312008-07-20 Andreas Schwab <schwab@suse.de>
2832
2833 * syntax.c (find_start_pos, find_start_value)
2834 (find_start_value_byte, find_start_begv, find_defun_start)
2835 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
2836
28372008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2838
2839 * s/sol2-3.h: Insert contents of s/sol2.h.
2840 (LD_SWITCH_SYSTEM): Remove redundant definition.
2841 * s/sol2.h: Remove, unused.
2842
28432008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2844
2845 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
2846
28472008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2848
2849 * Makefile.in (ns_appdir): Fix typo in find command.
2850
28512008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
2852
2853 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
2854
2855 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
2856 added not supported anymore.
2857
2858 * s/usg5-4-2.h (LIBS_SYSTEM):
2859 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
2860
2861 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
2862 * s/lynxos.h (GETPGRP_NO_ARG):
2863 * s/hpux10-20.h (NO_SIOCTL_H):
2864 * s/gnu.h (GETPGRP_NO_ARG):
2865 * s/gnu-linux.h (NO_SIOCTL_H):
2866 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
2867 * s/cygwin.h (GETPGRP_NO_ARG):
2868 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
2869 (C_DEBUG_SWITCH): Remove duplicate definition.
2870
2871 * m/ibms390.h: Remove boilerplate comments.
2872
2873 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
2874
2875 * process.c (HAVE_SERIAL): Consolidate ifdefs.
2876 (wait_reading_process_output): Remove code for SunOS, platform not
2877 supported anymore. Use SOLARIS2 instead of sun.
2878
28792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2880
2881 * font.c (font_open_by_name): Under NS, default lface height to zero.
2882 (font_open_for_lface): Under NS, set size based on frame fontsize.
2883 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
2884 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
2885
28862008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2887
2888 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
2889 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
2890 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
2891 YES/NO.
2892 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
2893 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
2894 * Makefile.in (clean): Clear out build destination dir.
2895
28962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2897
2898 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
2899 xterm, xselect.
2900 * lisp.h: Remove declaration of hash_remove.
2901 * nsgui.h: Remove redefinitions of hash_remove.
2902 * fns.c (hash_remove): Rename to hash_remove_from_table.
2903
29042008-07-19 Seiji Zenitani <zenitani@mac.com>
2905
2906 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
2907 strdup() the family UTF8String before modifying it.
2908
29092008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2910
2911 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
2912 NS_FACE_BACKGROUND with 0 instead of nil.
2913 * nsfont.m (nsfont_draw): Same.
2914
29152008-07-19 Chong Yidong <cyd@stupidchicken.com>
2916
2917 * nsfns.m (ns_set_background_color): Fix crash.
2918
29192008-07-18 Chong Yidong <cyd@stupidchicken.com>
2920
2921 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
2922
29232008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2924
2925 * puresize.h (BASE_PURESIZE): Increase to 1240000.
2926
29272008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2928
2929 * gtkutil.c: Include <config.h> instead of "config.h".
2930
2931 * lisp.h (Foverlay_buffer): Add EXFUN.
2932
2933 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
2934 child process to complete child_setup. Undo 2005-09-21 change.
2935
2936 * s/darwin.h: Mention setsid after vfork.
2937
29382008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2939
2940 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
2941 Depend on macgui.h.
2942
2943 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
2944 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
2945
2946 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
2947 and f19.
2948 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
2949
2950 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
2951 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
2952 Remove enumerators.
2953
2954 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
2955 Check if FACE_FROM_ID returns NULL.
2956
29572008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
2958
2959 * w32inevt.c (change_frame_size): Remove extern declaration.
2960 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
2961 change_frame_size.
2962
29632008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2964
2965 * getloadavg.c: Revert last change (2008-07-15).
2966
29672008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
2968
2969 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
2970 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
2971 from configure.
2972
29732008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
2974
2975 * s/sol2.h:
2976 * s/sol2-4.h: Reorganize conditionals.
2977
2978 * ecrt0.c: Remove code depending on m68000, not used anymore.
2979
2980 * fns.c (hash_remove): Make static.
2981 * lisp.h (hash_remove): Don't prototype.
2982
2983 * m/ibmrs6000.h:
2984 * m/ibms390x.h:
2985 * m/macppc.h: Remove boilerplate comments.
2986
2987 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
2988 Solaris, which does not need them.
2989
2990 * m/vax.h: Remove comments about unsupported systems.
2991
2992 * s/darwin.h: Reorganize ifdefs.
2993
29942008-07-17 Andreas Schwab <schwab@suse.de>
2995
2996 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
2997
29982008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
2999
3000 Use SDATA. Follow coding convention of placing operators at
3001 beginning of next line rather than end of previous line, and placing
3002 spaces around infix operators.
3003
3004 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
3005 in case it was defined already.
3006 USE @GNUSTEP_MAKEFILES@ rather than envvars.
3007 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
3008 ns_default.
3009 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
3010 Lisp_Objects.
3011 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
3012 (ns_defined_color, ns_color_to_lisp): Declare.
3013 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
3014 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
3015 it's accepted even with USE_LISP_UNION_TYPE.
3016 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
3017 (update_frame_tool_bar): Remove apparently obsolete tests for
3018 non-integerness of f->tool_bar_lines.
3019 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
3020 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
3021 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
3022 (nsfont_open): Don't confuse NULL for Qnil.
3023 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
3024 * menu.h (find_and_call_menu_selection):
3025 * menu.c (find_and_call_menu_selection): Use just int for vector size.
3026 (find_and_return_menu_selection): Always return something.
3027 * frame.h: Include dispextern.h for Display_Info.
3028 (display_x_get_resource): Declare.
3029
30302008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
3031
3032 * syntax.c: Remove stdio.h include accidentally introduced in
3033 Emacs.app commit.
3034 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
3035 NS_IMPL_COCOA.
3036 * keyboard.c (handle_async_input, input_available_signal): Remove
3037 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
3038
30392008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
3040
3041 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
3042 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
3043 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
3044 Use SDATA.
3045
3046 * keymap.c: Remove all NS-specific code.
3047 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
3048 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
3049 where_is_preferred_modifier, return a different value depending on how
3050 preferred is the binding.
3051 (where_is_internal): Adjust accordingly.
3052 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
3053 Adjust to new preferred_sequence_p.
3054 (syms_of_keymap): Declare `where-is-preferred-modifier'.
3055 * keyboard.c (parse_solitary_modifier): Not static any more.
3056 * keyboard.h (parse_solitary_modifier): Declare.
3057
30582008-07-16 Andreas Schwab <schwab@suse.de>
3059
3060 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
3061 of easymenu.
3062
30632008-07-16 Chong Yidong <cyd@stupidchicken.com>
3064
3065 * xdisp.c (move_it_in_display_line): Account for word wrap, so
3066 that we don't move off the line.
3067
30682008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
3069
3070 * keyboard.c (Qsuper): Remove.
3071 (parse_menu_item): Don't call where_is_internal specially for NS.
3072
30732008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
3074
3075 * s/gnu-linux.h: Remove boilerplate comments.
3076
3077 * m/alpha.h (__ELF__): Consolidate conditions.
3078
3079 * m/m68k.h (linux): Use GNU_LINUX instead.
3080 Remove boilerplate comments.
3081
3082 * m/intel386.h: Undo refactoring from previous change.
3083 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
3084 too, remove dead code.
3085 (linux): Use GNU_LINUX instead.
3086
30872008-07-16 Jason Rumney <jasonr@gnu.org>
3088
3089 * w32gui.h: Repeat 26 June changes lost by last change.
3090
30912008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
3092
3093 * systty.h: Remove code for Aix on 386, unsupported platform.
3094
3095 * s/ms-w32.h: Remove boilerplate comments.
3096 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
3097
3098 * s/gnu-linux.h (TERM): Remove support.
3099 (HAVE_SYSVIPC): Remove, unused.
3100 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
3101 for this system.
3102
3103 * process.c: Remove support for IRIS, unused.
3104 Remove support for TERM, not relevant anymore.
3105
3106 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
3107 used with the definition.
3108
3109 * s/aix4-2.h (static): Do not undef.
3110
3111 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
3112 only used on Aix.
3113 (HAVE_SYSVIPC): Remove, unused.
3114
3115 * m/hp800.h (CANNOT_DUMP): Do not undef.
3116
3117 * m/alpha.h: Fix comment.
3118
3119 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
3120 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
3121 used by this configuration.
3122 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
3123 * unexec.c: Remove code depending on HPUX and
3124 USG_SHARED_LIBRARIES, not used with this file. Remove code
3125 depending on IRIS, unused. Remove if 0-ed code.
3126
3127 * s/template.h: Remove comments about static.
3128
3129 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
3130 Remove if 0-ed code.
3131 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
3132 were the same as the default.
3133 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
3134 Remove boilerplate comments.
3135 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
3136 (HAVE_SYSVIPC): Remove, unused.
3137 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
3138
3139 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3140 Remove boilerplate comments.
3141 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3142 Remove boilerplate comments.
3143 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
3144 Remove boilerplate comments.
3145 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
3146
3147 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
3148 USG systems which do not use DATA_SEG_BITS.
3149 Refactor code. Remove boilerplate comments.
3150
3151 * m/ibms390.h:
3152 * m/m68k.h:
3153 * s/bsd-common.h:
3154 * s/cygwin.h:
3155 * s/darwin.h:
3156 * s/freebsd.h:
3157 * s/gnu.h:
3158 * s/msdos.h: Remove boilerplate comments.
3159
3160 * m/iris4d.h: Remove boilerplate comments and code for systems that
3161 do not use this file.
3162 (IRIS_4D): Remove, unused.
3163
3164 * m/mips.h: Remove boilerplate comments and code for systems that
3165 do not use this file.
3166 (SIGN_EXTEND_CHAR):
3167 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
3168 * unexmips.c: Remove file, unused.
3169
3170 * editfns.c (Fuser_full_name): Replace the only use of
3171 USER_FULL_NAME with its value.
3172 * config.in: Regenerate.
3173
31742008-07-16 David Reitter <david.reitter@gmail.com>
3175
3176 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
3177 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
3178
31792008-07-16 Glenn Morris <rgm@gnu.org>
3180
3181 * emacs.c (system-type): Doc fix.
3182
31832008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
3184
3185 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
3186 If the cache doesn't work, let's fix it, rather than work around it.
3187
31882008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3189
3190 * Makefile.in: Correct additions for nsfont.o in last commit.
3191 * nsfont.m: New file (forgot last commit).
3192
31932008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
3194
3195 * callproc.c (set_initial_environment): Initialize
3196 Vprocess_environment under CANNOT_DUMP (fixes crash when
3197 batch-compiling for bootstrap).
3198
31992008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
3200 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3201
3202 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
3203 fix crash due to different init order.
3204
32052008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3206
3207 Changes and additions for NeXTstep windowing system (Cocoa and
3208 GNUstep) support.
3209
3210 * Makefile.in:
3211 * config.in: Support defines and build commands for NS port.
3212 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
3213 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
3214 * dispextern.h: Include nsgui.h and add needed typedefs under NS
3215 windowing.
3216 (struct face): Add synth_ital field.
3217 * dispnew.c: Include nsterm.h when compiling under NS windowing.
3218 (init_display): Initialize Vinitial_window_system to "ns" when so
3219 compiled.
3220 * emacs.c: Include GSConfig.h when compiling under GNUstep.
3221 (display_arg): Use under NS.
3222 (main): Under NS, allocate autorelease pool and handle command line
3223 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
3224 (standard_args): Add NS-specific args.
3225 (shut_down_emacs): Shut down NS terminal if compiled under NS.
3226 * font.c (DEFAULT_ENCODING): New variable.
3227 (font_find_for_lface): Use it.
3228 (syms_of_font): Load syms_of_nsfont under NS.
3229 * font.h: Declare nsfont_driver when compiled under NS.
3230 * fontset.c: When compiling under NS, include nsterm.h.
3231 (fontset_from_font): Autoconstruct fontset under NS.
3232 * frame.c (various): Under NS, include nsterm.h, add Qns window system
3233 symbol, document and use it.
3234 (do_switch_frame): When for_deletion under Cocoa, add
3235 Fraise_frame(Qnil).
3236 (x_set_frame_parameters): Ensure font attribute changes are picked up.
3237 (x_get_arg): Allow "yes" and "no" as boolean values.
3238 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
3239 Qright under Cocoa.
3240 (focus-follows-mouse): Default to 0 under NS.
3241 * frame.h (enum output_method): Add output_ns.
3242 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
3243 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
3244 (FRAME_WINDOW_P): NS-specific definition.
3245 * fringe.c (max_used_fringe_bitmap): Make public.
3246 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
3247 (getloadavg): Use NeXT code under descendant OS's.
3248 * image.c (includes and header section, x_create_bitmap_from_data)
3249 (x_create_bitmap_from_file, free_bitmap_record, image_background)
3250 (image_background_transparent, x_clear_image_1)
3251 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
3252 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
3253 (x_to_xcolors, x_from_xcolors, x_disable_image)
3254 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
3255 other GUIs, including XPM support using code originally written for
3256 Carbon GUI.
3257 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
3258 using NS API.
3259 (image_ascent): Use font metrics macros instead of direct struct field
3260 access.
3261 * keyboard.c (includes): Add nsterm.h when compiling under NS.
3262 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
3263 Also, handle NS as GTK for menu bar purposes.
3264 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
3265 toolkit where they differ.
3266 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
3267 use cachelist, still needed under NS.
3268 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
3269 (struct widget_value): Define it here for menu.c.
3270 * keymap.c (includes): Include modifier internals.
3271 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
3272 NS.
3273 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
3274 support for preferring sequences using certain modifiers, specified by
3275 the FIRSTONLY argument.
3276 * lisp.h (hash_remove): Rename to avoid name clash when compiling
3277 under NS GNUstep implementation.
3278 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
3279 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
3280 * menu.c: Include nsterm.h under NS.
3281 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
3282 (free_menubar_widget_tree_value, update_submenu_strings)
3283 (find_and_call_menu_selection): Treat NS as X and NT.
3284 (find_and_return_menu_selection): New function, used for popup menus.
3285 * nsgui.h:
3286 * nsterm.h:
3287 * nsfns.m:
3288 * nsimage.m:
3289 * nsmenu.m:
3290 * nsselect.m:
3291 * nsterm.m: New files.
3292 * process.c (wait_reading_process_output): Under NS, call ns_select()
3293 instead of plain select().
3294 * syntax.c (char_quoted): Under NS, avoid a crash when called near
3295 beginning of buffer.
3296 * sysselect.h (init_process): Rename when compiling under Cocoa to
3297 avoid name conflict.
3298 * termhooks.h (display_info): Add ns_display_info to union.
3299 * terminal.c (Fterminal_live_p): Add ns to terminal types.
3300 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
3301 COCOA environment.
3302 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
3303 unexec() signature. (Note, this will dump, but the resulting file
3304 crashes; unexosx is used instead; keeping around for reference and
3305 possible aid in getting dump working under GNUstep.)
3306 * w32gui.h (button_type, widget_value): Remove definitions (now in
3307 keyboard.h).
3308 * window.c: Include nsterm.h when compiling under NS.
3309 * xdisp.c (includes): Include nsterm.h when compiling under NS.
3310 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
3311 other GUI windowing systems.
3312 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
3313 GTK.
3314 (x_consider_frame_title): Under NS, set icon type and frame
3315 modified-state indicator; use ns_set_name_as_filename() when using
3316 formatted title.
3317 (update_window_cursor): Make public when compiling under NS.
3318 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
3319 (hourglass_atimer, Vhourglass_delay
3320 * xfaces.c (header section, init_frame_faces, clear_font_table)
3321 (defined_color, unload_color, x_face_list_fonts)
3322 (prepare_face_for_display): Add NS support parallel to other GUIs.
3323 Emulate GCs like other non-X GUIs.
3324 (split_font_name): Don't lowercase font name under NS.
3325 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
3326 under NS.
3327 * s/darwin.h: Add support for compilation under NS.
3328
33292008-07-15 Jason Rumney <jasonr@gnu.org>
3330
3331 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
3332 (w32_show_hourglass): Rename from show_hourglass.
3333 (w32_hide_hourglass): Rename from hide_hourglass.
3334 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
3335 (Vhourglass_delay): Declare extern.
3336 (hourglass_started): Remove.
3337
3338 * xdisp.c (Vhourglass_delay): Remove static.
3339 (hourglass_started, start_hourglass, cancel_hourglass):
3340 Don't include these versions on WINDOWSNT.
3341
33422008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3343
3344 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
3345 variables (formerly in xfns.c).
3346 (show_hourglass, hide_hourglass): New prototypes (same).
3347 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
3348 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
3349 in xfns.c).
3350 (syms_of_xdisp): Declare/initialize display-hourglass,
3351 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
3352 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
3353 formerly in xfns.c.
3354 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
3355 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
3356 (start_hourglass, cancel_hourglass): Remove.
3357 (show_hourglass, hide_hourglass): Remove prototypes and static
3358 modifiers.
3359 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
3360 hourglass_atimer, hourglass_shown_p declaration/initialization.
3361 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
3362 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
3363 (start_hourglass, cancel_hourglass): Remove.
3364 (show_hourglass, hide_hourglass): Remove prototypes and static
3365 modifiers.
3366 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
3367 hourglass_atimer, hourglass_shown_p declaration/initialization.
3368 * w32fns.c (display_hourglass_p, Vhourglass_delay)
3369 (DEFAULT_HOURGLASS_DELAY): Remove.
3370 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
3371 hourglass_shown_p declaration/initialization.
3372
33732008-07-14 Jason Rumney <jasonr@gnu.org>
3374
3375 * w32fns.c (w32_get_arg): Remove wrapper function.
3376 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
3377 directly.
3378 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3379
33802008-07-14 Kenichi Handa <handa@m17n.org>
3381
3382 * xfont.c (xfont_open): Add workaround for X's bug.
3383
33842008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3385
3386 * fontset.c: Include <stdio.h> unconditionally.
3387
33882008-07-13 Michael Albinus <michael.albinus@gmx.de>
3389
3390 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
3391 for filtering.
3392
33932008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3394
3395 * s/vms.h: Use __GNUC__ instead of _GNUC_.
3396
3397 * m/macppc.h:
3398 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
3399
3400 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
3401 (SPECIAL_EMACS_INT):
3402 * m/ia64.h (SPECIAL_EMACS_INT):
3403 * m/amdx86-64.h (SPECIAL_EMACS_INT):
3404 * s/gnu.h (NLIST_STRUCT):
3405 * s/aix4-2.h (X11R5_INHIBIT_I18N):
3406 * s/gnu-linux.h (LINUX):
3407 * s/msdos.h (HAVE_FACES):
3408 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
3409
3410 * systty.h:
3411 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
3412 anymore.
3413
34142008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3415
3416 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
3417 always defined as int.
3418
3419 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
3420 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
3421 * s/gnu-linux.h (HAVE_WAIT_HEADER):
3422 * s/freebsd.h (HAVE_WAIT_HEADER):
3423 * s/bsd-common.h (HAVE_UNION_WAIT):
3424 * s/aix4-2.h (HAVE_WAIT_HEADER):
3425 * m/mips.h (HAVE_UNION_WAIT):
3426 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
3427 (COFF, static): Do not define, they are undefined later in the file.
3428
3429 * process.c (update_status): Don't use a union.
3430 (status_convert):
3431 (sigchld_handler): Use int instead of WAITTYPE.
3432
34332008-07-12 Chong Yidong <cyd@stupidchicken.com>
3434
3435 * indent.c (Fvertical_motion): Restore hscroll before moving to
3436 goal column.
3437
34382008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3439
3440 * lisp.h: Remove left over code.
3441
34422008-07-11 Andreas Schwab <schwab@suse.de>
3443
3444 * lisp.h: Fix logic in last change.
3445
3446 * menu.h: New file.
3447 * menu.c: Include it.
3448 * xmenu.c: Likewise.
3449 * Makefile.in: Update dependencies.
3450
34512008-07-11 Kenichi Handa <handa@m17n.org>
3452
3453 * fontset.c (fontset_from_font): Cancel the previous change.
3454
34552008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3456
3457 * lisp.h:
3458 * w32heap.c:
3459 * emacs.c:
3460 * alloc.c: Replace all references of NO_UNION_TYPE with
3461 USE_LISP_UNION_TYPE.
3462
3463 * m/xtensa.h (NO_UNION_TYPE):
3464 * m/vax.h (NO_UNION_TYPE):
3465 * m/template.h (NO_UNION_TYPE):
3466 * m/sparc.h (NO_UNION_TYPE):
3467 * m/mips.h (NO_UNION_TYPE):
3468 * m/macppc.h (NO_UNION_TYPE):
3469 * m/m68k.h (NO_UNION_TYPE):
3470 * m/iris4d.h (NO_UNION_TYPE):
3471 * m/intel386.h (NO_UNION_TYPE):
3472 * m/ibms390x.h (NO_UNION_TYPE):
3473 * m/ibms390.h (NO_UNION_TYPE):
3474 * m/ibmrs6000.h (NO_UNION_TYPE):
3475 * m/ia64.h (NO_UNION_TYPE):
3476 * m/hp800.h (NO_UNION_TYPE):
3477 * m/arm.h (NO_UNION_TYPE):
3478 * m/amdx86-64.h (NO_UNION_TYPE):
3479 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
3480 defining it the same.
3481
34822008-07-10 Chong Yidong <cyd@stupidchicken.com>
3483
3484 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
3485
34862008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
3487
3488 * fileio.c:
3489 * sysdep.c
3490 * systty.h:
3491 * m/ibmrs6000.h:
3492 * m/iris4d.h:
3493 * s/aix4-2.h:
3494 * s/freebsd.h:
3495 * s/gnu-linux.h:
3496 * s/hpux10-20.h:
3497 * s/hpux11.h:
3498 * s/netbsd.h:
3499 * s/sol2-3.h:
3500 * s/sol2-4.h:
3501 * s/sol2.h:
3502 * s/usg5-4.h:
3503 * s/vms.h: Remove references to unused variables.
3504
35052008-07-10 Andreas Schwab <schwab@suse.de>
3506
3507 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
3508 pattern before matching the generic family.
3509
35102008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
3511
3512 * unexec.c:
3513 * s/vms.h:
3514 * s/usg5-4-2.h:
3515 * s/sol2-5.h:
3516 * s/freebsd.h:
3517 * s/darwin.h: Remove dead code.
3518
3519 * m/template.h:
3520 * m/sparc.h:
3521 * m/mips.h:
3522 * m/m68k.h:
3523 * m/iris4d.h:
3524 * m/intel386.h:
3525 * m/ibms390x.h:
3526 * m/ibms390.h:
3527 * m/ia64.h:
3528 * m/hp800.h:
3529 * m/arm.h:
3530 * m/amdx86-64.h: Remove dead code and references to unused
3531 and compiler defined symbols.
3532
3533 * unexmips.c:
3534 * unexelf.c: Remove references to desupported systems.
3535
3536 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
3537
3538 * m/powermac.h: Remove boilerplate comments.
3539 (NO_REMAP): Remove unused definition.
3540
3541 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
3542 define them.
3543
35442008-07-10 Kenichi Handa <handa@m17n.org>
3545
3546 * xfont.c (xfont_open): Log the reason of failure.
3547
35482008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
3549
3550 * fontset.c (fontset_get_font_group):
3551 * font.c (font_check_otf): Specify argument types.
3552
35532008-07-09 Kenichi Handa <handa@m17n.org>
3554
3555 * coding.c (detect_coding_utf_8): Set detect_info->found only when
3556 non-ASCII char is found.
3557
3558 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
3559 (reorder_font_vector): Change the arg preferred_family to font.
3560 Prefer the spec matching with font.
3561 (fontset_get_font_group): New function.
3562 (fontset_find_font): Change the format of an element of a realized
3563 fontset. Use fontset_get_font_group.
3564 (fontset_font): Try the current fontset, the default fontset, the
3565 fallbacks of the current fontset, and the fallbacks of the default
3566 fontset in this order.
3567 (face_for_char): Delete the shortcut to use the current font.
3568 (fontset_from_font): Don't set fonts for Latin in the fontset.
3569
3570 * font.h (font_make_object, font_match_p): Adjust prototypes.
3571
3572 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
3573
3574 * font.c (font_make_object): New arg entity and pixelsize.
3575 (font_check_otf_features, font_check_otf): New functions.
3576 (font_match_p): Check :lang, :script, and :otf properties.
3577
3578 * xfont.c (xfont_open): Adjust it for the change of
3579 font_make_object.
3580 (xfont_text_extents): Fix initial setting of metrics.
3581
3582 * ftfont.c (struct ftfont_info): New member index, delete member
3583 fc_charset_idx. Make the member order compatible with struct
3584 xftfont_info.
3585 (fc_charset_table): Change charset names to registry names.
3586 (ftfont_pattern_entity): Delete the args registry and
3587 fc_charset_idx. Change the value of :font-entity property
3588 to (FONTNAME . INDEX). Always set :registry property to
3589 `iso10646-1'.
3590 (struct ftfont_cache_data): New struct.
3591 (ftfont_lookup_cache): New arg for_face.
3592 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
3593 (ftfont_driver): Set the member otf_capability.
3594 (ftfont_get_charset): Adjust it for the change of
3595 fc_charset_table.
3596 (OTF_TAG_SYM): New macro.
3597 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
3598 for the change of fc_charset_table.
3599 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
3600 ftfont_pattern_entity. Add FC_INDEX to objset.
3601 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
3602 and ftfont_pattern_entity.
3603 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
3604 font_make_object, struct ftfont_info.
3605 (ftfont_has_char): Use ftfont_get_fc_charset.
3606 (ftfont_otf_features, ftfont_otf_capability): New functions.
3607 (ftfont_shape): Use ftfont_get_otf.
3608 (ftfont_text_extents): Fix initial setting of metrics.
3609
3610 * xftfont.c (struct xftfont_info): New member ft_size. Make the
3611 member order compatible with struct ftfont_info.
3612 (xftfont_open): Add FC_CHARSET to the pattern. Set
3613 xftfont_info->ft_size. Don't unlock the face. Check BDF
3614 properties if appropriate.
3615 (xftfont_close): Unlock the face.
3616 (xftfont_anchor_point, xftfont_shape): Deleted.
3617 (syms_of_xftfont): Don't set members anchor_point and shape of
3618 xftfont_driver.
3619
3620 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
3621 font_make_object.
3622
3623 * w32font.c (w32font_open): Adjust it for the change of
3624 font_make_object.
3625 (w32font_open_internal): Don't set properties of font_object here.
3626
36272008-07-08 Chong Yidong <cyd@stupidchicken.com>
3628
3629 * macfns.c (x_create_tip_frame):
3630 * w32fns.c (x_create_tip_frame):
3631 * xfns.c (x_create_tip_frame): Pass parameter argument to
3632 face-set-after-frame-default.
3633
3634 * xfaces.c (Finternal_merge_in_global_face): Save merged
3635 attributes for the default face back into the face vector.
3636
36372008-07-08 Andreas Schwab <schwab@suse.de>
3638
3639 * fontset.h: Declare fontset_from_font. Don't declare
3640 new_fontset_from_font and fontset_from_font_name.
3641 * xterm.c: Include "fontset.h".
3642 * Makefile.in (xterm.o): Update dependencies.
3643
36442008-07-08 Glenn Morris <rgm@gnu.org>
3645
3646 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
3647 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
3648
36492008-07-07 Chong Yidong <cyd@stupidchicken.com>
3650
3651 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
3652 (x_set_frame_parameters): Don't bind it.
3653
36542008-07-07 Juanma Barranquero <lekktu@gmail.com>
3655
3656 * w32fns.c (map_w32_filename): Declare extern.
3657
36582008-07-07 Jason Rumney <jasonr@gnu.org>
3659
3660 * w32term.c (WS_EX_LAYERED): Define if not already.
3661
36622008-07-06 Chong Yidong <cyd@stupidchicken.com>
3663
3664 * xfaces.c (set_font_frame_param): Don't try to set the font
3665 parameter if it is still unspecified in the lface.
3666
36672008-07-05 Chong Yidong <cyd@stupidchicken.com>
3668
3669 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
3670 face if it didn't already exist.
3671
3672 * xdisp.c (try_window_id): Give up if word-wrapping is on.
3673
36742008-07-05 Andreas Schwab <schwab@suse.de>
3675
3676 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
3677
36782008-07-05 Chong Yidong <cyd@stupidchicken.com>
3679
3680 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
3681 word-wrapping.
3682 (IT_DISPLAYING_WHITESPACE): New macro.
3683 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
3684 when word-wrapping. Simplify word-wrapping logic. Use correct
3685 pixel positions when saving copies of the iterator.
3686 (display_line): Use proper wrap point if the last character on a
3687 line was preceded by whitespace.
3688
36892008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
3690
3691 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
3692
36932008-07-04 Kenichi Handa <handa@m17n.org>
3694
3695 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
3696
3697 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
3698
36992008-07-02 Jason Rumney <jasonr@gnu.org>
3700
3701 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 3702 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
3703
3704 * xdisp.c (next_element_from_display_vector): Move assignment out
3705 of if statement.
3706
37072008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
3708
3709 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
3710
3711 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
3712 (syms_of_fileio): Initialize and export them.
3713 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
3714
3715 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
3716 (Fsystem_move_file_to_trash): New function.
3717 (syms_of_w32fns): Export it to lisp.
3718
37192008-07-01 Jason Rumney <jasonr@gnu.org>
3720
3721 * w32font.c (w32font_text_extents): Don't count overhang as part
3722 of width.
3723
37242008-06-30 Miles Bader <miles@gnu.org>
3725
3726 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
3727 Add `avoid_cursor_p' field.
3728
3729 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
3730 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
3731 (append_glyph, append_composite_glyph, produce_image_glyph)
3732 (append_stretch_glyph): Initialize avoid_cursor_p.
3733 (get_it_property): Rename from `get_line_height_property'.
3734 (x_produce_glyphs): Use get_it_property.
3735 (handle_line_prefix, push_display_prop): New functions.
3736 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
3737 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
3738 New variables.
3739 (syms_of_xdisp): Initialize them.
3740
37412008-06-30 Kenichi Handa <handa@m17n.org>
3742
3743 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
3744 XftDefaultSubstitute (they are called in XftFontMatch).
3745 (xftfont_open): Fix args to ftfont_font_format.
3746
3747 * ftfont.c (fc_charset_table): New member lang.
3748 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 3749 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
3750 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
3751 (ftfont_open): Fix args to ftfont_font_format.
3752 (ftfont_font_format): New arg filename.
3753
37542008-06-30 Chong Yidong <cyd@stupidchicken.com>
3755
3756 * xfaces.c (Finternal_merge_in_global_face): If default face was
3757 modified, realize it again. Update the font face attribute.
3758
37592008-06-29 Jason Rumney <jasonr@gnu.org>
3760
3761 * w32term.c (x_set_frame_alpha): Fix logic.
3762
37632008-06-29 Kenichi Handa <handa@m17n.org>
3764
3765 * fontset.c (Finternal_char_font): Return font-object instead of
3766 font-name.
3767
3768 * composite.c (get_composition_id): Fix the width calculation for TAB.
3769
37702008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
3771
3772 * indent.c (Fvertical_motion): Properly handle float column arg.
3773
37742008-06-28 Jason Rumney <jasonr@gnu.org>
3775
3776 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
3777 (pfnSetLayeredWindowAttributes): New function pointer.
3778 (w32_initialize): Initialize it when supported.
3779 (x_set_frame_alpha): New function.
3780
3781 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
3782 (w32_frame_parm_handlers): Set alpha handler.
3783
3784 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
3785
37862008-06-27 Jason Rumney <jasonr@gnu.org>
3787
3788 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
3789 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
3790 (w32_to_x_charset, x_to_w32_charset)
3791 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
3792 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
3793 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
3794 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
3795 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
3796 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
3797 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
3798 (Qw32_charset_unicode): Remove.
3799 (syms_of_w32fns): Update for above changes.
3800
3801 * w32font.c (w32_to_x_charset, x_to_w32_charset)
3802 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
3803 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
3804 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
3805 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
3806 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
3807 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
3808 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
3809 (syms_of_w32font): Update for above changes.
3810
38112008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3812
3813 * s/usg5-4.h: Fix previous change: keep the correct branch of a
3814 removed #if.
3815 (USG_SHARED_LIBRARIES): Remove duplicate definition.
3816
38172008-06-26 Juanma Barranquero <lekktu@gmail.com>
3818 Eli Zaretskii <eliz@gnu.org>
3819
3820 * makefile.w32-in (LOCAL_FLAGS):
3821 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
3822
3823 * sysdep.c (_spawnlp, _getpid):
3824 Declare with explicit _cdecl instead of _CRTAPI1.
3825
3826 * editfns.c (Fget_internal_run_time):
3827 Check for WINDOWSNT with #ifdef, not #if.
3828
38292008-06-26 Jason Rumney <jasonr@gnu.org>
3830
3831 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
3832
3833 * w32term.c (x_draw_glyph_string_foreground)
3834 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
3835 Use FONT_HANDLE macro.
3836 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
3837
3838 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
3839 (uniscribe_encode_char): Use FONT_HANDLE macro.
3840
3841 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
3842 (w32font_text_extents): Use precast w32_font.
3843 (w32font_close): Free cached metrics.
3844 (w32font_open_internal): Allocate space for name on stack.
3845
38462008-06-26 Chong Yidong <cyd@stupidchicken.com>
3847
3848 * xdisp.c (extend_face_to_end_of_line): Fix last change.
3849
38502008-06-26 Jason Rumney <jasonr@gnu.org>
3851
3852 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
3853 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
3854
38552008-06-26 Juanma Barranquero <lekktu@gmail.com>
3856
3857 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
3858
38592008-06-26 Jason Rumney <jasonr@gnu.org>
3860
3861 * w32bdf.c, w32bdf.h: Remove obsolete files.
3862
3863 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
3864
3865 * w32gui.h: Don't include w32bdf.h.
3866 (XCharStruct, enum w32_char_font_type, W32FontStruct):
3867 Remove obsolete font support.
3868
3869 * w32font.h (struct w32font_info): Remove compat_w32_font.
3870 Add hfont member.
3871 (FONT_COMPAT): Remove obsolete macro.
3872
3873 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
3874 (w32font_encode_char, w32font_text_extents): Use new hfont member.
3875 (w32font_open_internal): Remove compat code. Set new hfont member.
3876 (Fx_select_font): Use new hfont member.
3877
3878 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
3879 (uniscribe_encode_char): Use new hfont member.
3880
3881 * w32term.c (x_draw_glyph_string_foreground)
3882 (x_draw_composite_glyph_string_foreground): Use new hfont member.
3883 (x_draw_glyph_string): Use metrics in w32font_info.
3884
38852008-06-26 Kenichi Handa <handa@m17n.org>
3886
3887 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
3888
38892008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
3890
3891 * unexnext.c:
3892 * m/ews4800.h:
3893 * m/hp9000s300.h:
3894 * m/ibm370aix.h:
3895 * m/mips-siemens.h:
3896 * m/ncr386.h:
3897 * m/next.h:
3898 * m/pmax.h:
3899 * m/powerpcle.h:
3900 * m/tandem-s2.h:
3901 * s/386bsd.h:
3902 * s/bsd386.h:
3903 * s/bsd4-1.h:
3904 * s/bsd4-2.h:
3905 * s/bsdos2-1.h:
3906 * s/bsdos2.h:
3907 * s/bsdos3.h:
3908 * s/bsdos4.h:
3909 * s/nextstep.h:
3910 * s/ultrix4-3.h:
3911 * s/usg5-0.h:
3912 * s/usg5-2-2.h:
3913 * s/usg5-2.h:
3914 * s/usg5-4-3.h:
3915 * s/ux4800.h:
3916 * s/uxpds.h:
3917 * s/uxpv.h: Remove support for obsolete systems.
3918 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
3919 Remove, insert contents in s/hpux-10.20.h.
3920 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
3921 Remove, insert contents in s/aix4-2.h.
3922 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
3923 * s/bsd4-3.h: Rename to ...
3924 * s/bsd-common.h: ... this.
3925 * data.c:
3926 * doc.c:
3927 * ecrt0.c:
3928 * emacs.c:
3929 * fileio.c:
3930 * floatfns.c:
3931 * keyboard.c:
3932 * mem-limits.h:
3933 * print.c:
3934 * process.c:
3935 * sysdep.c:
3936 * syssignal.h:
3937 * systty.h:
3938 * syswait.h:
3939 * term.c:
3940 * unexec.c:
3941 * unexelf.c:
3942 * unexhp9k800.c:
3943 * m/hp800.h:
3944 * m/ibmrs6000.h:
3945 * m/mips.h:
3946 * m/vax.h:
3947 * s/darwin.h:
3948 * s/freebsd.h:
3949 * s/gnu.h:
3950 * s/ms-w32.h:
3951 * s/msdos.h:
3952 * s/netbsd.h:
3953 * s/template.h: Remove references to obsolete variables.
3954
3955 * Makefile.in: Add dependencies for all unexec files.
3956 (admindir): Remove unused variable.
3957 (UNEXEC_SRC): Remove references.
3958
39592008-06-25 Chong Yidong <cyd@stupidchicken.com>
3960
3961 * xfns.c (x_default_font_parameter): If Xft is available, first
3962 try Monospace-12 for the default font.
3963
39642008-06-25 Jason Rumney <jasonr@gnu.org>
3965
3966 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
3967
39682008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
3969
3970 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
3971
3972 * buffer.c (syms_of_buffer): Remove default-word-wrap.
3973
39742008-06-25 Juanma Barranquero <lekktu@gmail.com>
3975
3976 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
3977 <scroll-conservatively>: Fix typo in docstring.
3978
3979 * xselect.c (Fx_send_client_event): Doc fix.
3980
39812008-06-25 Kenichi Handa <handa@m17n.org>
3982
3983 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
3984
3985 * font.c (font_parse_fcname): Remove unused variables.
3986 (font_sort_entites): Delete the arg SPEC. Caller changed.
3987 Fix for the case of ! best_only.
3988 (font_delete_unmatched): Check DPI and AVGWIDTH too.
3989
3990 * lisp.h (Fstring_to_unibyte): EXFUN it.
3991
3992 * character.h (str_to_unibyte): Extern it.
3993
3994 * character.c (str_to_unibyte): New function.
3995
3996 * fns.c (Fstring_to_unibyte): New function.
3997 (syms_of_fns): Defsubr it.
3998
39992008-06-24 Kenichi Handa <handa@m17n.org>
4000
4001 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
4002 DPI too.
4003 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
4004
40052008-06-24 Andreas Schwab <schwab@suse.de>
4006
4007 * Makefile.in (${lispsource}loaddefs.el): Rename from
4008 ../lisp/loaddefs.el.
4009 (bootstrap-clean): Do what distclean does but don't remove
4010 Makefile.
4011 (distclean): Depend on bootstrap-clean and remove Makefile.
4012
40132008-06-24 Chong Yidong <cyd@stupidchicken.com>
4014
4015 * buffer.h (struct buffer): New member word_wrap.
4016
4017 * buffer.c (syms_of_buffer): New variables default-word-wrap and
4018 word-wrap.
4019 (init_buffer_once): Initialize them.
4020
4021 * dispextern.h (struct it): Replace bool truncate_lines_p with a
4022 line_wrap enum possessing three possible values.
4023
4024 * termopts.h: Replace truncate_partial_width_windows with
4025 Vtruncate_partial_width_windows.
4026
4027 * dispnew.c (direct_output_for_insert): Avoid direct output when
4028 inserting a space with word wrap on.
4029
4030 * indent.c (compute_motion): Obey integer values of
4031 truncate-partial-width-windows.
4032
4033 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
4034 replacing truncate_partial_width_windows.
4035 (init_iterator): If Vtruncate_partial_width_windows is an integer,
4036 truncate only if the window width is below that integer.
4037 (start_display, resize_mini_window, produce_stretch_glyph)
4038 (display_string, move_it_in_display_line_to): Use line_wrap.
4039 (back_to_previous_visible_line_start, reseat_1): Reset
4040 string_from_display_prop_p.
4041 (display_line): Extend default face to end of line when wrapping.
4042
40432008-06-24 Kim F. Storm <storm@cua.dk>
4044
4045 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
4046 to wrap continued lines at word boundaries.
4047
40482008-06-24 Jason Rumney <jasonr@gnu.org>
4049
4050 * font.c (Ffont_face_attributes): Multiply pixel size before point
4051 conversion to avoid multiplying rounding error.
4052
40532008-06-23 Jason Rumney <jasonr@gnu.org>
4054
4055 * w32term.c (x_draw_glyph_string_background)
4056 (x_draw_glyph_string): Remove old bdf font code.
4057
4058 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
4059
40602008-06-22 Kenichi Handa <handa@m17n.org>
4061
4062 * font.c (font_find_for_lface): Try the adstyle specified in
4063 the property of LFACE_FONT of LFACE (if any).
4064
40652008-06-21 Seiji Zenitani <zenitani@mac.com>
4066 Ryo Yoshitake <ryo@shiftmode.net>
4067
4068 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
4069
40702008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
4071
4072 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
4073 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
4074 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
4075 (witness-emacs): Remove.
4076 (lisp, shortlisp): Move loaddefs.el earlier.
4077 (mostlyclean): Forget about witness-emacs.
4078
40792008-06-22 Glenn Morris <rgm@gnu.org>
4080
4081 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
4082 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
4083
40842008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
4085
4086 * Makefile.in (PRECOMP): Remove.
4087 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
4088 (witness-emacs): Run `compile-first'.
4089 (.el.elc): Use the new compile-onefile target.
4090
40912008-06-21 Kenichi Handa <handa@m17n.org>
4092
4093 * xftfont.c (xftfont_open): Handle QCembolden only when
4094 FC_EMBOLDEN is defined.
4095
40962008-06-21 Andreas Schwab <schwab@suse.de>
4097
4098 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
4099 (.el.elc): Likewise.
4100
41012008-06-21 Miles Bader <miles@gnu.org>
4102
4103 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
4104 build dir, not the lisp source dir.
4105
41062008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
4107
4108 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
4109 (bootstrapclean): Remove.
4110 (.el.elc): New rule.
4111 (PRECOMP): New var.
4112 (../lisp/subdirs.el): Remove.
4113 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
4114 (witness-emacs): New target.
4115 (mostlyclean): Remove witness-emacs as well.
4116 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
4117 Add witness-emacs dependency.
4118
41192008-06-20 Chong Yidong <cyd@stupidchicken.com>
4120
4121 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
4122 defined by the font.
4123
41242008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4125
4126 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
4127 (bootstrap-clean): New target that keeps TAGS around.
4128 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
4129 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
4130
41312008-06-20 Jason Rumney <jasonr@gnu.org>
4132
4133 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
4134 Remove obsolete font code.
4135
4136 * w32font.c (font_matches_spec): Use csb bitfield from font signature
4137 to determine language support.
4138
41392008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4140
4141 * sysdep.c (cfsetspeed): New fun extracted from the code.
4142 (cfmakeraw): Move before first use.
4143
41442008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
4145
4146 * sysdep.c (cfmakeraw): Provide fallback implementation.
4147 (serial_configure): Provide fallback implementation of cfsetspeed.
4148
41492008-06-20 Kenichi Handa <handa@m17n.org>
4150
4151 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
4152 the pattern.
4153
4154 * fontset.c (fontset_from_font): Copy font_spec before changing
4155 the elements.
4156
4157 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
4158
41592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
4160
4161 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
4162 for explicit `font' parameters.
4163
4164 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
4165
41662008-06-19 Kenichi Handa <handa@m17n.org>
4167
4168 * frame.c: Include <ctype.h>.
4169 (x_set_font_backend): Allow spacing characters in the X resource
4170 for FontBackend.
4171
41722008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
4173
4174 * w32fns.c, xfns.c (Qfont_param): New var.
4175 (syms_of_w32fns): Initialize it.
4176 (x_default_font_parameter): Record explicit `font' into
4177 `font-parameter'.
4178
41792008-06-18 Kenichi Handa <handa@m17n.org>
4180
4181 * font.c (font_parse_xlfd): Fix previous change.
4182 (font_parse_fcname): Don't use :fc-unknown-spec.
4183 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
4184 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
4185 (font_add_log): Prepend the driver name to the resulting fonts.
4186
4187 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
4188 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
4189 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
4190
4191 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
4192 (QCembolden): New variables.
4193 (syms_of_xftfont): DEFSYM them.
4194 (xftfont_open): Call XftFontMatch. Don't trust the result of
4195 XftTextExtents8 if the pixel_size is less than 5.
4196
41972008-06-18 Andreas Schwab <schwab@suse.de>
4198
4199 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
4200 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
4201
42022008-06-18 Jason Rumney <jasonr@gnu.org>
4203
4204 * w32font.c (w32font_list, w32font_match): Add logging.
4205
4206 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
4207
42082008-06-17 Chong Yidong <cyd@stupidchicken.com>
4209
4210 * font.c (font_parse_fcname): Store divider characters for
4211 unknown-spec list. For known key symbols, intern using correct
4212 symbol name.
4213
42142008-06-17 Kenichi Handa <handa@m17n.org>
4215
4216 * xfaces.c (realize_default_face): If the frame is not on window
4217 system, set the fontset of face to nil.
4218
42192008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
4220
4221 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
4222
42232008-06-16 Juanma Barranquero <lekktu@gmail.com>
4224
4225 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
4226 (build_font_name_from_vector): Delete externs.
4227
4228 * xfaces.c (struct font_name): Don't declare.
4229
42302008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4231
4232 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
4233
42342008-06-16 Chong Yidong <cyd@stupidchicken.com>
4235
4236 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
4237
42382008-06-16 Juanma Barranquero <lekktu@gmail.com>
4239
4240 * font.c (Ffont_spec): Fix usage in docstring.
4241 (Ffont_face_attributes): Doc fix.
4242
42432008-06-16 Andreas Schwab <schwab@suse.de>
4244
4245 * font.c (Ffont_face_attributes): Fix definition.
4246
42472008-06-16 Jason Rumney <jasonr@gnu.org>
4248
4249 * font.h (font_style_symbolic_from_value): Remove.
4250
4251 * font.c (font_style_symbolic_from_value): Remove.
4252 (font_style_symbolic): Revert to pre 2008-06-13 version.
4253
4254 * w32font.c (w32_to_fc_weight): New function.
4255 (w32font_full_name, logfont_to_fcname): Use it.
4256
42572008-06-16 Kenichi Handa <handa@m17n.org>
4258
4259 * font.c (font_check_object): Delete it.
4260 (font_clear_cache): Check if a font-object is alive.
4261 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
4262 font-object to nil.
4263 (font_close_object): Don't check FONT_CLOSE_OBJECT.
4264 (font_at): Don't call font_check_object.
4265 (Ffont_get): Return a symbol for :weight, :slant, and :width.
4266
42672008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
4268
4269 * puresize.h (BASE_PURESIZE): Increase to 1230000.
4270
42712008-06-16 Chong Yidong <cyd@stupidchicken.com>
4272
4273 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
4274
42752008-06-15 Chong Yidong <cyd@stupidchicken.com>
4276
4277 * font.c (font_parse_fcname): Only one decimal point.
4278 (font_unparse_fcname): Handle data in family and foundry indices
4279 as symbols, not strings.
4280 (font_unparse_gtkname, Ffont_face_attributes): New functions.
4281
4282 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
4283
4284 * font.h (font_unparse_gtkname): Add prototype.
4285
42862008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
4287
4288 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
4289
42902008-06-15 Andreas Schwab <schwab@suse.de>
4291
4292 * font.c (font_update_drivers): Fix crash when no drivers match.
4293
42942008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
4295
4296 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
4297 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
4298
42992008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
4300
4301 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
4302
43032008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
4304
4305 * process.c (Fserial_process_configure, Fprocess_send_eof):
4306 Use EQ to compare Lisp_Objects.
4307
43082008-06-13 Jason Rumney <jasonr@gnu.org>
4309
4310 * w32fns.c (Fw32_select_font): Remove old font API function.
4311
4312 * w32font.c (logfont_to_fcname): New function.
4313 (Fx_select_font): New font dialog function compatible with
4314 GTK/fontconfig version.
4315
4316 * font.c (font_style_symbolic_from_value): New function.
4317 (font_style_symbolic): Use it.
4318
4319 * font.h (font_style_symbolic_from_value): Declare new function.
4320
43212008-06-13 Juanma Barranquero <lekktu@gmail.com>
4322
4323 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
4324 <font-width-table>: Fix typos in docstrings.
4325
43262008-06-13 Daniel Engeler <engeler@gmail.com>
4327
4328 These changes add serial port access.
4329 * process.c: Add HAVE_SERIAL.
4330 (Fdelete_process, Fprocess_status, Fset_process_buffer)
4331 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
4332 (list_processes_1, select_wrapper, Fstop_process)
4333 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
4334 (status_notify): Modify to handle serial processes.
4335 [HAVE_SERIAL] (Fserial_process_configure)
4336 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
4337 New functions.
4338 * process.h (struct Lisp_Process): Add `type'.
4339 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
4340 New functions.
4341 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
4342 serial ports.
4343 (serial_open, serial_configure) New functions.
4344 * w32.h: Add FILE_SERIAL.
4345 (struct _child_process): Add ovl_read, ovl_write.
4346
43472008-06-13 Kenichi Handa <handa@m17n.org>
4348
4349 * dispextern.h (enum lface_attribute_index): New member
4350 LFACE_FOUNDRY_INDEX.
4351
4352 * font.c (font_score): Delete arg alternate_families. Check only
4353 weight, slant, width, and size. Ignore the difference of alias
4354 style symbols.
4355 (font_sort_entites): Adjust for the above change. Reflect the
4356 order of font-driver to scores.
4357 (font_list_entities): Don't check alternate_familes here.
4358 (font_clear_prop): Handle foundry.
4359 (font_update_lface): Don't parse "foundry-family" form here.
4360 Handle FONT_FOUNDRY_INDEX.
4361 (font_find_for_lface): Likewise. Handle alternate families here.
4362 If registry is nil, try iso8859-1 and ascii-0.
4363 (font_open_for_lface): Pay attention to size in ENTITY.
4364 (font_open_by_name): Simplify by calling font_load_for_lface.
4365 (free_font_driver_list): Delete it.
4366 (font_update_drivers): Preserve the order of backends.
4367 (syms_of_font): Setting of sort_shift_bits adjusted for the change
4368 of font_score and font_sort_entites.
4369 (font_update_sort_order): Likewise.
4370
4371 * xfaces.c (LFACE_FOUNDRY): New macro.
4372 (check_lface_attrs): Check foundry.
4373 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
4374 (merge_face_vectors): Check foundry.
4375 (merge_face_ref): Likewise.
4376 (Finternal_set_lisp_face_attribute): Likewise.
4377 (x_update_menu_appearance): Likewise.
4378 (Finternal_get_lisp_face_attribute): Likewise.
4379 (lface_hash): Likewise.
4380 (lface_same_font_attributes_p): Likewise.
4381 (x_supports_face_attributes_p): Likewise.
4382 (tty_supports_face_attributes_p): Likewise.
4383 (Finternal_set_alternative_font_family_alist): Intern strings.
4384 (Finternal_set_alternative_font_registry_alist): Downcase strings.
4385 (realize_default_face): Set LFACE_FOUNDRY (lface).
4386
4387 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
4388 font-driver at first.
4389
4390 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
4391
43922008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4393
4394 * lread.c (Fload): Use xfree, not free on saved_doc_string.
4395
43962008-06-12 Jim Meyering <meyering@redhat.com>
4397
4398 Make unexec_free handle NULL the same way free does.
4399 * unexmacosx.c (unexec_free): Ignore a NULL argument.
4400
44012008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
4402
4403 * character.h (CHAR_TO_BYTE_SAFE): New macro.
4404 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
4405 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
4406 (WEAK_ALIAS): Simplify.
4407 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
4408 when searching a unibyte buffer.
4409
44102008-06-12 Chong Yidong <cyd@stupidchicken.com>
4411
4412 * xfns.c (Fx_select_font): Rename from x-font-dialog.
4413
44142008-06-12 Juanma Barranquero <lekktu@gmail.com>
4415
4416 * w32font.c: Include ctype.h.
4417
44182008-06-11 Jason Rumney <jasonr@gnu.org>
4419
4420 * w32font.c (w32font_encode_char): Detect missing glyphs that are
4421 misreported as space.
4422 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
4423 as aliases for registry iso10646-1.
4424
44252008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
4426
4427 * buffer.c (clone_per_buffer_values): Skip `name'.
4428
44292008-06-11 Chong Yidong <cyd@stupidchicken.com>
4430
4431 * font.c (font_parse_fcname): Fix last change; accept decimal
4432 points in font size.
4433
44342008-06-10 Jason Rumney <jasonr@gnu.org>
4435
4436 * w32uniscribe.c (add_opentype_font_name_to_list):
4437 Skip non unicode fonts.
4438
44392008-06-10 Chong Yidong <cyd@stupidchicken.com>
4440
4441 * xfns.c (Fx_font_dialog): New function.
4442
4443 * gtkutil.c (xg_dialog_response_cb): Rename from
4444 xg_file_response_callback.
4445 (pop_down_dialog): Rename from pop_down_file_dialog.
4446 (xg_get_file_name): Callers changed.
4447 (xg_get_font_name): New function.
4448
4449 * gtkutil.h (xg_get_font_name): Insert prototype.
4450
44512008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
4452
4453 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
4454 x_underline_minimum_display_offset.
4455 (syms_of_xdisp): Declare it here rather than in xterm.c.
4456 * dispextern.h (underline_minimum_offset): Declare it.
4457 * w32term.c (x_draw_glyph_string): Use it.
4458 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
4459 (syms_of_xterm): Don't declare it any more.
4460 (x_draw_glyph_string): Adjust to the new name.
4461
44622008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
4463
4464 * xterm.c (x_underline_minimum_display_offset): New var.
4465 (x_draw_glyph_string): Use it.
4466 (syms_of_xterm): Declare it.
4467
44682008-06-10 Chong Yidong <cyd@stupidchicken.com>
4469
4470 * font.c (font_parse_fcname): Accept GTK-style font names too.
4471
44722008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
4473
4474 * dired.c (file_name_completion): Don't return t if the match is exact
4475 but with different capitalization.
4476 * minibuf.c (Ftry_completion): Simplify.
4477
4478 * window.c (Vwindow_point_insertion_type): New var.
4479 (set_window_buffer): Use it.
4480 (syms_of_window): Init and export it to Lisp.
4481
44822008-06-10 Kenichi Handa <handa@m17n.org>
4483
4484 * font.h (font_intern_prop): Prototype adjusted.
4485
4486 * font.c (font_intern_prop): New arg force_symbol.
4487 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
4488 Adjust for the change of font_intern_prop.
4489
4490 * ftfont.c (ftfont_pattern_entity):
4491 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
4492 (w32_registry):
4493 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
4494 the change of font_intern_prop.
4495
44962008-06-09 Juanma Barranquero <lekktu@gmail.com>
4497
4498 * w32menu.c (digest_single_submenu): Declare extern.
4499
45002008-06-09 Jason Rumney <jasonr@gnu.org>
4501
4502 * w32term.c (x_make_frame_visible): Use alternate restore flags.
4503
4504 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
4505 (parse_single_submenu): Remove.
4506 (digest_single_submenu): Remove.
4507 (syms_of_w32menu): Don't initialise variables that have moved
4508 to menu.c.
4509 (set_frame_menubar): Sync with version in xmenu.c.
4510 (w32_menu_show): Sync with xmenu_show in xmenu.c.
4511
4512 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
4513 Make static again.
4514
45152008-06-09 Jason Rumney <jasonr@gnu.org>
4516
4517 Changes to w32 files related to the move of common menu code
4518 to menu.c on 2008-06-08 by Chong Yidong.
4519
4520 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
4521 defs to w32gui.h.
4522 (single_keymap_panes, push_menu_item, push_menu_pane):
4523 Make globally visible.
4524
4525 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
4526 (local_free, malloc_widget_value, free_widget_value)
4527 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
4528 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
4529 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
4530 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
4531 (menu_items, menu_items_allocated, menu_items_used)
4532 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
4533 (init_menu_items, finish_menu_items, discard_menu_items)
4534 (grow_menu_items, push_submenu_start, push_submenu_end)
4535 (push_left_right_boundary, push_menu_pane, push_menu_item)
4536 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
4537 (free_menubar_widget_tree_value, parse_single_submenu)
4538 (update_submenu_strings): Remove functions.
4539 (xmalloc_widget_value): Remove and declare extern.
4540
4541 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
4542 (OBJ1): Build it.
4543
4544 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
4545 (local_heap, local_alloc, local_free, malloc_widget_value)
4546 (free_widget_value): Define here.
4547
45482008-06-09 Kenichi Handa <handa@m17n.org>
4549
4550 * font.h (Qascii_0): Extern it.
4551
4552 * font.c (Qascii_0): New variable.
4553 (syms_of_font): DEFSYM it.
4554 (font_open_by_name): If the registry "iso8859-1" fails, try also
4555 "ascii-0".
4556
4557 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
4558
45592008-06-08 Kenichi Handa <handa@m17n.org>
4560
4561 * .gdbinit (xfont): New command.
4562
45632008-06-08 Andreas Schwab <schwab@suse.de>
4564
4565 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
4566 * Makefile.in (menu.o): Update dependencies.
4567
4568 * Makefile.in (obj): Always add menu.o.
4569 * emacs.c (main): Always call syms_of_menu.
4570 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
4571
45722008-06-08 Chong Yidong <cyd@stupidchicken.com>
4573
4574 * Makefile.in: Compile menu.c.
4575
4576 * lisp.h: Declare syms_of_menu.
4577
4578 * emacs.c (main): Call syms_of_menu.
4579
4580 * keyboard.h: Relocate platform-independent menu definitions from
4581 xmenu.c.
4582
4583 * menu.c: New file. Relocate platform-independent menu
4584 definitions from xmenu.c. Suggested by Adrian Robert.
4585
4586 * xmenu.c: Remove platform-independent menu definitions.
4587 (menu_items menu_items_inuse, menu_items_allocated)
4588 (menu_items_used, menu_items_n_panes)
4589 (menu_items_submenu_depth): Move to keyboard.h.
4590 (init_menu_items, finish_menu_items, unuse_menu_items)
4591 (discard_menu_items, restore_menu_items, save_menu_items)
4592 (grow_menu_items, push_submenu_start, push_submenu_end)
4593 (push_left_right_boundary, push_menu_pane, push_menu_item)
4594 (keymap_panes, single_keymap_panes, single_menu_item)
4595 (list_of_panes, list_of_items, find_and_call_menu_selection)
4596 (xmalloc_widget_value, free_menubar_widget_value_tree)
4597 (parse_single_submenu, digest_single_submenu)
4598 (update_submenu_strings): Move to menu.c.
4599
46002008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
4601
4602 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
4603
46042008-06-06 Miles Bader <miles@gnu.org>
4605
4606 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
4607 face, not frame default.
4608
46092008-06-05 Martin Rudalics <rudalics@gmx.at>
4610
4611 * window.c (pop_up_windows, pop_up_frames)
4612 (display_buffer_reuse_frames, Vpop_up_frame_function)
4613 (Vdisplay_buffer_function, Veven_window_heights)
4614 (Vspecial_display_buffer_names, Vspecial_display_regexps)
4615 (Vspecial_display_function, Vsame_window_buffer_names)
4616 (Vsame_window_regexps, split_height_threshold)
4617 (Vsplit_window_preferred_function): Move those vars to window.el.
4618 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
4619 (Fdisplay_buffer): Move those functions to window.el.
4620 (syms_of_window): Remove corresponding declarations.
4621 (display_buffer): New function.
4622 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
4623 * dispnew.c (Flast_nonminibuf_frame): New function.
4624 * buffer.c (Fpop_to_buffer): Move to window.el.
4625
46262008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
4627
4628 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
4629
46302008-06-05 Kenichi Handa <handa@m17n.org>
4631
4632 * coding.c (detect_coding): Fix previous change.
4633 (detect_coding_system): Likewise.
4634
46352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
4636
4637 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
4638
4639 * keymap.c (Vminibuffer_local_filename_must_match_map):
4640 Rename from Vminibuffer_local_must_match_filename_map.
4641 (syms_of_keymap):
4642 * minibuf.c (Fcompleting_read): Adjust accordingly.
4643 * commands.h: Rename declaration as well.
4644
46452008-06-05 Kenichi Handa <handa@m17n.org>
4646
4647 * font.c (Ffont_spec): Don't use font_parse_family_registry for
4648 family name.
4649 (Ffont_put): Likewise.
4650
4651 * fontset.c (fontset_find_font): Call font_open_for_lface with the
4652 current font-spec.
4653
4654 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
4655 is unspecified.
4656
4657 * xfaces.c (realize_x_face): If the font-related face attributes
4658 are the same as those of default face, realize a new fontset from
4659 default->fontset.
4660 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
4661
46622008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
4663
4664 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
4665 (move_it_in_display_line): New wrapper.
4666
4667 * window.c (window_scroll_pixel_based_preserve_x)
4668 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
4669 (window_scroll_pixel_based, window_scroll_line_based):
4670 Use them to preserve column positions.
4671 (syms_of_window): Initialize them.
4672
4673 * indent.c (Fvertical_motion): Extend first arg to allow passing an
4674 (HPOS . VPOS) pair.
4675
4676 * dispextern.h (move_it_in_display_line): Declare.
4677
46782008-06-05 Juanma Barranquero <lekktu@gmail.com>
4679
4680 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
4681 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
4682 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
4683
46842008-06-04 Juanma Barranquero <lekktu@gmail.com>
4685
4686 * window.c (Fset_window_parameter): Doc fix.
4687 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
4688
46892008-06-04 Joakim Verona <joakim@verona.se>
4690
4691 * window.h (struct window): Add new member window_parameters.
4692
4693 * window.c (Fwindow_parameters, Fwindow_parameter)
4694 (Fset_window_parameter): New defuns.
4695 (syms_of_window): Defsubr the new defuns.
4696 (make_window): Initialize window_parameters to nil.
4697
46982008-06-04 John Paul Wallington <jpw@pobox.com>
4699
4700 * eval.c (Fdefmacro): Doc fix.
4701
47022008-06-04 Kenichi Handa <handa@m17n.org>
4703
4704 * coding.c (detect_coding): Fix handling of coding->head_ascii.
4705 Be sure to call setup_coding_system when we find a proper coding system.
4706 (detect_coding_system): Fix handling of coding->head_ascii.
4707
47082008-06-03 Andreas Schwab <schwab@suse.de>
4709
4710 * font.c (font_prop_validate_spacing): Fix last change.
4711
47122008-06-03 Kenichi Handa <handa@m17n.org>
4713
4714 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
4715 (font_parse_fcname): Fix handling of unknown key.
4716
4717 * xfont.c (xfont_list): Try an alias.
4718
4719 * charset.c (char_charset): Return NULL if the arg charset_list is
4720 specified and C doesn't belong to any of them.
4721
47222008-06-02 Chip Coldwell <coldwell@redhat.com>
4723
4724 * font.c (font_pixel_size): Don't take cdr of an integer.
4725
47262008-06-02 Jim Meyering <meyering@redhat.com>
4727
4728 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
4729 * alloc.c (xfree): Return right away for a NULL arg.
4730 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
4731 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
4732 * mac.c (create_apple_event_from_event_ref): Likewise.
4733 (create_apple_event_from_drag_ref, cfstring_create_normalized):
4734 Likewise.
4735 * doprnt.c (doprnt1): Likewise.
4736 * frame.c (frame): Likewise.
4737 * keyboard.c (wipe_kboard): Likewise.
4738 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
4739 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
4740 * term.c (tty_default_color_capabilities, maybe_fatal)
4741 (delete_tty): Likewise.
4742 * w16select.c (string): Likewise.
4743 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
4744 * w32bdf.c (w32_free_bdf_font): Likewise.
4745 * w32fns.c (w32_unload_font): Likewise.
4746 * w32font.c (w32font_close): Likewise.
4747 * window.c (size_window): Likewise.
4748 * xselect.c (receive_incremental_selection): Likewise.
4749 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
4750 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
4751 * w32.c (stat): Likewise.
4752
4753 Remove useless if-before-free tests.
4754 * editfns.c (Fset_time_zone_rule): Likewise.
4755 * lread.c (nosuffix): Likewise.
4756 * ralloc.c (get_bloc): Likewise.
4757 * regex.c (reg_free): Likewise.
4758 * xftfont.c (xftfont_open, xftfont_close): Likewise.
4759 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
4760 * xsmfns.c (smc_save_yourself_CB): Likewise.
4761
47622008-06-02 Kenichi Handa <handa@m17n.org>
4763
4764 * font.c (font_find_for_lface): Handle float font size.
4765 (font_open_for_lface): Likewise.
4766
4767 * xfaces.c (x_supports_face_attributes_p): Check face->font before
4768 comparing the properties.
4769
47702008-06-01 Jason Rumney <jasonr@gnu.org>
4771
4772 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
4773 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
4774 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
4775 Don't add empty script list.
4776 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
4777
47782008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
4779
4780 * Makefile.in (dot, dotdot): Remove, update users.
4781 ".." has been used elsewhere in the file for a long time.
4782 (LIBXT_STATIC): Remove conditional based on unused variable.
4783
47842008-06-01 Miles Bader <miles@gnu.org>
4785
4786 * xfaces.c (Vface_remapping_alist): New variable.
4787 (syms_of_xfaces): Initialize it.
4788 (enum named_merge_point_kind): New type.
4789 (struct named_merge_point): Add `named_merge_point_kind' field.
4790 (push_named_merge_point): Make cycle detection respect different
4791 named-merge-point kinds.
4792 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
4793 Remove face-name alias resolution.
4794 (lface_from_face_name): New definition using
4795 `lface_from_face_name_no_resolve'.
4796 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
4797 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
4798 (get_lface_attributes): New definition that layers face-remapping on
4799 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
4800 (lookup_basic_face): New function.
4801 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
4802 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
4803 `get_lface_attributes'.
4804 (face_at_buffer_position): Use `lookup_basic_face' to lookup
4805 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
4806 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
4807
4808 * xdisp.c (init_iterator): Pass base_face_id through
4809 `lookup_basic_face' when we actually use it as a face-id.
4810 (handle_single_display_prop): Use `lookup_basic_face' to lookup
4811 DEFAULT_FACE_ID.
4812
4813 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
4814 lookup the initial face-id.
4815
4816 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
4817
48182008-06-01 Juanma Barranquero <lekktu@gmail.com>
4819
4820 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
4821 (Fremove_text_properties): Fix typos in docstrings.
4822
48232008-05-31 Kenichi Handa <handa@m17n.org>
4824
4825 * font.c (font_list_entities): Fix the car part of data to be
4826 stored in the cache.
4827
4828 * ftfont.c (ftfont_font_format): Don't use strcasestr.
4829
48302008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
4831
4832 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
4833 Add a `test' argument so another predicate than `equal' can be used.
4834 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
4835 (map_char_table): Remove unused vars `c' and `i'.
4836 * lisp.h (Foptimize_char_table): Adjust declaration.
4837 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
4838
48392008-05-30 Kenichi Handa <handa@m17n.org>
4840
4841 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
4842 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
4843 defined.
4844
48452008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
4846
4847 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4848 (Fmake_variable_frame_local): Disallow mixing buffer-local and
4849 frame-local settings for the same variable.
4850
48512008-05-30 Kenichi Handa <handa@m17n.org>
4852
4853 * fontset.c (Ffont_info): Move to font.c.
4854 (syms_of_fontset): Delete defsubr of Sfont_info.
4855
4856 * font.c (font_style_to_value, font_score): Delete casting of the
4857 args to xstcasecmp.
4858 (register_font_driver): Increment num_font_drivers only when
4859 registering the driver globally.
4860 (Ffont_info): Move from fontset.c. Handle a font object too.
4861 (syms_of_font): Defsubr Sfont_info.
4862
48632008-05-29 Kenichi Handa <handa@m17n.org>
4864
4865 * coding.h (enum define_coding_utf8_arg_index): New enum.
4866 (enum coding_attr_index): Change coding_attr_utf_16_bom to
4867 coding_attr_utf_bom.
4868 (enum utf_bom_type): Rename from utf_16_bom_type.
4869 (struct utf_16_spec): Adjust for the above change.
4870 (struct coding_system): Add utf_8_bom in `spec' union.
4871
4872 * coding.c (CODING_UTF_8_BOM): New macro.
4873 (enum coding_category): Delete coding_category_utf_8, add
4874 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
4875 coding_category_utf_8_sig.
4876 (CATEGORY_MASK_UTF_8): Delete it.
4877 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
4878 (CATEGORY_MASK_UTF_8_SIG): New macros.
4879 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
4880 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
4881 CATEGORY_MASK_UTF_8_SIG.
4882 (CATEGORY_MASK_UTF_8): New macro.
4883 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
4884 (detect_coding_utf_8): Check BOM.
4885 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
4886 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
4887 (encode_coding_utf_16): Likewise.
4888 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
4889 (detect_coding, detect_coding_system): Handle utf-8-auto.
4890 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
4891 (syms_of_coding): Fix setting up of Vcoding_category_table.
4892
48932008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
4894
4895 * process.c (Faccept_process_output): If `millisec' is non-nil,
4896 `seconds' default to 0.
4897 (wait_reading_process_output): Also return non-nil if we read output
4898 from a non-running process.
4899
49002008-05-29 Jason Rumney <jasonr@gnu.org>
4901
4902 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
4903 `raster' specified.
4904 (add_font_entity_to_list): Allow non-opentype truetype fonts back
4905 in the uniscribe backend, but disallow any font that has no
4906 unicode subrange support.
4907
49082008-05-29 Juanma Barranquero <lekktu@gmail.com>
4909
4910 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
4911 Fix typos in docstrings.
4912
49132008-05-29 Kenichi Handa <handa@m17n.org>
4914
4915 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
4916 (Fx_family_fonts): Set frame correctly.
4917
49182008-05-28 Jason Rumney <jasonr@gnu.org>
4919
4920 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
4921
49222008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4923
4924 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
4925 calling build_annotations.
4926
49272008-05-28 Juanma Barranquero <lekktu@gmail.com>
4928
4929 * coding.c (Fdecode_coding_region, Fencode_coding_region)
4930 (Fencode_coding_string):
4931 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
4932 <latin-extra-code-table>: Fix typos in docstrings.
4933 (syms_of_coding) <coding-system-alist>: Doc fix.
4934 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
4935
49362008-05-28 Kenichi Handa <handa@m17n.org>
4937
4938 * fontset.c (Ffont_info): Don't call font_close_object.
4939
4940 * font.c (font_parse_family_registry): Use Ffont_put to validate
4941 foundry and family.
4942 (font_delete_unmatched): Don't check spacing.
4943 (font_list_entities): Add spacing to the spec to list fonts.
4944
4945 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
4946 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
4947
4948 * coding.c (encode_coding_raw_text): Fix previous change.
4949 (encode_coding_object): When the dst_object is a buffer and is
4950 different from src_object, move gap to PT.
4951
49522008-05-27 Chong Yidong <cyd@stupidchicken.com>
4953
4954 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
4955
49562008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
4957
4958 * coding.c (encode_coding_raw_text): Set coding->produced_char for
4959 all branches. Compute it differently.
4960
4961 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
4962
49632008-05-27 Juanma Barranquero <lekktu@gmail.com>
4964
4965 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
4966 into "else if () ... else ...".
4967
49682008-05-27 Jason Rumney <jasonr@gnu.org>
4969
4970 * w32font.c (w32font_open_internal): Determine if glyph indices
4971 are likely to work here.
4972
49732008-05-27 Chong Yidong <cyd@stupidchicken.com>
4974
4975 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
4976 draw overlap glyphs with appropriate highlighting.
4977
49782008-05-27 Kenichi Handa <handa@m17n.org>
4979
4980 * xfont.c (xfont_open): Fix calculation of font->average_width.
4981
49822008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
4983
4984 * casefiddle.c (casify_object): Try to guess better whether the
4985 argument is a byte or a char.
4986
49872008-05-26 Andreas Schwab <schwab@suse.de>
4988
4989 * xselect.c (x_reply_selection_request): Properly handle format == 32.
4990 Always send multiples of format size.
4991
4992 * xterm.c (x_set_frame_alpha): Fix type mismatch.
4993
49942008-05-26 Jason Rumney <jasonr@gnu.org>
4995
4996 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
4997 (compute_metrics): Don't set failure if we just cleared the cache.
4998 (w32_weight_table): Remove unused variable.
4999 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
5000 backwards compatibility.
5001
50022008-05-25 Kenichi Handa <handa@m17n.org>
5003
5004 * w32term.c (x_draw_glyph_string):
5005 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
5006
5007 * xfaces.c: Delete unused function prototypes.
5008 (xstrlwr, font_frame): Delete them.
5009 (clear_face_cache): Delete unused variable.
5010
5011 * xftfont.c (xftfont_open): Delete unused variable.
5012 If underline_thickness is not 1, adjust underline_position.
5013
5014 * ftxfont.c (ftxfont_open): Delete unused variable.
5015
5016 * fontset.c (face_for_char): Optimize for the case of no charset
5017 property.
5018
5019 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
5020 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
5021 (otf_open, font_otf_capability, generate_otf_features)
5022 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5023 Comment out by surrounding "#if 0" and "#endif" for the moment.
5024 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
5025 (syms_of_font): Codes for accessing above commented out.
5026
50272008-05-24 Eli Zaretskii <eliz@gnu.org>
5028
5029 * w32proc.c: Include dispextern.h.
5030
5031 * w32.c: Include dispextern.h.
5032
50332008-05-23 Juanma Barranquero <lekktu@gmail.com>
5034
5035 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
5036 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
5037 Fix typos in docstrings.
5038
50392008-05-23 Jason Rumney <jasonr@gnu.org>
5040
5041 * xsmfns.c: Remove includes that are already included by config.h.
5042
50432008-05-23 Kenichi Handa <handa@m17n.org>
5044
5045 * charset.c (Qemacs, charset_emacs): New variables.
5046 (char_charset): Fix for non-Unicode characters.
5047 (syms_of_charset): Define charset_emacs.
5048
5049 * w32term.c (x_draw_glyph_string): Be sure to update
5050 s->underline_thickness and s->underline_position. Be sure to draw
5051 underline within the current line area.
5052
5053 * xterm.c (x_draw_glyph_string): Be sure to update
5054 s->underline_thickness and s->underline_position. Be sure to draw
5055 underline within the current line area.
5056
5057 * fontset.c: Delete unused variables and add casting for char *
5058 throughout the file.
5059 (fontset_font): Try the fallback fonts of the current fontset
5060 before consulting the default fontset.
5061
5062 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
5063
5064 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
5065
50662008-05-22 Jason Rumney <jasonr@gnu.org>
5067
5068 * font.c: Don't include strings.h.
5069
5070 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
5071
5072 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
5073 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
5074 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
5075 to call xstrcasecmp.
5076
5077 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
5078
5079 * fontset.c (fs_query_fontset): Use xstrcasecmp.
5080
5081 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
5082
5083 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
5084
50852008-05-22 Kenichi Handa <handa@m17n.org>
5086
5087 * puresize.h (BASE_PURESIZE): Increase to 1220000.
5088
5089 * font.c (font_prop_validate_style): Adjust for the format
5090 change of font_style_table.
5091
5092 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
5093 two args.
5094
5095 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
5096 two args.
5097
50982008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
5099
5100 * minibuf.c (keys_of_minibuf): Delete.
5101 * lisp.h (keys_of_minibuf): Delete.
5102 * emacs.c (main): Don't call keys_of_minibuf.
5103
51042008-05-22 Kenichi Handa <handa@m17n.org>
5105
5106 * ftfont.c (ftfont_resolve_generic_family): Rename from
5107 ftfont_list_generic_family. Return a single family for each
5108 generic family.
5109 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
5110 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
5111 Call font_add_log.
5112 (ftfont_match): Call font_add_log.
5113
5114 * font.h (Ffont_xlfd_name): EXFUN adjusted.
5115 (FONT_DEBUG): Define it.
5116 (font_add_log): Extern it.
5117 (font_assert): Rename from xassert.
5118
5119 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
5120 (xfont_list_family): Call font_add_log.
5121 (xfont_match): Likewise.
5122 (memq_no_quit): Delete.
5123
5124 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
5125 call of Ffont_xlfd_name.
5126
5127 * xfaces.c (struct table_entry, slant_table, weight_table)
5128 (swidth_table): Move to font.c.
5129
5130 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
5131 xassert are changed to font_assert. Delete many unused variables.
5132 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
5133 New variables.
5134 (struct table_entry): Move from xfaces.c and modified.
5135 (weight_table, slant_table, width_table): Move from xfaces.c and
5136 contents adjusted for the change of struct table_entry.
5137 (font_style_to_value, font_style_symbolic): Adjust for the
5138 format change of font_style_table.
5139 (font_parse_family_registry): Don't overwrite existing foundry and
5140 family of font_spec.
5141 (font_score): Fix calculation of diff for sizes.
5142 (font_sort_entites): Call font_add_log.
5143 (font_delete_unmatched): Return a newly created list.
5144 (font_list_entities): Fix previous change. Call font_add_log.
5145 (font_matching_entity, font_open_entity, font_close_entity):
5146 Call font_add_log.
5147 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
5148 (Finternal_set_font_style_table): Delete.
5149 (BUILD_STYLE_TABLE): New macro.
5150 (build_style_table): New function.
5151 (Vfont_log, font_log_env_checked): New variables.
5152 (font_add_log): New function.
5153 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
5154 Declare Lisp variables "font-weight-table", "font-slant-table",
5155 "font-width-table", and "font-log". Initialize font_style_table.
5156
51572008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
5158
5159 * xterm.c (x_set_frame_alpha): Move declarations before statements.
5160
51612008-05-21 Seiji Zenitani <zenitani@mac.com>
5162 Ryo Yoshitake <ryo@shiftmode.net>
5163
5164 * frame.c (Qalpha): Add a new frame parameter `alpha'.
5165 (Vframe_alpha_lower_limit): New variable.
5166 (x_set_alpha): New function.
5167
5168 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
5169
5170 * xfns.c (x-create-frame, Qalpha):
5171 Initialize the frame parameter `alpha'.
5172 * xterm.c (OPAQUE, OPACITY): New.
5173 (x_set_frame_alpha): New function.
5174 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
5175
5176 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
5177 * w32fns.c (w32_frame_parm_handlers): Likewise.
5178
51792008-05-20 Jason Rumney <jasonr@gnu.org>
5180
5181 * w32font.c (add_font_entity_to_list): Don't add non-opentype
5182 truetype fonts to opentype list.
5183
51842008-05-20 Juanma Barranquero <lekktu@gmail.com>
5185
5186 * fontset.c (Ffontset_info): Doc fix.
5187 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
5188 <ignore-relative-composition>: Fix typos in docstrings.
5189
5190 * font.c (syms-of-font) <font-encoding-alist>:
5191 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
5192 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
5193 (Ffont_otf_alternates): Doc fixes.
5194
51952008-05-20 Kenichi Handa <handa@m17n.org>
5196
5197 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
5198 font.h through out the file.
5199 (FONT_DRIVERS): Rename from FONTOBJ.
5200 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
5201 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
5202
5203 * emacs.c (main): Call syms_of_font unconditionally.
5204
5205 * font.h (find_font_encoding): Extern it.
5206
5207 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
5208 fontset.c.
5209 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
5210 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
5211 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
5212 only when HAVE_WINDOW_SYSTEM is defined.
5213 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
5214 when HAVE_WINDOW_SYSTEM is defined.
5215
5216 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
5217 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
5218
5219 * xfaces.c: Include font.h unconditionally.
5220 (merge_face_ref, merge_face_vectors)
5221 (Finternal_set_lisp_face_attribute): Cancel the previous change.
5222
52232008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
5224
5225 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
5226 indirect_variable.
5227 * eval.c (lisp_indirect_variable): New fun.
5228 (Fuser_variable_p): Use it.
5229
52302008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5231
5232 * lisp.h (indirect_variable):
5233 * data.c (indirect_variable, let_shadows_buffer_binding_p):
5234 Use Lisp_Symbol pointers rather than Lisp_Object.
5235 Adjust callers.
5236 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
5237 To this end, change calling-convention.
5238
5239 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
5240 if some non-hidden buffers are selected by string&pred.
5241
52422008-05-19 Chong Yidong <cyd@stupidchicken.com>
5243
5244 * process.c (wait_reading_process_output): Always check status
5245 when in batch mode.
5246
52472008-05-19 Kenichi Handa <handa@m17n.org>
5248
5249 * font.c (font_list_entities): Fix handling of cache.
5250 (font_matching_entity): Likewise.
5251
5252 * ftfont.c (cs_iso8859_1): Delete.
5253 (ft_face_cache): New variable.
5254 (struct ftfont_info): New member fc_charset_idx.
5255 (ftfont_build_basic_charsets): Delete.
5256 (fc_charset_table): New variable.
5257 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
5258 . FC_CHARSET_IDX) as :font-entity property in the font entity.
5259 Callers changed.
5260 (ftfont_lookup_cache, ftfont_get_charset): New functions.
5261 (ftfont_spec_pattern): New argument fc_charset_idx.
5262 Check registry more rigidly. Change callers.
5263 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
5264 change of :font-entity property of the font.
5265
5266 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
5267 property of the font.
5268
52692008-05-18 Juanma Barranquero <lekktu@gmail.com>
5270
5271 * coding.c (Fcoding_system_p): Rename argument to match docstring.
5272 (Funencodable_char_position, Fcheck_coding_systems_region)
5273 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
5274 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
5275 (Ffind_operation_coding_system, Fset_coding_system_priority)
5276 (Fcoding_system_eol_type): Doc fixes.
5277
52782008-05-17 Glenn Morris <rgm@gnu.org>
5279
5280 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
5281
52822008-05-16 Eli Zaretskii <eliz@gnu.org>
5283
5284 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
5285 and st_gid.
5286
5287 * frame.c (Fdelete_frame): Don't call font_update_drivers if
5288 HAVE_WINDOW_SYSTEM is not defined.
5289
5290 * xfaces.c (merge_face_ref, merge_face_vectors)
5291 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
5292 HAVE_WINDOW_SYSTEM is defined.
5293 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
5294
52952008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
5296
5297 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
5298
52992008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5300
5301 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
5302
53032008-05-15 Kenichi Handa <handa@m17n.org>
5304
5305 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
5306 preference.
5307
53082008-05-15 Glenn Morris <rgm@gnu.org>
5309
5310 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
5311
53122008-05-15 Chong Yidong <cyd@stupidchicken.com>
5313
5314 * fns.c (init_fns): Don't initialize weak_hash_tables here.
5315 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
5316
5317 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
5318
53192008-05-15 Kenichi Handa <handa@m17n.org>
5320
5321 * ftfont.c (ftfont_list): Downcase family name to check generic
5322 families.
5323
5324 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
5325 font-spec for QCfont value.
5326
5327 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
5328 buffer. Check the return value of it.
5329
53302008-05-14 Jason Rumney <jasonr@gnu.org>
5331
5332 * w32term.c (w32_get_glyph_overhangs): Remove.
5333 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
5334
53352008-05-14 Kenichi Handa <handa@m17n.org>
5336
5337 * font.c (font_prop_validate): Make nil a valid value.
5338 (font_clear_cache): Check if the cached vector of entities is nil
5339 or not.
5340
53412008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5342
5343 * emacs.c (main_thread): Conditionalize on
5344 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
5345 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
5346
5347 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
5348 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
5349 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
5350
53512008-05-14 Kenichi Handa <handa@m17n.org>
5352
5353 * coding.c (detect_coding_iso_2022): Ignore a coding category that
5354 has no corresponding coding system.
5355
53562008-05-14 Jason Rumney <jasonr@gnu.org>
5357
5358 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
5359
5360 * w32font.h (w32font_open_internal): Update declaration.
5361
5362 * w32font.c (w32font_open_internal): Change last argument from
5363 w32font_info struct to font object. Fill in font object from
5364 font_entity. Get Outline metrics if possible. Use them to
5365 calculate underline position and thickness. Use xlfd name as name
5366 property. Don't set codepage.
5367 (w32font_open): Pass font_object to w32font_open_internal. Don't
5368 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
5369 (w32font_draw): Use s->font.
5370 (clear_cached_metrics): Don't clear non-existent blocks.
5371
5372 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
5373 font was not found.
5374 (x_draw_glyph_string): Use underline position and thickness from font.
5375
5376 * w32uniscribe.c (uniscribe_open): Pass font_object to
5377 w32font_open_internal.
5378
53792008-05-14 Kenichi Handa <handa@m17n.org>
5380
5381 These changes are to delete all legacy font-handling codes, and
5382 make Emacs use only font-backends.
5383
5384 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
5385 (frame.o, image.o, print.o): Depend on $(FONTSRC).
5386
5387 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
5388
5389 * charset.h (Vcharset_non_preferred_head)
5390 (Vcurrent_iso639_language): Extern them.
5391
5392 * charset.c (Vcharset_non_preferred_head): New variable.
5393 (Vcurrent_iso639_language): New variable.
5394 (syms_of_charset): Declare it as a Lisp variable.
5395 (char_charset): Don't check non preferred charsets. As a last
5396 resort, return charset_unicode.
5397 (Fset_charset_priority): Update Vcharset_non_preferred_head.
5398
5399 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
5400 conditionals. Don't check enable_font_backend. Delete all codes
5401 used only when USE_FONT_BACKEND is not defined.
5402
5403 * dispextern.h (struct glyph_string): Change type of `font' to
5404 `struct font *'.
5405 (struct glyph_string): New member underline_position and
5406 underline_thickness.
5407 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
5408 (struct face): Change type of `font' to `struct font *'. Remove
5409 members `font_name', `font_info_id'.
5410 (per_char_metric, encode_char): Delete externs.
5411 (calc_pixel_width_or_height): Adjust the prototype.
5412
5413 * emacs.c (enable_font_backend): Delete extern.
5414 (main): Don't set enable_font_backend. Don't check the command
5415 line argument "-disable-font-backend".
5416
5417 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
5418 (enum font_property_index): New members FONT_DPI_INDEX,
5419 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
5420 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
5421 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
5422 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
5423 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
5424 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
5425 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
5426 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
5427 (struct font_spec, struct font_entity): New structs.
5428 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
5429 (struct font): Many members from old "struct font_info" moved to
5430 here. Members font and entity deleted.
5431 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
5432 the new font-related objects.
5433 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
5434 (CHECK_FONT_GET_OBJECT): Likewise.
5435 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
5436 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
5437 (struct font_driver): New members case_sensitive anc check. Type
5438 of the member list and open changed.
5439 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
5440 (font_symbolic_width, font_find_object, font_get_spec)
5441 (font_set_lface_from_name): Delete extern.
5442 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
5443
5444 * font.c: Include <strings.h>.
5445 (enable_font_backend): Delete it.
5446 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
5447 (CHECK_VALIDATE_FONT_SPEC): Delete it.
5448 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
5449 (null_string): Delete it.
5450 (null_vector): Make it static.
5451 (font_family_alist): Delete it.
5452 (Qnormal): Extern it.
5453 (QCextra, QClanguage): Delete it.
5454 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
5455 (font_make_spec, font_make_entity, font_make_object)
5456 (font_intern_prop): Renamed from intern_downcase. Don't downcase
5457 the string. Callers changed.
5458 (font_pixel_size): Adjusted for the format change of font-related
5459 objects.
5460 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
5461 (font_style_to_value, font_style_symbolic): New function.
5462 (build_font_family_alist): Delete it.
5463 (font_registry_charsets): Use Fassoc_string instead of
5464 assq_no_quit.
5465 (font_prop_validate_symbol): Don't return null_string.
5466 (font_prop_validate_style): Adjusted for the change of
5467 style-related values in a font vector.
5468 (font_property_table): Delete entries for QClanguage and
5469 QCantialias, add entries for QCavgwidth.
5470 (get_font_prop_index): Delete the 2nd argument FROM.
5471 (font_prop_validate): Arguments changed.
5472 (font_put_extra): Adjusted for the change of font-related objects.
5473 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
5474 (font_parse_fcname, font_unparse_fcname)
5475 (font_prepare_composition): Likewise.
5476 (font_parse_family_registry): Renamed from font_merge_old_spec.
5477 (otf_open): Delete the 1st arg entity.
5478 (font_otf_capability): Adjusted for the above change.
5479 (font_score): New arg alternate_families. Adjusted for the change
5480 of font-related objects.
5481 (font_sort_entites): New arg best_only.
5482 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
5483 Delete them.
5484 (font_match_p): Check alternate families.
5485 (font_find_object): Delete it.
5486 (font_check_object): New function.
5487 (font_clear_cache): Adjusted for the change of font-related objects.
5488 (font_delete_unmatched): New arg.
5489 (font_list_entities): Call font_driver->list with a spec that
5490 doesn't specify style-related properties.
5491 (font_matching_entity): Arguments changed. Caller changed.
5492 (font_open_entity): Adjusted for the change of font-related objects.
5493 (font_close_object, font_has_char, font_encode_char)
5494 (font_get_name, font_get_spec): Likewise.
5495 (font_spec_from_name, font_clear_prop, font_update_lface):
5496 New functions.
5497 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
5498 (font_prepare_for_face, font_done_for_face, font_open_by_name)
5499 (font_at): Adjusted for the change of font-related objects.
5500 (font_range): New function.
5501 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
5502 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
5503 (Fcopy_font_spec, Fmerge_font_spec): New function.
5504 (Ffont_family_list): Renamed from list-families.
5505 (Finternal_set_font_style_table): Arguments changed.
5506 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
5507 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
5508 change of font-related objects.
5509 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
5510
5511 * fontset.h (struct font_info): Delete it. Most members go to
5512 struct font.
5513 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
5514 (enum FONT_SPEC_INDEX): Delete it.
5515 (font_info, list_fonts_func, load_font_func, query_font_func)
5516 (set_frame_fontset_func, find_ccl_program_func)
5517 (get_font_repertory_func, new_fontset_from_font_name): Delete
5518 externs.
5519 (fontset_from_font_name): Extern it.
5520 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
5521 (FONT_INFO_FROM_FACE): Deleted.
5522 (face_for_font): Adjust prototype.
5523
5524 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
5525 conditionals. Don't check enable_font_backend. Delete all codes
5526 used only when USE_FONT_BACKEND is not defined.
5527 (get_font_info_func, list_font_func, load_font_func)
5528 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
5529 (get_font_repertory_func): Delete them.
5530 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
5531 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
5532 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
5533 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
5534 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
5535 (fontset_compare_rfontdef): New function.
5536 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
5537 rfont-defs by qsort. Adjusted for the change of font-group vector.
5538 (load_font_get_repertory): Deleted.
5539 (fontset_find_font): Use new macros to ref/set elements of
5540 font-def and rfont-def.
5541 (fontset_font): Fix the timing of remembering that no font for C.
5542 (free_face_fontset): Do nothing if the face has no fontset.
5543 (face_suitable_for_char_p): Use new macros to ref/set elements of
5544 rfont-def.
5545 (face_for_char): Likewise. Call face_for_char with font_object.
5546 (fs_load_font): Delete. Delete #pragma surrounding it.
5547 (fs_query_fontset): Use strcasecmp instead of strcmp.
5548 (generate_ascii_font_name): Adjusted for the format change of
5549 font-spec.
5550 (Fset_fontset_font): Likewise. Use new macros to set elements of
5551 font-def.
5552 (Fnew_fontset): Use font_unparse_xlfd to generate
5553 FONTSET_ASCII (fontset).
5554 (new_fontset_from_font_name): Deleted.
5555 (fontset_from_font): Renamed from new_fontset_from_font. Check if
5556 a fontset is already created for the font. FIx updating of
5557 Vfontset_alias_alist.
5558 (fontset_ascii_font): Deleted.
5559 (Ffont_info): Adjusted for the format change of font-spec.
5560 (Finternal_char_font): Likewise.
5561 (Ffontset_info): Likewise.
5562 (syms_of_fontset): Don't check load_font_func.
5563
5564 * fns.c (internal_equal): Handle PREV_FONT.
5565
5566 * frame.h: Delete USE_FONT_BACKEND conditional.
5567
5568 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
5569 conditionals. Don't check enable_font_backend. Delete all codes
5570 used only when USE_FONT_BACKEND is not defined.
5571 (x_set_font): Call x_new_font, not x_new_fontset2.
5572 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
5573 already set for the frame.
5574
5575 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
5576 a font-entity by font_make_entity. Use font_intern_prop instead
5577 of intern_downcase. Use FONT_SET_STYLE to set a style-related
5578 font property. If a font is scalable, set avgwidth property to 0.
5579 Set font-entity property by font_put_extra.
5580 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
5581 (ffont_driver): Adjusted for the change of struct font_driver.
5582 (ftfont_spec_pattern): New function.
5583 (ftfont_list): Return a list, not vector.
5584 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
5585 (ftfont_list_family): Don't downcase names.
5586 (ftfont_free_entity): Deleted.
5587 (ftfont_open): Return a font-object. Adjusted for the change of
5588 struct font. Get underline_thickness and underline_position from
5589 font property. Don't update dpyinfo->smallest_font_height and
5590 dpyinfo->smallest_char_width.
5591 (ftfont_close): Don't free `struct font'.
5592 (ftfont_has_char): Adjusted for the format change of font-entity.
5593 (ftfont_encode_char, ftfont_text_extents): Likewise.
5594
5595 * ftxfont.c (ftxfont_list): Return a list, not vector.
5596 (ftxfont_open): Return a font-object. Adjusted for the change of
5597 struct font. Get underline_thickness and underline_position from
5598 font property. Don't update dpyinfo->smallest_font_height and
5599 dpyinfo->smallest_char_width.
5600 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
5601 (ftxfont_draw): Adjusted for the change of struct font.
5602
5603 * image.c (image_ascent): Don't include "charset.h". Include
5604 "character.h" and "font.h".
5605
5606 * lisp.h (enum pvec_type): New member PREV_FONT.
5607 (Fassoc_string): EXFUN it.
5608
5609 * print.c: Include font.h.
5610 (print_object): Handle font-related objects.
5611
5612 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
5613 conditionals. Don't check enable_font_backend. Delete all codes
5614 used only when USE_FONT_BACKEND is not defined.
5615 (handle_auto_composed_prop): Do nothing if it->f is not on a
5616 window system. Check how many following characters can be
5617 displayed by the same font.
5618 (calc_pixel_width_or_height): Type of the 4th arg is changed to
5619 'struct font *'.
5620 (get_char_face_and_encoding): Assign the whole encoding task to
5621 the `encode-char' method of a font driver.
5622 (fill_composite_glyph_string): Adjusted for the change of `struct
5623 face' and `struct glyph_string'.
5624 (fill_glyph_string): Likewise.
5625 (get_per_char_metric): Arguments changed.
5626 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
5627 and `struct glyph_string'.
5628 (produce_stretch_glyph, calc_line_height_property)
5629 (x_produce_glyphs): Likewise.
5630
5631 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
5632 conditionals. Don't check enable_font_backend. Delete all codes
5633 used only when USE_FONT_BACKEND is not defined. Use
5634 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
5635 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
5636 (Qp): Extern them.
5637 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
5638 Deleted.
5639 (struct font_name): Deleted.
5640 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
5641 (compare_fonts_by_sort_order): New function.
5642 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
5643 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
5644 Deleted.
5645 (Fx_family_fonts): Use font_list_entities, and sort fonts by
5646 compare_fonts_by_sort_order.
5647 (Fx_font_family_list): Call Ffont_family_list.
5648 (face_numeric_value, face_numeric_weight, face_numeric_slant)
5649 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
5650 (face_symbolic_slant, face_symbolic_swidth)
5651 (split_font_name_into_vector, build_font_name_from_vector)
5652 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
5653 (font_rescale_ratio, split_font_name, build_font_name)
5654 (free_font_names, sort_fonts, x_face_list_fonts)
5655 (face_font_available_p, sorted_font_list, cmp_font_names)
5656 (font_list_1, concat_font_list, font_list, remove_duplicates):
5657 Deleted.
5658 (Fx_list_fonts): Use Ffont_list.
5659 (LFACE_AVGWIDTH): Deleted.
5660 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
5661 by FONTP.
5662 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5663 (set_lface_from_font_name): Delete it.
5664 (set_lface_from_font): Renamed from
5665 set_lface_from_font_and_fontset. Caller changed. Don't set
5666 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
5667 for face.
5668 (merge_face_vectors): Copy font-spec if necessary.
5669 Clear properties of the font-spec if necessary.
5670 (merge_face_ref): Clear properties of the font-spec if necessary.
5671 (Finternal_set_lisp_face_attribute): Likewise.
5672 (set_font_frame_param): Use font_load_for_lface to load a
5673 font-object, and call Fmodify_frame_parameters with it.
5674 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
5675 font name by Ffont_xlfd_name.
5676 (Finternal_lisp_face_attribute_values): Don't check QCweight,
5677 QCslant, and QCwidth.
5678 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
5679 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
5680 Compare fonts by EQ.
5681 (lookup_non_ascii_face): Deleted.
5682 (face_for_font): The 2nd argument changed.
5683 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
5684 Check atomic font properties by case insensitive.
5685 (realize_non_ascii_face): Set face->overstrike correctly.
5686 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
5687 (dump_realized_face): Get font name from
5688 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
5689
5690 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
5691 conditionals. Don't check enable_font_backend. Delete all codes
5692 used only when USE_FONT_BACKEND is not defined.
5693 (xic_create_xfontset): Original code deleted and renamed from
5694 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
5695 (x_make_gc): Don't set GCFont in GCs.
5696 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
5697 opened by "fixed".
5698 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
5699 find_ccl_program_func, query_font_func, set_frame_fontset_func,
5700 get_font_repertory_func.
5701
5702 * xfont.c: Include <stdlib.h> and "ccl.h".
5703 (struct xfont_info): New structure.
5704 (xfont_query_font): Deleted.
5705 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
5706 moved from xterm.c.
5707 (xfont_driver): Adjusted for the change of struct font_driver.
5708 (compare_font_names): New function.
5709 (xfont_list_pattern): Sort font names case insensitively. Make
5710 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
5711 (xfont_list): Return a list, not vector.
5712 (xfont_match): If the font doesn't have QCname property, generate
5713 a name from the other font properties.
5714 (xfont_open): Return a font-object. Adjusted for the change of
5715 struct font. Get underline_thickness and underline_position from
5716 font property. Don't update dpyinfo->smallest_font_height and
5717 dpyinfo->smallest_char_width.
5718 (xfont_close): Don't free struct font.
5719 (xfont_prepare_face): Adjusted for the change of struct font.
5720 (xfont_done_face): Deleted.
5721 (xfont_has_char): Adjusted for the change of struct font.
5722 (xfont_encode_char, xfont_draw): Likewise.
5723 (xfont_check): New function.
5724
5725 * xftfont.c (xftfont_list): Adjusted for the change of `list'
5726 callback function.
5727 (xftfont_match): Adjusted for the format change of font-entity.
5728 (xftfont_open): Adjusted for the format change of font-entity and
5729 font-object. Adjusted for the change of struct font. Return a
5730 font-object. Don't update dpyinfo->smallest_font_height and
5731 dpyinfo->smallest_char_width.
5732 (xftfont_close): Block input while calling XftFontClose.
5733 (xftfont_prepare_face): Don't block input while calling
5734 xftfont_get_colors. Adjusted for the change of struct font.
5735 (xftfont_shape): Return value of error case fixed.
5736
5737 * xrdb.c (x_load_resources): Don't setup a fontset resource.
5738
5739 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
5740 conditionals.
5741 (FONT_WIDTH): Return (f)->max_width.
5742 (struct x_display_info): Delete member `font'.
5743 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
5744 (x_find_ccl_program, x_get_font_repertory): Delete externs.
5745 (struct x_output): Change type of `font' to `struct font *'.
5746
5747 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
5748 conditionals. Don't check enable_font_backend. Delete all codes
5749 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
5750 (x_per_char_metric, x_encode_char): Deleted.
5751 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
5752 (x_compute_glyph_string_overhangs): Adjusted for the change of
5753 `struct face'.
5754 (x_draw_glyph_string_foreground)
5755 (x_draw_composite_glyph_string_foreground): Likewise.
5756 (x_draw_glyph_string): Likewise. Use font->underline_position and
5757 font->underline_thickness.
5758 (x_new_font): Renamed from x_new_fontset2.
5759 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
5760 (x_check_font): Call `check' method of a font driver.
5761 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
5762 (x_query_font, x_get_font_repertory): Deleted.
5763 (x_find_ccl_program): Renamed and moved to xfont.c.
5764 (x_redisplay_interface): Adjusted for the change of `struct
5765 redisplay_interface'.
5766
5767 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
5768 conditionals. Don't check enable_font_backend. Delete all codes
5769 used only when USE_FONT_BACKEND is not defined. Surround non-used
5770 code by "#ifdef OLD_FONT" and "endif".
5771 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
5772
5773 * w32font.h (struct w32font_info): New member.
5774 (FONT_COMPAT): New macro.
5775 (w32font_open_internal): Prototype adjusted.
5776
5777 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
5778 OLD_FONT" and "endif".
5779
5780 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
5781 conditionals. Don't check enable_font_backend. Delete all codes
5782 used only when USE_FONT_BACKEND is not defined.
5783 (w32font_open): Return a font-object. Make a font-object by
5784 font_make_object. Adjusted for the change of struct w32font_info.
5785 (w32font_close): Don't free struct font. Adjusted for the change
5786 of struct w32font_info.
5787 (w32font_encode_char, w32font_text_extents, w32font_draw):
5788 Adjusted for the change of struct w32font_info.
5789 (w32font_draw): Likewise.
5790 (w32font_list_internal): Return a list, not vector.
5791 (w32font_open_internal): Change the 4th arg to font-object.
5792 Adjusted for the change of struct w32font_info and font-object format.
5793 (add_font_name_to_list): Don't downcase names.
5794 (w32_enumfont_pattern_entity): Make a font-entity by
5795 font_make_entity. Adjusted for the format change of font-entity.
5796 Use FONT_SET_STYLE to set a style-related font property. If a
5797 font is scalable, set avgwidth property to 0. Set font-entity
5798 property by font_put_extra.
5799 (font_matches_spec): Adjusted for the format change of font-entity.
5800 (w32_weight_table, w32_decode_weight): New variables.
5801 (w32_encode_weight): New function.
5802 (fill_in_logfont): Adjusted for the format change of font-spec.
5803 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
5804 weight value.
5805 (w32font_driver): Adjusted for the change of struct font_driver.
5806
5807 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
5808 conditionals. Don't check enable_font_backend. Surround non-used
5809 code by "#ifdef OLD_FONT" and "endif".
5810 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
5811 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
5812
5813 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
5814 conditionals. Don't check enable_font_backend. Delete all codes
5815 used only when USE_FONT_BACKEND is not defined. Surround non-used
5816 code by "#ifdef OLD_FONT" and "endif".
5817
5818 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
5819 (uniscribe_open): Return value changed to font-object.
5820 Adjusted for the format change of font-object.
5821 (uniscribe_otf_capability): Adjusted for the change of struct font.
5822 (add_opentype_font_name_to_list): Don't downcase names.
5823 (uniscribe_font_driver): Adjusted for the change of struct
5824 font_driver.
5825
58262008-05-13 Chong Yidong <cyd@stupidchicken.com>
5827
5828 * dispnew.c (update_frame_1): Check if tty output is still valid
5829 before flushing it.
5830
58312008-05-13 Jan Djärv <jan.h.d@swipnet.se>
5832
5833 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
5834 to Gtk+ menus.
5835
58362008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
5837
5838 * dired.c (file_name_completion): Tweak the code so as to always do it
5839 in a single pass. Tighten the scope of some variables.
5840
5841 * dired.c (Qdefault_directory): New var.
5842 (file_name_completion): Use it instead of Fexpand_file_name.
5843 (syms_of_dired): Initialize it.
5844
58452008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
5846
5847 * fileio.c (double_dollars): Remove dead code.
5848
58492008-05-10 Eli Zaretskii <eliz@gnu.org>
5850
5851 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
5852 Mention w32-get-true-file-attributes in doc string.
5853
5854 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
5855
58562008-05-09 Glenn Morris <rgm@gnu.org>
5857
5858 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
5859 2008-04-23.
5860
58612008-05-09 Eli Zaretskii <eliz@gnu.org>
5862
5863 Support for reporting owner and group of each file on MS-Windows:
5864 * dired.c (stat_uname, stat_gname): New functions, with special
5865 implementation for w32.
5866 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
5867
5868 * w32.c: Rename the_passwd_* to dflt_passwd_*.
5869 (dflt_group_name): New static variable.
5870 (dflt_group): Rename from the_group.
5871 (init_user_info): Init dflt_group fields. Get user's group name
5872 from LookupAccountSid.
5873 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
5874 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
5875 New initialization states.
5876 (globals_of_w32): Initialize them to zero. Initialize the default
5877 group name to "None".
5878 (GetFileSecurity_Name): New global var, the name of the function
5879 to call for GetFileSecurity.
5880 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
5881 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
5882 (get_file_security, get_security_descriptor_owner)
5883 (get_security_descriptor_group, is_valid_sid)
5884 (get_file_security_desc, get_rid, get_name_and_id)
5885 (get_file_owner_and_group): New functions.
5886 (stat): Use get_file_security_desc and get_file_owner_and_group to
5887 report the owner and primary group of each file. Don't ignore the
5888 high 32 bits of file's size, now that st_size is 64-bit wide.
5889 Fix test when to get true file attributes.
5890 (init_user_info): Use get_rid instead of equivalent inline code.
5891 (fstat): Don't ignore the high 32 bits of file's size.
5892
58932008-05-09 Chong Yidong <cyd@stupidchicken.com>
5894
5895 * image.c (png_load): Use correct bit-depth for setting background
5896 color.
5897
58982008-05-08 Eli Zaretskii <eliz@gnu.org>
5899
5900 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
5901 epa-hook.elc.
5902
59032008-05-08 Juanma Barranquero <lekktu@gmail.com>
5904
5905 * font.c (Ffont_match_p): Don't use `iff' in docstring.
5906
59072008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5908
5909 * macfns.c (Fx_create_frame): Make a copy of frame parameters
5910 because the original parameters are in pure storage now.
5911 (mac_window): Remove unused params. Update callers.
5912
59132008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5914
5915 * lread.c (substitute_object_recurse): Use lower-level primitives.
5916 Don't signal errors when traversing sub-char-tables.
5917 Don't loop over all the possible characters when traversing char-tables.
5918
5919 * print.c (print_preprocess): Add sub-char-tables to the print-table,
5920 just like we do in print.c.
5921
59222008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
5923
5924 * minibuf.c (Ftry_completion): Remove code left over from when we used
5925 scmp instead of Fcompare_strings.
5926
59272008-05-04 Juanma Barranquero <lekktu@gmail.com>
5928
5929 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
5930
59312008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5932
5933 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
5934 Create bitmap context in native byte order.
5935
5936 * macterm.c (XDrawLine)
5937 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
5938 context in native byte order.
5939
59402008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5941
5942 * config.in: Regenerate.
5943
5944 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
5945 New definitions for Image I/O support.
5946 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5947 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
5948 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
5949 (mac_data_provider_release_data, image_load_image_io)
5950 [USE_MAC_IMAGE_IO]: New functions.
5951 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
5952 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
5953 (init_image_func_pointer) [MAC_OSX]: Remove function.
5954 (image_load_quartz2d) [MAC_OSX]: Check availability of
5955 CGImageCreateWithPNGDataProvider at compile time.
5956 Use lowercase `false' for boolean constant.
5957 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
5958 Use image_load_image_io.
5959 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
5960 Don't check MyCGImageCreateWithPNGDataProvider.
5961 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
5962 Don't call init_image_func_pointer.
5963
5964 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
5965
5966 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
5967 Make variable non-static.
5968 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5969 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
5970
5971 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
5972 (RED_FROM_ULONG): Mask off higher bits.
5973 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
5974
5975 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
5976 Include AvailabilityMacros.h.
5977 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
5978 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
5979
59802008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
5981
5982 * chartab.c (Fset_char_table_range): If range is t, really set all
5983 chars to that value.
5984
59852008-05-03 Eli Zaretskii <eliz@gnu.org>
5986
5987 * dired.c (Ffile_attributes): Don't allow the device number become
5988 negative.
5989
59902008-05-02 Daiki Ueno <ueno@unixuser.org>
5991
5992 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
5993
59942008-05-02 Juri Linkov <juri@jurta.org>
5995
5996 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
5997 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
5998 DEFAULT argument as a list of default values in docstrings.
5999
60002008-05-01 Chong Yidong <cyd@stupidchicken.com>
6001
6002 * puresize.h (BASE_PURESIZE): Increase to 1210000.
6003
60042008-05-01 Martin Rudalics <rudalics@gmx.at>
6005
6006 * dispnew.c (change_frame_size_1): Preserve small windows when
6007 shrinking frames by calling set_window_height|width with third
6008 arg 2.
6009
6010 * window.h (struct window): Replace field too_small_ok by field
6011 resize_proportionally.
6012
6013 * window.c (make_window): Initialize resize_proportionally.
6014 (enlarge_window): Temporarily set resize_proportionally to make
6015 sure that shrink_windows does scale the window proportionally.
6016 (shrink_windows): When window has resize_proportionally set try
6017 to shrink it proportionally by stealing from other windows.
6018 (struct saved_window, Fset_window_configuration)
6019 (compare_window_configurations): Handle resize_proportionally.
6020 (WINDOW_TOTAL_SIZE): New macro.
6021 (window_min_size, shrink_windows, size_window): Use it.
6022 (check_min_window_sizes): Remove. Invalid values of
6023 window-min-height|width are handled by window_min_size_2 now.
6024 (size_window, Fsplit_window, enlarge_window)
6025 (adjust_window_trailing_edge, grow_mini_window): Don't call
6026 check_min_window_sizes.
6027 (window_min_size_2, window_min_size_1, window_min_size):
6028 New argument safe_p for retrieving "safe" minimum sizes.
6029 (Fdisplay_buffer, Fsplit_window, enlarge_window)
6030 (adjust_window_trailing_edge, grow_mini_window):
6031 Adjust arguments of window_min_size... functions.
6032 (shrink_windows): Argument min_size removed. New argument
6033 safe_p allows shrinking windows to their safe minimum sizes.
6034 Calculate minimum size and decide whether a window shall be
6035 deleted for each window individually.
6036 (size_window): When nodelete_p equals 2, tell shrink_windows to
6037 delete windows only if their new minimum size is no more safe.
6038 (shrink_window_lowest_first): Call window_min_size_1 to make
6039 sure to preserve modeline of bottom-most window when resizing
6040 the minibuffer.
6041 (Fset_window_configuration, Fcurrent_window_configuration)
6042 (compare_window_configurations): Do not handle
6043 window-min-height|width any more.
6044 (syms_of_window): Clarify window-min-height|width doc-strings.
6045
60462008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
6047
6048 * dired.c (file_name_completion): Fix up the encoding/decoding issue
6049 some more. Copy some of the code from Ftry_completions.
6050 Remove special case code that dates back to initial revision when the
6051 slash was only added when necessary and that can't trigger nowadays.
6052
60532008-04-27 Kenichi Handa <handa@m17n.org>
6054
6055 * font.c (font_prop_validate): Signal `error' instead of `font'.
6056
60572008-04-29 Jason Rumney <jasonr@gnu.org>
6058
6059 * w32fns.c (Fw32_battery_status): New defun.
6060 (syms_of_w32fns): Defsubr it.
6061
60622008-04-28 Andreas Schwab <schwab@suse.de>
6063
6064 * dired.c (file_name_completion): Fix another mixing of encoded
6065 and decoded names.
6066
60672008-04-28 Juanma Barranquero <lekktu@gmail.com>
6068
6069 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
6070
60712008-04-27 Juanma Barranquero <lekktu@gmail.com>
6072
6073 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
6074
60752008-04-27 Andreas Schwab <schwab@suse.de>
6076
6077 * dired.c (file_name_completion): Fix inappropriate mixing of
6078 encoded and decoded names.
6079
6080 * xterm.c (XTread_socket): Fix use of uninitialized variable.
6081
6082 * puresize.h (BASE_PURESIZE): Increase to 1200000.
6083
60842008-04-26 Eli Zaretskii <eliz@gnu.org>
6085
6086 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
6087 2008-03-31, it's not needed anymore with `struct stat' definition
6088 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
6089 for the same reasons.
6090
60912008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
6092
6093 * m/sparc.h: Additional redefinitions for GNU/Linux.
6094
60952008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6096
6097 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
6098 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
6099 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
6100 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
6101 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
6102 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
6103 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
6104 Likewise.
6105
6106 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
6107 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
6108 (mac_ax_number_of_characters): Add externs.
6109 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
6110 [USE_MAC_TSM]: Likewise.
6111 (mac_handle_text_input_event) [MAC_OSX]:
6112 Handle kEventTextInputOffsetToPos for no active input area case.
6113 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
6114 (mac_handle_document_access_event)
6115 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
6116 (install_application_handler) [MAC_OSX]: Register handlers for
6117 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
6118 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
6119 Register mac_handle_document_access_event.
6120
6121 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
6122 Make functions non-static.
6123
61242008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
6125
6126 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
6127 (read_file_name_completion_ignore_case, insert_default_directory)
6128 (Qdefault_directory): Move to minibuffer.el.
6129 (Fread_file_name): Call the new `read-file-name' instead.
6130
61312008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6132
6133 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
6134 Make function non-static.
6135 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
6136 Remove function.
6137 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
6138 Move to mactoolbox.c.
6139 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
6140
6141 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
6142 (mac_rect_make): New macro.
6143
6144 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
6145 instead of float.
6146 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
6147 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
6148 (XSetBackground) [USE_CG_DRAWING]: Likewise.
6149 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
6150 CGRectMake.
6151 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
6152 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
6153 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
6154 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
6155 instead of WindowRef in argument type.
6156 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
6157 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
6158 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
6159 instead of DISPLAY. All uses changed.
6160 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
6161 (x_calc_absolute_position): Simplify so as not to use
6162 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
6163
6164 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
6165 instead of WindowRef in argument type.
6166 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
6167 [TARGET_API_MAC_CARBON]: Remove externs.
6168 (create_apple_event, mac_event_parameters_to_lisp)
6169 [TARGET_API_MAC_CARBON]: Add externs.
6170
6171 * mactoolbox.c (Vmac_ts_script_language_on_focus)
6172 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
6173 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
6174 is clicked.
6175 (x_activate_menubar): Remove extern for saved_menu_event_location.
6176 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
6177 Move from mac.c.
6178
61792008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6180
6181 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
6182 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
6183
61842008-04-23 Jason Rumney <jasonr@gnu.org>
6185
6186 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
6187 attributes only for local files.
6188
6189 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
6190 default to Qlocal.
6191
61922008-04-22 Juri Linkov <juri@jurta.org>
6193
6194 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
6195 read-buffer-to-switch instead of using the letter "B".
6196
61972008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
6198
6199 * fileio.c (Qdefault_directory): New variable.
6200 (Fread_file_name): Use it to pass `dir' to the completion functions.
6201
62022008-04-20 Chong Yidong <cyd@stupidchicken.com>
6203
6204 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
6205
62062008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
6207
6208 * keyboard.c (Vpre_help_message): Remove.
6209 (show_help_echo): Remove default C code.
6210
6211 * dired.c (directory_files_internal, file_name_completion):
6212 Only call ENCODE_FILE if the string is indeed decoded.
6213
62142008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6215
6216 * Makefile.in (TOOLKIT_DEFINES): Remove.
6217 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
6218
62192008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6220
6221 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
6222 (mactoolbox.o): New target.
6223
6224 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
6225 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
6226
6227 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
6228 Use mac_set_frame_window_background instead of XSetWindowBackground.
6229 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
6230 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
6231 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
6232 instead of SetWindowTitleWithCFString.
6233 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
6234 Move function to mactoolbox.c.
6235 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
6236 Use mac_set_window_modified instead of SetWindowModified.
6237 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
6238 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
6239 (Fx_focus_frame): Use mac_front_non_floating_window instead of
6240 FrontNonFloatingWindow. Use mac_activate_window instead of
6241 ActivateWindow. Use mac_active_non_floating_window instead of
6242 ActiveNonFloatingWindow.
6243 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
6244 Use mac_show_hourglass and mac_hide_hourglass.
6245 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
6246 instead of GetGlobalMouse.
6247 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
6248 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
6249 Use mac_bring_window_to_front instead of BringToFront.
6250 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
6251 mactoolbox.c.
6252 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
6253 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
6254 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
6255 mactoolbox.c.
6256
6257 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
6258 (XtPointer): Move typedef from macmenu.c.
6259 (enum button_type): Move enum from macmenu.c.
6260 (widget_value): Move typedef from macmenu.c.
6261 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
6262 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
6263 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
6264 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
6265 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
6266 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
6267 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
6268 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
6269 (Selection): Move typedef from macselect.c.
6270 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
6271 macterm.c.
6272 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
6273 (mac_is_window_collapsed, mac_bring_window_to_front)
6274 (mac_send_window_behind, mac_hide_window, mac_show_window)
6275 (mac_collapse_window, mac_front_non_floating_window)
6276 (mac_active_non_floating_window, mac_activate_window)
6277 (mac_move_window_structure, mac_move_window, mac_size_window)
6278 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
6279
6280 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
6281 (enum mac_menu_kind): Move enum to mactoolbox.c.
6282 (min_menu_id): Move variable to mactoolbox.c.
6283 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
6284 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
6285 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
6286 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
6287 [TARGET_API_MAC_CARBON]: Likewise.
6288 (XtPointer): Move typedef to macgui.h.
6289 (enum button_type): Move enum to macgui.h.
6290 (widget_value): Move typedef to macgui.h.
6291 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
6292 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
6293 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
6294 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
6295 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
6296 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
6297 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
6298 (popup_activated_flag): Make variable non-static.
6299 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
6300 (add_menu_item, fill_menu, dispose_menus):
6301 Move functions to mactoolbox.c.
6302 (restore_show_help_function, menu_target_item_handler)
6303 (install_menu_target_item_handler, mac_handle_dialog_event)
6304 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
6305 [TARGET_API_MAC_CARBON]: Likewise.
6306 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
6307 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
6308 (find_and_call_menu_selection, name_is_separator): Make function
6309 non-static.
6310 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
6311 to mactoolbox.c.
6312 (set_frame_menubar): Don't call install_menu_quit_handler.
6313 (menu_item_selection): New variable.
6314 (mac_menu_show): Use create_and_show_popup_menu.
6315 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
6316 selection but set variable menu_item_selection. All uses changed.
6317 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
6318 Call install_menu_quit_handler. Move to mactoolbox.c.
6319
6320 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
6321 (Selection): Move typedef to macgui.h.
6322 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
6323 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
6324 Make variables non-static.
6325 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
6326 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
6327 Make functions non-static.
6328 (Vmac_service_selection) [MAC_OSX]: Likewise.
6329 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
6330 (mac_valid_selection_target_p, mac_clear_selection)
6331 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
6332 (mac_put_selection_value, mac_selection_has_target_p)
6333 (mac_get_selection_value, mac_get_selection_target_list)
6334 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
6335 Move functions to mactoolbox.c.
6336 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
6337 Likewise.
6338 (copy_scrap_flavor_data, mac_handle_service_event)
6339 (install_service_handler) [MAC_OSX]: Likewise.
6340 (syms_of_macselect) <Vmac_dnd_known_types>:
6341 Use mac_dnd_default_known_types.
6342
6343 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
6344 Move to mactoolbox.c.
6345 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
6346 (Fx_selection_owner_p): Add EXFUN.
6347 (install_window_handler, remove_window_handler, XSetWindowBackground):
6348 Remove externs.
6349 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
6350 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
6351 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
6352 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
6353 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
6354 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
6355 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
6356 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
6357 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
6358 (create_and_show_popup_menu, mac_get_selection_from_symbol)
6359 (mac_valid_selection_target_p, mac_clear_selection)
6360 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
6361 (mac_put_selection_value, mac_selection_has_target_p)
6362 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
6363 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
6364 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
6365 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
6366 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
6367 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
6368 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
6369 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
6370 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
6371
6372 * mactoolbox.c: New file.
6373
63742008-04-18 Jason Rumney <jasonr@gnu.org>
6375
6376 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
6377
63782008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6379
6380 * character.c (Fmultibyte_char_to_unibyte):
6381 Return latin1 chars unchanged.
6382
6383 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
6384 relocated if it points to `name'.
6385
63862008-04-17 Kenichi Handa <handa@m17n.org>
6387
6388 * data.c (Faset): Allow setting a multibyte character in an
6389 ASCII-only unibyte string.
6390
6391 * lisp.h (STRING_SET_MULTIBYTE): New macro.
6392
63932008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
6394
6395 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
6396 done in config.h.
6397
63982008-04-16 Juanma Barranquero <lekktu@gmail.com>
6399
6400 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
6401 (Fchar_direction): Add usage in the docstring.
6402
64032008-04-15 Chong Yidong <cyd@stupidchicken.com>
6404
6405 * keyboard.c (read_key_sequence): Remove always-true checks.
6406
64072008-04-14 Jason Rumney <jasonr@gnu.org>
6408
6409 * w32font.c (w32font_open_internal): Set max_bounds.descent in
6410 compatibility struct, for better underline positioning.
6411
64122008-04-13 David Hansen <david.hansen@gmx.net>
6413
6414 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
6415 string.
6416
64172008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
6418
6419 * m/hp800.h (XUINT, XSET): Remove.
6420
64212008-04-12 Juanma Barranquero <lekktu@gmail.com>
6422
6423 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
6424 previous change.
6425
64262008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6427
6428 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
6429 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
6430
64312008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6432
6433 * keymap.h (map_keymap_canonical): Declare.
6434 * xmenu.c (single_keymap_panes): Use it.
6435
64362008-04-11 Glenn Morris <rgm@gnu.org>
6437
6438 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
6439 set the target's value to that of the alias.
6440
64412008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6442
6443 * term.c (set_tty_color_mode): Left over typo.
6444
64452008-04-10 Michael Albinus <michael.albinus@gmx.de>
6446
6447 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
6448 only after check for file name handler functions. Signal, when
6449 native functionality is not supported.
6450 (syms_of_fileio): Declare it unconditionally.
6451
64522008-04-10 Jason Rumney <jasonr@gnu.org>
6453
6454 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
6455 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
6456
6457 * w32.c (logon_network_drive): Also logon to remote drives that
6458 are mapped to drive letters.
6459
64602008-04-10 Glenn Morris <rgm@gnu.org>
6461
6462 * xdisp.c (truncate-partial-width-windows): Doc fix.
6463
64642008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
6465
6466 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
6467 Move functions to minibuffer.el.
6468 (syms_of_fileio): Don't declare them.
6469
64702008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
6471
6472 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
6473 (syms_of_minibuf): Remove its initialization.
6474
6475 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
6476
64772008-04-09 Juanma Barranquero <lekktu@gmail.com>
6478
6479 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
6480
64812008-04-09 Jason Rumney <jasonr@gnu.org>
6482
6483 * makefile.w32-in (distclean): Delete makefile too.
6484 (maintainer-clean): New target.
6485
6486 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
6487
6488 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
6489 for new font backend and composite cases.
6490
64912008-04-09 Jan Djärv <jan.h.d@swipnet.se>
6492
6493 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
6494 Most of the code moved to run_timers.
6495 (do_pending_atimers): Call run_timers.
6496 (run_timers): New function.
6497
6498 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
6499 run atimers.
6500
6501 * process.c (wait_reading_process_output): The same as above.
6502
65032008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
6504
6505 * minibuf.c (last_exact_completion): Remove variable.
6506 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
6507 (complete_and_exit_1, complete_and_exit_2)
6508 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
6509 (Fdisplay_completion_list, display_completion_list_1)
6510 (Fminibuffer_completion_help, Fself_insert_and_exit)
6511 (Fexit_minibuffer, Fminibuffer_message): Move functions to
6512 minibuffer.el.
6513 (syms_of_minibuf): Remove corresponding initializations.
6514
6515 * keyboard.c (Qdeactivate_mark): New var.
6516 (command_loop_1): Use it to call `deactivate-mark'.
6517 (syms_of_keyboard): Initialize it.
6518
6519 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
6520 to another frame.
6521 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
6522 Don't call set_tty_color_mode.
6523 (store_frame_param): Reset previous_frame rather than call
6524 set_tty_color_mode.
6525 * term.c (set_tty_color_mode): Rewrite.
6526 * dispextern.h (set_tty_color_mode): New type.
6527 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
6528
65292008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
6530
6531 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
6532 for generic chars, which do not exist any more in emacs-unicode.
6533
65342008-04-08 Michael Albinus <michael.albinus@gmx.de>
6535
6536 * coding.c (detect_coding_emacs_mule)
6537 (Ffind_operation_coding_system): Fix typo.
6538
65392008-04-08 Jason Rumney <jasonr@gnu.org>
6540
6541 * w32uniscribe.c (SNAME): Extract only symbol name.
6542
6543 * w32font.h (struct w32_metric_cache): New struct.
6544 (w32font_info): Use it.
6545 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
6546 (CACHE_BLOCKSIZE): New constants.
6547
6548 * w32font.c (Qja, Qko, Qzh): New symbols.
6549 (syms_of_w32font): Initialise them.
6550 (font_matches_spec): Use them to filter by language.
6551 (recompute_cached_metrics): Remove function.
6552 (compute_metrics, clear_cached_metrics): New functions.
6553 (w32font_encode_char): Use them to manage metric cache.
6554 (w32font_text_extents): Cache metrics for all glyphs on demand.
6555 Delay converting glyph indices to WORD until needed.
6556 (w32font_open_internal): Initialize metric cache to empty.
6557 (registry_to_w32_charset): Charset should always be a symbol.
6558 (fill_in_logfont, list_all_matching_fonts): Family should
6559 always be a symbol.
6560
65612008-04-06 Jason Rumney <jasonr@gnu.org>
6562
6563 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
6564 Give up if glyph indices not supported. Use uniscribe obtained
6565 ABC widths for individual metrics. Map glyph clusters back to
6566 characters using fClusterStart flag. Return number of glyphs
6567 produced, not chars processed.
6568 (uniscribe_shape): Map char at FROM to current glyph.
6569
65702008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6571
6572 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
6573 Use SetMenuItemHierarchicalMenu.
6574
65752008-04-05 Jason Rumney <jasonr@gnu.org>
6576
6577 * image.c (pbm_load): Allow color values up to 65535.
6578 Throw an error if max_color_idx is outside the supported range.
6579 Report an error when image size is invalid.
6580 Read two bytes at a time when raw images have max_color_idx above 255.
6581
65822008-04-05 Eli Zaretskii <eliz@gnu.org>
6583
6584 * w32.c (readdir): If FindFirstFile/FindNextFile return in
6585 cFileName a file name that includes `?' characters, use the 8+3
6586 alias in cAlternateFileName instead.
6587
65882008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
6589
6590 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
6591 append "CCL: Quitted" when the CCL program is quitted.
6592 (setup_ccl_program): Initialize ccl->quit_silently to zero.
6593
6594 * ccl.h (struct ccl_program): New member quit_silently.
6595
65962008-04-05 Chong Yidong <cyd@stupidchicken.com>
6597
6598 * search.c (compile_pattern_1): Treat non-nil and non-string of
6599 search-spaces-regexp as nil.
6600
6601 * minibuf.c (Fassoc_string): Tweak docstring.
6602
66032008-04-05 Eli Zaretskii <eliz@gnu.org>
6604
6605 * dired.c (Ffile_attributes): Support inode numbers wider than 32
6606 bits. Remove ugly WINDOWSNT-specific kludge introduced on
6607 2008-03-14 to force inode be positive.
6608
6609 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
6610 _S_* ones, since we now use our own sys/stat.h.
6611 (stat, fstat): Don't mangle the inode number.
6612 (init_user_info): Don't restrict UID and GID to 0-60000 range.
6613
66142008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
6615
6616 * frame.h (struct frame): Give one more bit to `visible' since we use
6617 values larger than 1 to indicate obscured frames on ttys.
6618
6619 * keymap.c (Qkeymap_canonicalize): New var.
6620 (Fmap_keymap_internal): New fun.
6621 (describe_map): Use keymap-canonicalize.
6622
6623 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
6624 (Fundo_boundary): Set them.
6625 (syms_of_undo): Initialize them.
6626 (record_point): Use them instead of last_point_position*.
6627 (last_undo_buffer): Change type.
6628
66292008-04-04 Jason Rumney <jasonr@gnu.org>
6630
6631 * w32font.c (w32font_text_extents): Use font's ascent and descent.
6632 (recompute_cached_metrics): Don't set ascent and descent per char.
6633
6634 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
6635 (uniscribe_check_otf): Add GC protection before consing.
6636 Rearrange loop for counting features.
6637
66382008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
6639
6640 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
6641 buffer with byte-size of source buffer.
6642
66432008-04-03 Chong Yidong <cyd@stupidchicken.com>
6644
6645 * callint.c (Fcall_interactively): Handle temporary region even
6646 when shift-select-mode is off.
6647
66482008-04-03 Jason Rumney <jasonr@gnu.org>
6649
6650 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
6651
66522008-04-03 Kenichi Handa <handa@m17n.org>
6653
6654 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
6655 (CATEGORY_MASK_UTF_16): Likewise.
6656 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
6657 binary file.
6658 (detect_coding): Add null-byte detection for a binary file.
6659 (detect_coding_system): Likewise.
6660
66612008-04-03 Jason Rumney <jasonr@gnu.org>
6662
6663 * w32uniscribe.c: New file.
6664
6665 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
6666
6667 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
6668
6669 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
6670 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
6671 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
6672 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
6673 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
6674 (Qphonetic): New symbols.
6675 (syms_of_w32font): Initialize them.
6676 (font_supported_scripts): Use them.
6677 (w32font_list_family): List all charsets.
6678 (w32font_text_extents, recompute_cached_metrics): Fix metric
6679 calculations.
6680 (w32_enumfont_pattern_entity): Make full_type a DWORD.
6681 Give opentype fonts their own format.
6682 (font_matches_spec): New arguments backend and logfont.
6683 Handle :otf spec for uniscribe backend.
6684 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
6685 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
6686
6687 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
6688 font backend.
6689 (globals_of_w32fns): Initialize uniscribe font backend.
6690
6691 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
6692 dependencies.
6693 (w32uniscribe.$(O)): New file to build.
6694 (FONT_OBJ): Include w32uniscribe.$(O).
6695 (LIBS): Add uniscribe libraries.
6696
6697 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
6698
66992008-04-02 Chong Yidong <cyd@stupidchicken.com>
6700
6701 * callint.c (Vshift_select_mode): New var.
6702 (Finteractive): Document new ^ spec.
6703 (Fcall_interactively): Call handle-shift-selection if the ^ spec
6704 is present.
6705
6706 * keyboard.c (Vthis_command_keys_shift_translated): New var.
6707 (command_loop_1): Avoid running the direct display versions of
6708 forward-char and backward-char if shift-selection may occur.
6709 (read_key_sequence): Set Vthis_command_keys_shift_translated if
6710 shift-translation takes place.
6711
6712 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
6713 avoid clobbering by define-minor-mode.
6714
6715 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
6716 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
6717
6718 * syntax.c (Fforward_word): Add ^ interactive spec.
6719
6720 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
6721 (Fscroll_right): Add ^ interactive spec.
6722
67232008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
6724
6725 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
6726
6727 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
6728
6729 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
6730
67312008-03-31 Juri Linkov <juri@jurta.org>
6732
6733 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
6734
67352008-03-30 Jan Djärv <jan.h.d@swipnet.se>
6736
6737 * gtkutil.c (xg_set_geometry): Fix indentation.
6738 (xg_resize_outer_widget): Remove.
6739 (x_wm_size_hint_off): Fix indentation.
6740 (xg_frame_set_char_size): Call flush_and_sync after
6741 gtk_window_resize.
6742 (x_wm_set_size_hint): Pass NULL as geometry window to
6743 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
6744 Add menu bar and tool bar height to base height.
6745 (xg_update_frame_menubar, free_frame_menubar)
6746 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6747 (update_frame_tool_bar, free_frame_tool_bar):
6748 Change xg_resize_outer_widget to xg_frame_set_char_size.
6749
67502008-03-30 Michael Albinus <michael.albinus@gmx.de>
6751
6752 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
6753 (Fdbus_call_method): New parameter TIMEOUT.
6754 (dbus-send-signal): Optimize UNGCPRO call.
6755
67562008-03-29 Juri Linkov <juri@jurta.org>
6757
6758 * window.c (Fdisplay_buffer): Move call to
6759 Vsplit_window_preferred_function out of conditions that check
6760 if window is eligible for vertical splitting.
6761 When Vsplit_window_preferred_function is non-nil, call it and use
6762 its non-nil return value as window. Otherwise, continue doing
6763 vertical splitting using Fsplit_window with arg horflag=nil.
6764 (syms_of_window) <Vsplit_window_preferred_function>: Change the
6765 default value from `split-window' to nil.
6766
67672008-03-29 Juri Linkov <juri@jurta.org>
6768
6769 * callint.c (Fcall_interactively): Revert 2008-03-16 change
6770 for interactive code letters 'b' and 'B'.
6771
67722008-03-29 Eli Zaretskii <eliz@gnu.org>
6773
6774 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
6775 multibyte string.
6776
67772008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
6778
6779 * keyboard.c (pending_funcalls): New var.
6780 (timer_check): Run it.
6781 (syms_of_keyboard): Initialize it.
6782 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
6783 (Vdelete_terminal_functions): New vars.
6784 (syms_of_terminal): Initialize them.
6785 (Fdelete_terminal): Run delete-terminal-functions.
6786 * xdisp.c (safe_eval): Rewrite.
6787 (safe_call2): New fun.
6788 * frame.c (Qdelete_frame_functions): New var.
6789 (syms_of_frame): Initialize it.
6790 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
6791 * lisp.h (safe_call2, pending_funcalls): Declare.
6792
67932008-03-28 Andreas Schwab <schwab@suse.de>
6794
6795 * indent.c (Fmove_to_column): Move declaration before statements.
6796
67972008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
6798
6799 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
6800 (struct frame): Use bit fields for boolean vars.
6801
6802 * process.c (server_accept_connection): Simplify naming.
6803 (emacs_get_tty_pgrp): Use SDATA.
6804
6805 * coding.c (decode_coding_object): Fix last change.
6806
68072008-03-27 Jason Rumney <jasonr@gnu.org>
6808
6809 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
6810
68112008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
6812
6813 * charset.c (Fdefine_charset_internal): Change the way of
6814 registering charsets in Vcharset_order_list.
6815 (syms_of_charset): Make the charset `eight-bit' supplementary.
6816
68172008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
6818
6819 * regex.c (EXTEND_BUFFER): Change order of pointer addition
6820 operations, to avoid having the difference between pointers
6821 overflow.
6822
68232008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6824
6825 * indent.c (check_display_width): New fun.
6826 (scan_for_column): Use it.
6827
6828 * data.c (syms_of_data): Mark most-positive-fixnum and
6829 most-negative-fixnum as constants.
6830
6831 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
6832
6833 * indent.c (scan_for_column): Extract from current_column_1.
6834 Merge with the same code from Fmove_to_column.
6835 (current_column_1, Fmove_to_column): Use it.
6836
68372008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
6838
6839 * keymap.c (map_keymap_internal): New fun.
6840 (map_keymap): Use it.
6841 (Fmap_keymap_internal): New fun.
6842 (Fmap_keymap): Remove left-out test from before make_save_value.
6843
6844 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
6845
6846 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
6847 Use XCAR/XCDR.
6848
6849 * process.h (struct Lisp_Process): Remove filter_multibyte.
6850 * process.c (QCfilter_multibyte): Remove.
6851 (setup_process_coding_systems): Don't use filter_multibyte.
6852 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
6853 (read_process_output): Don't adjust multibyteness to filter_multibyte.
6854 (Fset_process_filter_multibyte): Change the coding-system to
6855 approximate the previous behavior.
6856 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
6857 coding-system.
6858
6859 * coding.c (decode_coding_object): When not decoding into a buffer,
6860 obey the coding system's preference of (uni|multi)byte.
6861
68622008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
6863
6864 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
6865 every char is changed and has a different byte-length.
6866 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
6867 Fix int -> EMACS_INT.
6868
68692008-03-23 David Hansen <david.hansen@gmx.net>
6870
6871 * dbusbind.c (xd_read_message): Remove extra copying of message
6872 strings. Check for NULL `interface' or `member'.
6873
68742008-03-22 Eli Zaretskii <eliz@gnu.org>
6875
6876 * w32.c (readdir): If FindFirstFile/FindNextFile return in
6877 cFileName a file name that includes `?' characters, use the 8+3
6878 alias in cAlternateFileName instead.
6879
68802008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
6881
6882 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
6883
68842008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6885
6886 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
6887 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
6888 work on current_buffer only instead (that was already the case
6889 for some of the code anyway).
6890 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
6891 (temp_set_point, temp_set_point_both): Use EMACS_INT.
6892 (SET_PT, SET_PT_BOTH): Adjust.
6893 * intervals.h (set_point, temp_set_point, set_point_both)
6894 (temp_set_point_both): Remove redundant declarations.
6895
68962008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6897
6898 * fileio.c (Finsert_file_contents):
6899 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
6900 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
6901 when buffer != current_buffer anyway.
6902
69032008-03-20 Andreas Schwab <schwab@suse.de>
6904
6905 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
6906 as default.
6907
69082008-03-19 Jason Rumney <jasonr@gnu.org>
6909
6910 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
6911 (syms_of_w32fns): Initialize them.
6912 (HOURGLASS_ID): New constant.
6913 (x_window_to_frame): Don't check hourglass_window.
6914 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
6915 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
6916 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
6917 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
6918 Only change the cursor if hourglass is not active.
6919 (Fx_create_frame): Initialize frame's current_cursor.
6920 (hourglass_atimer): Remove.
6921 (hourglass_started): New function.
6922 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
6923 (show_hourglass): Adapt to w32, changing argument to frame.
6924
6925 * w32term.h (struct w32_output): Remove hourglass_window.
6926 Add current_cursor.
6927
6928 * eval.c (call_debugger, Fsignal):
6929 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
6930 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
6931 (Fexecute_extended_command, cancel_hourglass_unwind):
6932 * minibuf.c (read_minibuf):
6933 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
6934
69352008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
6936
6937 * window.c (run_funs): New fun.
6938 (run_window_configuration_change_hook): Use it to run the buffer-local
6939 and the global part of the hook.
6940
6941 * xdisp.c (format_mode_line_unwind_data): Add window argument.
6942 (unwind_format_mode_line): Restore selected window.
6943 (x_consider_frame_title, Fformat_mode_line): Set selected window.
6944
69452008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6946
6947 * editfns.c (Fchar_equal): Check they are valid characters.
6948
6949 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
6950
69512008-03-17 Andreas Schwab <schwab@suse.de>
6952
6953 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
6954 against a charset.
6955
6956 * lisp.h (Fbuffer_list): Declare.
6957
69582008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 6959
aac0c6e3
MR
6960 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
6961 handlebox_widget is != 0.
6962
69632008-03-16 Juri Linkov <juri@jurta.org>
6964
6965 * callint.c (Fcall_interactively): For interactive code letters
6966 'b' and 'B' put the buffer list into the list of default "future"
6967 values of the minibuffer.
6968
69692008-03-16 Andreas Schwab <schwab@suse.de>
6970
6971 * keyboard.c (read_key_sequence): Fix downcasing of letters with
6972 modifiers.
6973
6974 * regex.c (re_match_2_internal): Correct matching of a charset
6975 against latin-1 characters.
6976
69772008-03-16 Kenichi Handa <handa@m17n.org>
6978
6979 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
6980 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
6981 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
6982 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
6983 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
6984 CHAR_STRING_ADVANCE.
6985 (produce_chars): Fix for the case that the source and the
6986 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
6987 instead of CHAR_STRING_ADVANCE.
6988 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
6989 STRING_CHAR_ADVANCE.
6990
69912008-03-15 Andreas Schwab <schwab@suse.de>
6992
6993 * regex.c (re_match_2_internal): Correct matching of eight bit
6994 characters in unibyte strings.
6995
69962008-03-15 Martin Rudalics <rudalics@gmx.at>
6997
6998 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
6999 at end of range when it coincides with the end of the buffer.
7000
70012008-03-14 Eli Zaretskii <eliz@gnu.org>
7002
7003 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
7004
7005 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
7006
70072008-03-14 Jason Rumney <jasonr@gnu.org>
7008
7009 * editfns.c (initial_tz): New variable.
7010 (syms_of_editfns): Initialize it.
7011 (Fset_time_zone_rule): Set it when first called.
7012 Use it when TZSTRING is nil.
7013
7014 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
7015 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
7016 (monitor_from_point_fn, get_monitor_info_fn): New globals.
7017 (globals_of_w32fns): Initialize them.
7018 (compute_tip_xy): Use them to position tooltips.
7019
70202008-03-14 Glenn Morris <rgm@gnu.org>
7021
7022 * emacs.c (main): Revert previous change.
7023 (standard_args): Revert -internal-script back to -scriptload,
7024 and remove the long-option form.
7025
70262008-03-13 Glenn Morris <rgm@gnu.org>
7027
7028 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
7029 Remove option -enable-font-backend.
7030
70312008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
7032
7033 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
7034
70352008-03-11 Jan Djärv <jan.h.d@swipnet.se>
7036
7037 * xterm.c (x_connection_closed): For GTK: If this is the last
7038 terminal just exit without closing the display.
7039
70402008-03-11 Jason Rumney <jasonr@gnu.org>
7041
7042 * w32font.c (w32font_full_name): Use floor to round.
7043
70442008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
7045
7046 * sound.c (alsa_configure): Declare vol at beginning of block.
7047
7048 * fontset.c (Ffontset_info): Remove extra semicolon.
7049
70502008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7051
7052 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
7053 size of resulting string.
7054
70552008-03-10 Jason Rumney <jasonr@gnu.org>
7056
7057 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
7058
70592008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7060
7061 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
7062 Don't pretend as if characters with display property haven't been
7063 consumed for string-replacing-string case.
7064
70652008-03-08 Kim F. Storm <storm@cua.dk>
7066
7067 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
7068 (get_next_display_element, next_element_from_string)
7069 (next_element_from_ellipsis, next_element_from_buffer): Use it.
7070
70712008-03-08 Andreas Schwab <schwab@suse.de>
7072
7073 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
7074
70752008-03-06 Jason Rumney <jasonr@gnu.org>
7076
7077 * w32font.c (w32_registry): Take font_type argument. Use ANSI
7078 when charset not specified. Only translate ANSI to unicode when
7079 font_type is truetype.
7080 (w32font_coverage_ok): New function.
7081 (add_font_entity_to_list): Use it to filter unsuitable fonts.
7082
70832008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
7084
7085 * lread.c (Fread_char): Resolve modifiers.
7086 (Fread_char_exclusive): Likewise.
7087
7088 * character.c (char_resolve_modifier_mask): New function.
7089 (char_string): Use char_resolve_modifier_mask.
7090 (Fchar_resolve_modifiers): New function.
7091 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
7092 function.
7093
70942008-03-04 Jason Rumney <jasonr@gnu.org>
7095
7096 * makefile.w32-in: Always include w32font.c in the build.
7097 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
7098
70992008-03-04 Andreas Schwab <schwab@suse.de>
7100
7101 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
7102 (versionclean): Likewise.
7103
71042008-03-04 Juanma Barranquero <lekktu@gmail.com>
7105
7106 * .cvsignore: Add oo.
7107
71082008-03-03 Andreas Schwab <schwab@suse.de>
7109
7110 * coding.c (decode_coding_object): Inhibit gap shrinking while
7111 decoding in place.
7112
71132008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
7114
7115 * w32term.c: Remove unused include "gnu.h".
7116 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
7117
7118 * gnu.h: Rename to ...
7119 * emacs-icon.h: ... this.
7120 * xterm.c: Use emacs-icon.h instead of gnu.h.
7121 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
7122
71232008-03-03 Juanma Barranquero <lekktu@gmail.com>
7124
7125 * w32font.c: Include math.h.
7126
71272008-03-03 Jason Rumney <jasonr@gnu.org>
7128
7129 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
7130 Compute options separately.
7131 (w32font_open_internal): Set glyph_idx before caching metrics.
7132
7133 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
7134 Define if system headers don't.
7135 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
7136 (w32font_encode_char): Don't declare here.
7137
7138 * w32font.c (Quniscribe, QCformat): New symbols.
7139 (syms_of_w32font): Define them.
7140 (w32font_has_char): Indicate uncertainty.
7141 (w32font_encode_char): Encode as glyph point. Make static.
7142 (recompute_cached_metrics): New function.
7143 (w32font_open_internal): Use it. Set font to use glyph points
7144 initially. Set format based on type of font.
7145 (w32font_text_extents, w32font_draw): Optionally use glyph points.
7146 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
7147 on it. Set format based on information available here.
7148 (add_font_entity_to_list): Identify backend based on opentype_only.
7149
71502008-03-02 Andreas Schwab <schwab@suse.de>
7151
7152 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
7153
7154 * coding.c (decode_coding_big5, produce_chars):
7155 Fix typos in last change.
7156
71572008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
7158
7159 * gnu.h: New icon.
7160
71612008-03-02 Kenichi Handa <handa@m17n.org>
7162
7163 * coding.c (decode_coding_utf_8): When eol-type of CODING is
7164 `dos', don't decode '\r' if that is the last in the source.
7165 (decode_coding_utf_16, decode_coding_emacs_mule)
7166 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7167 (decode_coding_raw_text, decode_coding_charset): Likewise.
7168 (produce_chars): Don't decode EOL here. Use EMACS_INT.
7169
71702008-03-01 Jason Rumney <jasonr@gnu.org>
7171
7172 * w32font.c (w32font_full_name): Report point size for scalable fonts.
7173
71742008-03-01 Kim F. Storm <storm@cua.dk>
7175
7176 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
7177
71782008-03-01 Jason Rumney <jasonr@gnu.org>
7179
7180 * w32font.c (w32font_full_name): New function.
7181 (w32font_open_internal): Use it.
7182
71832008-03-01 Kim F. Storm <storm@cua.dk>
7184
7185 * dispnew.c (line_draw_cost): Fix invalid glyph check.
7186
71872008-03-01 Jason Rumney <jasonr@gnu.org>
7188
7189 * font.c (font_unparse_fcname): Increase len when style is a symbol.
7190
71912008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7192
7193 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
7194 xg_frame_resized when the event is for the edit widget.
7195
7196 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
7197
7198 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
7199 set_char_size.
7200 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
7201 operations on widgets here. Just set frame size if needed.
7202 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
7203 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
7204 (x_wm_set_size_hint): Set size hints on the edit widget only, not
7205 the whole frame.
7206 (xg_create_tool_bar): Move attachment of the tool bar to
7207 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
7208 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
7209
72102008-03-01 Jason Rumney <jasonr@gnu.org>
7211
7212 * w32fns.c (w32_msg_pump): Disable debug code.
7213
72142008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7215
7216 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
7217
72182008-02-29 Chong Yidong <cyd@stupidchicken.com>
7219
7220 * xdisp.c (next_overlay_string): Don't set
7221 overlay_strings_at_end_processed_p if we're currently reading from
7222 a display string.
7223
72242008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
7225
7226 * xdisp.c (get_overlay_strings_1): Fix typo.
7227
72282008-02-29 Chong Yidong <cyd@stupidchicken.com>
7229
7230 * xdisp.c (get_overlay_strings_1): Add missing argument type.
7231
72322008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
7233
7234 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
7235
7236 * xdisp.c (display_mode_element): Cancel the previous change.
7237 (decode_mode_spec): Likewise.
7238 (handle_auto_composed_prop): Don't make composition if it->string
7239 is a string.
7240
72412008-02-27 Kim F. Storm <storm@cua.dk>
7242
7243 * lisp.h (GLYPH): Change type from int to struct with separate char
7244 and face_id members.
7245 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
7246 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
7247 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
7248 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
7249 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
7250 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
7251 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
7252 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
7253 handle new Lisp glyph code encoding, either an integer or a cons.
7254
7255 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
7256 (GLYPH_ALIAS): Delete.
7257 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
7258 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
7259 (GLYPH_FROM_CHAR): Replace macro by ...
7260 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
7261
7262 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
7263 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
7264 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
7265 (GLYPH_INVALID_P): New macro.
7266 (spec_glyph_lookup_face): Update prototype.
7267
7268 * dispnew.c (line_draw_cost): Adapt to new glyph type.
7269 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
7270 new glyph code encoding.
7271 (spec_glyph_lookup_face): No return value; update passed glyph instead.
7272 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
7273
7274 * xdisp.c (get_next_display_element, next_element_from_display_vector):
7275 Adapt to new glyph type and new glyph code encoding.
7276
7277 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
7278
7279 * indent.c (current_column, current_column_1, Fmove_to_column)
7280 (compute_motion): Adapt to new glyph code encoding.
7281
7282 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
7283
72842008-02-27 Chong Yidong <cyd@stupidchicken.com>
7285
7286 * process.c (wait_reading_process_output): Check for window
7287 changes caused by timers.
7288 Suggested by Johan Bockgård.
7289
72902008-02-27 Glenn Morris <rgm@gnu.org>
7291
7292 * emacs.c (USAGE1): Add `--disable-font-backend'.
7293
72942008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
7295
7296 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
7297 is made to the buffer.
7298
72992008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
7300
7301 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
7302 (face_at_string_position):
7303 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7304 (face_at_string_position):
7305 * xdisp.c (display_string, next_overlay_change):
7306 * buffer.h (overlays_at):
7307 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
7308 Update callers.
7309
73102008-02-26 Chong Yidong <cyd@stupidchicken.com>
7311
7312 * editfns.c (Fformat): Doc fix.
7313
73142008-02-26 Juanma Barranquero <lekktu@gmail.com>
7315
7316 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
7317 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
7318 (Ffont_otf_alternates, Fquery_font): Doc fixes.
7319
73202008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
7321
7322 * buffer.c (Fbuffer_swap_text): New function.
7323 (syms_of_buffer): Defsubr it.
7324
73252008-02-25 Chong Yidong <cyd@stupidchicken.com>
7326
7327 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
7328
73292008-02-25 Jason Rumney <jasonr@gnu.org>
7330
7331 * w32font.c (w32font_draw): Draw one character at a time when padding.
7332
73332008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
7334
7335 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
7336 Handle a nil arg. Use run_window_configuration_change_hook.
7337 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
7338 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
7339 Use run_window_configuration_change_hook.
7340
73412008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
7342
7343 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
7344 1-pixel width.
7345
73462008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
7347
7348 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
7349 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
7350 if the glyph in the font is zero pixel with.
7351
7352 * dispextern.h (struct glyph_string): New member padding_p.
7353
7354 * w32font.c (w32font_draw): Pay attention to s->padding_p.
7355
7356 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
7357
7358 * xfont.c (xfont_draw): Pay attention to s->padding_p.
7359
7360 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
7361
7362 * font.c: If the font driver doesn't have `shape' function, return Qnil.
7363
73642008-02-25 Jason Rumney <jasonr@gnu.org>
7365
7366 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
7367
73682008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
7369
7370 Allow fine-grained image-cache flushing.
7371 * dispextern.h (struct image): Add `dependencies' field.
7372 (clear_image_caches): Change arg to Lisp_Object.
7373 * image.c (make_image): Initialize `dependencies' field.
7374 (clear_image_cache): Change arg to allow fine-grained flushing.
7375 Perform the flush even if image-cache-eviction-delay is nil.
7376 (clear_image_caches): Change arg to Lisp_Object.
7377 (Fclear_image_cache): Expand meaning of the argument.
7378 (mark_image): Mark `dependencies' field.
7379 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
7380 (lface_hash): Use XHASH rather than XFASTINT.
7381 (face_at_buffer_position): Fix int -> EMACS_INT position.
7382 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
7383 (select_frame_for_redisplay): Remove code duplication.
7384 (redisplay_internal): Adapt arg to call to clear_image_caches.
7385
73862008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
7387
7388 * s/vms4-0.h:
7389 * s/vms4-2.h:
7390 * s/vms4-4.h:
7391 * s/vms5-5.h: Remove, unused.
7392
7393 * s/irix5-2.h:
7394 * s/irix6-0.h:
7395 * s/riscos5.h:
7396 * s/mach-bsd4-3.h:
7397 * m/mips4.h: Remove files for obsolete systems.
7398
7399 * Makefile.in:
7400 * filelock.c:
7401 * unexmips.c:
7402 * m/hp9000s300.h:
7403 * m/iris4d.h:
7404 * s/aix3-1.h:
7405 * s/hpux.h:
7406 * s/msdos.h:
7407 * s/usg5-0.h:
7408 * s/usg5-2-2.h:
7409 * s/usg5-2.h:
7410 * s/usg5-3.h: Remove references to obsolete variables.
7411
7412 * s/irix5-0.h: Remove, move all the contents ...
7413 * s/irix6-5.h: ... here. Simplify.
7414 * config.in: Regenerate.
7415
74162008-02-24 Jason Rumney <jasonr@gnu.org>
7417
7418 * w32term.c (x_draw_glyph_string_background): Clear the background
7419 manually when cleartype is in use.
7420 (x_draw_glyph_string_foreground): Draw text transparently when
7421 cleartype is in use.
7422
7423 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
7424 a font into it unless we have to.
7425
74262008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
7427
7428 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
7429 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 7430
aac0c6e3
MR
74312008-02-18 Jason Rumney <jasonr@gnu.org>
7432
7433 * w32fns.c (Fw32_shell_execute): Encode parameters.
7434
74352008-02-09 Eli Zaretskii <eliz@gnu.org>
7436
7437 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
7438
74392008-02-05 Juanma Barranquero <lekktu@gmail.com>
7440
7441 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
7442
74432008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
7444
7445 * xterm.c (x_set_offset): Don't change the gravity if
7446 CHANGE_GRAVITY is -1.
7447
74482008-02-23 Chong Yidong <cyd@stupidchicken.com>
7449
7450 * fileio.c (auto_save_error_occurred): New var.
7451 (auto_save_error): Set it.
7452 (Fdo_auto_save): Don't overwrite the error message if an auto-save
7453 error occurred.
7454
74552008-02-23 Eli Zaretskii <eliz@gnu.org>
7456
7457 * w32.c (globals_of_w32): Add initializations for
7458 g_b_init_get_sid_sub_authority and
7459 g_b_init_get_sid_sub_authority_count.
7460
74612008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
7462
7463 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
7464 (font_parse_xlfd): Use them for sanity check.
7465 (Finternal_set_font_style_table): Make sure the table is bijective.
7466
7467 Consolidate the image_cache to the terminal struct.
7468 * termhooks.h (P_): Remove redundant def.
7469 (struct terminal): New field `image_cache'.
7470 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
7471 of FRAME_X_IMAGE_CACHE.
7472 * xterm.h (struct x_display_info): Remove image_cache field.
7473 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
7474 * w32term.h (struct w32_display_info): Remove image_cache field.
7475 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
7476 * macterm.h (struct mac_display_info): Remove image_cache field.
7477 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
7478 * xterm.c (x_term_init):
7479 * w32term.c (w32_term_init):
7480 * macterm.c (mac_term_init): Set the image_cache in the terminal.
7481 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
7482 Remove declarations.
7483 (clear_image_caches, mark_image_cache): New declarations.
7484 * xfaces.c (clear_face_cache):
7485 * xdisp.c (redisplay_internal): Use clear_image_caches.
7486 * image.c (clear_image_cache): Don't check that a frame is on
7487 a window-system before checking if it shares the same cache.
7488 (clear_image_caches): New function.
7489 (Fclear_image_cache): Use it.
7490 (mark_image): Move from allo.c.
7491 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
7492 * alloc.c (mark_image, mark_image_cache): Move to image.c.
7493 (mark_object): Don't call mark_image_cache for frames.
7494 (mark_terminals): Call mark_image_cache.
7495
7496 * lisp.h (Fdelete_terminal): Declare.
7497
7498 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
7499 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
7500 wrong_type_argument.
7501
75022008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
7503
7504 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
7505 malayalam.el, and tamil.el. Add sinhala.el.
7506
75072008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
7508
7509 * xterm.c (x_connection_closed): Consolidate identical tests.
7510 (x_delete_terminal): Don't crash if called via x_connection_closed.
7511
75122008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
7513
7514 * xdisp.c (decode_mode_spec): New arg string.
7515 (display_mode_element): Adjust for the above change.
7516
75172008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
7518
7519 * callint.c (Fcall_interactively): Use AREF.
7520
75212008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7522
7523 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
7524
75252008-02-18 Jan Djärv <jan.h.d@swipnet.se>
7526
7527 * xfns.c (Fx_show_tip): Set string to " " if empty.
7528
75292008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
7530
7531 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
7532 with Qt.
7533
75342008-02-17 Kenichi Handa <handa@m17n.org>
7535
7536 * ftfont.c (ftfont_shape): Return Lispy number.
7537
7538 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
7539 for GCs.
7540 (Finternal_set_font_selection_order): Call font_update_sort_order
7541 only when enable_font_backend is set.
7542 (realize_x_face): Set face->font_info to that of default face only
7543 when enable_font_backend is set.
7544
7545 * xdisp.c (handle_composition_prop): Set it->c to the fist
7546 character of the composed region.
7547 (fill_composite_glyph_string): Set base_face->font_info to
7548 s->font_info. Get a face for ascii from base_face->ascii_face.
7549 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
7550 with a face already decided.
7551 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
7552 non-negative.
7553 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
7554 call font_prepare_composition unconditionally.
7555
7556 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
7557
7558 * xterm.h (struct x_display_info): New member font.
7559
7560 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
7561 (x_set_mouse_face_gc, x_new_font): Likewise.
7562 (x_term_init): Setup display_info->font.
7563 (x_delete_terminal): Free display_info->font.
7564
7565 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
7566
7567 * ftxfont.c (ftxfont_default_fid): Delete it.
7568 (ftxfont_open): Set xfont->fid to 0.
7569 (ftxfont_end_for_frame): Clear data specific to the frame and the
7570 font-driver.
7571
7572 * xftfont.c (xftfont_default_fid): Delete it.
7573 (xftfont_open): Set xfont->fid to 0.
7574
7575 * fontset.c (FONTSET_OBJLIST): New macro.
7576 (fontset_find_font): Update font-object list of the fontset.
7577 (free_realized_fontset): New function.
7578 (free_face_fontset): Call free_realized_fontset.
7579 (Ffont_info): Call font_close_object only when enable_font_backend
7580 is set.
7581
7582 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
7583 [HAVE_NTGUI]: Include w32term.h.
7584 [MAC_OS]: Include macterm.ch.
7585 (font_otf_ValueRecord): Use make_number.
7586 (font_finish_cache): Fix handling of reference count.
7587 (font_clear_cache): Update num_fonts.
7588 (font_open_entity): Update smallest_char_width and
7589 smallest_font_height of the frame.
7590 (font_close_object): Update num_fonts.
7591 (Fclear_font_cache): Fix finding the target cache data.
7592
75932008-02-16 Glenn Morris <rgm@gnu.org>
7594
7595 * fontset.c (Finternal_char_font): Fix compilation warning.
7596
75972008-02-16 Eli Zaretskii <eliz@gnu.org>
7598
7599 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
7600 instead of char arrays. Enlarge the size of array passed to
7601 get_token_information.
7602
7603 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
7604 warnings.
7605
76062008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
7607
7608 * .gdbinit: Don't set `args', it breaks gdb --args.
7609
76102008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
7611
7612 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
7613 within a narrowed buffer.
7614
76152008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
7616
7617 * coding.c (decode_coding_object, encode_coding_object):
7618 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
7619
76202008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7621
7622 * coding.c (coding_set_destination): Use BEG_BYTE rather than
7623 hardcoding 1.
7624 (detect_coding_system):
7625 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
7626 (string_char_to_byte, string_byte_to_char, insert_from_gap):
7627 * insdel.c (insert_from_gap):
7628 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
7629 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
7630 (string_to_multibyte):
7631 * character.c (chars_in_text, multibyte_chars_in_text):
7632 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
7633
7634 * character.h (FETCH_STRING_CHAR_ADVANCE)
7635 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
7636 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
7637 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
7638
7639 * casefiddle.c (casify_region): Only call after-change and composition
7640 functions on the part of the region that was changed.
7641
7642 * keyboard.c (read_avail_input):
7643 * frame.c (Fdelete_frame): Call Fdelete_terminal.
7644
76452008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7646
7647 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
7648 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
7649
76502008-02-11 Juanma Barranquero <lekktu@gmail.com>
7651
7652 * w32menu.c (push_submenu_start, push_submenu_end)
7653 (push_left_right_boundary, push_menu_pane, push_menu_item):
7654 * keyboard.c (read_key_sequence): Don't pass args with side effects
7655 to AREF, it fails when compiling with -DENABLE_CHECKING.
7656
76572008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
7658
7659 * Makefile.in (${lispsource}international/charprop.el):
7660 Delete this target.
7661
7662 * search.c (boyer_moore): Fix incorrect synching of the trunk and
7663 emacs-unicode-2.
7664
76652008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7666
7667 * terminal.c (Fdelete_terminal): Clean up the `force' path.
7668
76692008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
7670
7671 * frame.c (Qnoelisp): New symbol.
7672 (syms_of_frame): Initialize it.
7673 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
7674 harmless Elisp code, from a strong `force' from x_connection_closed.
7675 * frame.h (Qnoelisp): Declare.
7676 * xterm.c (x_connection_closed): Pass `noelisp'.
7677
7678 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
7679 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
7680 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
7681 rather than `int' for the type of `type'.
7682
76832008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
7684
7685 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
7686
7687 * Makefile.in (GNUC): Remove support for gcc-1.x.
7688
76892008-02-10 Richard Stallman <rms@gnu.org>
7690
7691 * lisp.h (ASET): Use AREF, not ASLOT.
7692
76932008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
7694
7695 * lisp.h (ASET): Check bounds.
7696
76972008-02-10 Glenn Morris <rgm@gnu.org>
7698
7699 * buffer.c (mode-name): Doc fix.
7700
77012008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
7702
7703 * Makefile.in:
7704 * emacs.c:
7705 * gmalloc.c:
7706 * keyboard.c:
7707 * lisp.h:
7708 * m/ibm370aix.h:
7709 * process.c:
7710 * regex.c:
7711 * s/hpux.h:
7712 * sysdep.c:
7713 * sysselect.h:
7714 * systty.h:
7715 * unexec.c:
7716 * w32term.c:
7717 * xsmfns.c:
7718 * xterm.c: Remove code that deals with obsolete variables.
7719
7720 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
7721
7722 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
7723 nothing else needs it anymore.
7724
77252008-02-09 Eli Zaretskii <eliz@gnu.org>
7726
7727 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
7728 instead of unibyte_char_to_multibyte.
7729
77302008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
7731
7732 * s/gnu-linux.h: Remove commented out code.
7733
7734 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
7735
7736 * Makefile.in: Update what RMS says about using autoconf.
7737 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
7738 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
7739 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
7740 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
7741
77422008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
7743
7744 * keymap.c (Fkey_description): Move side effect outside of macro call.
7745
7746 * xfaces.c (Finternal_make_lisp_face):
7747 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
7748
7749 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
7750 (syms_of_fontset): Use ASET.
7751
7752 * fns.c (concat): Move side effect outside of macro call.
7753 (hash_clear): Use ASET.
7754
77552008-02-08 Richard Stallman <rms@gnu.org>
7756
7757 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
7758 If FORCE, and frame has a surrogate minibuffer for another frame,
7759 delete the other frame first.
7760
77612008-02-07 Timo Savola <timo.savola@iki.fi>
7762
7763 * xterm.c (x_detect_focus_change): Handle embed client message.
7764 (handle_one_xevent): Ditto.
7765 (handle_one_xevent): If embedded and we get a button press/release,
7766 request focus.
7767 (xembed_set_info, xembed_send_message): New functions.
7768 (x_make_frame_visible): Call xembed_set_info if embedded.
7769 (x_make_frame_invisible): Call xembed_set_info if embedded.
7770 (x_term_init): Initialize Xatom_XEMBED.
7771 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
7772 (x_iconify_frame): Ditto.
7773
7774 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
7775 (enum xembed_info, enum xembed_message, enum xembed_focus)
7776 (enum xembed_modifier, enum xembed_accelerator): New.
7777 (xembed_set_info, xembed_send_message): Declare.
7778 (FRAME_X_EMBEDDED_P): New.
7779
7780 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
7781 gtk_plug_new.
7782
7783 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
7784 window ID of a frame.
7785 (x_window): Reparent frame if embedded.
7786 (Fx_create_frame): Don't set border width if embedded.
7787
7788 * emacs.c (USAGE3): Add --parent-id.
7789 (standard_args): Ditto.
7790
77912008-02-07 Jan Djärv <jan.h.d@swipnet.se>
7792
7793 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
7794
77952008-02-07 Jim Meyering <meyering@redhat.com>
7796
7797 Use "do...while (0)", not "if (1)...else" in macro definitions.
7798 The latter provokes a warning from gcc about the empty else, when
7799 followed by ";". Also, without that trailing semicolon, it would
7800 silently swallow up any following statement.
7801 * syntax.h (SETUP_SYNTAX_TABLE)
7802 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
7803 * buffer.h (DECODE_POSITION): Likewise.
7804 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
7805 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
7806 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
7807 (FETCH_CHAR_ADVANCE): Likewise.
7808 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
7809
78102008-02-07 Jim Meyering <meyering@redhat.com>
7811
7812 * lread.c [lint]: Don't include <sys/inode.h>.
7813
78142008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
7815
7816 * xselect.c (x_handle_dnd_message):
7817 * xmenu.c (digest_single_submenu, xmenu_show):
7818 * xdisp.c (with_echo_area_buffer_unwind_data)
7819 (format_mode_line_unwind_data, unwind_format_mode_line)
7820 (display_menu_bar):
7821 * eval.c (Ffetch_bytecode):
7822 * doc.c (store_function_docstring):
7823 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
7824 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
7825 * buffer.c (add_overlay_mod_hooklist): Use ASET.
7826
78272008-02-07 Kenichi Handa <handa@m17n.org>
7828
7829 * ftxfont.c (ftxfont_open): Don't set
7830 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
7831
7832 * ftfont.c (ftfont_open): Fix previous change.
7833
78342008-02-06 Jason Rumney <jasonr@gnu.org>
7835
7836 * w32font.c (w32font_text_extents): Fill in lbearing metric.
7837 Use cached metrics for ASCII characters.
7838 (w32font_open_internal): Don't set font's owning_frame.
7839 Cache metrics for ASCII characters.
7840
7841 * w32font.h (struct w32font_info): Add ascii_metrics.
7842 Remove owning_frame.
7843
78442008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
7845
7846 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
7847 to negative value.
7848
7849 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
7850
7851 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
7852
7853 * charset.c (syms_of_charset): Set QCtest and Qeq.
7854
78552008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
7856
7857 * process.c (Fstart_process):
7858 * callproc.c (Fcall_process): Handle the case where
7859 Funhandled_file_name_directory returns nil.
7860
7861 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
7862 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
7863 * font.c (check_gstring): Use them and AREF to access the vector before
7864 we know it's really a gstring.
7865 (Ffont_shape_text): Fix typo.
7866 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
7867
7868 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
7869 Declare.
7870
7871 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
7872
78732008-02-05 Jason Rumney <jasonr@gnu.org>
7874
7875 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
7876 Set smallest_font_height and smallest_char_width in display info.
7877
78782008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
7879
7880 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
7881
78822008-02-05 Miles Bader <miles@gnu.org>
7883
7884 * xfaces.c (get_lface_attributes, merge_named_face)
7885 (lookup_named_face, lookup_derived_face, realize_named_face):
7886 Revert 2008-02-01 change by cyd@stupidchicken.com.
7887
78882008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
7889
7890 * fontset.c (Ffontset_info): Handle the case of inhibitting the
7891 fallback fonts.
7892 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
7893
78942008-02-04 Jason Rumney <jasonr@gnu.org>
7895
7896 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
7897 set full_name.
7898 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
7899
79002008-02-03 Jason Rumney <jasonr@gnu.org>
7901
7902 * makefile.w32-in (OBJ1): Include font.o here.
7903 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
7904
79052008-02-02 Jason Rumney <jasonr@gnu.org>
7906
7907 * makefile.w32-in (temacs): Bump EMHEAP to 21.
7908
79092008-02-01 Jason Rumney <jasonr@gnu.org>
7910
7911 * s/cygwin.h: Define VIRT_ADDR_VARIES.
7912
7913 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
7914
79152008-02-01 Andreas Schwab <schwab@suse.de>
7916
7917 * Makefile.in (shortlisp, lisp): Update for rename of
7918 ../lisp/language/myanmar.el.
7919
79202008-02-01 Chong Yidong <cyd@stupidchicken.com>
7921
7922 * xfaces.c (get_lface_attributes): Delete function.
7923 (merge_named_face, lookup_named_face, lookup_derived_face)
7924 (realize_named_face): Call lface_from_face_name directly, and use
7925 the fact that merge_face_vectors does not alter its FROM argument.
7926
79272008-02-01 Jason Rumney <jasonr@gnu.org>
7928
7929 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
7930 input in the default locale. Handle non-Unicode multibyte input.
7931
79322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7933
7934 * fontset.c (reorder_font_vector): Exclude nil elements from the
7935 font group. Don't try multiple fonts.
7936 (fontset_font): Adjust for the above change.
7937 (Finternal_char_font): Return nil if the found font doesn't
7938 contain the character ch.
7939
7940 * Makefile.in (lisp, shortlisp): Add cham.el.
7941
79422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7943
7944 * font.h (FONTP): Make it return 1 also for a font-object.
7945
7946 * .gdbinit (xfontset): New function.
7947
7948 * font.c (font_find_for_lface): Check if the character C is
7949 supported or not only for the first font.
7950
7951 * fontset.c (reorder_font_vector): Fix typo.
7952 (fontset_find_font): Don't add a font-spec specifying a script.
7953 Use 0 (not Qt) for the indication of empty font-group. Change the
7954 format of RFONT-DEF. Return Qt if no font in the font-group
7955 support the character.
7956 (fontset_font): Adjust for the above change. If no font was
7957 found the character, remember that.
7958 (face_for_char): Adjust for the change of RFONT-DEF.
7959 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
7960 no font for the target.
7961 (Finternal_char_font): Adjust for the change of RFONT-DEF.
7962
79632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7964
7965 * font.c (font_load_for_face): Handle the case that the font in
7966 face->lface is a string.
7967
79682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7969
7970 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
7971
79722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7973
7974 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
7975 Fix previous change. If the frame is not on a window system,
7976 signal an error.
7977
79782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7979
7980 * coding.c (decode_coding_object, encode_coding_object): Adjust
7981 marker positions after conversion.
7982
7983 * lisp.h (struct Lisp_Marker): New member need_adjustment.
7984
79852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7986
7987 * font.c (font_find_for_lface): Fix the handling of the return
7988 value of font_has_char.
7989 (Ffont_shape_text): Fix previous change.
7990
7991 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
7992 (fontset_ref_and_range): Delete it.
7993 (fontset_find_font): Call char_table_ref_and_range instead of
7994 FONTSET_REF_AND_RANGE.
7995 (make_fontset): Don't setup font groups of Latin here.
7996 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
7997 (new_fontset_from_font): Make the specified font the default for
7998 all Latin characters.
7999
80002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8001
8002 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
8003 is on a window system before accessing the fontset of the frame.
8004
80052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8006
8007 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
8008
8009 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
8010 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
8011
8012 * font.c (Ffont_shape_text): If the font driver doesn't have a
8013 shaper function, make zero-width glyphs to have at least one-pixel
8014 width. Fix setting of `to' field of glyphs.
8015
80162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8017
8018 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
8019 glyphs.
8020
8021 * font.h (struct font_driver): Improve docstring of member `shape'.
8022
80232008-02-01 Kenichi Handa <handa@m17n.org>
8024
8025 * composite.c (syms_of_composite): Fix docstring of
8026 auto-composition-function.
8027
8028 * font.h (LGLYPH_SIZE): New macro.
8029
8030 * font.c (Ffont_fill_gstring): Stop filling when a character not
8031 supported by the font is found.
8032 (Ffont_shape_text): When a shape callback function returns nil,
8033 try at most two more times with larger gstring.
8034 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
8035
8036 * xdisp.c (handle_auto_composed_prop): Change the argument to
8037 auto-composition-function.
8038
8039 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
8040 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
8041 Lispy glyph and store it in the lgstring.
8042
8043 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
8044
8045 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
8046
80472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8048
8049 * font.c (Ffont_shape_text): Avoid unnecessary composition.
8050
8051 * fontset.c (Vfont_encoding_charset_alist): New variable.
8052 (syms_of_fontset): DEFVAR it.
8053 (reorder_font_vector, fontset_find_font): Optimize for the case of
8054 no need of reordering.
8055 (face_for_char): Map the charset property by
8056 Vfont_encoding_charset_alist.
8057
80582008-02-01 Jason Rumney <jasonr@gnu.org>
8059
8060 * w32font.c (logfonts_match): Don't check adstyle here.
8061 (font_matches_spec): Check here against physical font instead.
8062 (add_font_entity_to_list): Avoid some substitutions.
8063
8064 * font.c (font_parse_fcname): Default weight and slant to normal.
8065 (font_score): Prefer normal fonts if weight or slant unspecified.
8066 (font_score) [WINDOWSNT]: Scale weight difference down to closer
8067 match freetype scores.
8068
80692008-02-01 Jason Rumney <jasonr@gnu.org>
8070
8071 * w32font.c (w32font_text_extents): Don't use the frame stored in the
8072 font, as it may have been deleted.
8073 (w32_enumfont_pattern_entity): Map generic family to adstyle using
8074 most common hyphenless variation.
8075 (logfonts_match): Check generic family.
8076 (font_matches_spec): Don't check generic family here.
8077 (fill_in_logfont): Set generic family based on adstyle.
8078
8079 * w32font.h (w32font_get_cache): Update declaration.
8080
80812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8082
8083 * ftfont.c (ftfont_get_cache): Adjust the argument type.
8084
8085 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
8086 If none of the new drivers are available, call font_update_drivers
8087 with the old drivers.
8088
8089 * w32font.c (w32font_get_cache): Adjust the argument type.
8090
8091 * xfont.c (xfont_get_cache): Adjust the argument type.
8092
8093 * font.h (struct font_driver): Change argument type of get_cache.
8094
8095 * xftfont.c (xftfont_start_for_frame): Delete prototype.
8096
8097 * font.c (Ffont_get): Fix arguments to Fassoc.
8098 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
8099 (font_clear_cache): New function.
8100 (font_list_entities, font_matching_entity): Use font_get_cache.
8101 (font_update_drivers): Call font_clear_cache when finishing a driver.
8102
8103 * fontset.c (fontset_find_font): Fix previous change.
8104
81052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8106
8107 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
8108 dpyinfo->font_table.
8109 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
8110 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
8111
8112 * font.c (font_at): Handle the case that the arg C is negative.
8113 Handle the unibyte case.
8114 (Ffont_at): Call font_at with the arg C -1.
8115
8116 * xdisp.c (handle_auto_composed_prop): Don't get a character at
8117 the position here, and call font_at with the arg C -1.
8118 Don't check the range of the existing composition at the point.
8119
81202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8121
8122 * fontset.c (fontset_add): New args charset_id and family.
8123 Change caller.
8124 (load_font_get_repertory, fontset_find_font): Assume that
8125 font_spec is always a font-spec object.
8126 (Fset_fontset_font): Always store a font-spec object in a fontset.
8127
8128 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
8129 instead of get_property_and_range.
8130
81312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8132
8133 * xftfont.c (struct xftfont_info): Delete the member ft_face.
8134 (xftfont_open): Don't keep locking face.
8135 (xftfont_close): Don't unlock face.
8136 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
8137
8138 * fontset.c (fontset_find_font): Don't prefer a font of
8139 supplementary charset.
8140
81412008-02-01 Kenichi Handa <handa@m17n.org>
8142
8143 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
8144 script, langsys_tag to langsys, new member script.
8145 (OTF_TAG_STR): Terminate by '\0'.
8146 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
8147 listing to the script specified in that property. Fix arg to
8148 OTF_check_features.
8149
81502008-02-01 Jason Rumney <jasonr@gnu.org>
8151
8152 * w32font.h: New file.
8153
8154 * w32font.c: Include it.
8155 (struct w32font_info): Add owning_frame field. Move to w32font.h.
8156 (w32font_open): Set owning_frame.
8157 (w32font_text_extents): Use owning_frame.
8158 (struct font_callback_data): Add opentype_only field.
8159 (add_font_entity_to_list): Use it to filter fonts.
8160 Don't check against full name.
8161 (w32font_list_internal): New function.
8162 (w32font_list): Use it.
8163 (w32font_match_internal): New function.
8164 (w32font_match): Use it.
8165 (w32font_open_internal): New function.
8166 (w32font_open): Use it.
8167 (w32font_get_cache, w32font_close, w32font_has_char)
8168 (w32font_encode_char, w32font_text_extents, w32font_draw):
8169 Make non-static.
8170
8171 * makefile.w32-in (w32font.o): Depend on w32font.h.
8172
81732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8174
8175 * charset.c (Fdefine_charset_internal): Record a supplementary
8176 charset at the tail of Vcharset_order_list.
8177
8178 * font.c (Ffont_shape_text): Fix the return value.
8179
8180 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
8181
8182 * xdisp.c (handle_auto_composed_prop): Fix previous change.
8183
81842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8185
8186 * ftfont.c (struct OpenTypeSpec): New struct.
8187 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
8188 (ftfont_get_open_type_spec): New function.
8189 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
8190
8191 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
8192
81932008-02-01 Jason Rumney <jasonr@gnu.org>
8194
8195 * w32font.c (add_font_entity_to_list): Compare only the beginning
8196 of full name.
8197
81982008-02-01 Kenichi Handa <handa@m17n.org>
8199
8200 * xdisp.c (handle_auto_composed_prop): Simplify the code.
8201 Never return HANDLED_RECOMPUTE_PROPS.
8202
82032008-02-01 Kenichi Handa <handa@m17n.org>
8204
8205 * font.c (font_gstring_produce): Delete it.
8206
8207 * composite.h (COMPOSITION_METHOD):
8208 Handle COMPOSITION_WITH_GLYPH_STRING.
8209
82102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8211
8212 * xfont.c (Qx): Delete.
8213 (syms_of_xfont): Don't initialize Qx.
8214
8215 * composite.h (enum composition_method):
8216 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
8217
82182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8219
8220 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
8221 (choose_face_font): Accept new form of font-spec.
8222
8223 * frame.h (font_driver_list): Declare it unconditionally.
8224 (struct frame): Define members font_driver_list and font_data_list
8225 unconditionally.
8226
8227 * fontset.c: Include "font.h" unconditionally.
8228 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
8229 (Fset_fontset_font): Accept a font-spec object.
8230
8231 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
8232 PIXEL_SIZE part a wild card.
8233
8234 * dispextern.h (struct glyph_string): Define members clip and
8235 num_clips unconditionally.
8236 (struct face): Define members font_info and extra unconditionally.
8237
8238 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
8239 ftfont_info only when HAVE_LIBOTF is defined.
8240
82412008-02-01 Andreas Schwab <schwab@suse.de>
8242
8243 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
8244 and end.
8245
82462008-02-01 Jason Rumney <jasonr@gnu.org>
8247
8248 * w32font.c (w32font_driver): Add new fields.
8249
82502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8251
8252 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
8253 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
8254 (LIBES): Add @M17N_FLT_CFLAGS@.
8255
8256 * composite.c (compose_text): Don't treat the new style
8257 composition specially.
8258
8259 * emacs.c (main): Call syms_of_font unconditionally.
8260
8261 * font.h (FONT_ENTITY_NOT_LOADABLE)
8262 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
8263 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
8264 (struct font_driver): New member shape.
8265 (font_registry_charsets): Extern it.
8266 (font_find_for_lface, font_prepare_composition): Adjust prototype.
8267 (font_otf_capability, font_drive_otf): Delete their externs.
8268
8269 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
8270 (font_charset_alist, font_registry_charsets): Move from xfont.c
8271 and rename.
8272 (font_prop_validate_otf): New function.
8273 (font_property_table): Register it for QCotf.
8274 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
8275 (font_drive_otf): Delete.
8276 (font_prepare_composition): New arg F. Adjust for the change of
8277 lispy gstring.
8278 (font_find_for_lface): New arg C.
8279 (font_load_for_face): Adjust for the change of font_find_for_lface.
8280 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
8281 lispy gstring.
8282 (Ffont_shape_text): New function.
8283 (Fopen_font): If the font size is not given, use 12-pixel.
8284 (Ffont_at): New arg STRING.
8285 (syms_of_font): Initalize font_charset_alist.
8286 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
8287 conditionally.
8288
8289 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
8290 fonts of the same font-spec. Change the format of RFONT-DEF.
8291 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
8292 Adjust for the change of RFONT-DEF.
8293 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
8294
8295 * ftfont.h: New file.
8296
8297 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
8298 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
8299 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
8300 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
8301 font_otf_capability and font_drive_otf, set ftfont_shape.
8302 (ftfont_list): Adjust for the change of :otf property value.
8303 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
8304 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
8305 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
8306 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
8307 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
8308 (otf_gstring, gstring, m17n_flt_initialized): New variables.
8309
8310 * w32term.c (x_draw_composite_glyph_string_foreground):
8311 Adjust for the change of lispy gstring.
8312
8313 * xdisp.c (handle_composition_prop): Adjust for the change of
8314 lispy gstring. Call a function for auto-composition with the
8315 third arg it->window.
8316 (fill_composite_glyph_string): Adjust for the change of lispy string.
8317 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
8318
8319 * xfaces.c (set_font_frame_param): Adjust for the change of
8320 font_find_for_lface.
8321
8322 * xfont.c (x_font_charset_alist): Move to font.c and rename.
8323 (xfont_registry_charsets): Likewise. Change caller.
8324 (syms_of_xfont): Don't handle x_font_charset_alist.
8325
8326 * xftfont.c: Include "ftfont.h".
8327 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
8328 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
8329 (xftfont_close) [HAVE_LIBOTF]: Close otf.
8330 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
8331 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
8332 Set xftfont_driver.shape to xftfont_shape.
8333
8334 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8335 the change of lispy gstring.
8336
83372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8338
8339 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
8340
83412008-02-01 Jason Rumney <jasonr@gnu.org>
8342
8343 * w32font.c (w32font_draw): Fill background manually.
8344
83452008-02-01 Jason Rumney <jasonr@gnu.org>
8346
8347 * font.c (Qfontp): Remove unused symbol.
8348 (QCantialias): New symbol.
8349 (syms_of_font): Define it.
8350 (font_property_table): Set a validator for QCantialias.
8351
8352 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
8353 Define if not already.
8354 (QCfamily): Share with xfaces.c.
8355 (Qstandard, Qsubpixel, Qnatural): New symbols.
8356 (syms_of_w32font): Define them. Don't define QCfamily here.
8357 (w32_antialias_type, lispy_antialias_type): New functions.
8358 (w32_enumfont_pattern_entity): New arg requested_font.
8359 Set antialias parameter if non-default was requested.
8360 (fill_in_logfont): Fill in lfQuality if :antialias specified.
8361
83622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8363
8364 * lread.c (read1): Undo the previous change.
8365
83662008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
8367
8368 * frame.c (Fdelete_frame): Call font_update_drivers only when
8369 USE_FONT_BACKEND is defined.
8370
83712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8372
8373 * font.h (struct font_bitmap): New member bits_per_pixel.
8374 (struct font_driver): New members start_for_frame and end_for_frame.
8375 (struct font_data_list): New struct.
8376 (font_put_frame_data, font_get_frame_data): Extern them.
8377
8378 * frame.h (struct frame): New member font_data_list.
8379
8380 * font.c (font_update_drivers): Call driver->start_for_frame and
8381 driver->end_for_frame at proper timings.
8382 (font_put_frame_data, font_get_frame_data): New functions.
8383 (Ffont_spec): Add usage in the docstring.
8384
8385 * frame.c (make_frame): Initialize f->font_data_list to NULL.
8386 (Fdelete_frame): Call font_update_drivers.
8387
8388 * xftfont.c (struct xftface_info): Delete the member xft_draw.
8389 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
8390 (xftfont_get_xft_draw): New function.
8391 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
8392 (xftfont_end_for_frame): New function.
8393 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
8394
8395 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
8396 Change argument. Cache GCs in the per-frame data.
8397 (struct ftxfont_frame_data): New struct.
8398 (ftxfont_draw_bitmap): New arg gc_fore and flush.
8399 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
8400 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
8401 (ftxfont_end_for_frame): New function.
8402 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
8403
8404 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
8405
84062008-02-01 Kenichi Handa <handa@m17n.org>
8407
8408 * xselect.c (Vselection_coding_system)
8409 (Vnext_selection_coding_system): Delete them.
8410 (syms_of_xselect): Don't declare selection-coding-system and
8411 next-selection-coding-system. They are declared in select.el.
8412
84132008-02-01 Jason Rumney <jasonr@gnu.org>
8414
8415 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
8416
8417 * w32fns.c: Include imm.h.
8418 (get_composition_string_fn, get_ime_context_fn): New optional
8419 system functions.
8420 (globals_of_w32fns): Load them from imm32.dll.
8421 (ignore_ime_char): New flag.
8422 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
8423 WM_IME_ENDCOMPOSITION messages.
8424
8425 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
8426 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
8427
84282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8429
8430 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
8431 (READCHAR_REPORT_MULTIBYTE): New macro.
8432 (readchar): New 2nd arg MULTIBYTE.
8433 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
8434 Make symbol's name multibyte according to the multibyteness of the
8435 source.
8436
84372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8438
8439 * xfaces.c (face_for_overlay_string): Call lookup_face with
8440 correct arguments (fix of synching with the trunk).
8441
84422008-02-01 Kenichi Handa <handa@m17n.org>
8443
8444 * font.c (font_prop_validate_symbol, font_prop_validate_style)
8445 (font_prop_validate_non_neg, font_prop_validate_spacing):
8446 Delete argument prop_index.
8447 (font_property_table): Change arguments to validater. Change Callers.
8448 (font_lispy_object): Delete.
8449 (font_at): Use font_find_object instead fo font_lispy_object.
8450
84512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8452
8453 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
8454 and file names.
8455
84562008-02-01 Jason Rumney <jasonr@gnu.org>
8457
8458 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
8459 (font_matches_spec): Remove debug output.
8460 (add_font_entity_to_list): Avoid using substituted fonts.
8461
84622008-02-01 Jason Rumney <jasonr@gnu.org>
8463
8464 * doc.c (Fsnarf_documentation):
8465 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
8466
84672008-02-01 Miles Bader <miles@gnu.org>
8468
8469 * dispextern.h (struct glyph_row): Only define "clip" field if
8470 HAVE_WINDOW_SYSTEM is defined.
8471
84722008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8473
8474 Fix up multi-tty merge.
8475
8476 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
8477 and indentation.
8478
8479 * xfaces.c (free_realized_face, clear_face_gcs):
8480 Include font_done_for_face in the input_blocked section, just in case.
8481
8482 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
8483 (get_char_face_and_encoding): Undo last change and remove the *other*
8484 duplicate definition (i.e. keep the one that's better scoped and that
8485 includes code for the font-backend).
8486
8487 * terminal.c (create_terminal): Default keyboard_coding to
8488 `no-conversion' and terminal_coding to `undecided'.
8489
8490 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
8491
8492 * fontset.c (free_realized_fontsets): Check that the table entry does
8493 contain a fontset before trying to compare it to `base'.
8494
8495 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
8496 syms_of_charset, and syms_of_coding earlier because init_window_once
8497 now needs Vcoding_system_hash_table to be setup.
8498
8499 * coding.h (default_buffer_file_coding): Remove.
8500
8501 * coding.c (default_buffer_file_coding): Remove.
8502 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
8503 than ->symbol, and use the terminal-local coding system.
8504 (syms_of_coding): Don't setup the coding-systems that are not
8505 terminal-local.
8506 (Fdefine_coding_system_internal): Use XCAR/XCDR.
8507
8508 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
8509 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
8510
8511 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
8512 in chartab.c and were re-added here by mistake.
8513 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
8514
8515 * doc.c (Fsnarf_documentation):
8516 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
8517 src to etc.
8518
8519 * ChangeLog.10: Add mistakenly removed entry.
8520
85212008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
8522
8523 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
8524
85252008-02-01 Miles Bader <miles@gnu.org>
8526
8527 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
8528 Add extra args to FACE_FOR_CHAR.
8529
85302008-02-01 Kenichi Handa <handa@m17n.org>
8531
8532 * keymap.c (where_is_internal_1): If key is a cons, store the copy
8533 in sequence.
8534
8535 * chartab.c (map_sub_char_table, map_char_table): If the range
8536 contains just one character, call the function with that character
8537 even if the depth is not 3.
8538
85392008-02-01 Jason Rumney <jasonr@gnu.org>
8540
8541 * w32font.c (w32font_text_extents): Calculate metrics for the
8542 whole string.
8543
85442008-02-01 Jason Rumney <jasonr@gnu.org>
8545
8546 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
8547
85482008-02-01 Jason Rumney <jasonr@gnu.org>
8549
8550 * w32term.c (x_set_glyph_string_clipping): Use
8551 get_glyph_string_clip_rects.
8552 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
8553 Adjust for the change of struct glyph_string.
8554
8555 * w32font.c (w32font_draw): Do clipping here.
8556
85572008-02-01 Kenichi Handa <handa@m17n.org>
8558
8559 * xftfont.c (xftfont_draw): Adjust for the change of struct
8560 glyph_string.
8561
8562 * xterm.c (x_set_glyph_string_clipping): Use
8563 get_glyph_string_clip_rects.
8564 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
8565 Adjust for the change of struct glyph_string.
8566
8567 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
8568 the resulting clip(s}.
8569 (expose_overlaps): Add arg r. Change callers. Set it to
8570 row->clip temporarily.
8571 (expose_window): Redraw rows overlapping the exposed area.
8572
8573 * dispextern.h (struct glyph_row): New member clip.
8574 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
8575 clip_height, new member clip, and num_clips.
8576
85772008-02-01 Kenichi Handa <handa@m17n.org>
8578
8579 * data.c (Fchar_or_string_p): Fix docstring.
8580
85812008-02-01 Kenichi Handa <handa@m17n.org>
8582
8583 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
8584 create a temporary XftDraw object.
8585
85862008-02-01 Kenichi Handa <handa@m17n.org>
8587
8588 * font.c (Ffontp): Fix docstring.
8589
8590 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
8591 strong evidence of ISO-2022.
8592
85932008-02-01 Kenichi Handa <handa@m17n.org>
8594
8595 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
8596 SYNTAX_ENTRY_FOLLOW_PARENT.
8597
85982008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8599
8600 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
8601 its type.
8602 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
8603 Update to the new type of weak_hash_tables and next_weak.
8604
8605 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
8606 a plain C pointer to Lisp_Hash_Table.
8607
8608 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
8609 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
8610 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
8611 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
8612 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
8613 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
8614 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
8615 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
8616 (GC_EQ): Remove since they've been identical to their non-GC_
8617 alter-egos ever since the markbit was eradicated.
8618
8619 * alloc.c:
8620 * buffer.c:
8621 * buffer.h:
8622 * data.c:
8623 * fileio.c:
8624 * filelock.c:
8625 * fns.c:
8626 * frame.h:
8627 * lisp.h:
8628 * macterm.c:
8629 * print.c:
8630 * process.c:
8631 * w32fns.c:
8632 * w32menu.c:
8633 * w32term.c:
8634 * xfns.c:
8635 * xmenu.c:
8636 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
8637
86382008-02-01 Kenichi Handa <handa@m17n.org>
8639
8640 * chartab.c (map_sub_char_table): Make it work for the top-level
8641 char-table. Fix handling of parent char-table.
8642 (map_char_table): Adjust for the above change.
8643
86442008-02-01 Jason Rumney <jasonr@gnu.org>
8645
8646 * w32font.c (Qgdi): Rename from Qw32.
8647
86482008-02-01 Jason Rumney <jasonr@gnu.org>
8649
8650 * w32bdf.c (get_quoted_string): Make function static.
8651
86522008-02-01 Kenichi Handa <handa@m17n.org>
8653
8654 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
8655 bigger ascent and descent than those of the font, use them as
8656 font's ascent and descent.
8657
86582008-02-01 Kenichi Handa <handa@m17n.org>
8659
8660 * Makefile.in (${lispsource}international/charprop.el): Move this
8661 target within "#ifdef HAVE_UNIDATA" and "#endif".
8662
86632008-02-01 Kenichi Handa <handa@m17n.org>
8664
8665 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
8666 (shortlisp): Add ../lisp/language/tai-viet.el.
8667
86682008-02-01 Ulrich Mueller <ulm@gentoo.org>
8669
8670 * Makefile.in (${lispsource}international/charprop.el): Depend on
8671 temacs${EXEEXT}.
8672
86732008-02-01 Jason Rumney <jasonr@gnu.org>
8674
8675 * w32font.c (w32font_close): Delete the GDI font object.
8676
8677 * w32menu.c: Include character.h.
8678
8679 * w32proc.c: Likewise.
8680
8681 * w32select.c: Likewise.
8682
8683 * makefile.w32-in (w32proc.o): Depend on character.h.
8684
86852008-02-01 Jason Rumney <jasonr@gnu.org>
8686
8687 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
8688
8689 * w32menu.c (syms_of_w32menu): Likewise.
8690
8691 * w32proc.c (syms_of_ntproc): Likewise.
8692
8693 * w32select.c (syms_of_w32select): Likewise.
8694
8695 * w32term.c (syms_of_w32term): Likewise.
8696
86972008-02-01 Jason Rumney <jasonr@gnu.org>
8698
8699 * w32font.c (w32font_draw): Delete brush after using it.
8700
87012008-02-01 Jason Rumney <jasonr@gnu.org>
8702
8703 * w32font.c (w32font_open): Don't set font_idx.
8704 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
8705 to font settings.
8706 (w32font_draw): Fill background explicitly.
8707
87082008-02-01 Jason Rumney <jasonr@gnu.org>
8709
8710 * w32term.c (w32_initialize): Don't call w32font_initialize.
8711
8712 * w32font.c (w32font_info): Remove subranges.
8713 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
8714 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
8715 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
8716 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
8717 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
8718 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
8719 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
8720 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
8721 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
8722 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
8723 New symbols.
8724 (font_callback_data): New struct.
8725 (w32font_list, w32font_match): Use it.
8726 (w32font_open): Don't populate subranges.
8727 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
8728 (w32font_encode_char): Always return unicode code-point as-is.
8729 (w32font_text_extents): Supply a transformation matrix to
8730 GetGlyphOutline. Never look up by glyph index. Avoid looping
8731 twice. Use unicode version of GetTexExtentPoint32 instead of
8732 glyph index version.
8733 (set_fonts_frame): Remove.
8734 (w32_enumfont_pattern_entity): Add frame parameter, use it to
8735 set frame parameter. Use backward compatible fake foundries.
8736 Save generic family in extra slot under QCfamily. Make width slot
8737 constant. Save QCspacing value. Save list of scripts instead of
8738 binary subranges.
8739 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
8740 (add_font_entity_to_list): Use font_callback_data struct. Filter
8741 unwanted fonts.
8742 (add_one_font_entity_to_list): Use font_callback_data struct.
8743 (w32_registry): Default to iso10646_1.
8744 (fill_in_logfont): Use dpi from extra slot. Don't bother with
8745 string font registries. Don't fill in font name if it is a generic
8746 family name, fill family instead. Use spacing, family and script
8747 extra info to fill pitch, family and charset fields.
8748 (list_all_matching_fonts): Use font_callback_data struct.
8749 (unicode_range_for_char): Remove.
8750 (font_supported_scripts): New function.
8751 (w32font_initialize): Remove.
8752 (syms_of_w32font): Update which symbols are defined.
8753
87542008-02-01 Jason Rumney <jasonr@gnu.org>
8755
8756 * font.c (font_pixel_size): Reverse assq_no_quit args.
8757
8758 * w32term.h (FONT_WIDTH): Report max width, not average.
8759 (FONT_MAX_WIDTH): Remove.
8760 (FONT_AVG_WIDTH): New macro.
8761
8762 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
8763 redefinition of FONT_WIDTH.
8764
8765 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
8766 (w32_cache_char_metrics): Use FONT_WIDTH.
8767
8768 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
8769
87702008-02-01 Jason Rumney <jasonr@gnu.org>
8771
8772 * w32font.c (w32font_open): Make lfHeight negative.
8773
8774 * w32fns.c (x_default_font_parameter): Use new style font name.
8775 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
8776
87772008-02-01 Jason Rumney <jasonr@gnu.org>
8778
8779 * w32font.c (QCsubranges): New symbol.
8780 (w32font_open, w32font_has_char): Get subranges from subproperty
8781 of extra.
8782 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
8783 (syms_of_w32font): Define :subranges symbol.
8784
8785 * font.c (font_put_extra): Expose externally.
8786
8787 * font.h (font_put_extra): Move declaration from font.c.
8788
8789 * font.c (Ffont_get): Use font driver to determine otf capability.
8790 (adjust_anchor): Check if driver defines anchor_point before using.
8791
8792 * w32font.c (w32font_open): Handle size, height and pixel_size better.
8793 (w32font_draw): Use options.
8794 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
8795 Fix detection of truetype fonts.
8796 (registry_to_w32_charset): Handle charsets other than iso8859-1
8797 expressed as lisp symbols.
8798 (w32_registry): Express charset as lisp symbol.
8799 (fill_in_logfont): Reverse pixel and point height logic.
8800 Don't set width here. Set quality to default.
8801
8802 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
8803 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
8804
8805 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
8806 Remove redundant loop and allocation.
8807
8808 * makefile.w32-in (font.o, w32font.o): New objects.
8809 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
8810 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
8811
8812 * xdisp.c (fill_composite_glyph_string): Make the first arg to
8813 STORE_XCHARB a valid l-value.
8814
8815 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
8816 calculations for non-Truetype fonts.
8817 (x_draw_glyph_string): Sync with xterm.c.
8818 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
8819 Remove redundant code.
8820 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
8821
8822 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
8823 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
8824
8825 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
8826 (x_to_w32_charset, w32_to_x_charset): Expose externally.
8827
8828 * w32font.c: New file for w32 font backend.
8829
88302008-02-01 Kenichi Handa <handa@m17n.org>
8831
8832 * term.c: Don't include "buffer.h" twice.
8833
88342008-02-01 Kenichi Handa <handa@m17n.org>
8835
8836 * character.c (Funibyte_string): New function.
8837 (syms_of_character): Defsubr it.
8838
88392008-02-01 Jason Rumney <jasonr@gnu.org>
8840
8841 * w32term.c [USE_FONT_BACKEND]:
8842 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
8843 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
8844 (x_draw_glyph_string, x_draw_glyph_string_foreground)
8845 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
8846 (x_free_frame_resources): Sync with xterm.c.
8847
88482008-02-01 Andreas Schwab <schwab@suse.de>
8849
8850 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
8851 char-table size.
8852
88532008-02-01 Kenichi Handa <handa@m17n.org>
8854
8855 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
8856
88572008-02-01 Kenichi Handa <handa@m17n.org>
8858
8859 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
8860 font_otf_gpos, add font_drive_otf.
8861
8862 * fontset.c (fontset_find_font): Pay attention to font size
8863 specified for a font.
8864 (reorder_font_vector): Check contents of font_def.
8865
8866 * font.c (struct otf_list): Delete it.
8867 (otf_list): Make it a lisp variable.
8868 (otf_open): Use lispy otf_list.
8869 (generate_otf_features): Rename from parse_gsub_gpos_spec.
8870 (check_otf_features): New function.
8871 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8872 New functions.
8873 (font_drive_otf): New function merging font_otf_gsub and
8874 font_otf_gpos.
8875 (font_open_for_lface): New arg spec. Change argument order.
8876 (font_load_for_face): Adjust for the change of font_open_for_lface.
8877 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
8878 Ffont_otf_gpos.
8879 (syms_of_font): Staticpro otf_list. Delete defsubr of
8880 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
8881
8882 * xfaces.c (set_font_frame_param): Adjust for the change of
8883 font_open_for_lface.
8884
8885 * font.h (font_open_for_lface): Adjust prototype.
8886 (struct font_driver): Delete members otf_gsub and otf_gpos, add
8887 member otf_drive.
8888 (font_otf_gsub, font_otf_gpos): Delete externs.
8889 (font_drive_otf): Extern it.
8890
88912008-02-01 Kenichi Handa <handa@m17n.org>
8892
8893 * font.c (font_at): If the window W is not on a window system,
8894 return Qnil.
8895
8896 * coding.c (produce_chars, encode_coding): Don't call
8897 insert_from_gap if no characters to produce.
8898
88992008-02-01 Kenichi Handa <handa@m17n.org>
8900
8901 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
8902 Fclear_face_cache.
8903
8904 * xfaces.c (face_for_font): Check also face->font==font->font.font.
8905
89062008-02-01 Miles Bader <miles@gnu.org>
8907
8908 * emacs.c (main): Change default value of `enable_font_backend' to 1.
8909 Parse "--disable-font-backend" option.
8910 (standard_args): Add "--disable-font-backend" option.
8911
89122008-02-01 Kenichi Handa <handa@m17n.org>
8913
8914 * fontset.c (fontset_find_font): New function.
8915 (fontset_font): Use fontset_find_font.
8916 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
8917 Register the specified font for all Latin characters.
8918 (new_fontset_from_font): Register the specified font for all Latin
8919 characters.
8920 (dump_fontset): For a realized fontset, include the base fontset
8921 name in the returned vector.
8922
89232008-02-01 Kenichi Handa <handa@m17n.org>
8924
8925 * character.h (CHAR_STRING): Cast C to unsigned on calling
8926 char_string.
8927
8928 * character.c (char_string): Type of arg C changed to unsigned.
8929 Signal an error if C is an invalid character code.
8930
8931 * editfns.c (general_insert_function, Fchar_to_string):
8932 Use CHARACTERP, not INTEGERP.
8933
89342008-02-01 Kenichi Handa <handa@m17n.org>
8935
8936 * character.h (MIN_MULTIBYTE_LEADING_CODE)
8937 (MAX_MULTIBYTE_LEADING_CODE): New macros.
8938
8939 * regex.c (analyse_first): Fix for multibyte characters in "case
8940 charset:" and "case categoryspec:".
8941
89422008-02-01 Andreas Schwab <schwab@suse.de>
8943
8944 * Makefile.in (LIBES): Move standard libraries to the end.
8945
89462008-02-01 Kenichi Handa <handa@m17n.org>
8947
8948 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
8949 nonzero, don't shrink the buffer nextb.
8950
8951 * buffer.h (struct buffer_text): New member inhibit_shrinking.
8952
8953 * coding.c (coding_alloc_by_making_gap): New arg offset.
8954 (alloc_destination): Call coding_alloc_by_making_gap with the arg
8955 offset.
8956 (decode_coding_iso_2022): Update coding->safe_charsets.
8957 (decode_coding_gap): Temporarily set
8958 current_buffer->text->inhibit_shrinking to 1.
8959
89602008-02-01 Kenichi Handa <handa@m17n.org>
8961
8962 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
8963 indexing into elements of s->cmp and s->char2b.
8964
89652008-02-01 Juanma Barranquero <lekktu@gmail.com>
8966
8967 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
8968
89692008-02-01 Kenichi Handa <handa@m17n.org>
8970
8971 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
8972 target_multibyte instead of multibyte.
8973 (re_match_2_internal): Call bcmp_translate with target_multibyte.
8974 (bcmp_translate): Change the argument name from multibyte to
8975 target_multibyte.
8976
89772008-02-01 Kenichi Handa <handa@m17n.org>
8978
8979 These changes are to compile a regexp into a pattern that can be
8980 used both for multibyte and unibyte targets.
8981
8982 * Makefile.in (search.o): Depend on charset.h.
8983
8984 * character.c (multibyte_char_to_unibyte_safe): New function.
8985
8986 * search.c: Include "charset.h".
8987 (compile_pattern_1): Delete argument multibyte. Don't set
8988 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
8989 (compile_pattern): Don't compare cp->buf.target_multibyte.
8990 Compare cp->buf.charset_unibyte.
8991 (compile_pattern): Set cp->buf.target_multibyte.
8992
8993 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
8994
8995 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
8996
8997 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
8998 multibyte. Change callers.
8999 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
9000 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
9001 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
9002 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
9003 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
9004 (regex_compile): Make the compiled pattern usable both for
9005 multibyte and unibyte targets.
9006 (analyse_first): Make the fastmap usable both for multibyte and
9007 unibyte targets.
9008 (TRANSLATE_VIA_MULTIBYTE): Delete.
9009 (re_match_2_internal): Pay attention to the case that the
9010 multibyteness of bufp and target may be different.
9011
90122008-02-01 Kenichi Handa <handa@m17n.org>
9013
9014 * xdisp.c (x_produce_glyphs): When a font is not found, make the
9015 empty box occupy at least one column width.
9016
90172008-02-01 Miles Bader <miles@gnu.org>
9018
9019 * Makefile.in: Remove redundant HAVE_XFT clause.
9020
90212008-02-01 Kenichi Handa <handa@m17n.org>
9022
9023 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
9024
90252008-02-01 Kenichi Handa <handa@m17n.org>
9026
9027 * fontset.c (Finternal_char_font): Fix for the case of POSITION
9028 being nil.
9029
90302008-02-01 Kenichi Handa <handa@m17n.org>
9031
9032 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
9033
90342008-02-01 Kenichi Handa <handa@m17n.org>
9035
9036 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
9037
90382008-02-01 Kenichi Handa <handa@m17n.org>
9039
9040 * search.c (simple_search): Fix previous change.
9041
90422008-02-01 Kenichi Handa <handa@m17n.org>
9043
9044 * xftfont.c (ftfont_font_format): Extern declaration.
9045
9046 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
9047
9048 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
9049 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
9050
9051 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
9052 (ftfont_font_format): Fix previous change.
9053
9054 * font.h (Ffont_xlfd_name): EXFUN it.
9055
9056 * font.c (font_parse_xlfd): Fix the array size of `f'.
9057 (register_font_driver): Use EQ to compare driver->type.
9058
9059 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
9060 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
9061 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
9062
90632008-02-01 Kenichi Handa <handa@m17n.org>
9064
9065 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
9066 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
9067
90682008-02-01 Kenichi Handa <handa@m17n.org>
9069
9070 * xfont.c (xfont_open): Set font->format.
9071
9072 * xftfont.c (xftfont_open): Set font->format.
9073
9074 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
9075 (ftfont_list): Include FC_FONTFORMAT in FcObject.
9076 (ftfont_open): Set font->format.
9077 (ftfont_font_format): New function.
9078
9079 * font.h (struct font): New member format.
9080
9081 * font.c (Qopentype): New variable.
9082 (syms_of_font): Defsym it.
9083 (Fquery_font): Change the format of the last element of the return
9084 value.
9085
90862008-02-01 Kenichi Handa <handa@m17n.org>
9087
9088 * xfns.c (xic_create_xfontset): Try the default fontset name as a
9089 last resort.
9090
90912008-02-01 Kenichi Handa <handa@m17n.org>
9092
9093 * coding.c (detect_coding_charset): Fix detection of multi-byte
9094 charset.
9095
90962008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
9097
9098 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
9099
91002008-02-01 Kenichi Handa <handa@m17n.org>
9101
9102 * xdisp.c (get_next_display_element): Set it->face_id for the
9103 first component of a composition.
9104 (x_produce_glyphs): Check if the font is changed or not for composition.
9105
91062008-02-01 Kenichi Handa <handa@m17n.org>
9107
9108 * fontset.c (Qlatin): New variable.
9109 (syms_of_fontset): Define it as a lisp symbol.
9110 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
9111
91122008-02-01 Kenichi Handa <handa@m17n.org>
9113
9114 * font.c (font_unparse_fcname): Pay attention to the case that
9115 some of font property is a null string.
9116
91172008-02-01 Kenichi Handa <handa@m17n.org>
9118
9119 * term.c: Include "composite.h".
9120 (encode_terminal_code): Output all components of composition.
9121 Check the size of encode_terminal_src.
9122 (produce_glyphs): For composition, call produce_composite_glyph.
9123 (append_composite_glyph, produce_composite_glyph): New functions.
9124
9125 * xdisp.c (x_produce_glyphs): In handling composition, if a font
9126 is not found, get font_info from the current ascii face.
9127
91282008-02-01 Kenichi Handa <handa@m17n.org>
9129
9130 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
9131 buffer-file-name to Qnil before calling insert_from_buffer.
9132
9133 * font.c (font_unparse_fcname): Pay attention to the case that
9134 foundry is a null string.
9135
91362008-02-01 Kenichi Handa <handa@m17n.org>
9137
9138 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
9139
9140 * font.c (Qunicode_sip): New variable.
9141 (syms_of_font): Declare it as a Lisp symbol.
9142
9143 * font.h (Qunicode_sip): Extern it.
9144
91452008-02-01 Kenichi Handa <handa@m17n.org>
9146
9147 * composite.c (get_composition_id): Pay attention to TAB component.
9148
9149 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
9150 TAB. Adjust for the change of s->char2b which always points to
9151 the first element of allocated memory.
9152
9153 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
9154
9155 * xdisp.c (handle_composition_prop): Set it->c to the first
9156 non-TAB component.
9157 (fill_composite_glyph_string): Change argument.
9158 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
9159 (x_produce_glyphs): Fix handling of left/right padding.
9160
91612008-02-01 Kenichi Handa <handa@m17n.org>
9162
9163 * coding.c (detect_coding_system): Fix for handling off
9164 inhibit_iso_escape_detection. Fix for the case that no coding
9165 system is defined for a specific coding category.
9166
91672008-02-01 Kenichi Handa <handa@m17n.org>
9168
9169 * font.c (font_matching_entity): Delete unused local var.
9170
9171 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
9172 opening a font.
9173
9174 * fileio.c (Finsert_file_contents): On recovering a file, assume
9175 Unix-like eol.
9176 (choose_write_coding_system): On auto-saving a file, force
9177 Unix-like eol.
9178
9179 * coding.c (setup_coding_system): Fix setting of
9180 coding->common_flags based on eol_type.
9181 (coding_inherit_eol_type): If PARENT is not nil, be sure to
9182 inherit from it.
9183
91842008-02-01 Kenichi Handa <handa@m17n.org>
9185
9186 * alloc.c (NSTATICS): Increas to 0x600.
9187
91882008-02-01 Kenichi Handa <handa@m17n.org>
9189
9190 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
9191 (ftfont_list): Don't check :name property.
9192 (ftfont_match): New function.
9193 (ftfont_pattern_entity): If the pattern doesn't contain
9194 FC_SPACING, don't assume FC_MONO.
9195
9196 * font.h (struct font_driver): New member `match'.
9197 (font_update_drivers): Adjust prototype.
9198
9199 * font.c (font_parse_fcname, font_parse_name): Don't change :name
9200 property of FONT.
9201 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
9202 them unconditionally.
9203 (font_matching_entity): New function.
9204 (font_open_by_name): Try font_matching_entity if exact match is
9205 not found.
9206 (font_update_drivers): Delete the arg FONT. Return a list of
9207 actually used backends. Don't free faces, font caches here.
9208 Don't store data in frame parameters. Don't call x_set_font.
9209 (Ffont_spec): Store :name property as is.
9210 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
9211 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
9212 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
9213 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
9214 Call font->driver->otf_gsub instead of font_otf_gsub.
9215
9216 * frame.c (x_set_font_backend): Do more works that were done in
9217 font_update_drivers before.
9218
9219 * xfont.c (xfont_match): New function.
9220 (xfont_driver): Set xfont_driver.match to xfont_match.
9221 (xfont_draw): Set font in GC if necessary.
9222
9223 * ftxfont.c (ftxfont_match): New function.
9224 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
9225
9226 * xftfont.c (xftfont_match): New function.
9227 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
9228
92292008-02-01 Kenichi Handa <handa@m17n.org>
9230
9231 * font.h (struct font): New member scalable.
9232 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
9233 (font_otf_gsub): Adjust prototype.
9234
9235 * font.c (font_otf_capability): Fix handling of the default langsys.
9236 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
9237 Check the contents of SPEC.
9238 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
9239 (check_gstring): New function.
9240 (REPLACEMENT_CHARACTER): New macro.
9241 (font_otf_gsub): New arg alternate_subst. Be sure to set all
9242 glyph codes of GSTRING.
9243 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
9244 (font_prepare_composition): Set cmp->glyph_len.
9245 (font_open_entity): Set font->scalable.
9246 (Ffont_get): Handle :otf property.
9247 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
9248 functions.
9249 (Fquery_font): Use font->font.full_name.
9250 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
9251 Sfont_otf_alternates.
9252
9253 * ftfont.c (ftfont_open): Set font->font.full_name and
9254 font->font.name properly. Fix calculation of font->font.height
9255 and font->min_width.
9256
9257 * ftxfont.c (ftxfont_create_gcs): New function.
9258 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
9259 (ftxfont_draw_backgrond): Fix filling region.
9260 (ftxfont_default_fid): New function.
9261 (ftxfont_open): Set xfont->fid to the return value of
9262 ftxfont_default_fid.
9263 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
9264 (ftxfont_done_face): Free only GCs that are created by
9265 ftxfont_create_gcs.
9266 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
9267
9268 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
9269 Clip to src->width, etc (not src->clip_XXX).
9270
9271 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
9272 FontBackend frame parameter.
9273
92742008-02-01 Kenichi Handa <handa@m17n.org>
9275
9276 * font.h (struct font_driver_list): New member `on'.
9277 (Fclear_font_cache): EXFUN it.
9278 (font_update_drivers): Extern it.
9279
9280 * font.c (font_unparse_fcname): Fix typo (swidth->width).
9281 (font_list_entities): Check driver_list->on.
9282 (register_font_driver): Initalize `on' member to 0.
9283 (font_update_drivers): New function.
9284 (Fclear_font_cache): Check driver_list->on.
9285
9286 * frame.h (Qfont_backend): Extern it.
9287 (x_set_font_backend): Extern it.
9288
9289 * frame.c (Qfont_backend): New variable.
9290 (frame_parms): New element for font-backend.
9291 (x_set_font_backend): New function.
9292
9293 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
9294 FontBackend frame parameter.
9295 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
9296 x_set_font_backend.
9297
9298 * xfont.c (xfont_list): Don't try listing by :name property if the
9299 name is not for XLFD.
9300
93012008-02-01 Kenichi Handa <handa@m17n.org>
9302
9303 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
9304 (LGLYPH_SET_TO): New macros.
9305 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
9306 element of G is vector or not.
9307 (font_at): Extern it.
9308
9309 * font.c: Include window.h.
9310 (font_lispy_object): New function.
9311 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
9312 end of valid glyph.
9313 (font_close_object): Fix getting (struct font *).
9314 (font_at): New function.
9315 (Ffont_get): If FONT is a font-object, get entity from it.
9316 (Ffont_make_gstring): Initialize elements of glyphs with nil.
9317 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
9318 range check.
9319 (Ffont_at): New function.
9320 (syms_of_font): Defsubr Sfont_at.
9321
9322 * xdisp.c (it_props): Move the entry for Qauto_composed to just
9323 before the entry for Qcomposition.
9324 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
9325 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
9326 the font in gstring.
9327 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
9328 LGLYPH_FORM (g) to detect the end of valid glyph.
9329 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
9330 we are composing with gstring.
9331
9332 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
9333 Check if adjustment is vector or not.
9334
9335 * Makefile.in (font.o): Make it depends on window.h.
9336
93372008-02-01 Kenichi Handa <handa@m17n.org>
9338
9339 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
9340 adjustment is vector or not.
9341
93422008-02-01 Miles Bader <miles@gnu.org>
9343
9344 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
9345
93462008-02-01 Kenichi Handa <handa@m17n.org>
9347
9348 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
9349 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
9350 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
9351
9352 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
9353 (DEVICE_DELTA): Fix typo.
9354 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
9355 LGLYPH format.
9356
9357 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9358 the change of LGLYPH format.
9359
93602008-02-01 Kenichi Handa <handa@m17n.org>
9361
9362 * ftfont.c (ftfont_list): Fix typo.
9363 (ftfont_build_basic_charsets): Don't include letters with diacritics.
9364
93652008-02-01 Jan Djärv <jan.h.d@swipnet.se>
9366
9367 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
9368
9369 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
9370 xftface_info is non-NULL.
9371
93722008-02-01 Jan Djärv <jan.h.d@swipnet.se>
9373
9374 * ftfont.c (ftfont_list): Move misplaced #endif.
9375
93762008-02-01 Kenichi Handa <handa@m17n.org>
9377
9378 * ftfont.c (ftfont_list): Pay attention to the case that
9379 FC_CAPABILITY is not defined.
9380
93812008-02-01 Kenichi Handa <handa@m17n.org>
9382
9383 * xftfont.c (xftfont_open): Set charset related members to -1.
9384
9385 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
9386 QCname.
9387 (ftfont_open): Set charset related members to -1.
9388
9389 * fontset.c (Votf_script_alist): New variable.
9390 (syms_of_fontset): Initialize it.
9391 (fontset_font): Delete unused variable.
9392
9393 * fontset.h (Votf_script_alist): Extern it.
9394
9395 * font.c (font_find_for_lface): Optimize code.
9396
9397 * font.h (font_close_object, font_merge_old_spec): Extern them.
9398
93992008-02-01 Kenichi Handa <handa@m17n.org>
9400
9401 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
9402 (syms_of_font): Initialize them.
9403 (font_pixel_size): Allow float value in dpi.
9404 (font_prop_validate_type): Delete.
9405 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
9406 Change caller.
9407 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
9408 (font_prop_validate_extra): Delete.
9409 (font_prop_validate_spacing): New function.
9410 (font_property_table): Add elements for all known properties.
9411 (get_font_prop_index): Rename from check_font_prop_name. New
9412 argument FROM. Change caller.
9413 (font_prop_validate): Validate all known properties.
9414 (font_put_extra): Delete argument force. Change caller.
9415 (font_expand_wildcards): Make it static. Fix the way of shrinking
9416 the possible range.
9417 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
9418 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
9419 Change caller.
9420 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
9421 (font_parse_fcname): Delete argument merge. Fix parsing of point
9422 size. Don't validate properties values here. Change caller.
9423 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
9424 (font_open_by_name): Delete unused variable.
9425 (Ffont_spec): Likewise. Validate property values.
9426 (Ffont_match_p): New function.
9427
9428 * font.h (QCscalable): Extern it.
9429 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
9430
9431 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
9432
9433 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
9434 (xfont_list_pattern): New function.
9435 (xfont_list): Use xfont_list_pattern.
9436
94372008-02-01 Kenichi Handa <handa@m17n.org>
9438
9439 * font.h (Flist_fonts): EXFUN it.
9440
94412008-02-01 Jason Rumney <jasonr@gnu.org>
9442
9443 * w32term.c (w32_initialize): Add back smoothing_type and
9444 smoothing_enabled definitions.
9445
94462008-02-01 Kenichi Handa <handa@m17n.org>
9447
9448 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
9449 s->face->font on determining underline position.
9450
94512008-02-01 Kenichi Handa <handa@m17n.org>
9452
9453 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
9454 (font_has_char): Accept font-object too.
9455 (font_find_for_lface): Try at first with a size specified in face.
9456
94572008-02-01 Kenichi Handa <handa@m17n.org>
9458
9459 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
9460 font_open_by_name.
9461
94622008-02-01 Kenichi Handa <handa@m17n.org>
9463
9464 * font.h (QCspacing, QCdpi): Extern them.
9465 (enum font_spacing): New enum.
9466 (FONT_PIXEL_SIZE_QUANTUM): New macro.
9467
9468 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
9469 (QCspacing, QCdpi): New variables.
9470 (syms_of_font): Initialize them.
9471 (font_pixel_size): New function.
9472 (font_put_extra): New function.
9473 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
9474 in FONT_EXTRA.
9475 (font_parse_fcname): Handle enumerated values (e.g. bold).
9476 Fix handling font size. Add QCname property that contains only
9477 unknown properties.
9478 (font_score): Change argument. Change caller. Pay attention to
9479 FONT_PIXEL_SIZE_QUANTUM.
9480 (font_sort_entites, font_list_entities, font_find_for_lface)
9481 (font_open_for_lface, font_open_by_name): Fix handling of font size.
9482 (Ffont_spec): Add QCname property that contains only unknown properties.
9483
9484 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
9485 include weight in listing pattern, instead check weight of each
9486 listed font. Don't include scalable in pattern. Pay attention to
9487 FONT_PIXEL_SIZE_QUANTUM.
9488
94892008-02-01 Kenichi Handa <handa@m17n.org>
9490
9491 * font.c (font_parse_fcname): Fix parsing of point-size.
9492 (font_unparse_fcname): Produce symbolic names for style properties.
9493 (font_list_entities): Handle float size correctly.
9494 (font_open_by_name): Prefer `normal' property values if the name
9495 doesn't specify them.
9496
9497 * fontset.c (Finternal_char_font): Use font_get_name, not
9498 Ffont_xlfd_name.
9499
9500 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
9501 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
9502 pattern. Don't force scalable.
9503
9504 * xftfont.c (xftfont_open): For generating a name, start from
9505 96-byte buffer.
9506
95072008-02-01 Jan Djärv <jan.h.d@swipnet.se>
9508
9509 * frame.h (x_new_fontset2): Fix prototype.
9510
95112008-02-01 Kenichi Handa <handa@m17n.org>
9512
9513 * font.h (struct font_driver): Delete member parse_name.
9514 (font_match_p, font_get_spec, font_parse_fcname)
9515 (font_unparse_fcname): Extern them.
9516 (font_get_name): Adjust prototype.
9517
9518 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
9519 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
9520 (font_expand_wildcards): Fix handling ENCODING field. Avoid
9521 unnecessary checks for weight, slant, and swidth.
9522 (font_parse_fcname): New function.
9523 (font_unparse_fcname): New function.
9524 (font_parse_name): New function.
9525 (font_match_p): New function.
9526 (font_get_name): Change return value to Lisp string.
9527 (font_get_spec): New function.
9528 (Qunspecified, Qignore_defface): Don't extern them.
9529 (font_find_for_lface): Assume that LFACE is fully specified.
9530 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
9531 object, use it for FACE.
9532 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
9533 driver->parse_name.
9534 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
9535
9536 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
9537 prototype.
9538
9539 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
9540 argument F. Don't call Fnew_fontset. Instead, directly call
9541 make_fontset.
9542
9543 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
9544
9545 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
9546 of x_new_fontset2.
9547
9548 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
9549 (Qsans__serif): New variables.
9550 (ftfont_generic_family_list): New variable.
9551 (syms_of_ftfont): Initialize the above variables.
9552 (ftfont_pattern_entity): Delete argument NAME.
9553 (ftfont_list_generic_family): New function.
9554 (ftfont_parse_name): Delete this function.
9555 (ftfont_list): Try generic family only when FcFontList found no font.
9556 (ftfont_list_family): Fix args to FcObjectSetBuild.
9557
9558 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
9559 object in attrs[LFACE_FONT_INDEX].
9560 (set_lface_from_font_name): Cancel all changes for font-backend.
9561 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
9562 function.
9563 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
9564 font object in QCfont attribute.
9565 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
9566 (realize_default_face) [USE_FONT_BACKEND]: Call
9567 set_lface_from_font_and_fontset.
9568
9569 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
9570 "fixed", and signal error here if no suitable font was found.
9571
9572 * xfont.c (xfont_parse_name): Delete this function.
9573
9574 * xftfont.c (xftfont_open): Change coding style of error
9575 handling. Generate fontconfig's fontname pattern.
9576
9577 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
9578 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
9579
9580 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
9581 Both args FONTSET and FONT_OBJECT must be existing ones.
9582
95832008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9584
9585 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
9586
95872008-02-01 Kenichi Handa <handa@m17n.org>
9588
9589 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
9590
9591 * font.h (struct font): Fix typo.
9592
9593 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
9594 XLFD_XXX_INDEX.
9595 (enum xlfd_field_mask): New enum.
9596 (intern_font_field): Changed argument. Change caller. If digits
9597 are followed by non-digits, return a symbol.
9598 (font_expand_wildcards): New function.
9599 (font_parse_xlfd): Fix wildcard handling.
9600 (Ffont_spec): If :name is specified, reflect the info in the other
9601 properties.
9602
9603 * ftfont.c (ftfont_pattern_entity): Fix typo.
9604 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
9605 locale.
9606
96072008-02-01 Kenichi Handa <handa@m17n.org>
9608
9609 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
9610
9611 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
9612 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
9613 registry doesn't specify encoding part.
9614 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
9615 (font_open_by_name): At first try parsing the name.
9616 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
9617 as Lisp symbols.
9618
9619 * fontset.c (reorder_font_vector): Pay attention to the case that
9620 the 3rd element of font_def is nil.
9621 (fontset_font): For the default fontset, append one more fontset
9622 elements for a script-based font specification. Don't add script
9623 attribute on finding a font.
9624 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
9625 font name.
9626 (fontset_ascii_font): If a font can't be opened, return nil.
9627
9628 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
9629 (ftfont_pattern_entity): New function.
9630 (ftfont_get_cache): Assume that freetype_font_cache is already
9631 initialized.
9632 (ftfont_list): Handle the case that a file is specified in font
9633 name. Use ftfont_pattern_entity to generate entities.
9634 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
9635 (syms_of_ftfont): Initialize freetype_font_cache.
9636
9637 * xftfont.c (xftfont_open): Make the font name fontconfig's
9638 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
9639 (xftfont_close): Free font->font.name if not NULL.
9640
9641 * xfont.c (xfont_list): If script is specified for a font, return
9642 null_vector.
9643 (xfont_list_family): Declare argument type.
9644
9645 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
9646 name, set LFACE_FONT (lface) to nil.
9647
9648 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
9649 return Qnil.
9650
96512008-02-01 Kenichi Handa <handa@m17n.org>
9652
9653 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
9654 (standard_args): Add "-enable-font-backend".
9655
96562008-02-01 Kenichi Handa <handa@m17n.org>
9657
9658 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
9659 (struct xftdraw_list, xftdraw_list): Delete them.
9660 (register_xftdraw, check_xftdraw): Delete them.
9661 (xftfont_prepare_face): Don't call register_xftdraw.
9662 (xftfont_done_face): Don't call check_xftdraw.
9663 (xftfont_draw): Get background color only when with_background is
9664 nonzero.
9665
9666 * xfont.c (xfont_encode_char): Fix calculation of char2b.
9667
96682008-02-01 Kenichi Handa <handa@m17n.org>
9669
9670 These changes are for the new font handling codes.
9671
9672 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
9673 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
9674 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
9675 (FONTSRC, FONTOBJ): New variables.
9676 (obj): Add $(FONTOBJ).
9677 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
9678 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
9679 @LIBOTF_LIBS@.
9680 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
9681 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
9682
9683 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
9684
9685 * character.h (Vscript_representative_chars): Extern it.
9686
9687 * character.c (Vscript_representative_chars): New variable.
9688 (syms_of_character): Declare it as a Lisp variable.
9689
9690 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
9691 enable_font_backend is nonzero, accept the composition method
9692 COMPOSITION_WITH_GLYPH_STRING.
9693
9694 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
9695 enumeration COMPOSITION_WITH_GLYPH_STRING.
9696
9697 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
9698 members clip_x, clip_y, clip_width, and clip_height.
9699 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
9700
9701 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
9702 --enable-font-backend. Call syms_of_font.
9703
9704 * fns.c (assoc_no_quit): New function.
9705
9706 * fontset.h (FONT_INFO_FROM_FACE): New macro.
9707 (face_for_font, new_fontset_from_font)
9708 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
9709
9710 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
9711 (fontset_font, fontset_ascii, face_for_char)
9712 (make_fontset_for_ascii_face, Ffont_info)
9713 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
9714 is nonzero, use font-backend mechanism.
9715 (find_font_encoding): Make it non-static.
9716 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
9717 New functions.
9718
9719 * frame.h (struct frame): New members resx and resy.
9720 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
9721 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
9722
9723 * frame.c [USE_FONT_BACKEND]: Include "font.h".
9724 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
9725
9726 * lisp.h (assoc_no_quit): Extern it.
9727
9728 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
9729 Through out the file, use FONT_INFO_FROM_FACE instead of
9730 FONT_INFO_FROM_ID, use get_per_char_metric instead of
9731 rif->per_char_metric.
9732 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
9733 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
9734 (get_glyph_face_and_encoding, fill_composite_glyph_string)
9735 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
9736 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
9737 nonzero, use font-backend mechanism.
9738 (get_per_char_metric): New function.
9739
9740 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
9741 (set_lface_from_font_name)
9742 (set_font_frame_param, free_realized_face)
9743 (prepare_face_for_display, clear_face_gcs)
9744 (Finternal_set_font_selection_order, realize_x_face)
9745 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
9746 font-backend mechanism.
9747 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
9748 (load_face_font) [USE_FONT_BACKEND]: Abort.
9749 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
9750 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
9751
9752 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
9753 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
9754 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
9755 nonzero, register all available font drivers. Call
9756 x_default_font_parameter for deciding a font.
9757 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
9758
9759 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
9760 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
9761 (x_set_glyph_string_clipping_exactly)
9762 (x_compute_glyph_string_overhangs)
9763 (x_draw_glyph_string_foreground)
9764 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
9765 (x_free_frame_resources) [USE_FONT_BACKEND]: If
9766 enable_font_backend is nonzero, use font-backend mechanism.
9767 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
9768
97692008-02-01 Kenichi Handa <handa@m17n.org>
9770
9771 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
9772 system_eol_type.
9773 (syms_of_coding): Initialize system_eol_type.
9774
9775 * process.c (Fset_process_coding_system): Inherit system's eol
9776 format if necessary.
9777
97782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9779
9780 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
9781
97822008-02-01 Kenichi Handa <handa@m17n.org>
9783
9784 * coding.c (decode_eol): Pay attention to buffer relocation in
9785 del_range_2.
9786 (decode_coding): Call decode_eol before restoring undo_list.
9787
97882008-02-01 Kenichi Handa <handa@m17n.org>
9789
9790 * charset.c (Fdefine_charset_internal): Fix setting of
9791 emacs_mule_bytes.
9792
97932008-02-01 Kenichi Handa <handa@m17n.org>
9794
9795 * keyboard.c (read_char): Check if C is a character or not before
9796 looking up Vkeyboard_translate_table.
9797
97982008-02-01 Kenichi Handa <handa@m17n.org>
9799
9800 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
9801 condition to terminate the loop.
9802
98032008-02-01 Kenichi Handa <handa@m17n.org>
9804
9805 * coding.c (produce_composition): Compare charbuf[i] instead of
9806 args[i] against 0.
9807 (Fterminal_coding_system): Use EQ to compare Lisp objects.
9808
98092008-02-01 Kenichi Handa <handa@m17n.org>
9810
9811 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
9812 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
9813 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
9814 detect_coding.
9815 (emacs_mule_char): Handle old style (Emacs 20) component character
9816 of a composition.
9817 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
9818 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
9819 composition rule.
9820 (decode_coding_emacs_mule): Handle invalid bytes correctly.
9821
98222008-02-01 Kenichi Handa <handa@m17n.org>
9823
9824 * coding.c (encode_coding_ccl): Allocate destination dynamically
9825 when necessary.
9826
98272008-02-01 Kenichi Handa <handa@m17n.org>
9828
9829 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
9830 the loop. When quitted, show a proper error message.
9831
98322008-02-01 Kenichi Handa <handa@m17n.org>
9833
9834 * xterm.c (x_set_glyph_string_clipping_exactly): Set
9835 src->clip_head and src->clip_tail temporarily instead of src->hl.
9836
9837 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
9838 character sequence.
9839 (Fccl_execute_on_string): Use ASET, not XSET.
9840
98412008-02-01 Kenichi Handa <handa@m17n.org>
9842
9843 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
9844
98452008-02-01 Kenichi Handa <handa@m17n.org>
9846
9847 * coding.c (decode_coding): Fix the condition of terminating the
9848 decoding loop.
9849
98502008-02-01 Kenichi Handa <handa@m17n.org>
9851
9852 * data.c (Faset): On setting a character bigger than 255 in a
9853 unibyte string, signal an error instead of make the string multibyte.
9854
98552008-02-01 Kenichi Handa <handa@m17n.org>
9856
9857 * charset.c (map_charset_chars): Fix for ascii-compatible charset
9858 made by a mapping table.
9859
98602008-02-01 Kenichi Handa <handa@m17n.org>
9861
9862 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
9863 not.
9864 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
9865 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
9866
9867 * xterm.c (x_draw_composite_glyph_string_foreground): Check
9868 s->face is NULL or not.
9869
98702008-02-01 Kenichi Handa <handa@m17n.org>
9871
9872 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
9873 (x_draw_glyph_string): Fix drawing of right_overhang and
9874 left_overhang around/on cursor.
9875
9876 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
9877
98782008-02-01 Kenichi Handa <handa@m17n.org>
9879
9880 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
9881
98822008-02-01 Kenichi Handa <handa@m17n.org>
9883
9884 * coding.c (Fdefine_coding_system_internal)
9885 (Fdefine_coding_system_alias): Avoid a duplicated element in
9886 Vcoding_system_alist.
9887
98882008-02-01 Kenichi Handa <handa@m17n.org>
9889
9890 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
9891
9892 * coding.c (Qcoding_system_define_form): New variable.
9893 (syms_of_coding): Intern and staticpro it.
9894 (Fcoding_system_p): Check Qcoding_system_define_form.
9895 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
9896
9897 * coding.h (CODING_SYSTEM_P): If ID is not available, call
9898 Fcoding_system_p.
9899 (CHECK_CODING_SYSTEM): If ID is not available, call
9900 Fcheck_coding_system.
9901 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
9902 Try also Fcheck_coding_system.
9903
99042008-02-01 Kenichi Handa <handa@m17n.org>
9905
9906 * coding.c (code_conversion_restore): GCPRO arg.
9907
99082008-02-01 Kenichi Handa <handa@m17n.org>
9909
9910 * character.c (lisp_string_width): Check multibyteness of STRING.
9911
99122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9913
9914 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
9915 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
9916 (decode_mac_font_name): Use decode_coding_c_string instead of
9917 decode_coding.
9918 (x_load_font): Initialize fontp->fontset to -1. Set
9919 fontp->encoding_type.
9920
99212008-02-01 Kenichi Handa <handa@m17n.org>
9922
9923 * search.c (search_buffer): Give up BM search on case-fold-search
9924 if one of a target character has a case-equivalence of different
9925 byte length even if that target charcter is an ASCII.
9926 (simple_search): Fix calculation of byte length of matched text.
9927 (boyer_moore): Fix handling of case-equivalent multibyte characters.
9928
99292008-02-01 Kenichi Handa <handa@m17n.org>
9930
9931 * coding.c (decode_coding): Fix handling of invalid bytes.
9932
99332008-02-01 Kenichi Handa <handa@m17n.org>
9934
9935 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
9936 Unicode characters.
9937
99382008-02-01 Kenichi Handa <handa@m17n.org>
9939
9940 * coding.c (encode_coding_object): If a pre-write-conversion
9941 function makes a new buffer, kill it.
9942
99432008-02-01 Kenichi Handa <handa@m17n.org>
9944
9945 * coding.c (QCascii_compatible_p): New variable.
9946 (syms_of_coding): Initialize it.
9947 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
9948 calling string_char.
9949 (record_conversion_result): Add `default:' case.
9950 (coding_charset_list): Delete unused variable `coding_type'.
9951 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
9952 property in the plist of the coding system.
9953 (Fcoding_system_put): Check QCascii_compatible_p.
9954
99552008-02-01 Miles Bader <miles@gnu.org>
9956
9957 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
9958 removed calculation of frame `f', as it's now used.
9959
99602008-02-01 Kenichi Handa <handa@m17n.org>
9961
9962 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
9963 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
9964 (UNIDATA): New variable.
9965 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
9966 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
9967 $(RUN_TEMACS) unconditionally.
9968
99692008-02-01 Kenichi Handa <handa@m17n.org>
9970
9971 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
9972 (admindir): New variable.
9973 ($(lispsource)international/charprop.el): New target.
9974
99752008-02-01 Miles Bader <miles@gnu.org>
9976
9977 * character.c (chars-in-region): Remove obsolete function.
9978 (syms_of_character): Remove its initialization.
9979
99802008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
9981
9982 * w32select.c (validate_coding_system)
9983 (setup_windows_coding_system): New functions.
9984 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
9985 setup_windows_coding_system.
9986 (setup_config, Fw32_get_clipboard_data): Use
9987 validate_coding_system.
9988 (Fx_selection_exists): Move call to setup_config to a place
9989 where signals are allowed.
9990
9991 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
9992 (Fcheck_coding_system): Add declarations.
9993
99942008-02-01 Kenichi Handa <handa@m17n.org>
9995
9996 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
9997
99982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9999
10000 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
10001 string as the second argument for x_new_fontset.
10002
100032008-02-01 Kenichi Handa <handa@m17n.org>
10004
10005 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
10006 (encode_coding_object): Use safe_call instead of call2.
10007
100082008-02-01 Kenichi Handa <handa@m17n.org>
10009
10010 * fontset.c (Fset_fontset_font): Check family element of a given vector.
10011
10012 * Makefile.in (lisp): Include charprop.el.
10013
100142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10015
10016 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
10017 Not sure if it's unnecessary.
10018
100192008-02-01 Steven Tamm <steventamm@mac.com>
10020
10021 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
10022 some possibly unnecessary fontset checking code that crashed
10023 when creating a new frame.
10024
100252008-02-01 Kenichi Handa <handa@m17n.org>
10026
10027 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
10028 lookup_face.
10029
10030 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
10031
10032 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
10033
100342008-02-01 Kenichi Handa <handa@m17n.org>
10035
10036 * coding.c: Cancel the change done in HEAD on 2008-02-01.
10037 (coding_charset_list): New function.
10038
10039 * coding.h (coding_charset_list): Extern it.
10040
100412008-02-01 Kenichi Handa <handa@m17n.org>
10042
10043 * fontset.c (Fset_fontset_font): Call find_font_encoding with
10044 concatenation of family and registry.
10045
100462008-02-01 Kenichi Handa <handa@m17n.org>
10047
10048 * character.h (BYTE8_STRING): Fix typo.
10049
10050 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
10051 string to multibyte (sync to HEAD).
10052
10053 * casefiddle.c (casify_region): Handle changes in byte-length
10054 using replace_range_2 (sync to HEAD).
10055
100562008-02-01 Andreas Schwab <schwab@suse.de>
10057
10058 * chartab.c (map_char_table): GCPRO table and arg.
10059
100602008-02-01 Kenichi Handa <handa@m17n.org>
10061
10062 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
10063 already at limit.
10064
100652008-02-01 Kenichi Handa <handa@m17n.org>
10066
10067 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
10068 instead of fast_c_string_match_ignore_case.
10069 (find_font_encoding): Change argument to Lisp_Object. Use
10070 fast_string_match_ignore_case instead of
10071 fast_c_string_match_ignore_case. Change caller.
10072
100732008-02-01 Kenichi Handa <handa@m17n.org>
10074
10075 * xdisp.c (get_next_display_element): In unibyte case, decide to
10076 display in octal form by checking a character by
10077 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
10078
10079 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
10080
10081 * character.c (unibyte_has_multibyte_table): New variable.
10082
10083 * character.h (unibyte_has_multibyte_table): Extern it.
10084 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
10085
100862008-02-01 Kenichi Handa <handa@m17n.org>
10087
10088 * coding.c (encode_coding_iso_2022): Fix handling of charset
10089 annotation.
10090
100912008-02-01 Kenichi Handa <handa@m17n.org>
10092
10093 * coding.c (setup_coding_system): If coding_system is nil, use
10094 Qundecided.
10095 (Fterminal_coding_system): Return nil if terminal coding system is
10096 `undecided'.
10097 (syms_of_coding): Define coding-system `undecided' here. Setup
10098 terminal_coding as `undecided'.
10099
101002008-02-01 Kenichi Handa <handa@m17n.org>
10101
10102 * xdisp.c (message_dolog, set_message_1): Call
10103 unibyte_char_to_multibyte with arg type int.
10104
10105 * lread.c (read1): Fix reading of a char-table.
10106
10107 * print.c (print_object): Include sub char-table in circularities
10108 detection.
10109
101102008-02-01 Kenichi Handa <handa@m17n.org>
10111
10112 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
10113 Append the found sequences in car of ARGS instead of prepending.
10114
101152008-02-01 Kenichi Handa <handa@m17n.org>
10116
10117 * fileio.c (report_file_error): Make a unibyte string from
10118 strerror (errorno).
10119 (Fsubstitute_in_file_name): Fix the arg to
10120 unibyte_char_to_multibyte. It is evaluated twice.
10121
101222008-02-01 Kenichi Handa <handa@m17n.org>
10123
10124 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
10125
101262008-02-01 Kenichi Handa <handa@m17n.org>
10127
10128 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
10129 BOM is not found.
10130 (detect_coding, detect_coding_system): Optimization for ISO-2022
10131 when no 8-bit data is found.
10132
101332008-02-01 Jason Rumney <jasonr@gnu.org>
10134
10135 * w32fns.c (x_to_w32_font): Update to use new coding struct.
10136
101372008-02-01 Kenichi Handa <handa@m17n.org>
10138
10139 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
10140 CHARS.
10141
101422008-02-01 Steven Tamm <steventamm@mac.com>
10143
10144 * macterm.c (mac_encode_char): Add charset argument and update
10145 to use encoding_type.
10146 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
10147 switch to pure fontset.
10148 (decode_mac_font_name): Temporarily remove decoding.
10149 (x_font_name_to_mac_font_name): Temporarily remove encoding.
10150 (x_load_font): Temporarily remove encoding.
10151
101522008-02-01 Kenichi Handa <handa@m17n.org>
10153
10154 * xfaces.c (Fface_font): If frame is not on a window system,
10155 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
10156 refer to face->font.
10157 (split_font_name_into_vector, build_font_name_from_vector)
10158 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
10159 when HAVE_WINDOW_SYSTEM is defined.
10160
101612008-02-01 Kenichi Handa <handa@m17n.org>
10162
10163 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
10164 (x_produce_glyphs): Fix setting of members of cmp in case
10165 cmp->glyph_len is zero.
10166
10167 * fontset.c (Fset_fontset_font): Fix docstring.
10168 (Ffontset_info): Make it backward compatible. New arg ALL.
10169
101702008-02-01 Kim F. Storm <storm@cua.dk>
10171
10172 * process.c (read_process_output): Grow decoding_buf when needed;
10173 this could cause a crash in allocate_string and compact_small_strings.
10174
101752008-02-01 Kenichi Handa <handa@m17n.org>
10176
10177 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
10178
101792008-02-01 Kenichi Handa <handa@m17n.org>
10180
10181 * coding.c (setup_coding_system): Set coding->common_flags
10182 correctly for raw-text.
10183 (consume_chars): On encoding unibyte text by raw-text, don't check
10184 multibyte form.
10185 (encode_coding): On encoding by raw-text, never use translation tables.
10186
10187 * fileio.c (e_write): Short cut for the case of no encoding.
10188
101892008-02-01 Kenichi Handa <handa@m17n.org>
10190
10191 * coding.c (detect_coding, detect_coding_system): Delete unused
10192 variables.
10193
101942008-02-01 Kenichi Handa <handa@m17n.org>
10195
10196 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
10197 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
10198
101992008-02-01 Kenichi Handa <handa@m17n.org>
10200
10201 * coding.c (Ffind_coding_systems_region_internal): Include
10202 raw-text and no-conversion in the result.
10203
102042008-02-01 Kenichi Handa <handa@m17n.org>
10205
10206 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
10207 (load_font_get_repertory): Delete unnecessary check of ENCODING of
10208 FONT_DEF.
10209 (font_def_arg, add_arg, from_arg, to_arg): New args.
10210 (set_fontset_font): Change argument.
10211 (Fset_fontset_font): Fix for the case that TARGET is a script
10212 name and charset name.
10213 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
10214
102152008-02-01 Kenichi Handa <handa@m17n.org>
10216
10217 * fontset.c (fontset_font): Rename from fontset_face. Change return
10218 value.
10219 (face_suitable_for_char_p, face_for_char): Adjust for the change
10220 of fontset_font.
10221 (make_fontset_for_ascii_face): Fix setting of the fontset element
10222 for ASCII.
10223 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
10224 to get a font name.
10225 (Ffontset_info): Adjust for the change of fontset_font.
10226
10227 * coding.c (emacs_mule_char): Check invalid code more rigidly.
10228
10229 * character.h (LEADING_CODE_LATIN_1_MIN)
10230 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
10231
102322008-02-01 Kenichi Handa <handa@m17n.org>
10233
10234 * editfns.c (check_translation): New function.
10235 (Ftranslate_region_internal): Handle M:N mapping.
10236
102372008-02-01 Kenichi Handa <handa@m17n.org>
10238
10239 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
10240
102412008-02-01 Kenichi Handa <handa@m17n.org>
10242
10243 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
10244 goto invalid_code.
10245 (decode_coding_iso_2022): Fix handling of invalid designation.
10246
10247 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
10248 after calling code_conversion_save.
10249
102502008-02-01 Kenichi Handa <handa@m17n.org>
10251
10252 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
10253
10254 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
10255
10256 * fontset.c: Include "intervals.h".
10257 (fontset_face): Fix comparing of Lisp_Objects.
10258 (free_face_fontset, new_fontset_from_font_name): Fix
10259 Lisp_Object/int mixup.
10260
10261 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
10262
10263 * coding.c: Add many prototypes for static functions.
10264 (get_translation_table): Allow max_lookup to be NULL.
10265 (decode_coding, Ffind_coding_systems_region_internal)
10266 (Funencodable_char_position, Fcheck_coding_systems_region): Call
10267 get_translation_table with max_lookup NULL.
10268
102692008-02-01 Kenichi Handa <handa@m17n.org>
10270
10271 * coding.c (get_translation_table): Declare it as Lisp_Object.
10272 (LOOKUP_TRANSLATION_TABLE): New macro.
10273 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
10274 instead of CHAR_TABLE_REF.
10275
102762008-02-01 Kenichi Handa <handa@m17n.org>
10277
10278 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
10279 annotation data format.
10280 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
10281 Change arguments FROM and TO to single argument NCHARS. Change caller.
10282 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
10283 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10284 (decode_coding_ccl, decode_coding_charset): Pay attention to
10285 coding->charbuf_used.
10286 (get_translation): New function.
10287 (produce_chars): New arguments translation_table and last_block.
10288 Translate characters here. Return number of carryover chars.
10289 Change caller.
10290 (produce_composition): New argument pos. Change caller.
10291 Adjust for the change of annotation data format.
10292 (produce_charset, produce_annotation): Likewise.
10293 (decode_coding, encode_coding): Don't call translate_chars.
10294 (consume_chars): New arg translation_table. Change caller.
10295 (translate_chars): Delete.
10296 (syms_of_coding): Make translation-table's number of extra slots 2.
10297
102982008-02-01 Kenichi Handa <handa@m17n.org>
10299
10300 * search.c (simple_search): Fix setting this_pos_byte in backward
10301 search.
10302
10303 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
10304 byte sequence.
10305 (detect_coding_ccl): Fix setting of the variable valids.
10306
103072008-02-01 Kenichi Handa <handa@m17n.org>
10308
10309 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
10310
10311 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
10312
10313 * editfns.c (Ftranslate_region_internal): Rename from
10314 Ftranslate_region. Accept a char-table in TABLE.
10315 (syms_of_editfns): Defsubr Stranslate_region_internal.
10316
10317 * xfaces.c (set_lface_from_font_name): If a font is specified for
10318 a frame, generate a fontset from the font.
10319 (build_scalable_font_name): If the scalable font is requested for
10320 a specific size, don't change that size.
10321 (try_font_list): Try a scalable font also in the case that a
10322 pattern string is specified.
10323
103242008-02-01 Kenichi Handa <handa@m17n.org>
10325
10326 * xfaces.c (Fface_font): New optional arg CHARACTER.
10327
103282008-02-01 Kenichi Handa <handa@m17n.org>
10329
10330 * charset.h (CHARSET_OFFSET): New macro.
10331
103322008-02-01 Kenichi Handa <handa@m17n.org>
10333
10334 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
10335
10336 * fontset.c (fontset_face): Handle the case that repertory is a
10337 char-table.
10338 (find_font_encoding): Return nil for unknown encoding.
10339 (Fset_fontset_font): Ignore a font of unknown encoding.
10340
103412008-02-01 Kenichi Handa <handa@m17n.org>
10342
10343 * keymap.c (describe_vector): Handle default value of a char table.
10344
10345 * fontset.c (fontset_face): Handle fallback fonts correctly.
10346 (Ffontset_info): Return infomation about fallback fonts.
10347
103482008-02-01 Kenichi Handa <handa@m17n.org>
10349
10350 * fontset.c (FONTSET_DEFAULT): New macro.
10351 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
10352 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
10353 the case that it is nil.
10354 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
10355 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
10356
10357 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
10358 subset or superset.
10359
103602008-02-01 Kenichi Handa <handa@m17n.org>
10361
10362 * emacs.c (main): Call init_charset after syms_of_XXX.
10363
10364 * charset.c (Vcharset_map_directory): Delete.
10365 (Vcharset_map_path): New variable.
10366 (load_charset_map_from_file): Use Vcharset_map_path instead.
10367 (init_charset): Initialize Vcharset_map_path.
10368 (syms_of_charset): Delete declaration of "charset-map-directory",
10369 add declaration of "charset-map-path".
10370
103712008-02-01 Kenichi Handa <handa@m17n.org>
10372
10373 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
10374 ASCII only string.
10375
10376 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
10377
10378 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
10379 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
10380
103812008-02-01 Kenichi Handa <handa@m17n.org>
10382
10383 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
10384
10385 * coding.c (QCmnemonic, QCdefalut_char)
10386 (QCdecode_translation_table, QCencode_translation_table)
10387 (QCpost_read_conversion, QCpre_write_conversion): New variables.
10388 (get_translation_table): Return a list of translation tables if
10389 necessary.
10390 (decode_coding): Call get_translation_table with ENCODEP 0.
10391 (char_encodable_p): If translation_table is non-nil, always call
10392 translate_char.
10393 (Fdefine_coding_system_internal): Accept list of translation
10394 tables as :encode-translation-table and :decode-translation-table.
10395 (Fcoding_system_put): New function.
10396 (syms_of_coding): Declare new symbols. Defsubr
10397 Scoding_system_put.
10398 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
10399 typically JISX0212.
10400
10401 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
10402 when the charset is superset type.
10403
10404 * character.c (translate_char): Accept list of translation tables.
10405
104062008-02-01 Kenichi Handa <handa@m17n.org>
10407
10408 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
10409 (CODING_ATTR_TRANS_TBL): New macro.
10410
10411 * coding.c (get_translation_table): New function.
10412 (translate_chars): Fix the bug of skipping annotation data.
10413 (decode_coding, encode_coding): Utilize get_translation_table.
10414 (char_encodable_p, Funencodable_char_position): Translate char if
10415 necessary.
10416 (Ffind_coding_systems_region_internal)
10417 (Fcheck_coding_systems_region): Setup translation table for encode
10418 in a coding system attribute vector in advance.
10419 (Fdefine_coding_system_internal): Allow a symbol as translation
10420 table. For shift-jis type coding system, allow 4th charset.
10421
104222008-02-01 Kenichi Handa <handa@m17n.org>
10423
10424 * coding.c (decode_coding_sjis): Check the first byte rigidly.
10425
10426 * xdisp.c (get_next_display_element): Pass -1 as POS to
10427 FACE_FOR_CHAR if displaying a C-string.
10428
104292008-02-01 Kenichi Handa <handa@m17n.org>
10430
10431 * composite.c (get_composition_id): Handle xoff and yoff in a
10432 composition rule.
10433
10434 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
10435 (struct composition): New member lbearing and rbearing.
10436
10437 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
10438 (x_get_glyph_overhangs): Handle a composition glyph.
10439 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
10440
10441 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
10442 composition glyph.
10443
104442008-02-01 Kenichi Handa <handa@m17n.org>
10445
10446 * print.c: Include charset.h.
10447 (Vprint_charset_text_property): New variable.
10448 (Qdefault): Extern it.
10449 (PRINT_STRING_NON_CHARSET_FOUND)
10450 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
10451 (print_check_string_result): New variable.
10452 (print_check_string_charset_prop): New function.
10453 (print_prune_charset_plist): New variable.
10454 (print_prune_string_charset): New function.
10455 (print_object): Call print_prune_string_charset if
10456 Vprint_charset_text_property is not t.
10457 (print_interval): Print nothing if interval->plist is nil.
10458 (syms_of_print): Declare Vprint_charset_text_property as a lisp
10459 variable. Init and staticpro print_prune_charset_plist.
10460
104612008-02-01 Kenichi Handa <handa@m17n.org>
10462
10463 * fontset.c (new_fontset_from_font_name): Use the specified font
10464 for all characters in the new fontset.
10465
10466 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
10467 OBJECT args.
10468
10469 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
10470 OBJECT args for composition too.
10471
10472 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
10473 OBJECT args.
10474
104752008-02-01 Kenichi Handa <handa@m17n.org>
10476
10477 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
10478
10479 * fontset.c (reorder_font_vector): Adjust for the change of
10480 FONT_DEF format.
10481 (fontset_face): New arg id. Change caller.
10482 (face_for_char): New args pos and object.
10483 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
10484 (fs_query_fontset): Check NAME by Fassoc too.
10485 (Fset_fontset_font): Allow non-XLFD font name.
10486 (Ffontset_info): Adjust for the change of FONT_DEF format.
10487
10488 * fontset.h (face_for_char): Adjust prototype.
10489
10490 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
10491 (append_space, extend_face_to_end_of_line)
10492 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
10493 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
10494
10495 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
10496 POS and OBJECT args.
10497
10498 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
10499 POS and OBJECT args.
10500
105012008-02-01 Jason Rumney <jasonr@gnu.org>
10502
10503 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
10504 of GlobalAlloc'ed memory.
10505
105062008-02-01 Kenichi Handa <handa@m17n.org>
10507
10508 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
10509
10510 * charset.h (charset_table_used): Delete extern.
10511
10512 * charset.c (charset_table_used): Make it static.
10513 (map_charset_chars): Fix args to c_function with.
10514
10515 * chartab.c (map_sub_char_table_for_charset): Fix args to
10516 c_function with.
10517
10518 * coding.h (enum coding_result_code): Delete
10519 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
10520
10521 * coding.c (Qinsufficient_source, Qinconsistent_eol)
10522 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
10523 (Vlast_code_conversion_error): New variables.
10524 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
10525 (ONE_MORE_BYTE): Record error if any instead of signaling an
10526 error. If non-ASCII multibyte char is found, return the negative
10527 value of the code. All callers changed to check it.
10528 (ONE_MORE_BYTE_NO_CHECK): Likewise.
10529 (record_conversion_result): New function. Change all codes setting
10530 coding->result to call this function.
10531 (detect_coding_utf_8, decode_coding_utf_8)
10532 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
10533 Don't use the local variable incomplete.
10534 (emacs_mule_char): Change the second arg to `const'.
10535 (decode_coding): Fix of flushing out unprocessed data.
10536 (make_conversion_work_buffer): Fix making of a work buffer.
10537 (decode_coding_object): Return coding->dst_object.
10538
10539 * fontset.c (set_fontset_font): Fix args.
10540
10541 * lisp.h (CHARACTERBITS): Define as 22.
10542
10543 * process.c (send_process): Be sure to set coding->src_multibyte.
10544
10545 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
10546
105472008-02-01 Kenichi Handa <handa@m17n.org>
10548
10549 * xdisp.c (handle_auto_composed_prop): Give limit to
10550 Fnext_single_char_property_change.
10551
105522008-02-01 Kenichi Handa <handa@m17n.org>
10553
10554 * composite.c (syms_of_composite): Don't make the composition hash
10555 table weak.
10556
10557 * fontset.c (Fset_fontset_font): Fix docstring.
10558
10559 * lisp.h (detect_coding_system): Adjust prototype.
10560
10561 * fileio.c (kill_workbuf_unwind): Delete this function.
10562 (Finsert_file_contents): Adjust the call of detect_coding_system.
10563 Get conversion_buffer by code_conversion_save. Use the macro
10564 CODING_MAY_REQUIRE_DECODING. After decoding, update
10565 coding_system.
10566
10567 * coding.h (make_conversion_work_buffer): Delete extern.
10568 (code_conversion_save): Extern it.
10569
10570 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
10571 (CODING_GET_INFO): Delete argument eol_type. Change callers.
10572 (decode_coding_utf_8): Don't do eol converion.
10573 (detect_coding_utf_16): Check coding->src_chars, not
10574 coding->src_bytes. Add heuristics for those that have no signature.
10575 (decode_coding_emacs_mule, decode_coding_iso_2022)
10576 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
10577 Don't do eol converion.
10578 (adjust_coding_eol_type): Return a new coding system.
10579 (detect_coding): Don't detect eol. Fix for utf-16 detection.
10580 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
10581 each change.
10582 (decode_coding): Pay attention to undo_list. Do eol conversion for
10583 all types of coding-systems (if necessary).
10584 (Vcode_conversion_work_buf_list): Delete it.
10585 (Vcode_conversion_reused_workbuf): Rename from
10586 Vcode_conversion_reused_work_buf.
10587 (Vcode_conversion_workbuf_name): New variable.
10588 (reused_workbuf_in_use): New variable.
10589 (make_conversion_work_buffer): Delete the arg DEPTH.
10590 (code_conversion_restore): Change argument to cons.
10591 (code_conversion_save): Delete the argument BUFFER. Change callers.
10592 (detect_coding_system): New argument src_chars. Change callers.
10593 Fix for utf-16 detection.
10594 (init_coding_once): Don't use ISO_carriage_return.
10595 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
10596 reused_workbuf_in_use.
10597
105982008-02-01 Kenichi Handa <handa@m17n.org>
10599
10600 * keymap.c (store_in_keymap): Pay attention to the case that idx
10601 is a cons specifying a character range.
10602
106032008-02-01 Kenichi Handa <handa@m17n.org>
10604
10605 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
10606 HANDLED_RECOMPUTE_PROPS.
10607
10608 * coding.c (Fdefine_coding_system_internal): Fix checking of
10609 ascii compatibility.
10610
106112008-02-01 Kenichi Handa <handa@m17n.org>
10612
10613 * charset.c (find_charsets_in_text): Delete unused locale variable.
10614 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
10615
10616 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
10617 Resync charset_list to Vemacs_mule_charset_list.
10618
10619 * keymap.c (store_in_keymap): Pay attention to the case that idx
10620 is a cons specifying a character range.
10621
106222008-02-01 Kenichi Handa <handa@m17n.org>
10623
10624 * composite.c (update_compositions): Bind inhibit-read-only, etc
10625 to t before calling remove-list-of-text-properties.
10626
10627 * print.c (print_object): Always print ASCII chars as is.
10628
106292008-02-01 Kenichi Handa <handa@m17n.org>
10630
10631 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
10632
10633 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
10634 is a char table.
10635
106362008-02-01 Kenichi Handa <handa@m17n.org>
10637
10638 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
10639
106402008-02-01 Kenichi Handa <handa@m17n.org>
10641
10642 * xfaces.c (set_lface_from_font_name): Fix for the case that
10643 FONTNAME is not fontset name.
10644
106452008-02-01 Kenichi Handa <handa@m17n.org>
10646
10647 * fns.c (base64_encode_1): Fix previous change.
10648
106492008-02-01 Kenichi Handa <handa@m17n.org>
10650
10651 * fontset.c (set_fontset_font): New function.
10652 (Fset_fontset_font): If a font is specified for a charset, use
10653 map_charset_chars to store the font spec in a fontset.
10654
106552008-02-01 Kenichi Handa <handa@m17n.org>
10656
10657 * fontset.c (fontset_face): Create a fallback fontset on demand.
10658 (make_fontset): Don't create a fallback fontset here.
10659 (free_face_fontset): Free a fallback fontset (if any) too.
10660 (n_auto_fontsets): Delete this variable.
10661 (auto_fontset_alist): New variable.
10662 (new_fontset_from_font_name): Check auto_fontset_alist.
10663 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
10664 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
10665 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
10666 Defsubr Sfontset_list_all.
10667
106682008-02-01 Kenichi Handa <handa@m17n.org>
10669
10670 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
10671
106722008-02-01 Kenichi Handa <handa@m17n.org>
10673
10674 * fontset.c (Fnew_fontset): Check NAME more rigidly.
10675
106762008-02-01 Kenichi Handa <handa@m17n.org>
10677
10678 * editfns.c (Fgoto_char): Fix docstring.
10679
106802008-02-01 Kenichi Handa <handa@m17n.org>
10681
10682 * insdel.c (insert_from_gap): Adjust intervals correctly.
10683
106842008-02-01 Jason Rumney <jasonr@gnu.org>
10685
10686 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
10687 (pfnGetFontUnicodeRanges): New dynamically loaded function.
10688 (w32_initialize): Try to load it.
10689 (x_get_font_repertory): Use it if available.
10690 (w32_encode_char): Add shortcut for unicode output.
10691
10692 * w32fns.c (w32_load_system_font): Default charset to -1.
10693 (x_to_w32_charset): Match all fonts for unicode.
10694 (w32_to_x_charset): New parameter matching. Don't return partial
10695 or wildcard charsets.
10696 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
10697 (w32_codepage_for_font): Return CP_UNICODE for unicode.
10698 (w32_to_x_font): Match charset to real charset.
10699 (enum_font_cb2): Always list unicode versions.
10700
10701 * makefile.w32-in (temacs): Increase EMHEAP.
10702
107032008-02-01 Jason Rumney <jasonr@gnu.org>
10704
10705 * w32term.c (w32_encode_char): New charset parameter.
10706 font_info.encoding becomes encoding_type.
10707 (x_get_font_repertory): New function. Warning: stub only!
10708 (x_new_font): Return quickly if font already set.
10709 (x_new_fontset): fontsetname parameter is Lisp_Object.
10710 Use new fs_query_fontset. Try new_fontset_from_font_name.
10711 Use fontset_name for return value.
10712
10713 * w32term.h: Declare x_get_font_repertory.
10714
10715 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
10716 place of find_charset_in_text. Use encode_coding_object in place
10717 of encode_coding.
10718 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
10719 decode_coding.
10720
10721 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
10722 of x_new_fontset.
10723 (w32_load_system_font): Initialize charset as unicode.
10724 font_info.encoding becomes encoding_type.
10725 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
10726 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
10727 (syms_of_w32fns): Set get_font_repertory_func.
10728
10729 * w32console.c: Include character.h. Use terminal_encode_buffer
10730 from term.c.
10731 (write_glyphs): Use new version of encode_terminal_code. Use
10732 encode_coding_object in place of encode_coding.
10733
10734 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
10735 encoding becomes encoding_type.
10736
10737 * term.c (terminal_encode_buffer): Make externally visible.
10738
10739 * makefile.w32-in: Add character.h dependancies.
10740 (character.o, chartab.o): New targets.
10741
107422008-02-01 Kenichi Handa <handa@m17n.org>
10743
10744 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
10745 CODING_ID_EOL_TYPE.
10746
107472008-02-01 Andreas Schwab <schwab@suse.de>
10748
10749 * coding.c (produce_chars): Revert last change.
10750
107512008-02-01 Kenichi Handa <handa@m17n.org>
10752
10753 * charset.h (charset_unicode): Extern it.
10754
10755 * charset.c (string_xstring_p): Check by (C >= 0x100).
10756 (find_charsets_in_text): Change format of the arc CHARSETS. New
10757 arg MULTIBYTE.
10758 (Ffind_charset_region, Ffind_charset_string): Adjust for the
10759 change of find_charsets_in_text.
10760 (Fsplit_char): Fix doc. Never return unknown.
10761
10762 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
10763
10764 * coding.c (Fdefine_coding_system_alias): Update
10765 Vcoding_system_list.
10766
10767 * fontset.c (load_font_get_repertory): Pay attention to the case
10768 that ENCODING of a font is specified by a char-table.
10769
10770 * xterm.c (x_get_font_repertory): Handle the case that the
10771 encoding of font is other than Unicode.
10772
107732008-02-01 Kenichi Handa <handa@m17n.org>
10774
10775 * term.c (encode_terminal_code): Don't handle glyph-table. Check
10776 if a character is encodable by the terminal coding system. If
10777 not, produces proper number of `?'s. Update
10778 terminal_encode_buffer and terminal_encode_buf_size if necessary.
10779 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
10780
107812008-02-01 Kenichi Handa <handa@m17n.org>
10782
10783 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
10784 variables.
10785 (encode_terminal_code): Change argument. Encode multiple
10786 characters at once. Store the result of encoding in
10787 terminal_encode_buffer.
10788 (write_glyphs, insert_glyphs): Adjust for the change of
10789 encode_terminal_code.
10790 (term_init): Initialize terminal_encode_buffer and
10791 terminal_encode_buf_size.
10792
10793 * coding.c (consume_chars): If coding->src_object is nil, don't
10794 check annotation.
10795
107962008-02-01 Kenichi Handa <handa@m17n.org>
10797
10798 * character.c (char_string): Use ASCII_CHAR_P instead of
10799 SINGLE_BYTE_CHAR_P.
10800
108012008-02-01 Kenichi Handa <handa@m17n.org>
10802
10803 * xdisp.c (handle_auto_composed_prop): Check if the last
10804 characters of auto-composed region is newly composed with the
10805 following characters.
10806 (handle_composition_prop): Fix checking of point being inside
10807 composition.
10808
108092008-02-01 Kenichi Handa <handa@m17n.org>
10810
10811 * fns.c (concat): Don't change multibyteness of the result by
10812 concatenating an 8-bit character.
10813
10814 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
10815 multibyteness of the result when newelt is an 8-bit character.
10816
108172008-02-01 Dave Love <fx@gnu.org>
10818
10819 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
10820 EMACS_INT.
10821
10822 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
10823
10824 * xfaces.c (face_numeric_value): Declare dim size_t.
10825 (Finternal_lisp_face_equal_p): Remove unused f.
10826
10827 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
10828 (MATRIX_ROW): Remove unused vars.
10829 (draw_glyphs, x_insert_glyphs, fast_find_position)
10830 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
10831 byte/char counts.
10832
10833 * regex.c (regex_compile): Remove unused var.
10834
10835 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
10836
10837 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
10838 (Faccessible_keymaps, where_is_internal): Remove unused vars.
10839
10840 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
10841
10842 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
10843
10844 * fileio.c (Fwrite_region): Remove unused var.
10845
10846 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
10847 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
10848
10849 * composite.c (Fremove_list_of_text_properties): Declare.
10850
10851 * coding.c (inhibit_pre_post_conversion): Remove (unused).
10852 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
10853 (coding_inherit_eol_type): Remove unused attrs.
10854 (detect_coding): Cast arg of detect_eol.
10855
10856 * charset.c (syms_of_charset): Remove unused var p.
10857 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
10858 byte/char counts.
10859
10860 * casetab.c (set_case_table): Remove unused var.
10861
10862 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
10863 unused vars.
10864
108652008-02-01 Dave Love <fx@gnu.org>
10866
10867 * xterm.c (x_bitmap_mask): Declare.
10868
108692008-02-01 Dave Love <fx@gnu.org>
10870
10871 * xterm.c (x_term_init): Fix type error.
10872
10873 * lisp.h: Add Funibyte_char_to_multibyte.
10874
10875 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
10876 (Fset_coding_system_priority): Doc fix.
10877
10878 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
10879
10880 * indent.c (check_composition): Make start and end EMACS_INT.
10881
10882 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
10883
10884 * xdisp.c (handle_composition_prop, check_point_in_composition):
10885 Make buffer positions EMACS_INT.
10886
10887 * composite.c (find_composition, run_composition_function)
10888 (update_compositions, Ffind_composition_internal): Make buffer
10889 positions EMACS_INT.
10890
10891 * composite.h (find_composition, update_compositions): Make
10892 position args EMACS_INT.
10893
10894 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
10895
10896 * intervals.c (get_property_and_range):
10897 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
10898
10899 * unexalpha.c: Don't include varargs.h.
10900
109012008-02-01 Dave Love <fx@gnu.org>
10902
10903 * coding.h (ENCODE_UTF_8): New.
10904
10905 * Makefile.in (gtkutil.o): Depend on coding.h.
10906
10907 * coding.c (Fset_coding_system_priority): Doc fix.
10908
109092008-02-01 Kenichi Handa <handa@m17n.org>
10910
10911 * fileio.c (Finsert_file_contents): Call setup_coding_system in
10912 the case of auto saving.
10913
109142008-02-01 Andreas Schwab <schwab@suse.de>
10915
10916 * chartab.c (map_char_table, map_char_table_for_charset): Protect
10917 `range' from GC.
10918
109192008-02-01 Kenichi Handa <handa@m17n.org>
10920
10921 * coding.c (decode_coding_sjis): Check bytes more rigidly.
10922
109232008-02-01 Kenichi Handa <handa@m17n.org>
10924
10925 * fileio.c (choose_write_coding_system): Return a decided coding system.
10926 (Fwrite_region): Set Vlast_coding_system_used to the return value
10927 of choose_write_coding_system.
10928
109292008-02-01 Kenichi Handa <handa@m17n.org>
10930
10931 * charset.c (Fset_charset_priority): Pay attention to duplicated
10932 arguments.
10933
10934 * coding.c (QCcategory): New variable.
10935 (syms_of_coding): Defsym it. Set all elements of
10936 Vcoding_category_table and their symbol values.
10937 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
10938 coding-category-XXX, and coding-category-list.
10939 (Fdefine_coding_system_internal): Add category in the plist.
10940
109412008-02-01 Kenichi Handa <handa@m17n.org>
10942
10943 * callproc.c (Fcall_process): Handle carryover correctly.
10944
10945 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
10946 (raw_text_coding_system): Check NILP (coding_system).
10947 (coding_inherit_eol_type): Check NILP (coding_system) and
10948 NILP (parent).
10949 (consume_chars): Fix for the case of raw-text.
10950
10951 * process.c (read_process_output): Handle carryover correctly.
10952
109532008-02-01 Dave Love <fx@gnu.org>
10954
10955 * regex.c (re_search_2): Fix last change.
10956
109572008-02-01 Kenichi Handa <handa@m17n.org>
10958
10959 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
10960 target_multibyte. Even in a unibyte case, return a converted
10961 multibyte char.
10962 (GET_CHAR_AFTER): New macro.
10963 (PATFETCH): Translate via multibyte char.
10964 (HANDLE_UNIBYTE_RANGE): Delete this macro.
10965 (SETUP_MULTIBYTE_RANGE): New macro.
10966 (regex_compile): Setup compiled code so that its multibyteness
10967 matches that of a target. Fix the handling of "[X-YZ]" using
10968 SETUP_MULTIBYTE_RANGE.
10969 (analyse_first) <charset>: For filling fastmap for all multibyte
10970 characters, don't check by BASE_LEADING_CODE_P.
10971 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
10972 the same as RE_MULTIBYTE_P (bufp) now.
10973 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
10974 (TARGET_CHAR_AND_LENGTH): Delete this macro.
10975 (TRANSLATE_VIA_MULTIBYTE): New macro.
10976 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
10977 It is the same as RE_MULTIBYTE_P (bufp) now.
10978 <exactn>: Translate via multibyte.
10979 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
10980 translate it.
10981 <charset, charset_not>: Fetch a character by
10982 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
10983 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
10984 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
10985 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
10986 by GET_CHAR_AFTER.
10987 (bcmp_translate): Likewise.
10988
10989 * search.c (compile_pattern): Check the member target_multibyte,
10990 not the member multibyte of buf.
10991
10992 * lread.c (read1): While reading a string, set force_singlebyte
10993 and force_multibyte correctly.
10994
10995 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
10996 up of unibyte_to_multibyte_table.
10997
109982008-02-01 Kenichi Handa <handa@m17n.org>
10999
11000 * coding.c (setup_coding_system): If coding has
11001 post-read-conversion or pre-write-conversion, set
11002 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
11003 respectively.
11004 (decode_coding_gap): Run post-read-conversion if any.
11005
11006 * fileio.c (Finsert_file_contents): Even if we read into a
11007 unibyte buffer, check if we must decode the result or not.
11008
110092008-02-01 Kenichi Handa <handa@m17n.org>
11010
11011 * coding.c (make_conversion_work_buffer): Change the work buffer
11012 name to the same one as that of Emacs 21.
11013
110142008-02-01 Kenichi Handa <handa@m17n.org>
11015
11016 * coding.h (make_conversion_work_buffer): Adjust prototype.
11017 (code_conversion_restore): Don't extern it.
11018
11019 * coding.c (detected_mask): Delete unused variable.
11020 (decode_coding_iso_2022): Pay attention to the byte sequence of
11021 CTEXT extended segment, and retain those bytes as is.
11022 (decode_coding_ccl): Delete unused variable `valids'.
11023 (setup_coding_system): Delete unused variable `category'.
11024 (consume_chars): Delete unused variable `category'. Make it work
11025 for non-multibyte case.
11026 (make_conversion_work_buffer): Change argument.
11027 (saved_coding): Delete unused variable.
11028 (code_conversion_restore): Don't check saved_coding->destination.
11029 (code_conversion_save): New function.
11030 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
11031 instead of record_unwind_protect.
11032 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
11033 (detect_coding_system): Delete unused variable `mask'.
11034 (Fdefine_coding_system_internal): Delete unused variable id.
11035
11036 * fileio.c (kill_workbuf_unwind): New function.
11037 (Finsert_file_contents): On replacing, call
11038 make_conversion_work_buffer with correct args, and call
11039 record_unwind_protect with the first arg kill_workbuf_unwind.
11040
11041 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
11042
110432008-02-01 Kenichi Handa <handa@m17n.org>
11044
11045 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
11046 (fontset_add): Fix for the case that TO is less than TO1.
11047 (Ffontset_info): Don't use fallback fontset on checking the
11048 default fontset.
11049 (dump_fontset): New function for debugging.
11050
11051 * coding.c (Fdefine_coding_system_internal): Fix for the case that
11052 coding_type is Qcharset.
11053
110542008-02-01 Kenichi Handa <handa@m17n.org>
11055
11056 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
11057 (map_char_table): Don't inherit the value from the parent on
11058 initializing VAL. Adjust for the above change.
11059
110602008-02-01 Kenichi Handa <handa@m17n.org>
11061
11062 * coding.c (Qsignature, Qendian): Delete these variables.
11063 (syms_of_coding): Don't initialize them.
11064 (CATEGORY_MASK_UTF_16_AUTO): New macro.
11065 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
11066 detect_info->found.
11067 (decode_coding_utf_16): Don't detect BOM here.
11068 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
11069 is NOT utf_16_without_bom.
11070 (setup_coding_system): For a coding system of type utf-16, check
11071 if the attribute :endian is Qbig or not (not nil or not), and set
11072 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
11073 (detect_coding): If coding type is utf-16 and BOM detection is
11074 required, detect it.
11075 (Fdefine_coding_system_internal): For a coding system of type
11076 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
11077
110782008-02-01 Kenichi Handa <handa@m17n.org>
11079
11080 * coding.c (coding_set_source): Fix for the case that the current
11081 buffer is different from coding->src_object.
11082 (decode_coding_object): Don't use the conversion work buffer if
11083 DST_OBJECT is a buffer.
11084
110852008-02-01 Dave Love <fx@gnu.org>
11086
11087 * lread.c (read_emacs_mule_char) [len==2]: Index
11088 emacs_mule_charset correctly.
11089
110902008-02-01 Dave Love <fx@gnu.org>
11091
11092 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
11093 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
11094 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
11095 treated specially.)
11096 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
11097 (detected_mask): Remove Big5 bits.
11098
110992008-02-01 Kenichi Handa <handa@m17n.org>
11100
11101 The following changes are to make the font rescaling facility
11102 compatible with Emacs 21.
11103
11104 * xfaces.c (Vface_font_rescale_alist): Rename from
11105 Vface_resizing_fonts.
11106 (struct font_name): Rename member resizing_ratio to rescale_ratio.
11107 (font_rescale_ratio): Rename from font_resizing_ratio.
11108 (split_font_name): Set font->rescale_ratio.
11109 (better_font_p): Pay attention to font->rescale_ratio.
11110 (build_scalable_font_name): Likewise. Change RESX, and RESY
11111 fields.
11112 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
11113
111142008-02-01 Kenichi Handa <handa@m17n.org>
11115
11116 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
11117 (Qutf_16_le): Remove these variables.
11118 (syms_of_coding): Don't DEFSYM them.
11119 (decode_coding_utf_16): Fix handling of BOM.
11120 (encode_coding_utf_16): Fix handling of BOM.
11121
111222008-02-01 Kenichi Handa <handa@m17n.org>
11123
11124 * fileio.c (Finsert_file_contents): On replacing, before decoding
11125 the file into the work buffer, set point of the work buffer to the end.
11126
111272008-02-01 Dave Love <fx@gnu.org>
11128
11129 * coding.c (Fcheck_coding_systems_region): Fix type errors.
11130
111312008-02-01 Dave Love <fx@gnu.org>
11132
11133 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11134 and fix C types.
11135
111362008-02-01 Kenichi Handa <handa@m17n.org>
11137
11138 * xdisp.c (SKIP_GLYPHS): New macro.
11139 (set_cursor_from_row): Pay attention to string display properties.
11140
11141 * category.c (copy_category_entry): Fix for the case that RANGE
11142 is an integer.
11143
11144 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
11145
11146 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
11147
111482008-02-01 Kenichi Handa <handa@m17n.org>
11149
11150 * charset.c (Fcharset_id_internal): New function.
11151 (syms_of_charset): Defsubr it.
11152
11153 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
11154 with the last arg charset_list acquired from coding.
11155 (Fdefine_coding_system_internal): For ccl-based coding system, fix
11156 the attribute coding_attr_ccl_valids.
11157
11158 * coding.h (enum define_coding_ccl_arg_index): Set the first
11159 member coding_arg_ccl_decoder to coding_arg_max.
11160
11161 * ccl.h (ccl_driver): Adjust prototype.
11162
11163 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
11164 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 11165 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
11166 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
11167 last arg Qnil.
11168
111692008-02-01 Kenichi Handa <handa@m17n.org>
11170
11171 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
11172 call encode_char.
11173
11174 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
11175
111762008-02-01 Dave Love <fx@gnu.org>
11177
11178 * composite.c (syms_of_composite): Make composition_hash_table weak.
11179
111802008-02-01 Kenichi Handa <handa@m17n.org>
11181
11182 * dispextern.h (check_face_attributes, generate_ascii_font_name)
11183 (font_name_registry): Don't extern them.
11184 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
11185
11186 * fontset.h (Qfontset): Don't extern it.
11187 (new_fontset_from_font_name): Extern it.
11188
11189 * fontset.c: Give 8 extra slots to fontset objects.
11190 (Qfontset_info): New variable.
11191 (syms_of_fontset): Defsym it.
11192 (FONTSET_FALLBACK): New macro.
11193 (fontset_face): Try also the default fontset.
11194 (make_fontset): Realize a fallback fontset from the default fontset.
11195 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
11196 using split_font_name_into_vector and build_font_name_from_vector.
11197 (Fset_fontset_font): Access the elements of font_spec by enum
11198 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
11199 name by using split_font_name_into_vector.
11200 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
11201 generate a proper font name from the fontset name. Update
11202 Vfontset_alias_alist.
11203 (n_auto_fontsets): New variable.
11204 (new_fontset_from_font_name): New function.
11205 (Ffont_info): Store the information about fonts generated from the
11206 default fontset in the first extra slot of the returned char-table.
11207
11208 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
11209 (font_name_registry): Delete function.
11210 (split_font_name_into_vector): New function.
11211 (build_font_name_from_vector): New function.
11212 (font_list): The argument REGISTRY is now a list of registry names.
11213 (choose_face_font): If we are choosing an ASCII font, and ATTRS
11214 specifies an explicit font name, return the name as is. Make a
11215 list of registy names.
11216
11217 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
11218 of x_new_fontset.
11219 (Fx_create_frame): Don't call x_new_fontset here. Just use
11220 x_list_fonts to check the existence of fonts.
11221
11222 * xterm.h (x_new_fontset): Adjust prototype.
11223
11224 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
11225 string. Use new_fontset_from_font_name to create a fontset from a
11226 font name.
11227
112282008-02-01 Kenichi Handa <handa@m17n.org>
11229
11230 * syntax.c (Vfind_word_boundary_function_table): New name for
11231 Vnext_word_boundary_function_table.
11232 (find-word-boundary-function-table): New name for
11233 next-word-boundary-function-table.
11234
112352008-02-01 Dave Love <fx@gnu.org>
11236
11237 * Makefile.in: Fix some dependencies.
11238
11239 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
11240 set it to nil before returning.
11241
11242 * composite.c (update_compositions): Fix type error.
11243
11244 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
11245
112462008-02-01 Kenichi Handa <handa@m17n.org>
11247
11248 * xterm.c (x_new_font): Optimize for the case that the font is
11249 already set for the frame.
11250
112512008-02-01 Kenichi Handa <handa@m17n.org>
11252
11253 * chartab.c (char_table_ascii): Check if the char table contents
11254 is sub-char-table or not.
11255 (char_table_set, char_table_set_range): Fix argument to
11256 char_table_ascii.
11257
11258 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
11259 (detect_coding_utf_8, detect_coding_utf_16)
11260 (detect_coding_emacs_mule, detect_coding_iso_2022)
11261 (detect_coding_sjis, detect_coding_big5)
11262 (detect_coding_ccl, detect_coding_charset): Change argument MASK
11263 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
11264 sequence is valid in this coding system. Change callers.
11265 (MAX_ANNOTATION_LENGTH): New macro.
11266 (ADD_ANNOTATION_DATA): New macro.
11267 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
11268 ADD_ANNOTATION_DATA. Change the format of annotation data.
11269 (ADD_CHARSET_DATA): New macro.
11270 (emacs_mule_char): New argument ID. Change callers.
11271 (decode_coding_emacs_mule, decode_coding_iso_2022)
11272 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
11273 Produce charset annotation data in coding->charbuf.
11274 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
11275 to charset annotation data in coding->charbuf.
11276 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
11277 coding->common_flags if the coding system is iso-2022 based and
11278 uses designation.
11279 (produce_composition): Adjust for the new annotation data format.
11280 (produce_charset): New function.
11281 (produce_annotation): Handle charset annotation.
11282 (handle_composition_annotation, handle_charset_annotation): New
11283 functions.
11284 (consume_chars): Handle charset annotation. Utilize the above two
11285 functions.
11286 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
11287 buffer, get the deleted text as a string and set
11288 coding->src_object to that string.
11289 (detect_coding, detect_coding_system): Use the new struct
11290 coding_detection_info.
11291
11292 * coding.h (struct coding_detection_info): New structure.
11293 (struct coding_system): Adjust prototype of the member `detector'.
11294 (CODING_ANNOTATE_CHARSET_MASK): New macro.
11295
112962008-02-01 Kenichi Handa <handa@m17n.org>
11297
11298 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
11299
113002008-02-01 Dave Love <fx@gnu.org>
11301
11302 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
11303 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
11304 to new local and nullify apropos_accumulate before returning.
11305 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
11306
113072008-02-01 Kenichi Handa <handa@m17n.org>
11308
11309 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
11310 correctly.
e3eea1fc 11311
aac0c6e3
MR
113122008-02-01 Dave Love <fx@gnu.org>
11313
11314 * fns.c (Flanginfo): Call synchronize_system_time_locale.
11315
113162008-02-01 Kenichi Handa <handa@m17n.org>
11317
11318 The following changes are to make character composition happen
11319 automatically on displaying.
11320
11321 * Makefile.in (lisp, shortlisp): Add composite.elc.
11322
11323 * composite.h (Qauto_composed, Vauto_composition_function)
11324 (Qauto_composition_function): Extern them.
11325
11326 * composite.c (Vcomposition_function_table)
11327 (Qcomposition_function_table): Delete variables.
11328 (Qauto_composed, Vauto_composition_function)
11329 (Qauto_composition_function): New variables.
11330 (run_composition_function): Don't call
11331 compose-chars-after-function.
11332 (update_compositions): Clear `auto-composed' text property.
11333 (compose_chars_in_text): Delete this function.
11334 (syms_of_composite): Staticpro Qauto_composed and
11335 Qauto_composition_function. Declare Vauto_composition_function as
11336 a Lisp variable.
11337
11338 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
11339
11340 * xdisp.c (it_props): Add an entry for Qauto_composed.
11341 (handle_auto_composed_prop): New function.
11342
11343 * xselect.c (selection_data_to_lisp_data): Don't call
11344 compose_chars_in_text.
11345
113462008-02-01 Dave Love <fx@gnu.org>
11347
11348 * keyboard.c (read_char): Modify checking around use of
11349 Vkeyboard_translate_table.
11350
11351 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11352 and fix C types.
11353
113542008-02-01 Kenichi Handa <handa@m17n.org>
11355
11356 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
11357 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11358 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
11359 the case that the last byte is '\r' correctly.
11360 (decode_coding): Flush out the unprocessed data correctly.
11361 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
11362
113632008-02-01 Dave Love <fx@gnu.org>
11364
11365 * xterm.c (XTread_socket): Fix changes for defined keysyms.
11366 Add XK_ISO... case.
11367 (xaw_scroll_callback): Revert last change.
11368
113692008-02-01 Kenichi Handa <handa@m17n.org>
11370
11371 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
11372
113732008-02-01 Kenichi Handa <handa@m17n.org>
11374
11375 * xfaces.c (Vface_resizing_fonts): New variable.
11376 (struct font_name): New member `resizing_ratio'.
11377 (font_resizing_ratio): New function.
11378 (split_font_name): Set font->resizing_ratio.
11379 (better_font_p): Pay attention to font->resizing_ratio.
11380 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
11381 RESX, and RESY fields.
11382 (try_alternative_families): Try scalable fonts if
11383 Vscalable_fonts_allowed is not Qt.
11384 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
11385
113862008-02-01 Dave Love <fx@gnu.org>
11387
11388 * xterm.c (xaw_scroll_callback): Cast correctly.
11389
113902008-02-01 Dave Love <fx@gnu.org>
11391
11392 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
11393 (lispy_kana_keys): Comment out.
11394 (make_lispy_event) [XK_kana_A]: Comment out.
11395
11396 * xterm.c (xaw_scroll_callback): Cast call_data.
11397 (XTread_socket): Deal with ASCII keysyms.
11398 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
11399
114002008-02-01 Dave Love <fx@gnu.org>
11401
11402 * xterm.c (Vx_keysym_table): New.
11403 (syms_of_xterm): Initialize it.
11404 (XTread_socket): Use it.
11405 From head: Eliminate incorrect optimization that tried to avoid
11406 decoding the output of X*LookupString.
11407 (x_get_font_repertory): Delete charset declaration.
11408
114092008-02-01 Kenichi Handa <handa@m17n.org>
11410
11411 * coding.c (detect_coding_charset): If only ASCII bytes are found,
11412 return 0.
11413 (Fdefine_coding_system_internal): Setup
11414 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
11415
114162008-02-01 Dave Love <fx@gnu.org>
11417
11418 * coding.c (Fcheck_coding_system): Doc fix.
11419
11420 * editfns.c (Finsert_byte): Return a proper value.
11421
114222008-02-01 Kenichi Handa <handa@m17n.org>
11423
11424 * coding.c (decode_coding): Fix args to translate_chars. Pay
11425 attention to Vstandard_translation_table_for_decode.
11426 (encode_coding): Fix args to translate_chars. Pay attention to
11427 Vstandard_translation_table_for_encode.
11428
11429 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
11430 SINGLE_BYTE_CHAR_P.
11431
11432 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
11433 not by SINGLE_BYTE_CHAR_P.
11434
11435 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
11436 SINGLE_BYTE_CHAR_P.
11437
11438 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
11439 SINGLE_BYTE_CHAR_P.
11440
11441 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
11442 by SINGLE_BYTE_CHAR_P.
11443
11444 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
11445 SINGLE_BYTE_CHAR_P.
11446
114472008-02-01 Dave Love <fx@gnu.org>
11448
11449 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
11450
114512008-02-01 Dave Love <fx@gnu.org>
11452
11453 * fns.c (Flanginfo): Fix typo.
11454
11455 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
11456
114572008-02-01 Kenichi Handa <handa@m17n.org>
11458
11459 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
11460 (detect_coding_emacs_mule, detect_coding_iso_2022)
11461 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
11462 incomplete byte sequence. Don't update *mask when correctly detected.
11463 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
11464 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
11465 (detect_coding, detect_coding_system): Adjust for the changes above.
11466
114672008-02-01 Kenichi Handa <handa@m17n.org>
11468
11469 * character.c (char_string): Rename from
11470 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
11471 (string_char): Rename from string_char.
11472
11473 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
11474 if C is greater than MAX_3_BYTE_CHAR.
11475 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
11476 string_char instead of string_char_with_unification.
11477
114782008-02-01 Dave Love <fx@gnu.org>
11479
11480 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
11481
114822008-02-01 Kenichi Handa <handa@m17n.org>
11483
11484 * keymap.c (push_key_description): Pay attention to force_multibyte.
11485
11486 * regex.c (re_search_2): Fix for the case of unibyte buffer.
11487
114882008-02-01 Dave Love <fx@gnu.org>
11489
11490 * charset.c (define_charset_internal): Rename `supprementary'.
11491
11492 * Makefile.in (lisp, shortlisp): Remove latin-N.
11493
114942008-02-01 Dave Love <fx@gnu.org>
11495
11496 * xfns.c (x_window, x_window): Use use_xim.
11497
11498 * xterm.c (use_xim): Initialize.
11499 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
11500 (x_term_init): Maybe set use_xim.
11501
11502 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
11503
115042008-02-01 Kenichi Handa <handa@m17n.org>
11505
11506 * search.c (search_buffer): Fix case-fold-search of multibyte
11507 characters.
11508 (boyer_moore): Rename the last argument to char_high_bits.
11509
115102008-02-01 Kenichi Handa <handa@m17n.org>
11511
11512 * xdisp.c (display_string): Fix for the case of zero width glyph.
11513
11514 * xfns.c (x_set_font): Change the error message of the case that
11515 x_new_fontset returns Qt.
11516
11517 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
11518 (Finternal_set_lisp_face_attribute): Use signal_error for the
11519 error of invalid fontset.
11520
11521 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
11522 fontset, return Qt.
11523
115242008-02-01 Dave Love <fx@gnu.org>
11525
11526 * unexelf.c (unexec): Make .got handling not SGI-specific.
11527
11528 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
11529
11530 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
11531
11532 * keyboard.c (read_key_sequence): Fix type error.
11533
11534 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
11535 type error.
11536
11537 * fontset.c (fontset_add): Return Lisp_Object.
11538
115392008-02-01 Dave Love <fx@gnu.org>
11540
11541 * charset.h (charset_ordered_list_tick): Declare extern.
11542
115432008-02-01 Kenichi Handa <handa@m17n.org>
11544
11545 The following changes (and some of 2008-02-01 changes of mine) are
11546 for handling syntax, category, and case conversion for unibyte
11547 characters by converting them to multibyte on the fly. With these
11548 changes, we don't have to setup syntax and case tables for unibyte
11549 characters in each language environment.
11550
11551 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
11552 multibyte if necessary.
11553
11554 * bytecode.c (Fbyte_code): Likewise.
11555
11556 * character.h (LEADING_CODE_LATIN_1_MIN)
11557 (LEADING_CODE_LATIN_1_MAX): New macros.
11558 (unibyte_to_multibyte_table): Extern it.
11559 (unibyte_char_to_multibyte): New macro.
11560 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
11561 (CHAR_LEADING_CODE): New macro.
11562 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
11563
11564 * character.c (unibyte_to_multibyte_table): New variable.
11565 (unibyte_char_to_multibyte): Move to character.h and define as macro.
11566 (multibyte_char_to_unibyte): If C is an eight-bit character,
11567 convert it to the corresponding byte value.
11568
11569 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
11570 not 1, signals an error. Update the elements of
11571 unibyte_to_multibyte_table.
11572 (init_charset_once): Initialize unibyte_to_multibyte_table.
11573 (syms_of_charset): Define the charset `iso-8859-1'.
11574
11575 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
11576 as is without converting it to unibyte. In a unibyte buffer,
11577 convert C to multibyte before checking the syntax.
11578
11579 * lisp.h (unibyte_char_to_multibyte): Delete extern.
11580
11581 * minibuf.c (Fminibuffer_complete_word): Use the macro
11582 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
11583
11584 * regex.h (struct re_pattern_buffer): New member target_multibyte.
11585
11586 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
11587 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
11588 that is zero, convert an eight-bit char to multibyte.
11589 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
11590 non-emacs case.
11591 (PATFETCH): Convert an eight-bit char to multibyte.
11592 (HANDLE_UNIBYTE_RANGE): New macro.
11593 (regex_compile): Setup the compiled pattern for multibyte chars
11594 even if the given regex string is unibyte. Use PATFETCH_RAW
11595 instead of PATFETCH in many places. To handle `charset'
11596 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
11597 only for ASCII chars.
11598 (analyse_first) <exactn>: Simplify because the compiled pattern
11599 is multibyte.
11600 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
11601 <charset>: Use CHAR_LEADING_CODE to get leading codes.
11602 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
11603 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
11604 multibyte always 1.
11605 (re_search_2): In emacs, set the locale variable multibyte to 1,
11606 otherwise to 0. New local variable target_multibyte. Check it
11607 to decide the multibyteness of STR1 and STR2. If
11608 target_multibyte is zero, convert unibyte chars to multibyte
11609 before translating and checking fastmap.
11610 (TARGET_CHAR_AND_LENGTH): New macro.
11611 (re_match_2_internal): In emacs, set the locale variable multibyte
11612 to 1, otherwise to 0. New local variable target_multibyte. Check
11613 it to decide the multibyteness of STR1 and STR2. Use
11614 TARGET_CHAR_AND_LENGTH to fetch a character from D.
11615 <charset, charset_not>: If multibyte is nonzero, check fastmap
11616 only for ASCII chars. Call bcmp_translate with
11617 target_multibyte, not with multibyte.
11618 <begline>: Declare the local variable C as `unsigned'.
11619 (bcmp_translate): Change the last arg name to target_multibyte.
11620
11621 * search.c (compile_pattern_1): Don't adjust the multibyteness of
11622 the regexp pattern and the matching target. Set cp->buf.multibyte
11623 to the multibyteness of the regexp pattern. Set
11624 cp->but.target_multibyte to the multibyteness of the matching target.
11625 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
11626 FETCH_STRING_CHAR_ADVANCE.
11627 (Freplace_match): Convert unibyte chars to multibyte.
11628
11629 * syntax.c (char_quoted, back_comment, scan_words)
11630 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
11631 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
11632 unibyte chars to multibyte.
11633 (skip_chars): Delete the arg syntaxp, and move the code for
11634 handling syntaxes to skip_syntaxes. Change callers.
11635 Fix the case that the multibyteness of STRING and the current
11636 buffer doesn't match.
11637 (skip_syntaxes): New function.
11638 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
11639 SINGLE_BYTE_CHAR_P.
11640
116412008-02-01 Kenichi Handa <handa@m17n.org>
11642
11643 * xfaces.c (QCfontset): New variable.
11644 (LFACE_FONTSET): New macro.
11645 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
11646 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
11647 (Finternal_set_lisp_face_attribute)
11648 (Finternal_get_lisp_face_attribute): Handle QCfontset.
11649 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
11650 check also LFACE_FONTSET_INDEX.
11651 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
11652 attrs[LFACE_FONT_INDEX].
11653 (syms_of_xfaces): Intern and staticpro QCfontset.
11654
11655 * dispextern.h (enum lface_attribute_index): New member
11656 LFACE_FONTSET_INDEX.
11657
11658 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
11659
116602008-02-01 Kenichi Handa <handa@m17n.org>
11661
11662 * coding.c (coding_set_destination): Fix coding->destination for
11663 the case converting a region.
11664 (encode_coding_utf_8): Encode eight-bit chars as single byte.
11665 (encode_coding_object): Fix coding->dst_pos and
11666 coding->dst_pos_byte for the case converting a region.
11667
11668 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
11669
11670 * character.h (BYTE8_STRING): New macro.
11671
11672 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
11673
116742008-02-01 Kenichi Handa <handa@m17n.org>
11675
11676 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
11677 characters by octal form.
11678
11679 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
11680
11681 * buffer.h (_fetch_multibyte_char_len): Delete extern.
11682 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
11683 _fetch_multibyte_char_len.
11684 (FETCH_CHAR_AS_MULTIBYTE): New macro.
11685
11686 * casetab.c (set_canon, set_identity, shuffle): Simplify.
11687
11688 * casefiddle.c (casify_object): Simplify. Handle the case that
11689 the case conversion change the byte length.
11690 (casify_region): Likewise.
11691
11692 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
11693
11694 * character.c (_fetch_multibyte_char_len): Delete this variable.
11695 (syms_of_character): Setup Vprintable_chars.
11696
11697 * editfns.c (Fchar_equal): Fix for the unibyte case.
11698 (Finsert_byte): New function.
11699 (syms_of_editfns): Defsubr it.
11700
11701 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
11702 of direct code 0x3ffff.
11703
11704 * search.c (Freplace_match): Fix for the unibyte case.
11705
117062008-02-01 Kenichi Handa <handa@m17n.org>
11707
11708 * lread.c (safe_to_load_p): Fix the logic.
11709
11710 * syntax.c (scan_words): Don't treat characters belonging to
11711 different scripts as constituting a word.
11712
11713 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
11714
11715 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
11716
11717 * emacs.c (main): In the case of --unibyte, instead of aborting on
11718 finding non-empty buffer, make it unibyte.
11719
117202008-02-01 Kenichi Handa <handa@m17n.org>
11721
11722 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
11723 to create a fontset.
11724
117252008-02-01 Dave Love <fx@gnu.org>
11726
11727 * character.c (Funibyte_char_to_multibyte): Doc fix.
11728
11729 * xfns.c [HAVE_STDLIB_H]: Fix last change.
11730
117312008-02-01 Kenichi Handa <handa@m17n.org>
11732
11733 * fontset.c (fontset_add): Make the type `int'.
11734 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
11735
11736 * character.c (unibyte_char_to_multibyte)
11737 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
11738 charset_unibyte, not charset_primary.
11739
11740 * charset.h (charset_unibyte): Extern it instead of charset_primary.
11741
11742 * charset.c (charset_unibyte): Rename from charset_primary.
11743 (Funibyte_charset): Rename from Fprimary_charset.
11744 (Fset_unibyte_charset): Rename from Fset_primary_charset.
11745 (syms_of_charset): Adjust for the above changes.
11746
11747 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
11748 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
11749 it->multibyte_p is zero.
11750
11751 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
11752 Delete extern.
11753
117542008-02-01 Kenichi Handa <handa@m17n.org>
11755
11756 * coding.c (Fdefine_coding_system_internal): Fix category setting
11757 for a coding system of type iso-2022.
11758
117592008-02-01 Kenichi Handa <handa@m17n.org>
11760
11761 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
11762
117632008-02-01 Kenichi Handa <handa@m17n.org>
11764
11765 * syntax.c (Vnext_word_boundary_function_table): New variable.
11766 (next-word-boundary-function-table): Declare it as a Lisp variable
11767 in syms_of_syntax.
11768 (scan_words): Call functions in Vnext_word_boundary_function_table
11769 if any.
11770
11771 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
11772
11773 * fontset.c (fs_load_font): If fontp->charset is not negative,
11774 return fontp without setting its members.
11775
117762008-02-01 Dave Love <fx@gnu.org>
11777
11778 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
11779
11780 * m/sparc.h (HAVE_ALLOCA): Delete.
11781
11782 * s/irix6-5.h: Don't include strings.h.
11783 (bcopy, bzero, bcmp): Don't undef.
11784
11785 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
11786
11787 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
11788 (TIOCSIGSEND): Don't test IRIX6.
11789 (bcopy, bzero, bcmp): Define conditionally.
11790
117912008-02-01 Kenichi Handa <handa@m17n.org>
11792
11793 * buffer.c (Qas, Qmake, Qto): New variables.
11794 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
11795 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
11796
11797 * callproc.c (Fcall_process): Don't call insert_1_both directly if
11798 we are inserting a process output into a multibyte buffer.
11799
11800 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
11801 multibyte_char_to_unibyte.
11802
11803 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
11804 by the primary charset, make it eight-bit char.
11805 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
11806
11807 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
11808 (charset_8_bit__control, charset_8_bit_graphic)
11809 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
11810 (define_charset_internal): New function.
11811 (syms_of_charset): Call define_charset_internal for pre-defined
11812 charsets.
11813
11814 * charset.h (charset_8_bit): Extern it.
11815
11816 * coding.c (make_conversion_work_buffer): Adjust for the change
11817 of Fset_buffer_multibyte.
11818 (encode_coding_raw_text): Increment p0 in the loop.
11819
11820 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
11821
11822 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
11823 for the change of Fset_buffer_multibyte.
11824
11825 * fns.c (Fstring_to_multibyte): New function.
11826 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
11827
118282008-02-01 Dave Love <fx@gnu.org>
11829
11830 * xfns.c (x_put_x_image): Declare args.
11831
11832 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
11833 (try_font_list): Declare an arg.
11834
11835 * xdisp.c (message2_nolog, set_message): Declare an arg.
11836
11837 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
11838
11839 * syntax.c (scan_sexps_forward): Declare an arg.
11840
11841 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11842 Declare an arg.
11843
11844 * lisp.h (Fnew_fontset): Declare.
11845
11846 * keymap.c (push_key_description): Call CHARACTERP correctly.
11847
11848 * fontset.c (fontset_add): Declare args. Call make_number correctly.
11849 (face_for_char): Delete unused vars.
11850 (Fset_fontset_font): Doc fix. Delete unused vars.
11851
11852 * doc.c (Fsubstitute_command_keys): Delete unused vars.
11853
11854 * composite.c (update_compositions): Declare arg.
11855
11856 * cm.c (calccost, cmgoto): Declare args.
11857
11858 * charset.c: Remove `emacs' conditional. Doc fixes.
11859 (map_char_table_for_charset): Declare.
11860
11861 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
11862
11863 * ccl.c: Remove `emacs' conditional.
11864
118652008-02-01 Kenichi Handa <handa@m17n.org>
11866
11867 The following changes are to allow specifying multiple font
11868 patterns for a character range (specified by script or charset).
11869
11870 * Makefile.in (abbrev.o): Depend on syntax.h.
11871 (xfaces.o): Depend on charset.h.
11872
11873 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
11874 SINGLE_BYTE_CHAR_P.
11875
11876 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
11877
11878 * character.h (Vchar_script_table): Extern it.
11879
11880 * character.c (Vscript_alist): Delete.
11881 (Vchar_script_table, Qchar_script_table): New variable.
11882 (syms_of_character): Declare Vchar_script_table as a lisp variable
11883 and initialize it.
11884
11885 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
11886 have property char-table-extra-slots, make no extra slot.
11887
11888 * dispextern.h (struct face): Delete member `charset'.
11889 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
11890 SINGLE_BYTE_CHAR_P.
11891 (choose_face_font, lookup_non_ascii_face, font_name_registry):
11892 Add prototypes.
11893 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
11894 (generate_ascii_font_name): Rename from generate_ascii_font.
11895
11896 * fontset.h (get_font_repertory_func): New prototype.
11897 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
11898 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
11899
11900 * fontset.c (Qprepend, Qappend): New variables.
11901 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
11902 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
11903 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
11904 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
11905 (fontset_ref_and_range, fontset_add, reorder_font_vector)
11906 (load_font_get_repertory): New functions.
11907 (fontset_set): Delete.
11908 (fontset_face): New arg FACE. Return face ID, not face.
11909 Complete re-write to handle new fontset structure. Change caller.
11910 (free_face_fontset): Use ASET istead of AREF (X) = Y.
11911 (face_for_char): Don't call lookup_face.
11912 (make_fontset_for_ascii_face): New arg FACE.
11913 (fs_load_font): New arg CHARSET_ID. Don't check
11914 Vfont_encoding_alist here.
11915 (find_font_encoding): New function.
11916 (list_fontsets): Use STRINGP, not ! NILP.
11917 (accumulate_script_ranges): New function.
11918 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
11919 re-written to handle new fontset structure.
11920 (Ffontset_font): Return a copy of element.
11921 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
11922 docstring of font-encoding-alist.
11923
11924 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
11925 (Fset_fotset_font): Fix arguments to 5.
11926
11927 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
11928
11929 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
11930 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
11931 (highlight_trailing_whitespace): Adjust for the change of
11932 lookup_named_face.
11933
11934 * xfaces.c: Include charset.h.
11935 (load_face_font): Delete argument C. Change caller.
11936 (generate_ascii_font_name): Rename from generate_ascii_font.
11937 (font_name_registry): New function.
11938 (cache_face): Store ascii faces before non-ascii faces in buckets.
11939 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
11940 Lookup only ascii faces.
11941 (lookup_non_ascii_face): New function.
11942 (lookup_named_face): Delete argument C. Change caller.
11943 (lookup_derived_face): Delete argument C. Change caller.
11944 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
11945 a string, just call font_list with it.
11946 (choose_face_font): Delete arguments FACE and C. New arg
11947 FONT_SPEC. Change caller.
11948 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
11949 Change caller.
11950 (realize_non_ascii_face): New function.
11951 (realize_x_face): Call load_face_font here.
11952 (realize_tty_face): Delete argument C. Change caller.
11953 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
11954 get a face ID.
11955 (dump_realized_face): Don't print charset of FACE.
11956
11957 * xfns.c (x_set_font): Always call x_new_fontset and
11958 store_frame_parameter.
11959 (Fx_create_frame): Call x_new_fontset, not x_new_font.
11960 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
11961
11962 * xterm.h (x_get_font_repertory): Extern it.
11963
11964 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
11965 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
11966 it->multibyte_p is zero.
11967 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
11968 (x_new_fontset): If FONTSETNAME doesn't match any existing
11969 fontsets, create a new one.
11970 (x_get_font_repertory): New function.
11971
119722008-02-01 Kenichi Handa <handa@m17n.org>
11973
11974 * coding.c (Ffind_coding_systems_region_internal): Detect an
11975 ASCII only string correctly.
11976
11977 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
11978 version is 0.
11979
119802008-02-01 Kenichi Handa <handa@m17n.org>
11981
11982 * lread.c: Include "coding.h".
11983 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
11984 (load_each_byte, unread_char): New variables.
11985 (readchar_backlog): Delete.
11986 (readchar): Return a character unless load_each_byte is nonzero.
11987 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
11988 cons. If unread_char is not -1, simply return it.
11989 (unreadchar): Handle the case that readcharfun is
11990 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
11991 (read_multibyte): Delete.
11992 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
11993 (read_emacs_mule_char): New functions.
11994 (Fload): Even if the file doesn't have the extension ".elc", if
11995 safe_to_load_p returns a positive version number, assume that the
11996 file contains bytecompiled code. If the version is less than 22,
11997 load the file while decoding multibyte sequences by emacs-mule.
11998 (readevalloop): Don't use readchar_backlog.
11999 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
12000 (Fread_from_string): Pay attention to the case that STREAM is a cons.
12001 (read_escape): Delete the arg BYTEREP.
12002 (read1): Set load_each_byte to 1 temporarily while handling
12003 #@NUMBER. Don't call read_multibyte.
12004 (read_vector): Call Fread with a cons. If readcharfun is
12005 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
12006 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
12007 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
12008 and Qload_force_doc_strings.
12009
120102008-02-01 Kenichi Handa <handa@m17n.org>
12011
12012 * xdisp.c (face_before_or_after_it_pos): Call
12013 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12014
120152008-02-01 Kenichi Handa <handa@m17n.org>
12016
12017 * character.h (TRAILING_CODE_P): New macro.
12018 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
12019 (string_char_with_unification): Fix prototype.
12020 (Vscript_alist): Extern it.
12021
12022 * character.c (Vscript_alist): New variable.
12023 (string_char_with_unification, str_as_unibyte)
12024 (string_escape_byte8): Add `const' to local variables.
12025 (syms_of_character): Declare script-alist as a Lisp variable.
12026
12027 * charset.h (Vcharset_ordered_list): Extern it.
12028 (charset_ordered_list_tick): Extern it.
12029 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
12030 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
12031 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
12032 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
12033 (Funify_charset): Adjust for the change of Funify_charset.
12034
12035 * charset.c (charset_ordered_list_tick): New variable.
12036 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
12037 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
12038 deunify intead of unify a charset.
12039 (string_xstring_p): Add `const' to local variables.
12040 (find_charsets_in_text): Add `const' to arguments and local variables.
12041 (encode_char): Adjust for the change of Funify_charset. Fix
12042 detecting of invalid code.
12043 (Fset_charset_priority): Increment charset_ordered_list_tick.
12044 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
12045 and TO_CODE.
12046
12047 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
12048 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
12049 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
12050 (decode_coding_ccl, consume_chars)
12051 (Ffind_coding_systems_region_internal)
12052 (Fcheck_coding_systems_region): Add `const' to local variables.
12053
12054 * print.c (print_object): Use octal form for printing the
12055 contents of a bool vector.
12056
120572008-02-01 Dave Love <fx@gnu.org>
12058
12059 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
12060 <version == 20>: Refuse to load.
12061
120622008-02-01 Dave Love <fx@gnu.org>
12063
12064 * fns.c: Move coding.h.
12065 (Qcodeset, Qdays, Qmonths): New.
12066 (concat): Use CHARACTERP instead of INTEGERP.
12067 (Flocale_codeset): Delete.
12068 (Flanginfo): New function.
12069 (syms_of_fns): Change accordingly.
12070
12071 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
12072
120732008-02-01 Dave Love <fx@gnu.org>
12074
12075 * casetab.c (init_casetab_once, init_casetab_once): Fix
12076 CHAR_TABLE_SET call.
12077
12078 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
12079
12080 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
12081
12082 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
12083 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
12084 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
12085
12086 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
12087
12088 * coding.c (ENCODE_DESIGNATION, decode_eol)
12089 (make_conversion_work_buffer, code_conversion_restore)
12090 (Fdefine_coding_system_internal): Convert Lisp types.
12091 (code_conversion_restore): Use EQ, not ==.
12092 (Fencode_coding_string): Fix code_convert_string call.
12093
12094 * coding.h (code_convert_region): Fix prototype.
12095
12096 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
12097
12098 * fontset.c (fontset_ref, fontset_set, fs_load_font)
12099 (Ffontset_info): Convert Lisp types.
12100
12101 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
12102
12103 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
12104
12105 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
12106
12107 * chartab.c: Include "...h", not <...h> in some cases.
12108
12109 * callproc.c (Fcall_process): Remove unused variables.
12110
121112008-02-01 Dave Love <fx@gnu.org>
12112
12113 * coding.c (Fset_coding_system_priority): Allow null arg list.
12114
121152008-02-01 Dave Love <fx@gnu.org>
12116
12117 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
12118 (Fself_insert_and_exit): Use CHARACTERP.
12119
12120 * callproc.c (Fcall_process): Remove unused vars.
12121
12122 * xterm.c (XTread_socket): Add extra dead keysyms.
12123
12124 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
12125
12126 * dispextern.h: Remove prototypes for redraw_frame,
12127 redraw_garbaged_frames.
12128
12129 * cmds.c (Fself_insert_command): Use CHARACTERP.
12130
12131 * chartab.c (make_sub_char_table): Remove unused var.
12132 (Fset_char_table_default, Fmap_char_table): Doc fix.
12133
12134 * keymap.c (access_keymap): Remove generic char code.
12135 (push_key_description): Use CHARACTERP.
12136
121372008-02-01 Dave Love <fx@gnu.org>
12138
12139 * charset.c: Doc fixes.
12140 (Funify_charset): Extra checking.
12141
121422008-02-01 Dave Love <fx@gnu.org>
12143
12144 * lread.c: Remove some unused variables.
12145 (safe_to_load_p): If safe, return the magic number version byte.
12146 (Fload): Maybe use load-with-code-conversion.
12147
121482008-02-01 Kenichi Handa <handa@m17n.org>
12149
12150 * category.c (Fmodify_category_entry): Don't modify the contents
12151 of category_set for characters out of the range. Avoid
12152 unnecessary modification.
12153
12154 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
12155 Vchar_unify_table. The default value of the table is now nil.
12156
12157 * character.c (syms_of_character): Setup Vchar_width_table for
12158 eight-bit-control and raw-byte chars.
12159
12160 * charset.h (enum define_charset_arg_index): Delete
12161 charset_arg_parents and add charset_arg_subset and
12162 charset_arg_superset.
12163 (enum charset_attr_index): Delete charset_parents and add
12164 charset_subset and charset_superset.
12165 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
12166 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
12167 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
12168 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
12169 (CHARSET_SUPERSET): New macros.
12170 (charset_work): Extern it.
12171 (ENCODE_CHAR): Use charset_work.
12172 (CHAR_CHARSET_P): Adjust for the change of encoder format.
12173 (map_charset_chars): Extern it.
12174
12175 * charset.c (load_charset_map): Set the default value of encoder
12176 and deunifier char-tables to nil.
12177 (map_charset_chars): Change argument. Change callers. Use
12178 map_char_table_for_charset instead of map_char_table.
12179 (Fmap_charset_chars): New optional args from_code and to_code.
12180 (Fdefine_charset_internal): Adjust for the change of
12181 `define-charset' (:parents -> :subset or :superset).
12182 (charset_work): New variable.
12183 (encode_char, syms_of_charset): Adjust for the change of
12184 Fdefine_charset_internal.
12185 (Ffind_charset_string): Setup the vector `charsets' correctly.
12186
12187 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
12188 the previous change.
12189 (char_table_ref_and_range): Adjust for the above change.
12190 (map_sub_char_table_for_charset): New function.
12191 (map_char_table_for_charset): New function.
12192
12193 * keymap.c (describe_vector): Handle a char-table directly here.
12194 (describe_char_table): Delete.
12195
12196 * lisp.h (map_charset_chars): Delete.
12197
121982008-02-01 Dave Love <fx@gnu.org>
12199
12200 * fns.c (count_combining): Comment out (unused).
12201 (Flocale_codeset): New.
12202 (syms_of_fns): Defsubr it.
12203
12204 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
12205 (size_t): Remove.
12206
122072008-02-01 Dave Love <fx@gnu.org>
12208
12209 * Makefile.in (chartab.o): Depend on charset.h.
12210
122112008-02-01 Kenichi Handa <handa@m17n.org>
12212
12213 * character.c (syms_of_character): Set the default value of
12214 Vprintable_chars to Qnil.
12215
122162008-02-01 Dave Love <fx@gnu.org>
12217
12218 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
12219
122202008-02-01 Kenichi Handa <handa@m17n.org>
12221
12222 * charset.c (load_charset_map): Handle the case that from < to
12223 correctly.
12224
12225 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
12226 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
12227 Pay attention to raw-8-bit chars.
12228
122292008-02-01 Kenichi Handa <handa@m17n.org>
12230
12231 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
12232 It is not bytecompiled now.
12233
12234 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
12235 (charset_jisx0208): New variables.
12236 (Fdefine_charset_internal): Setup them if appropriate.
12237 (init_charset_once): Initialize them to -1.
12238
12239 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
12240 (charset_jisx0208): Extern them.
12241
12242 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
12243 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
12244 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
12245 (setup_iso_safe_charsets): Fix arguments to Fassq.
12246 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
12247 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
12248 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
12249 (encode_coding_iso_2022): Change the 1st arg to
12250 ENCODE_ISO_CHARACTER to a variable.
12251
122522008-02-01 Kenichi Handa <handa@m17n.org>
12253
12254 * charset.h (enum define_charset_arg_index): New enums
12255 charset_arg_min_code and charset_arg_max_code.
12256 (struct charset): New member char_index_offset.
12257
12258 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
12259 Take charset->char_index_offset into account.
12260 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
12261 args[charset_arg_max_code]. Setup charset.char_index_offset.
12262 (syms_of_charset): Fix args to Fdefine_charset_internal.
12263
122642008-02-01 Dave Love <fx@gnu.org>
12265
12266 * coding.c (decode_coding_utf_8): Reject overlong sequences.
12267
122682008-02-01 Dave Love <fx@gnu.org>
12269
12270 * coding.c: Doc fixes.
12271 (Fcoding_system_aliases): Fix return value.
12272 (Qmac): Remove (duplicated) definition.
12273
122742008-02-01 Dave Love <fx@gnu.org>
12275
12276 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
12277 functions.
12278
12279 * character.c (Fstring): Doc fix.
12280
12281 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
12282
12283 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
12284 ids.
12285 (font-encoding-alist): Doc fix.
12286
122872008-02-01 Dave Love <fx@gnu.org>
12288
12289 * term.c (costs_set): Declare static, non-initialized for pcc.
12290 (encode_terminal_code): Remove unused var.
12291
12292 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
12293 for K&R.
12294
12295 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
12296
12297 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
12298 (suffixes): Move out of make_subsidiaries for K&R.
12299
12300 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
12301
12302 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
12303
123042008-02-01 Dave Love <fx@gnu.org>
12305
12306 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
12307
12308 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
12309
123102008-02-01 Yong Lu <lyongu@asia-infonet.com>
12311
12312 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
12313
12314 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
12315
123162008-02-01 Kenichi Handa <handa@m17n.org>
12317
12318 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
12319 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
12320
123212008-02-01 Kenichi Handa <handa@m17n.org>
12322
12323 * coding.c (decode_coding_charset): Adjust for the change of
12324 Fdefine_coding_system_internal.
12325 (Fdefine_coding_system_internal): For a coding system of
12326 `charset' type, store a list of charset IDs in
12327 `charset_attr_charset_valids' element of coding attributes.
12328
123292008-02-01 Kenichi Handa <handa@m17n.org>
12330
12331 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
12332 (emacs_mule_char): New arg src. Delete arg `composition'. Change
12333 caller. Handle 2-byte and 3-byte charsets correctly.
12334 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
12335 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
12336 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
12337 (DECODE_EMACS_MULE_21_COMPOSITION): Call
12338 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
12339 sequence.
12340 (decode_coding_emacs_mule): Handle composition correctly. Rewind
12341 `src' and `consumed_chars' correctly before calling emacs_mule_char.
12342 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
12343 and alt&rule composition.
12344 (decode_coding_iso_2022): Handle composition correctly.
12345 (init_coding_once): Setup emacs_mule_bytes for private charsets.
12346
12347 * charset.c (Fdefine_charset_internal): Fix bug for the case of
12348 re-defining a charset. If the charset has :emacs-mule-id, setup
12349 emacs_mule_bytes.
12350 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
12351
123522008-02-01 Kenichi Handa <handa@m17n.org>
12353
12354 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
12355 (encode_coding_big5, encode_coding_charset): If coding requires safe
12356 encoding, produce a character specified by
12357 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
12358
123592008-02-01 Dave Love <fx@gnu.org>
12360
12361 * xterm.c (XSetIMValues): Declare.
12362
12363 * process.c: Conditionally include sys/wait.h, pty.h.
12364
12365 * print.c (print_object): Fix print format for 64-bit systems.
12366
12367 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
12368
12369 * buffer.c (emacs_strerror): Declare.
12370
12371 * fontset.c (Fclear_face_cache): Declare.
12372 (accumulate_font_info): Comment-out (unused).
12373 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
12374 variables.
12375
12376 * character.h (string_escape_byte8): Declare.
12377
12378 * charset.c (load_charset_map, load_charset_map_from_file): Remove
12379 unused vars.
12380 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
12381 (Fmap_charset_chars): Doc fix.
12382
12383 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
12384 (Fset_coding_system_priority, Fset_coding_system_priority)
12385 (Fdefine_coding_system_internal): Doc fix.
12386
123872008-02-01 Dave Love <fx@gnu.org>
12388
12389 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
12390
123912008-02-01 Kenichi Handa <handa@m17n.org>
12392
12393 * character.c (string_escape_byte8): Make multibyte string with
12394 correct size.
12395
12396 * charset.c (Fmake_char): Delete unnecessary code.
12397
123982008-02-01 Kenichi Handa <handa@m17n.org>
12399
12400 * xfns.c (x_encode_text): Allocate coding.destination here, and
12401 call encode_coding_object with dst_object Qnil.
12402
12403 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
12404 multibyte form correctly.
12405
12406 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
12407 against Vfont_encoding_alist.
12408
12409 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
12410 handling of charset list.
12411 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
12412 (decode_coding_object): Move point to coding->dst_pos before
12413 calling post-read-conversion function.
12414 (encode_coding_object): Give correct arguments to
12415 pre-write-conversion. Ignore the return value of
12416 pre-write-conversion function. Pay attention to the case that
12417 pre-write-conversion changes the current buffer. If dst_object is
12418 Qt, even if coding->src_bytes is zero, allocate at least one byte
12419 to coding->destination.
12420
12421 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
12422
12423 * charset.c (Fmake_char): Make it more backward compatible.
12424 (Fmap_charset_chars): Fix docstring.
12425
124262008-02-01 Dave Love <fx@gnu.org>
12427
12428 * coding.c: Doc fixes.
12429 (Fdefine_coding_system_alias): Use names, not symbols, in
12430 coding-system-alist.
12431
124322008-02-01 Kenichi Handa <handa@m17n.org>
12433
12434 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
12435 of calling free_realized_face.
12436
124372008-02-01 Yong Lu <lyongu@asia-infonet.com>
12438
12439 * charset.c (read_hex): Don't treat SPC as a comment starter.
12440 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
12441 (Fdecode_char): Fix typo.
12442
124432008-02-01 Kenichi Handa <handa@m17n.org>
12444
12445 * charset.h (struct charset): New member `code_space_mask'.
12446
12447 * coding.c (coding_set_source): Delete the local variable beg_byte.
12448 (encode_coding_charset, Fdefine_coding_system_internal):
12449 Delete the local variable charset.
12450 (Fdefine_coding_system_internal): Setup
12451 attrs[coding_attr_charset_valids] correctly.
12452
12453 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
12454 member to check if CODE is valid or not.
12455 (Fdefine_charset_internal): Initialize `code_space_mask' member.
12456 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
12457 is within the range of charset->min_code and carset->max_code.
12458
124592008-02-01 Dave Love <fx@gnu.org>
12460
12461 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
12462
12463 * dispextern.h (generate_ascii_font): Fix return type.
12464
12465 * xfaces.c (generate_ascii_font): Fix arg declaration.
12466
12467 * coding.c (coding_inherit_eol_type)
12468 (Fset_terminal_coding_system_internal)
12469 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
12470
124712008-02-01 Kenichi Handa <handa@m17n.org>
12472
12473 * coding.c (decode_coding_charset, encode_coding_charset): Handle
12474 multiple charsets correctly.
12475
124762008-02-01 Kenichi Handa <handa@m17n.org>
12477
12478 * search.c (boyer_moore): Fix handling of multibyte character
12479 translation.
12480
12481 * xdisp.c (display_mode_element): When the variable `elt' is
12482 changed, update `this' and `lisp_string'.
12483
124842008-02-01 Kenichi Handa <handa@m17n.org>
12485
12486 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
12487
12488 * callproc.c (Fcall_process): Be sure to give the current buffer
12489 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
12490
12491 * charset.c (struct charset_map_entries): New struct.
12492 (load_charset_map): Rename from parse_charset_map. New args
12493 entries and n_entries. Change caller.
12494 (load_charset_map_from_file): Rename from load_charset_map.
12495 Change caller. New arg control_flag. Call load_charset_map at
12496 the tail.
12497 (load_charset_map_from_vector): New function.
12498 (Fdefine_charset_internal): Setup charset.compact_codes_p.
12499 (encode_char): If the charset is compact, change a character index
12500 to a code point.
12501
12502 * coding.c (coding_alloc_by_making_gap): Check the case that the
12503 source and destination are the same correctly.
12504 (decode_coding_raw_text): Set coding->consumed_char and
12505 coding->consumed to 0.
12506 (produce_chars): If coding->chars_at_source is nonzero, update
12507 coding->consumed_char and coding->consumed before calling
12508 alloc_destination.
12509 (Fdefine_coding_system_alias): Register ALIAS in
12510 Vcoding_system_alist.
12511 (syms_of_coding): Define `no-conversion' coding system at the tail.
12512
12513 * fileio.c (Finsert_file_contents): Set coding_system instead of
12514 val. If the current buffer is multibyte, always call
12515 decode_coding_gap.
12516
12517 * xfaces.c (try_font_list): Give higher priority to fontset's
12518 family than face's family.
12519
125202008-02-01 Kenichi Handa <handa@m17n.org>
12521
12522 * callproc.c (Fcall_process): Be sure to give the current buffer
12523 to decode_coding_c_string.
12524
12525 * xfaces.c (try_font_list): Give a family specified in a fontset
12526 higher priority than a family specified in a face.
12527
125282008-02-01 Kenichi Handa <handa@m17n.org>
12529
12530 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
12531 Fix arguments to insert_from_buffer.
12532
12533 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
12534
125352008-02-01 Kenichi Handa <handa@m17n.org>
12536
12537 * coding.c (produce_chars): Set the variable `multibytep' correctly.
12538 (decode_coding_gap): Set coding->dst_multibyte correctly.
12539
125402008-02-01 Kenichi Handa <handa@m17n.org>
12541
12542 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
12543 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
12544 (encode_coding_utf_16): Substitute coding->default_char for
12545 non-Unicode characters.
12546 (decode_coding): Don't call record_insert here.
12547 (setup_coding_system): Initialize `surrogate' of
12548 coding->spec.utf_16 to 0.
12549 (EMIT_ONE_BYTE): Fix for multibyte case.
12550
12551 * insdel.c (insert_from_gap): Call record_insert.
12552
125532008-02-01 Kenichi Handa <handa@m17n.org>
12554
12555 * casefiddle.c (casify_region): Fix multibyte case.
12556
12557 * character.c (c_string_width): Add return type `int'.
12558 (char_string_with_unification): Delete arg ADVANCED.
12559
12560 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
12561 (CHAR_STRING): Adjust for the change of char_string_with_unification.
12562 (CHAR_STRING_ADVANCE): Make it do-while statement.
12563
12564 * chartab.c (sub_char_table_set_range): Optimize for the case
12565 DEPTH == 3. Add workaround code for a GCC optimization bug.
12566
12567 * charset.c (parse_charset_map): Remove an unused variable.
12568
12569 * coding.c: Delete unused variables.
12570
12571 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
12572 earlier. If inserted is zero and the coding system doesn't
12573 require flushing, don't call decode_coding_gap.
12574
12575 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
12576
125772008-02-01 Kenichi Handa <handa@m17n.org>
12578
12579 The following changes are for using Unicode as an internal
12580 character model, and use UTF-8 format for buffer/string
12581 representation.
12582
12583 * .gdbinit (xchartable): Adjust for the change of char table structure.
12584 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
12585
12586 * Makefile.in (obj): Add character.o and chartab.o.
12587 (lisp, shortlisp): Remove utf-8.elc.
12588 (*.o): For many files, change dependency on charset.h to
12589 character.h, and add dependency on character.h.
12590 (character.o, chartab.o): New targets.
12591
12592 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
12593 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
12594 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
12595 of "charset.h".
12596
12597 * dired.c, filelock.c: Include "character.h".
12598
12599 * alloc.c: Include "character.h" instead of "charset.h".
12600 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
12601 (syms_of_alloc): Remove defsubr for Smake_char_table.
12602
12603 * buffer.c: Include "character.h" instead of "charset.h", don't
12604 include "coding.h".
12605 (Fset_buffer_multibyte): Adjust for UTF-8.
12606
12607 * buffer.h: EXFUN Fbuffer_live_p.
12608
12609 * callproc.c: Include "character.h" instead of "charset.h".
12610 (Fcall_process): Big change for the new code-conversion APIs.
12611
12612 * casetab.c: Include "character.h" instead of "charset.h".
12613 (set_canon, set_identity, shuffle): Adjust for the new
12614 map_char_table spec.
12615 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
12616 accessing the char table structure.
12617
12618 * chartab.c: New file that implements char table.
12619
12620 * category.c: Include "character.h".
12621 (copy_category_entry): New function.
12622 (copy_category_table): Call map_char_table and copy_category_entry.
12623 (Fmake_category_table): Initialize all top-level slots.
12624 (char_category_set): New function.
12625 (modify_lower_category_set): Delete.
12626 (Fmodify_category_entry): Call char_table_ref_and_range.
12627
12628 * category.h (CATEGORY_SET): Just call char_category_set.
12629
12630 * ccl.c: Include "character.h".
12631 (Qccl, Qcclp): New variables.
12632 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
12633 it's less than 256.
12634 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
12635 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
12636 and DST type.
12637 (ccl_driver): Change types of argument, adjust code accordingly.
12638 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
12639 ccl_driver.
12640 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
12641
12642 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
12643 New members src_multibyte, dst_multibyte, consumed, and produced.
12644 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
12645 (CODING_SPEC_CCL_PROGRAM): New macro.
12646 (ccl_driver): Update prototype.
12647 (Qccl, Qcclp, Fccl_program_p): Extern them.
12648 (CHECK_CCL_PROGRAM): New macro.
12649
12650 * character.c, character.h, chartab.c: New files.
12651
12652 * charset.c: Mostly re-written. Move character and multibyte sequence
12653 handling codes to character.c.
12654
12655 * charset.h: Mostly re-written. Move character and multibyte sequence
12656 handling codes to character.h.
12657
12658 * coding.c, coding.h: Mostly re-written.
12659
12660 * composite.c: Include "character.h" instead of "charset.h".
12661 (CHAR_WIDTH): Move to character.h.
12662 (HASH_KEY, HASH_VALUE): Delete.
12663
12664 * composite.h (enum composition_method): Change order of enumeration
12665 symbols.
12666
12667 * data.c: Include "character.h" instead of "charset.h".
12668 (Faref): Call CHAR_TABLE_REF for a char table.
12669 (Faset): Call CHAR_TABLE_SET for a char table.
12670
12671 * dispextern.h (free_realized_face, check_face_attribytes)
12672 (generate_ascii_font): Extern them.
12673 (free_realized_multibyte_face): Delete extern.
12674
12675 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
12676 table structure.
12677
12678 * editfns.c: Include "character.h" instead of "charset.h".
12679 (Fchar_to_string): Always call CHAR_STRING.
12680
12681 * emacs.c (main): Call init_charset_once, init_charset,
12682 syms_of_chartab, and syms_of_character.
12683
12684 * fileio.c: Include "character.h" instead of "charset.h".
12685 (Finsert_file_contents): Big change for the new code-conversion API.
12686 (choose_write_coding_system, Fwrite_region): Likewise.
12687 (build_annotations_2): Delete.
12688 (e_write): Big change for the new code-conversion API.
12689
12690 * fns.c: Include "character.h" instead of "charset.h".
12691 (copy_sub_char_table): Move to chartab.c.
12692 (Fcopy_sequence): Call copy_char_table for a char table.
12693 (concat): Delete codes calling count_multibyte.
12694 (string_char_to_byte, string_byte_to_char): Adjust for the new
12695 multibyte form.
12696 (internal_equal): Adjust for the change of char table structure.
12697 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
12698 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
12699 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
12700 (char_table_translate, optimize_sub_char_table)
12701 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
12702 chartab.c.
12703 (char_table_ref_and_index): Delete.
12704 (HASH_KEY, HASH_VALUE): Move to lisp.h.
12705 (Fmd5): Call preferred_coding_system instead of accessing
12706 Vcoding_category_list. Adjust for the new code-conversion API.
12707 (syms_of_fns): Move defsubr for char table related functions to
12708 chartab.c.
12709
12710 * fontset.c: Mostly re-written.
12711
12712 * fontset.h (struct font_info): Change type of the member encoding_type.
12713 (enum FONT_SPEC_INDEX): New enum.
12714 (fontset_font_pattern, fs_load_font): Update prototype.
12715 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
12716
12717 * indent.c: Include "character.h" instead of "charset.h".
12718 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
12719
12720 * insdel.c: Include "character.h" instead of "charset.h".
12721 (copy_text): Don't refer to Vnonascii_translation_table.
12722 (insert_from_gap): New function.
12723
12724 * keyboard.c: Include "character.h" instead of "charset.h".
12725 (command_loop_1): Never call direct_output_forward_char before
12726 a non-ASCII character.
12727 (read_char): If Vkeyboard_translate_table is a char table, always
12728 translate a character.
12729
12730 * keymap.c: Include "character.h".
12731 (store_in_keymap): Handle the case that IDX is a cons.
12732 (Fdefine_key): Handle the case that KEY is a cons and the car part
12733 is also a cons (range).
12734 (push_key_description): Adjust for the new character code.
12735 (describe_vector): Call describe_char_table for a char table.
12736 (describe_char_table): New function.
12737
12738 * keymap.h (describe_char_table): Extern it.
12739
12740 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
12741 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
12742 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
12743 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
12744 Delete.
12745 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
12746 structure.
12747 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
12748 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
12749 (CHARTAB_SIZE_BITS_3): New macros.
12750 (chartab_size): Extern it.
12751 (struct Lisp_Char_Table): Re-design.
12752 (struct Lisp_Sub_Char_Table): New structure.
12753 (HASH_KEY, HASH_VALUE): Move from fns.c.
12754 (CHARACTERBITS): Define as 22.
12755 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
12756 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
12757 (GC_SUB_CHAR_TABLE_P): New macro.
12758 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
12759 (code_convert_string_norecord): Deleted extern.
12760 (init_character_once, syms_of_character, init_charset)
12761 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
12762
12763 * lread.c: Include "character.h".
12764 (read_multibyte): New arg NBYTES.
12765 (read_escape): Change the meaning of returned *BYTEREP.
12766 (to_multibyte): Delete.
12767 (read1): Adjust the handling of char table and string.
12768
12769 * print.c: Include "character.h" instead of "charset.h".
12770 (print_string): Convert 8-bit raw bytes to octal form by
12771 string_escape_byte8.
12772 (print_object): Adjust for the new multibyte form. Print 8-bit
12773 raw bytes always in octal form. Handle sub char table correctly.
12774
12775 * process.c: Include "character.h" instead of "charset.h".
12776 (read_process_output, send_process): Adjust for the new
12777 code-conversion API.
12778
12779 * puresize.h (BASE_PURESIZE): Increase.
12780
12781 * regex.c: Include "character.h" instead of "charset.h".
12782 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
12783 (regex_compile): Accept a range whose starting and ending
12784 character have different leading bytes.
12785 (analyse_first): Adjust for the above change.
12786
12787 * search.c: Include "character.h" instead of "charset.h".
12788 (search_buffer, boyer_moore): Adjust for the new multibyte form.
12789 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
12790
12791 * syntax.c: Include "character.h" instead of "charset.h".
12792 (syntax_parent_lookup): Delete.
12793 (Fmodify_syntax_entry): Accept a cons as CHAR.
12794 (skip_chars): Adjust for the new multibyte form.
12795 (init_syntax_once): Call char_table_set_range instead of directly
12796 accessing the structure of a char table.
12797
12798 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
12799 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
12800 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
12801 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
12802
12803 * term.c: Include "buffer.h" and "character.h".
12804 (encode_terminal_code, write_glyphs): Adjust for the new
12805 code-conversion API.
12806 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
12807
12808 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
12809
12810 * xdisp.c: Include "character.h".
12811 (get_next_display_element): Adjust for the new multibyte form.
12812 (disp_char_vector): Adjust for the new char table structure.
12813 (decode_mode_spec_coding): Adjust for the new structure of
12814 coding system.
12815 (decode_mode_spec): Adjust for the new code-conversion API.
12816
12817 * xfaces.c: Include "character.h" instead of "charset.h".
12818 (load_face_font): Adjust for the change of choose_face_font and
12819 FS_LOAD_FONT.
12820 (generate_ascii_font): New function.
12821 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
12822 (set_font_frame_param): Adjust for the change of choose_face_font.
12823 (free_realized_face): Make it public.
12824 (free_realized_faces_for_fontset): Rename from
12825 free_realized_multibyte_face. Free also faces realized for ASCII.
12826 (choose_face_font): Change arguments. Adjust for the change of
12827 fontset_font_pattern and FS_LOAD_FONT.
12828
12829 * xfns.c: Include "character.h".
12830 (x_encode_text): Adjust for the new code-conversion API.
12831
12832 * xselect.c: Don't include "charset.h".
12833 (selection_data_to_lisp_data): Adjust for the new code conversion API.
12834
12835 * xterm.c: Include "character.h".
12836 (x_encode_char): New argument CHARSET. Change caller.
12837 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
12838 Call ENCODE_CHAR instead of SPLIT_CHAR.
12839 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
12840 CHAR_WIDTH instead of CHARSET_WIDTH.
12841 (XTread_socket): Adjust for the new code-conversion API.
12842 (x_new_font): Adjust for the change of FS_LOAD_FONT.
12843 (x_load_font): Adjust for the change of struct font.
12844
128452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12846
12847 * xfaces.c (face_at_buffer_position): Remove unused vars.
12848
128492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12850
12851 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
12852 Fix overflow checking.
12853
128542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12855
12856 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
12857 Cancel previous change.
12858
128592008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
12860
12861 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
12862 ccl->eight_bit_control. Fix check for buffer overflow.
12863 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
12864 (ccl_driver): Initialize extra_bytes to 0.
12865
128662008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
12867
12868 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
12869 return it ORed with ctrl_modifier.
12870
128712008-01-29 Miles Bader <miles@gnu.org>
12872
12873 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
12874
128752008-01-28 Jason Rumney <jasonr@gnu.org>
12876
12877 * w32.c (stat): Don't double check for networked drive.
12878
128792008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
12880
12881 * window.c (run_window_configuration_change_hook): New function.
12882 Code extracted from set_window_buffer. Set the selected frame.
12883 (set_window_buffer): Use it.
12884 * window.h (run_window_configuration_change_hook): Declare.
12885 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
12886
12887 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
12888
128892008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
12890
12891 * Makefile.in: Remove references to unused macros.
12892
128932008-01-26 Eli Zaretskii <eliz@gnu.org>
12894
12895 * w32.c (g_b_init_get_sid_sub_authority)
12896 (g_b_init_get_sid_sub_authority_count): New static variables.
12897 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
12898 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
12899 (init_user_info): Use them to retrieve uid and gid.
12900 Use 500/513, the Windows defaults, as Administrator's uid/gid.
12901 (fstat): Use pw_uid and pw_gid from the_passwd structure for
12902 st_uid and st_gid of the file.
12903
129042008-01-26 Jason Rumney <jasonr@gnu.org>
12905
12906 * w32.c (logon_network_drive): New function.
12907 (stat): Use it.
12908
129092008-01-26 Chong Yidong <cyd@stupidchicken.com>
12910
12911 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
12912 invisible text covered with an ellipsis.
12913
129142008-01-25 Richard Stallman <rms@gnu.org>
12915
12916 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
12917 jump back to beginning. Move some other initializations after that.
12918 (Qwindow_text_change_functions, Vwindow_text_change_functions):
12919 New variables.
12920 (syms_of_xdisp): Init them.
12921
12922 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
12923
12924 * buffer.c (reset_buffer_local_variables):
12925 Implement `permanent-local-hook'.
12926 (Qpermanent_local_hook): New variable.
12927 (syms_of_buffer): Init and staticpro it.
12928
129292008-01-25 Michael Albinus <michael.albinus@gmx.de>
12930
12931 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
12932
129332008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
12934
12935 * fns.c (Fclrhash): Return TABLE.
12936
129372008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12938
12939 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
12940 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
12941 is set even without positional changes.
12942 (x_scroll_bar_clear): Set bar->redraw_needed_p.
12943
12944 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
12945
129462008-01-23 Jason Rumney <jasonr@gnu.org>
12947
12948 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
12949
12950 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
12951 the unicode range available in MULE by locale-coding-system.
12952 Improve dbcs lead byte detection. Set event timestamp and modifiers
12953 earlier.
12954
129552008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12956
12957 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
12958 [MAC_OSX] (init_mac_osx_environment): Initialize it.
12959 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
12960 when used on child processes.
12961
129622008-01-21 Michael Albinus <michael.albinus@gmx.de>
12963
12964 * dbusbind.c (Fdbus_method_return_internal): Rename from
12965 Fdbus_method_return.
12966 (Fdbus_unregister_object): Move to dbus.el.
12967 (Fdbus_call_method, Fdbus_method_return_internal)
12968 (Fdbus_send_signal): Improve debug messages.
12969
129702008-01-20 Martin Rudalics <rudalics@gmx.at>
12971
12972 * undo.c (undo_inhibit_record_point): New variable.
12973 (syms_of_undo): Initialize it.
12974 (record_point): Don't record point when undo_inhibit_record_point
12975 is set.
12976
129772008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
12978
12979 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
12980
12981 * xdisp.c (Qauto_hscroll_mode): New var.
12982 (syms_of_xdisp): Initialize it.
12983 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
12984 window's buffer.
12985 (hscroll_windows): Don't check automatic_hscrolling_p here.
12986
12987 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
12988 vscroll if we're setting window-buffer to the value it already has.
12989
129902008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
12991
12992 * m/intel386.h: Remove references to XENIX.
12993
129942008-01-17 Andreas Schwab <schwab@suse.de>
12995
12996 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
12997 instead of HAVE_X86_64_LIB64_DIR.
12998 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
12999
130002008-01-17 Glenn Morris <rgm@gnu.org>
13001
13002 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
13003 to HAVE_X86_64_LIB64_DIR.
13004
130052008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
13006
13007 * s/irix3-3.h:
13008 * s/irix4-0.h:
13009 * s/386-ix.h:
13010 * s/domain.h:
13011 * s/hpux9-x11r4.h:
13012 * s/hpux9shxr4.h: Remove files for systems no longer supported.
13013
13014 * sysdep.c: Remove code containing references to symbols defined
13015 by unsupported systems.
13016
130172008-01-16 Glenn Morris <rgm@gnu.org>
13018
13019 * coding.c (select-safe-coding-system-function): Doc fix.
13020
130212008-01-15 Glenn Morris <rgm@gnu.org>
13022
13023 * config.in: Revert 2008-01-13 change: this is a generated file.
13024
130252008-01-13 Tom Tromey <tromey@redhat.com>
13026
13027 * lisp.h: Fix typo.
13028
130292008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
13030
13031 * m/sequent-ptx.h:
13032 * m/sequent.h:
13033 * s/ptx.h:
13034 * s/ptx4-2.h:
13035 * s/ptx4.h: Remove files for systems no longer supported.
13036
13037 * callproc.c (Fcall_process): Fix previous change.
13038
130392008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
13040
13041 * unexsunos4.c: Remove file, system not supported anymore.
13042
13043 * m/mips.h:
13044 * m/intel386.h:
13045 * callproc.c:
13046 * config.in:
13047 * ecrt0.c:
13048 * emacs.c:
13049 * fileio.c:
13050 * frame.c:
13051 * getpagesize.h:
13052 * keyboard.c:
13053 * lread.c:
13054 * process.c:
13055 * puresize.h:
13056 * sysdep.c:
13057 * systty.h:
13058 * syswait.h:
13059 * unexec.c:
13060 * xdisp.c:
13061 * alloc.c: Remove code containing references to symbols defined by
13062 unsupported systems.
13063
130642008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
13065
13066 * coding.c (detect_coding_mask): Fix previous change.
13067
130682008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
13069
13070 * coding.c (detect_coding_iso2022): New arg
13071 latin_extra_code_state. Allow Latin extra codes only
13072 when *latin_extra_code_state is nonzero.
13073 (detect_coding_mask): If there is a NULL byte, detect the encoding
13074 as UTF-16 or binary. If Latin extra codes exist, detect the
13075 encoding as ISO-2022 only when there's no other proper encoding is
13076 found.
13077
130782008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13079
13080 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
13081 #ifdef MAC_OS.
13082
130832008-01-08 Richard Stallman <rms@gnu.org>
13084
13085 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
13086
130872008-01-06 Nick Roberts <nickrob@snap.net.nz>
13088
13089 * keyboard.c (parse_menu_item): Don't enclose key bindings on
13090 menu bar in parentheses.
13091
130922008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
13093
13094 * m/7300.h:
13095 * m/acorn.h:
13096 * m/alliant-2800.h:
13097 * m/alliant.h:
13098 * m/alliant1.h:
13099 * m/alliant4.h:
13100 * m/altos.h:
13101 * m/amdahl.h:
13102 * m/apollo.h:
13103 * m/att3b.h:
13104 * m/aviion-intel.h:
13105 * m/aviion.h:
13106 * m/celerity.h:
13107 * m/clipper.h:
13108 * m/cnvrgnt.h:
13109 * m/convex.h:
13110 * m/cydra5.h:
13111 * m/delta88k.h:
13112 * m/dpx2.h:
13113 * m/dual.h:
13114 * m/elxsi.h:
13115 * m/f301.h:
13116 * m/gould-np1.h:
13117 * m/gould.h:
13118 * m/i860.h:
13119 * m/ibmps2-aix.h:
13120 * m/ibmrt-aix.h:
13121 * m/ibmrt.h:
13122 * m/irist.h:
13123 * m/is386.h:
13124 * m/isi-ov.h:
13125 * m/mega68.h:
13126 * m/mg1.h:
13127 * m/news-r6.h:
13128 * m/news-risc.h:
13129 * m/news.h:
13130 * m/nh3000.h:
13131 * m/nh4000.h:
13132 * m/ns16000.h:
13133 * m/ns32000.h:
13134 * m/nu.h:
13135 * m/orion.h:
13136 * m/orion105.h:
13137 * m/paragon.h:
13138 * m/pfa50.h:
13139 * m/plexus.h:
13140 * m/pyramid.h:
13141 * m/pyrmips.h:
13142 * m/sh3el.h:
13143 * m/sps7.h:
13144 * m/sr2k.h:
13145 * m/stride.h:
13146 * m/sun1.h:
13147 * m/sun2.h:
13148 * m/sun3-68881.h:
13149 * m/sun3-fpa.h:
13150 * m/sun3-soft.h:
13151 * m/sun3.h:
13152 * m/sun386.h:
13153 * m/symmetry.h:
13154 * m/tad68k.h:
13155 * m/tahoe.h:
13156 * m/targon31.h:
13157 * m/tek4300.h:
13158 * m/tekxd88.h:
13159 * m/tower32.h:
13160 * m/tower32v3.h:
13161 * m/ustation.h:
13162 * m/wicat.h:
13163 * m/xps100.h:
13164 * s/cxux.h:
13165 * s/cxux7.h:
13166 * s/dgux.h:
13167 * s/dgux4.h:
13168 * s/dgux5-4-3.h:
13169 * s/dgux5-4r2.h:
13170 * s/esix.h:
13171 * s/esix5r4.h:
13172 * s/hiuxmpp.h:
13173 * s/hiuxwe2.h:
13174 * s/iris3-5.h:
13175 * s/iris3-6.h:
13176 * s/isc2-2.h:
13177 * s/isc3-0.h:
13178 * s/isc4-0.h:
13179 * s/isc4-1.h:
13180 * s/newsos5.h:
13181 * s/newsos6.h:
13182 * s/osf1.h:
13183 * s/osf5-0.h:
13184 * s/riscix1-1.h:
13185 * s/riscix12.h:
13186 * s/sco4.h:
13187 * s/sco5.h:
13188 * s/sunos4-0.h:
13189 * s/sunos4-1.h:
13190 * s/sunos413.h:
13191 * s/sunos4shr.h:
13192 * s/umax.h:
13193 * s/unipl5-2.h:
13194 * s/xenix.h:
13195 * cxux-crt0.s:
13196 * unexapollo.c:
13197 * unexconvex.c:
13198 * unexenix.c:
13199 * unexsni.c: Remove files for systems no longer supported.
13200
13201 * m/intel386.h: Remove references to unsupported systems.
13202
13203 * w32.c (get_emacs_configuration): Remove reference to i860.
13204
13205 * sysdep.c: Remove dead code.
13206
132072008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
13208
13209 * s/rtu.h:
13210 * m/masscomp.h: Remove files. Platform is obsolete.
13211
132122008-01-04 Michael Albinus <michael.albinus@gmx.de>
13213
13214 * dbusbind.c (Fdbus_method_return): New function.
13215 (xd_read_message): Add the serial number to the event.
13216 (Fdbus_register_method): Activate the function.
13217
132182008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
13219
13220 * keyboard.c (read_key_sequence): Fix typo.
13221
132222008-01-03 Michael Albinus <michael.albinus@gmx.de>
13223
13224 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
13225 (xd_signature, xd_append_arg): Handle element type detection for
13226 empty arrays.
13227 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
13228 SDATA () calls; this must be solved more general.
13229 (Fdbus_register_signal): Use SBYTES instead of strlen.
13230
132312008-01-03 Magnus Henoch <magnus@zemdatav>
13232
13233 * dbusbind.c (xd_append_arg): Use unsigned char instead of
13234 unsigned int for byte values (necessary for big-endian platform).
13235 (Fdbus_call_method): Handle the case of no returned arguments.
13236
132372007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
13238
13239 * dbusbind.c (xd_read_message): Use non-static input_event struct.
13240
132412007-12-31 Magnus Henoch <mange@freemail.hu>
13242
13243 * dbusbind.c (xd_signature): Signature of variant is just "v".
13244
132452007-12-30 Michael Albinus <michael.albinus@gmx.de>
13246
13247 * dbusbind.c: Fix several errors and compiler warnings.
13248 Reported by Tom Tromey <tromey@redhat.com>.
13249 (XD_ERROR, XD_DEBUG_MESSAGE)
13250 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
13251 (xd_append_arg): Part for basic D-Bus types rewritten.
13252 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
13253 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
13254 appropriate.
13255 (xd_read_message): Return Qnil. Don't signal an error; it is not
13256 useful during event reading.
13257 (Fdbus_register_signal): Signal an error if the check for
13258 FUNCTIONP fails.
13259 (Fdbus_register_method): New function. The implementation is not
13260 complete, the call of the function signals an error therefore.
13261 (Fdbus_unregister_object): New function, renamed from
13262 Fdbus_unregister_signal. The initial check signals an error, if
13263 the object is not well formed.
13264
132652007-12-30 Richard Stallman <rms@gnu.org>
13266
13267 * textprop.c (get_char_property_and_overlay):
13268 Signal error if POSITION is out of range in a buffer.
13269
132702007-12-29 Martin Rudalics <rudalics@gmx.at>
13271
13272 * w32fns.c (Fx_create_frame): Make copy of frame parameters
13273 because the original parameters are in pure storage now.
13274
132752007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13276
13277 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
13278
132792007-12-22 Eli Zaretskii <eliz@gnu.org>
13280
13281 * callint.c (syms_of_callint) <command-history>: Add reference to
13282 history-length in the doc string.
13283
132842007-12-17 Jason Rumney <jasonr@gnu.org>
13285
13286 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
13287 before passing as wParam.
13288
132892007-12-22 Michael Albinus <michael.albinus@gmx.de>
13290
13291 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
13292 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
13293 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
13294 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
13295 as number.
13296 (Fdbus_call_method): Fix docstring.
13297
132982007-12-21 Michael Albinus <michael.albinus@gmx.de>
13299
13300 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
13301 New macros.
13302 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
13303 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
13304 Simplify.
13305 (xd_signature): New function.
13306 (xd_append_arg): Compute also signatures. Major rewrite.
13307 (xd_retrieve_arg): Make debug messages friendly.
13308 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
13309 Check for signatures of arguments.
13310
133112007-12-19 Michael Albinus <michael.albinus@gmx.de>
13312
13313 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
13314 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
13315 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
13316 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
13317 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
13318 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
13319 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
13320 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
13321 (xd_retrieve_value): Remove. Functionality included in ...
13322 (xd_append_arg): New function.
13323 (Fdbus_call_method, Fdbus_send_signal): Apply it.
13324
133252007-12-16 Michael Albinus <michael.albinus@gmx.de>
13326
13327 * dbusbind.c (top): Include <stdio.h>.
13328 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
13329 dbus_message_new_method_call and dbus_message_new_signal.
13330 (Fdbus_register_signal): Rename unique_name to uname.
13331 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
13332 non-existing unique name. Fix typos in matching rule. Return an
13333 object which is useful in Fdbus_unregister_signal.
13334 (Fdbus_unregister_signal): Reimplementation, in order to remove
13335 only the corresponding entry.
13336 (Vdbus_registered_functions_table): Change the order of entries.
13337 Apply these changes in xd_read_message and Fdbus_register_signal.
13338
133392007-12-16 Andreas Schwab <schwab@suse.de>
13340
13341 * fileio.c (Finsert_file_contents): Fix overflow check to not
13342 depend on undefined integer overflow.
13343
133442007-12-14 Jason Rumney <jasonr@gnu.org>
13345
13346 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
13347 for characters above 127.
13348
133492007-12-13 Jason Rumney <jasonr@gnu.org>
13350
13351 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
13352 before dereferencing array.
13353 (lookup_vk_code): Remove zero comparison.
13354
133552007-12-14 Michael Albinus <michael.albinus@gmx.de>
13356
13357 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
13358 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
13359 Use `unsigned int' instead of `uint'.
13360 (xd_read_message, Fdbus_register_signal): Split expressions into
13361 multiple lines before operators "&&" and "||", according to the
13362 GNU Coding Standards.
13363
133642007-12-14 Eli Zaretskii <eliz@gnu.org>
13365
13366 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
13367
133682007-12-12 Juri Linkov <juri@jurta.org>
13369
13370 * buffer.c (Frename_buffer): In interactive spec replace
13371 `read-buffer' with `read-string' that uses `buffer-name-history'
13372 as history, and the current buffer's name as default.
13373
133742007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
13375
13376 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
13377 manipulating the backtrace manually.
13378 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
13379 (struct backtrace, backtrace_list): Remove.
13380 (command_loop_1): Remove dead var `no_direct'.
13381
13382 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
13383 preserve non-built-in buffer-local variables.
13384 (Fkill_all_local_variables): Don't re-create&re-set permanent
13385 buffer-local variables.
13386
133872007-12-09 Juri Linkov <juri@jurta.org>
13388
13389 * buffer.c (Frename_buffer): Change interactive spec from "s" to
13390 Lisp code that uses `read-buffer' with current buffer as default.
13391
133922007-12-08 Michael Albinus <michael.albinus@gmx.de>
13393
13394 * dbusbind.c (xd_read_message): Generate an event for every
13395 registered handler. There might be several handlers registered
13396 for the same signal.
13397 (Fdbus_register_signal): Don't overwrite a registration for the
13398 same signal. Add a new registration if handlers are different.
13399 (Vdbus_registered_functions_table): Rework doc string.
13400
134012007-12-07 Michael Albinus <michael.albinus@gmx.de>
13402
13403 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
13404 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
13405 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
13406 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
13407 Unify argument lists.
13408 (xd_read_message, Fdbus_register_signal): Reorder and extend event
13409 arguments and hash table keys. Use unique name for service.
13410 (Fdbus_unregister_signal): Remove checks.
13411 (Vdbus_registered_functions_table): Fix doc string.
13412
134132007-12-05 Magnus Henoch <mange@freemail.hu>
13414
13415 * process.c (make_process): Initialize pty_flag to 0.
13416
134172007-12-05 Jason Rumney <jasonr@gnu.org>
13418
13419 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
13420 specified XBMs.
13421
134222007-12-05 Richard Stallman <rms@gnu.org>
13423
13424 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
13425
134262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13427
13428 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
13429 New variable.
13430 (mac_try_close_socket) [MAC_OSX]: New function.
13431 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
13432 Update cfsockets_for_select. Replace invalid CFRunLoop source.
13433
13434 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
13435 Use mac_try_close_socket.
13436
134372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13438
13439 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
13440 reloc_base.
13441 (copy_dysymtab): Compute relocation base here.
13442 (rebase_reloc_address) [__ppc64__]: New function.
13443 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
13444 changed.
13445
134462007-12-05 Jason Rumney <jasonr@gnu.org>
13447
13448 * w32proc.c (sys_spawnve): Quote args with wildcards.
13449
134502007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13451
13452 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
13453 __objc_* sections.
13454 (unrelocate) [_LP64]: Set relocation base to address of data segment.
13455
134562007-12-05 Michael Albinus <michael.albinus@gmx.de>
13457
13458 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
13459 Move check for Vdbus_registered_functions_table to
13460 xd_read_queued_messages.
13461 (xd_read_queued_messages): Protect xd_read_message calls by
13462 internal_condition_case_1.
13463
134642007-12-04 Michael Albinus <michael.albinus@gmx.de>
13465
13466 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
13467 Qdbus_system_bus and Qdbus_session_bus, respectively.
13468 (Vdbus_intern_symbols): Remove.
13469 (Vdbus_registered_functions_table): New hash table.
13470 (XD_SYMBOL_INTERN_SYMBOL): Remove.
13471 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
13472 Rewrite in order to manage registered functions by hash table
13473 Vdbus_registered_functions_table.
13474
134752007-12-03 Jan Djärv <jan.h.d@swipnet.se>
13476
13477 * xterm.c: Update URL to Window Manager Specification in comment.
13478
134792007-12-02 Michael Albinus <michael.albinus@gmx.de>
13480
13481 * config.in (HAVE_DBUS): Add.
13482
13483 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
13484 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
13485 (obj): Add $(DBUS_OBJ).
13486 (LIBES): Add $(DBUS_LIBS).
13487 (dbusbind.o): New target.
13488
13489 * dbusbind.c: New file.
13490
13491 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
13492
13493 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
13494 (Qdbus_event): New Lisp symbol.
13495 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
13496 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 13497 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
13498
13499 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
13500
135012007-12-01 Richard Stallman <rms@gnu.org>
13502
13503 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
13504
135052007-11-30 Jason Rumney <jasonr@gnu.org>
13506
13507 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
13508 (w32con_reset_terminal_modes): Clear screen buffer.
13509 (w32_face_attributes): Don't use color indexes that are out of range.
13510 Only reverse the default colors.
13511
13512 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
13513 WINDOWSNT.
13514
13515 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
13516
135172007-11-29 Jason Rumney <jasonr@gnu.org>
13518
13519 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
13520 (w32_face_attributes): Use Vtty_defined_color_alist to determine
13521 if the terminal colors are initialized.
13522 (unspecified_fg, unspecified_bg): Remove unused declarations.
13523
135242007-11-29 Andreas Schwab <schwab@suse.de>
13525
13526 * keyboard.c (apply_modifiers): Fix typo.
13527
135282007-11-29 Richard Stallman <rms@gnu.org>
13529
13530 * keymap.c (Fcurrent_local_map): Doc fix.
13531
135322007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
13533
13534 * s/gnu-kfreebsd.h: New file.
13535
135362007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
13537
13538 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
13539 Don't cast redundantly.
13540
13541 * keyboard.c (KEY_TO_CHAR): New macro.
13542 (parse_modifiers, apply_modifiers): Accept integer arguments.
13543 (read_key_sequence): Use them to unify the "shift->unshift" mapping
13544 for chars and symbol keys.
13545 After doing such remapping, apply function-key-map again.
13546
135472007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
13548
13549 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
13550 compiled anymore.
13551
135522007-11-26 Andreas Schwab <schwab@suse.de>
13553
13554 * process.c (list_processes_1): Fix indentation level of the
13555 command column.
13556
135572007-11-23 Andreas Schwab <schwab@suse.de>
13558
13559 * editfns.c (Fformat): Handle %c specially since it requires the
13560 argument to be of type int.
13561
135622007-11-23 Markus Triska <markus.triska@gmx.at>
13563
13564 * emacs.c (main): Call init_editfns before init_process, since
13565 init_process sets Vprocess_connection_type depending on OS release.
13566
135672007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
13568
13569 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
13570 (find_symbol_value): Use do_symval_forwarding.
13571
13572 * data.c (set_internal): Set the value in the `cons-cell' (for
13573 Buffer_Local_values) not only for frame-local variables.
13574
135752007-11-22 Andreas Schwab <schwab@suse.de>
13576
13577 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
13578 values to sprintf.
13579 * keymap.c (Fsingle_key_description): Likewise.
13580 * print.c (print_object): Likewise.
13581
135822007-11-22 Jan Djärv <jan.h.d@swipnet.se>
13583
13584 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
13585 file for image is nil.
13586
135872007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
13588
13589 * term.c: Include stdarg.h.
13590 (fatal): Implement using varargs.
13591 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
13592
135932007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
13594
13595 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
13596 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
13597 Update call to buffer_slot_type_mismatch.
13598 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
13599 (buffer_slot_type_mismatch): Update.
13600 * buffer.c (buffer_local_types): Remove.
13601 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
13602 (defvar_per_buffer): Set the type in the buffer_objfwd.
13603
136042007-11-21 Jason Rumney <jasonr@gnu.org>
13605
13606 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
13607 CreateFileMapping returns NULL on failure.
13608
136092007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
13610
13611 * search.c (Fset_match_data): Remove the `evaporate' feature.
13612 (unwind_set_match_data): Don't use the `evaporate' feature.
13613
136142007-11-21 Jason Rumney <jasonr@gnu.org>
13615
13616 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
13617
13618 * w32console.c (w32con_write_glyphs): Remove unused variables.
13619
136202007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
13621
13622 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
13623
13624 * s/darwin.h (MULTI_KBOARD): Remove.
13625
13626 * macfns.c (x_create_tip_frame, Fx_create_frame)
13627 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
13628
136292007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
13630
13631 * buffer.c (Fbuffer_local_value): Remove redundant test.
13632 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
13633 than in `current-buffer' to match the comment.
13634 Do the swap using swap_in_global_binding.
13635
13636 * data.c (store_symval_forwarding, set_internal):
13637 * eval.c (specbind): Remove dead code.
13638
13639 * coding.c (detect_coding, Fupdate_coding_systems_internal):
13640 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
13641 Since we do not want to see internal Lisp_*fwd objects here.
13642
136432007-11-18 Jan Djärv <jan.h.d@swipnet.se>
13644
13645 * sysdep.c (init_system_name): Use getaddrinfo if available.
13646
13647 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
13648 (x_scroll_bar_note_movement): start, end, with, height in struct
13649 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
13650
136512007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
13652
13653 * puresize.h (BASE_PURESIZE): Increase to 1190000.
13654
136552007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
13656
13657 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
13658 This undoes Richard's change of 14-Oct-2002.
13659
13660 * alloc.c (allocate_other_vector):
13661 * lisp.h (allocate_other_vector): Remove.
13662
13663 * window.c (struct save_window_data): Move non-lisp data to the end
13664 and make it `int' rather than Lisp_Object.
13665 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
13666 Done wrap/unwrap integer values.
13667 (Fset_window_configuration, compare_window_configurations):
13668 Update use of fields to their new types.
13669
13670 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
13671 Turn integer fields into `int'. Merge x_window_low and x_window_high.
13672 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
13673 (SET_SCROLL_BAR_X_WINDOW): Remove.
13674 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
13675 Access the new x_window field directly.
13676 * xterm.c (x_scroll_bar_create): Use a pseudovector.
13677 Don't wrap/unwrap integers into Lisp_Objects.
13678 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
13679 (x_scroll_bar_report_motion):
13680 Don't wrap/unwrap integers into Lisp_Objects.
13681 (x_term_init): Use SDATA.
13682 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
13683 (x_scroll_bar_set_handle, x_scroll_bar_remove)
13684 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
13685 (x_scroll_bar_report_motion, x_scroll_bar_clear):
13686 * xfns.c (x_set_background_color):
13687 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
13688 Access the new x_window field directly.
13689
13690 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
13691 (allocate_pseudovector): Make non-static.
13692
13693 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
13694 (allocate_pseudovector): Declare.
13695 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
13696
136972007-11-15 Andreas Schwab <schwab@suse.de>
13698
13699 * editfns.c (Fformat): Correctly format EMACS_INT values.
13700 Also take precision into account when formatting an integer.
13701
13702 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
13703
137042007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
13705
13706 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
13707 (syms_of_keyboard): Defsubr it.
13708
13709 * data.c (swap_in_global_binding): Fix longstanding bug where
13710 store_symval_forwarding was not called with the right second argument,
13711 thus causing objfwd-ing from being dropped.
13712
137132007-11-14 Juanma Barranquero <lekktu@gmail.com>
13714
13715 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
13716 (Fx_display_pixel_height, Fx_display_planes)
13717 (Fx_display_color_cells, Fx_server_max_request_size)
13718 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
13719 (Fx_display_visual_class, Fx_display_save_under):
13720 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
13721 (Fx_display_pixel_height, Fx_display_planes)
13722 (Fx_display_color_cells, Fx_server_max_request_size)
13723 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13724 (Fx_display_mm_height, Fx_display_mm_width)
13725 (Fx_display_backing_store, Fx_display_visual_class)
13726 (Fw32_select_font, Fx_display_save_under):
13727 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
13728 (Fx_display_pixel_height, Fx_display_planes)
13729 (Fx_display_color_cells, Fx_server_max_request_size)
13730 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
13731 (Fx_display_save_under): Fix typos in docstrings.
13732
137332007-11-14 Juanma Barranquero <lekktu@gmail.com>
13734
13735 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
13736 corresponding to deleted entries; they are an implementation detail.
13737 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
13738 Remove variables.
13739 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
13740 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
13741 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
13742 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
13743 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
13744 (Fw32_define_rgb_color, Fw32_load_color_file)
13745 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
13746 Fix typos in docstrings.
13747 (Fx_server_version): Reflow docstring.
13748 (Fw32_shell_execute): Doc fixes.
13749
137502007-11-13 Juanma Barranquero <lekktu@gmail.com>
13751
13752 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
13753 if w32_parse_hot_key returned nil.
13754
137552007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
13756
13757 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
13758
137592007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 13760
aac0c6e3
MR
13761 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
13762
13763 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
13764
13765 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
13766 Remove W32_SCROLL_BAR_CLICK_EVENT.
13767
13768 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
13769 Add MULTIMEDIA_KEY_EVENT.
13770
13771 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
13772 (lispy_multimedia_keys) [WINDOWSNT]: New array.
13773 (make_lispy_event) [WINDOWSNT]: Use it to translate
13774 MULTIMEDIA_KEY_EVENT.
13775
13776 * w32term.h (WM_APPCOMMAND): Define if not already.
13777 (GET_APPCOMMAND_LPARAM): Likewise.
13778
13779 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
13780 WM_APPCOMMAND.
13781
13782 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
13783 (syms_of_w32fns): Export and initialize it.
13784 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
13785
137862007-11-09 Chong Yidong <cyd@stupidchicken.com>
13787
13788 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
13789 twice.
13790
13791 * xdisp.c (handle_face_prop): Fix last change.
13792
137932007-11-09 Richard Stallman <rms@gnu.org>
13794
13795 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
13796 not just for after-strings and before-strings.
13797 Call face_for_overlay_string and pass the overlay to it.
13798 (handle_display_prop): Determine whether property came from an overlay.
13799 Pass OVERLAY arg to handle_single_display_spec.
13800 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
13801 (load_overlay_strings): Fill in it->string_overlays.
13802 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
13803
13804 * xfaces.c (face_for_overlay_string): Function renamed from
13805 face_at_buffer_position_no_overlays, and add arg OVERLAY.
13806
13807 * dispextern.h (struct it): New elt string_overlays.
13808 New elt from_overlay, also in stack.
13809 Rearrange a few elements.
13810 (face_for_overlay_string): Decl renamed from
13811 face_at_buffer_position_no_overlays, and add argument.
13812
138132007-11-09 Richard Stallman <rms@gnu.org>
13814
13815 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
13816 to get the base face for an overlay string.
13817
13818 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
13819
13820 * xfaces.c (face_at_buffer_position_no_overlays): New function.
13821
13822 * xdisp.c (handle_stop): Move some code out of loop.
13823
138242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13825
13826 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
13827 Fix conversion from Lisp object to ATSUFontID.
13828
138292007-11-09 Jason Rumney <jasonr@gnu.org>
13830
13831 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
13832
138332007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13834
13835 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
13836 Don't assume regions are aligned to page boundary.
13837 (print_load_command_name): Add LC_UUID if defined.
13838
138392007-11-09 Richard Stallman <rms@gnu.org>
13840
13841 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
13842
138432007-11-07 Jason Rumney <jasonr@gnu.org>
13844
13845 * s/windows95.h: Remove.
13846
138472007-11-06 Jan Djärv <jan.h.d@swipnet.se>
13848
13849 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
13850 abort with a message on unhandled store_type values.
13851
138522007-11-01 Jan Djärv <jan.h.d@swipnet.se>
13853
13854 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
13855 Remove HAVE_X11R5 and HAVE_X11R4.
13856
138572007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
13858
13859 * Makefile.in: Remove references to sunfns.c and sunfns.o.
13860
138612007-11-01 Johan Bockgård <bojohan@gnu.org>
13862
13863 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
13864 Don't set s->stippled_p here, since it has already been set by
13865 x_set_glyph_string_gc from x_draw_glyph_string.
13866
138672007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
13868
13869 * sunfns.c: Remove file.
13870
13871 * m/sun386.h:
13872 * m/sun2.h:
13873 * m/sparc.h: Remove Sun windows code.
13874
138752007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
13876
13877 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
13878 (init_keyboard): Set current_kboard's window-system to nil.
13879 (tty_read_avail_input): Typo.
13880 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
13881
138822007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
13883
13884 * s/usg5-4.h:
13885 * s/usg5-3.h:
13886 * s/ptx.h:
13887 * m/is386.h:
13888 * m/ibmps2-aix.h:
13889 * Makefile.in: Remove all mentions of X10.
13890
13891 * dispnew.c (syms_of_display): Don't mention version 10.
13892
138932007-10-28 Juanma Barranquero <lekktu@gmail.com>
13894
13895 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
13896 ($(BLD)/abbrev.$(O)): Remove.
13897
138982007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
13899
13900 Rewrite abbrev.c in Elisp.
13901 * image.c (Qcount): Don't declare as extern.
13902 (syms_of_image): Initialize and staticpro `Qcount'.
13903 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
13904 * emacs.c (main): Don't call syms_of_abbrev.
13905 * Makefile.in (obj): Remove abbrev.o.
13906 (abbrev.o): Remove.
13907 * abbrev.c: Remove.
13908
139092007-10-26 Martin Rudalics <rudalics@gmx.at>
13910
13911 * window.c (window_min_size_2): Don't count header-line.
13912
139132007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
13914
13915 * frame.h (struct frame): Move all bit fields after the first bit
13916 field to take advantage of the available space. Group all the
13917 chars together to reduce wasted space due to padding.
13918
139192007-10-26 Juanma Barranquero <lekktu@gmail.com>
13920
13921 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
13922
13923 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
13924 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
13925 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
13926 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
13927 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
13928 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
13929 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
13930 (last_marked, mark_object_loop_halt): Make static.
13931
13932 * frame.c (syms_of_frame) <delete-frame-functions>:
13933 Fix typo in docstring.
13934
139352007-10-25 Juanma Barranquero <lekktu@gmail.com>
13936
13937 * w32.c (init_environment): Fix tiny memory leak.
13938 (w32_get_resource): Remove unused variable `ok'.
13939
139402007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
13941
13942 Make `window-system' into a keyboard-local variable (rather than
13943 frame-local as done originally by multi-tty).
13944
13945 * keyboard.h (struct kboard): Add Vwindow_system.
13946 * keyboard.c (init_kboard): Set a default for Vwindow_system.
13947 (mark_kboards): Mark Vwindow_system.
13948
13949 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
13950 (init_display): Don't set the obsolete `window-system' frame-param.
13951
13952 * xterm.c (x_term_init):
13953 * w32term.c (w32_create_terminal):
13954 * term.c (init_tty): Set Vwindow_system.
13955 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
13956 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
13957
13958 * xfns.c (Fx_create_frame, x_create_tip_frame):
13959 * w32fns.c (Fx_create_frame, x_create_tip_frame):
13960 * macfns.c (Fx_create_frame):
13961 Don't set the obsolete `window-system' frame-param.
13962
13963 * frame.h (Qwindow_system): Remove.
13964 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
13965 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
13966
139672007-10-24 Richard Stallman <rms@gnu.org>
13968
13969 * frame.c (x_figure_window_size): For fullscreen case,
13970 set USPosition | PPosition without clobbering rest of window_prompting.
13971
13972 * keyboard.c (Fcurrent_idle_time): Doc fix.
13973
13974 * print.c (Fwith_output_to_temp_buffer): Doc fix.
13975
139762007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * process.c (unwind_request_sigio): Only define if __ultrix__.
13979
13980 * callproc.c (child_setup): Remove spurious *.
13981
13982 * lisp.h (Fget_text_property): Declare.
13983 (have_menus_p): Declare it here rather than in sys-dep header files.
13984 * macterm.h (have_menus_p):
13985 * msdos.h (have_menus_p):
13986 * xterm.h (have_menus_p): Remove.
13987
13988 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
13989 (Fmake_variable_frame_local): Just check the variable's const-ness
13990 rather than checking nil or t.
13991
139922007-10-22 Jason Rumney <jasonr@gnu.org>
13993
13994 * w32fns.c: Include math.h.
13995 (w32_abort): Declaration moved to nt/config.nt.
13996
13997 * s/ms-w32.h (HAVE_STDLIB_H): Define.
13998 (abort): Redefinition moved to nt/config.nt.
13999
14000 * m/windowsnt.h: Remove.
14001
140022007-10-22 Juanma Barranquero <lekktu@gmail.com>
14003
14004 * emacs.c (Fdump_emacs): Fix typo in message.
14005 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
14006 <installation-directory>: Reflow docstring.
14007
140082007-10-22 Juri Linkov <juri@jurta.org>
14009
14010 * minibuf.c: Allow minibuffer default to be a list of default values.
14011 With empty input use the first element of this list as returned default.
14012 (string_to_object)
14013 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
14014 (read_minibuf): If defalt is cons, set histstring to its car.
14015 (Fread_string): If default_value is cons, set val to its car.
14016 (Fread_buffer): If def is cons, use its car.
14017 (Fcompleting_read): If defalt is cons, set val to its car.
14018
140192007-10-21 Michael Albinus <michael.albinus@gmx.de>
14020
14021 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
14022
140232007-10-20 Juanma Barranquero <lekktu@gmail.com>
14024
14025 * doc.c (Fdocumentation): Check for advice in all cases.
14026
140272007-10-19 Chong Yidong <cyd@stupidchicken.com>
14028
14029 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
14030
140312007-10-19 Richard Stallman <rms@gnu.org>
14032
14033 * doc.c (Fdocumentation): Check for and handle an advised function.
14034
140352007-10-19 Juanma Barranquero <lekktu@gmail.com>
14036
14037 * process.c (Fset_process_filter): Doc fix.
14038
140392007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
14040
14041 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
14042 which caused key-translation-map to applied repeatedly (thus breaking
14043 double-mode).
14044
140452007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
14046
14047 * xselect.c (x_own_selection, x_handle_selection_clear)
14048 (x_clear_frame_selections):
14049 * w32menu.c (list_of_panes, list_of_items):
14050 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
14051 * textprop.c (validate_plist, interval_has_all_properties)
14052 (interval_has_some_properties, interval_has_some_properties_list)
14053 (add_properties, text_property_list):
14054 * process.c (Fget_buffer_process, list_processes_1, status_notify):
14055 * minibuf.c (Fassoc_string):
14056 * macselect.c (x_own_selection, x_clear_frame_selections)
14057 (Fx_disown_selection_internal):
14058 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
14059 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
14060
140612007-10-17 Chong Yidong <cyd@stupidchicken.com>
14062
14063 * process.c: Link to libs for calling res_init() if available.
14064 (Fmake_network_process): Call res_init() before getaddrinfo or
14065 gethostbyname, if possible.
14066
140672007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
14068
14069 * lread.c (read1): Set pvectype for char_tables.
14070
14071 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
14072 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
14073 Add type checks.
14074 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
14075
14076 * alloc.c (free_misc): Use XMISCTYPE.
14077 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
14078
140792007-10-17 Glenn Morris <rgm@gnu.org>
14080
14081 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
14082 (syms_of_minibuf): Add Qcompletion_ignore_case.
14083 * dired.c (Qcompletion_ignore_case): Change to external.
14084 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
14085 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
14086 (Fread_file_name): Use it rather than intern'ing.
14087
14088 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
14089 (Fread_coding_system): Ignore case of user input.
14090
140912007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14092
14093 * xdisp.c (handle_display_prop): Ignore display specs after
14094 replacing one when string text is being replaced.
14095 (handle_single_display_spec): Pretend as if characters with display
14096 property haven't been consumed only when buffer text is being replaced.
14097
140982007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
14099
14100 * xfns.c (Fx_create_frame, Fx_display_list):
14101 * window.c (window_fixed_size_p, enlarge_window)
14102 (shrink_window_lowest_first):
14103 * macterm.c (init_font_name_table):
14104 * macfns.c (Fx_create_frame, Fx_display_list):
14105 * lread.c (close_load_descs):
14106 * keyboard.c (read_char_x_menu_prompt):
14107 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
14108 * coding.c (code_convert_region_unwind): Test the type of an object
14109 rather than just !NILP before extracting data from it.
14110
14111 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
14112
14113 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
14114 (XMISCANY): New macro.
14115 (XMISCTYPE): Use it.
14116 (struct Lisp_Misc_Any): New type.
14117 (union Lisp_Misc): Use it.
14118 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
14119 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
14120 (find_symbol_value, set_internal, default_value, Fset_default)
14121 (Fmake_variable_buffer_local, Fmake_local_variable)
14122 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
14123 (Flocal_variable_if_set_p, Fvariable_binding_locus):
14124 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
14125 * alloc.c (allocate_buffer): Set the size and tag.
14126 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
14127 Use XMISCANY.
14128 (die): Follow the GNU convention for error messages.
14129 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
14130 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
14131 tag any more.
14132 (set_buffer_internal_1):
14133 * frame.c (store_frame_param):
14134 * eval.c (specbind):
14135 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
14136
14137 * doc.c (Fsnarf_documentation): Simplify.
14138
141392007-10-14 Juanma Barranquero <lekktu@gmail.com>
14140
14141 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
14142 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
14143
141442007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
14145
14146 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
14147
141482007-10-14 Juanma Barranquero <lekktu@gmail.com>
14149
14150 * eval.c (do_autoload): Don't save autoloads.
14151
14152 * data.c (Ffset): Save autoload of the function being set.
14153
141542007-10-07 John Paul Wallington <jpw@pobox.com>
14155
14156 * xfns.c (x_create_tip_frame): Set the `display-type' frame
14157 parameter before setting up faces.
14158
141592007-10-13 Eli Zaretskii <eliz@gnu.org>
14160
14161 * ccl.c (Fregister_code_conversion_map):
14162 * keyboard.c (append_tool_bar_item): Reformat last change.
14163
14164 * lisp.h (eabs): Rename from `abs'. All callers changed.
14165
141662007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
14167
14168 * buffer.c (add_overlay_mod_hooklist):
14169 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
14170 * fontset.c (make_fontset):
14171 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
14172 (append_tool_bar_item):
14173 * macmenu.c (grow_menu_items):
14174 * w32menu.c (grow_menu_items):
14175 * xmenu.c (grow_menu_items): Use larger_vector.
14176
141772007-10-13 Eli Zaretskii <eliz@gnu.org>
14178
14179 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
14180 selected frame'' on MSDOS).
14181
141822007-10-12 Martin Rudalics <rudalics@gmx.at>
14183
14184 * frame.c (Qexplicit_name): New variable.
14185 (x_report_frame_params): Report it in parameter alist.
14186 (syms_of_frame): Intern and staticpro it.
14187
141882007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
14189
14190 * macfns.c (x_create_tip_frame): Set terminal for frame.
14191
141922007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
14193
14194 * frame.c (Qenvironment): Remove.
14195 (syms_of_frame) <Qenvironment>: Don't initialize.
14196 (Fdelete_frame): Don't treat the `environment' param specially.
14197 * frame.h (Qenvironment): Don't declare.
14198 * callproc.c (set_initial_environment): Don't set unused frame param.
14199
14200 * frame.c (Fframe_with_environment): Remove.
14201 (syms_of_frame) <Sframe_with_environment>: Don't declare.
14202
14203 * lisp.h (Fframe_with_environment): Don't declare.
14204
142052007-10-10 Juanma Barranquero <lekktu@gmail.com>
14206
14207 * indent.c (indent_tabs_mode, last_known_column)
14208 (last_known_column_modified): Make static.
14209 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
14210
142112007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
14212
14213 * puresize.h (BASE_PURESIZE): Increase to 1170000.
14214
142152007-10-09 Jason Rumney <jasonr@gnu.org>
14216
14217 * w32term.c (x_set_window_size): Disable code that attempts to tell
14218 Lisp code about a size change before it actually happens.
14219
142202007-10-09 Richard Stallman <rms@gnu.org>
14221
14222 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
14223 return HANDLED_RETURN.
14224
142252007-10-08 Martin Rudalics <rudalics@gmx.at>
14226
14227 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
14228 when there's an unread command event.
14229
14230 * frame.c (focus_follows_mouse): Move here from frame.el to allow
14231 window autoselection act appropriately when leaving selected frame.
14232 (syms_of_frame): Initialize focus_follows_mouse.
14233 * frame.h (focus_follows_mouse): Extern it.
14234 * macterm.c (XTread_socket): When focus_follows_mouse is nil
14235 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
14236 * msdos.c (dos_rawgetc): Likewise.
14237 * w32term.c (w32_read_socket): Likewise.
14238 * xterm.c (handle_one_xevent): Likewise.
14239 * xdisp.c (syms_of_xdisp): In doc-string of
14240 mouse-autoselect-window mention focus-follows-mouse.
14241
142422007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14243
14244 * macterm.c (mac_load_query_font): Fix missing return value.
14245 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
14246 Add BLOCK_INPUT.
14247
142482007-10-08 Richard Stallman <rms@gnu.org>
14249
14250 * xdisp.c (get_window_cursor_type): Implement documented behavior
14251 for cursor-in-non-selected-windows = t.
14252
142532007-10-08 Jason Rumney <jasonr@gnu.org>
14254
14255 * w32.c (w32_get_resource): Always close registry keys.
14256
142572007-10-08 Jason Rumney <jasonr@gnu.org>
14258
14259 * makefile.w32-in (LIBS): Add COMCTL32.
14260
14261 * w32fns.c (globals_of_w32fns): Init common controls.
14262
142632007-10-08 Richard Stallman <rms@gnu.org>
14264
14265 * image.c (our_memory_buffer): Rename from omfib_buffer.
14266
142672007-10-08 Richard Stallman <rms@gnu.org>
14268
14269 * buffer.c (Foverlays_at): Doc fix.
14270
142712007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
14272
14273 * fns.c (Fplist_put): Preserve uneven tail data.
14274
142752007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
14276
14277 * termhooks.h (enum event_kind): Remove trailing comma.
14278
14279 * frame.h (enum): Remove trailing comma.
14280
142812007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14282
14283 * w32proc.c (delete_child): Don't terminate threads of zombies.
14284
142852007-10-08 Martin Rudalics <rudalics@gmx.at>
14286
14287 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
14288
14289 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
14290 last-repeatable-command.
14291 (init_kboard): Initialize Vlast_repeatable_command.
14292 (command_loop_1): Set it to real_this_command unless that was
14293 bound to an input event.
14294 (mark_kboards): Mark it.
14295
142962007-10-08 Richard Stallman <rms@gnu.org>
14297
14298 * eval.c (condition-case): Doc fix.
14299
143002007-10-08 Masatake YAMATO <jet@gyve.org>
14301
14302 * xfaces.c (tty_supports_face_attributes_p): Fix code
14303 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
14304 was copied and not edited.
14305
143062007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
14307
14308 Add new `input-decode-map' keymap and use it for terminal
14309 escape sequences.
14310 * keyboard.h (struct kboard): Add Vinput_decode_map.
14311 Remove Vlocal_key_translation_map.
14312 * keyboard.c (read_key_sequence): Add support for input-decode-map.
14313 (init_kboard): Init input-decode-map.
14314 Replace local-key-translation-map back with key-translation-map.
14315 (syms_of_keyboard): Declare input-decode-map.
14316 Remove local-key-translation-map. Update docstrings.
14317 (mark_kboards): Mark Vinput_decode_map.
14318 Don't mark Vlocal_key_translation_map.
14319 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
14320 Replace local-key-translation-map back with key-translation-map.
14321 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
14322 Bind in input-decode-map rather than function-key-map.
14323
14324 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
14325 This was made redundant by the previous introduction of XSETPVECTYPE.
14326
143272007-10-09 Richard Stallman <rms@gnu.org>
14328
14329 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
14330
143312007-09-29 Richard Stallman <rms@gnu.org>
14332
14333 * eval.c (internal_condition_case_2, internal_condition_case_1)
14334 (internal_condition_case): Reenable abort if x_catching_errors ()
14335 to see if that really happens and why.
14336
143372007-10-06 Andreas Schwab <schwab@suse.de>
14338
14339 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
14340
143412007-10-04 Juanma Barranquero <lekktu@gmail.com>
14342
14343 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
14344
143452007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
14346
14347 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
14348
143492007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
14350
14351 * window.h (struct window):
14352 * window.c (struct save_window_data, struct saved_window):
14353 * termhooks.h (struct terminal):
14354 * process.h (struct Lisp_Process):
14355 * frame.h (struct frame):
14356 * buffer.h (struct buffer):
14357 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
14358 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
14359 The size field of (pseudo)vectors is now unsigned.
14360 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
14361
14362 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
14363 Turn `count' into an integer.
14364
14365 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
14366 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
14367 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
14368 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
14369 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
14370
14371 * alloc.c (allocate_pseudovector): New fun.
14372 (ALLOCATE_PSEUDOVECTOR): New macro.
14373 (allocate_window, allocate_terminal, allocate_frame)
14374 (allocate_process): Use it.
14375 (mark_vectorlike): New function.
14376 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
14377 (mark_terminals): Use it.
14378 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
14379 (Fmake_byte_code): Use XSETPVECTYPE.
14380
14381 * frame.c (Fframe_parameters): Minor simplification.
14382
14383 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
14384
14385 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
14386
14387 * buffer.c (Fget_buffer_create, init_buffer_once):
14388 * lread.c (defsubr):
14389 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
14390
14391 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
14392 defined differently in the m/*.h files.
14393 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
14394 (XSETPVECTYPE): New macro.
14395 (XSETPSEUDOVECTOR): Use it.
14396
14397 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
14398 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
14399
14400 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
14401 * lread.c (defvar_per_buffer):
14402 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
14403
14404 * window.c (candidate_window_p): Only consider as visible frames that
14405 are on the same terminal.
14406
14407 * m/ibms390x.h (MARKBIT): Remove unused macro.
14408
144092007-10-01 Juanma Barranquero <lekktu@gmail.com>
14410
14411 * lread.c (Fload): Fix typo in docstring.
14412
144132007-10-01 Michaël Cadilhac <michael@cadilhac.name>
14414
14415 * floatfns.c (Fexpt): Manually check for overflows, so that a power
14416 of a non-zero value can't yield zero.
14417
144182007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
14419
14420 * term.c (term_clear_mouse_face, term_mouse_highlight)
14421 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
14422
14423 * print.c (safe_debug_print): Use XHASH.
14424
14425 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
14426 Lisp elements such as tags.
14427 (XHASH): New macro.
14428 (EQ): Use it.
14429 (SREF, SSET, STRING_COPYIN): Use SDATA.
14430 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
14431
14432 * alloc.c (mark_terminal): Remove left-over declaration.
14433 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
14434 (allocate_vectorlike): Remove type argument. Adjust callers.
14435 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
14436 Only handle the one remaining MEM_TYPE_VECTORLIKE.
14437
14438 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
14439 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
14440 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
14441 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
14442 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
14443 Use them.
14444
14445 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
14446 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
14447 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
14448
144492007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
14450
14451 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
14452 loaded by default.
14453
144542007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
14455
14456 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
14457 on this tty.
14458 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
14459
14460 * term.c (mouse_face_window): Rename from Qmouse_face_window.
14461 Update all users.
14462 (handle_one_term_event): Use Gpm_DrawPointer.
14463 (Fgpm_mouse_start): Rename from Fterm_open_connection.
14464 Signal errors instead of returning nil. Always return nil.
14465 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
14466 Make it a noop if gpm-mouse was not activated.
14467 (syms_of_term): Update names.
14468
144692007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
14470
14471 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
14472 (init_sys_modes): Check that gpm_tty is the current tty.
14473
14474 * alloc.c (allocate_terminal): Set the vector size to only count the
14475 lisp fields. Initialize those to nil.
14476 (mark_object): Don't treat terminals specially.
14477 (mark_terminal): Remove.
14478 (mark_terminals): Use mark_object instead.
14479
14480 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
14481 the GC to the beginning.
14482
14483 * indent.h:
14484 * indent.c: Use EMACS_INT for ints coming from Elisp data.
14485
14486 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
14487
144882007-09-25 Jason Rumney <jasonr@gnu.org>
14489
14490 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
14491
14492 * w32console.c (create_w32cons_output): Remove.
14493
14494 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
14495
14496 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
14497 (reset_sys_modes): Use reset_terminal_modes_hook.
14498
144992007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
14500
14501 * eval.c (do_autoload): Don't output any message.
14502
145032007-09-24 Juri Linkov <juri@jurta.org>
14504
14505 * emacs.c (standard_args): Change priority of "--no-splash"
14506 from 40 to 3. Add "--no-desktop" with the same priority.
14507
145082007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
14509
14510 * alloc.c (gc_sweep): Check cons cell mark bits word by word
14511 and optimize the case where they are all 1.
14512
145132007-09-23 Johannes Weiner <hannes@saeurebad.de>
14514
14515 * lisp.h (abs): Define if not defined.
14516 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
14517 Don't define `abs', since it's defined in lisp.h.
14518
145192007-09-22 Eli Zaretskii <eliz@gnu.org>
14520
14521 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
14522 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
14523 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
14524 (init_tty): Use DEV_TTY instead of "/dev/tty".
14525 [WINDOWSNT]: No need to protect from NAME arg being null.
14526
145272007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
14528
14529 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
14530 up the tty state.
14531
145322007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
14533
14534 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
14535 (gpm_tty): Change its type.
14536 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
14537 (gpm_tty): Change its type and initialize it.
14538 (Fterm_open_connection): Check the frame is indeed a tty.
14539 Use the new gpm_tty.
14540 (Fterm_close_connection): Use the new gpm_tty.
14541 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
14542 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
14543
145442007-09-21 Juanma Barranquero <lekktu@gmail.com>
14545
14546 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
14547 underline_color, to draw strike-through.
14548
145492007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
14550
14551 * lisp.h (allocate_terminal): Declare.
14552
14553 * window.c (candidate_window_p): Consider frames that are being placed
14554 by the user as somewhere between visible and iconified.
14555 (window_loop): Prefer windows on the current frame.
14556 (Fselect_window): Move the use of select-frame to the beginning so we
14557 can just delegate all the work (it'll call us back anyway).
14558
14559 * frame.c (Qdisplay_environment_variable):
14560 * frame.h (Qdisplay_environment_variable): Delete.
14561
14562 * .gdbinit (xbacktrace): Print the arg's address rather than the value
14563 of the first arg, since that value may be a union.
14564
14565 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
14566 parameter rather than Qdisplay_environment_variable. If all else
14567 fails, look for DISPLAY in initial-environment.
14568
145692007-09-21 Glenn Morris <rgm@gnu.org>
14570
14571 * Makefile.in (emacstool): Remove target.
14572 (lisp, shortlisp): Remove termdev.elc.
14573
145742007-09-21 Markus Triska <markus.triska@gmx.at>
14575
14576 * xterm.c (x_delete_display): Compile session management conditionally.
14577
145782007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
14579
14580 * callproc.c (getenv_internal_1): New function.
14581 (getenv_internal): Use it.
14582 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
14583
14584 * terminal.c (get_terminal): Don't accept ints to represent terminals.
14585 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
14586 (Fset_terminal_parameter): Work with dead terminals as well.
14587 (Fmodify_terminal_parameters): Remove.
14588
14589 * terminal.c (get_terminal): Handle terminals.
14590 Make sure the terminal returned is live.
14591 (create_terminal): Use allocate_terminal.
14592 (mark_terminals): Move to alloc.c.
14593 (delete_terminal): Use terminal->name as liveness status.
14594 NULL out fields after freeing their contents.
14595 Don't deallocate the object.
14596 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
14597 rather than an int.
14598 (Fterminal_live_p): Accept non-integer arguments.
14599 (Fterminal_list): Return terminal objects rather than an ints.
14600
14601 * alloc.c (enum mem_type): New member for `terminal' objects.
14602 (allocate_terminal): New function.
14603 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
14604 Handle terminals.
14605 (mark_terminal): New fun.
14606 (mark_terminals): Move from terminal.c.
14607
14608 * term.c (get_tty_terminal): Don't treat output_initial specially.
14609 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
14610 (delete_tty): Use terminal->name as liveness status.
14611
14612 * termhooks.h (struct terminal): Make it into a pseudovector.
14613 Remove `deleted' replaced by checking `name's nullness.
14614
14615 * print.c (print_object): Handle terminals.
14616
14617 * lisp.h (enum pvec_type): New `terminal' pseudovector.
14618 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
14619
14620 * frame.c (make_terminal_frame):
14621 * keyboard.c (tty_read_avail_input):
14622 * w32term.c (x_delete_terminal):
14623 * xfns.c (Fx_create_frame, x_create_tip_frame):
14624 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
14625
146262007-09-20 Glenn Morris <rgm@gnu.org>
14627
14628 * process.c (Fmake_network_process): Doc fix.
14629
146302007-09-19 Jason Rumney <jasonr@gnu.org>
14631
14632 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
14633
146342007-09-19 Michaël Cadilhac <michael@cadilhac.name>
14635
14636 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
14637 Fix a C warning regarding variable constness.
14638
14639 * xterm.c (handle_one_xevent): Fix a C warning.
14640
146412007-09-18 Jason Rumney <jasonr@gnu.org>
14642
14643 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
14644
146452007-09-17 Jan Djärv <jan.h.d@swipnet.se>
14646
14647 * gtkutil.c (gdpy_def): New variable.
14648 (xg_initialize): Initialize gdpy_def.
14649 (xg_display_close): If no other display exists, set gdpy_def to a
14650 new connection.
14651
146522007-09-16 Jan Djärv <jan.h.d@swipnet.se>
14653
14654 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
14655 when we have no file name for the icon.
14656 (xg_tool_bar_expose_callback): Remove.
14657 (xg_create_tool_bar): Don't connect expose signal to
14658 xg_tool_bar_expose_callback.
14659 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
14660
146612007-09-16 Andreas Schwab <schwab@suse.de>
14662
14663 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
14664 values instead of zapping them.
14665
146662007-09-14 Glenn Morris <rgm@gnu.org>
14667
14668 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
14669 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
14670 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
14671 scope and rename to omfib_buffer for clarity.
14672 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
14673
146742007-09-14 Kenichi Handa <handa@m17n.org>
14675
14676 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
14677
146782007-09-13 Jason Rumney <jasonr@gnu.org>
14679
14680 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
14681
14682 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
14683
14684 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
14685 (mac_term_init): Call here instead, passing rif.
14686
146872007-09-13 Glenn Morris <rgm@gnu.org>
14688
14689 * s/hpux.h: No longer define `static' as nothing.
14690
146912007-09-13 Johan Bockgård <bojohan@gnu.org>
14692
14693 * callint.c (Fcall_interactively): Remove unused var `fun'.
14694
146952007-09-12 Romain Francoise <romain@orebokech.com>
14696
14697 * window.c (prefer_window_split_horizontally, display_buffer):
14698 Revert 2007-09-08 change.
14699
147002007-09-12 Glenn Morris <rgm@gnu.org>
14701
14702 * alloca.c: Remove file.
14703 * Makefile.in (alloca): Do not undef.
14704 (allocaobj, alloca.o): Remove.
14705 (otherobj): Remove allocaobj.
14706 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
14707 * regex.c (C_ALLOCA): Remove all references and code that was only
14708 used when this was defined.
14709 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
14710 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
14711 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
14712
14713 * Makefile.in (SOURCES, unlock, relock): Delete.
14714
14715 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
14716 (menu_grab_callback): All uses changed.
14717
14718 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
14719 (x_reply_selection_request): All uses changed.
14720
147212007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
14722
14723 * lread.c (load_warn_old_style_backquotes): Change message to look
14724 better when it appears in the middle of byte-compiler messages.
14725
147262007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
14727
14728 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
14729
14730 * xterm.c (x_create_terminal): Add comment.
14731
14732 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
14733
147342007-09-10 Richard Stallman <rms@gnu.org>
14735
14736 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
14737
147382007-09-10 Michaël Cadilhac <michael@cadilhac.name>
14739
14740 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
14741 (DEFUN): Document `intspec', use it instead of `prompt'.
14742
14743 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
14744
14745 * data.c (Finteractive_form): If the interactive specification starts
14746 with a `(', use it as a Lisp form.
14747
14748 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
14749 name and file modes.
14750
14751 * callint.c (Fcall_interactively): Comment fixes.
14752
147532007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
14754
14755 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
14756 and compiled functions.
14757
147582007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
14759
14760 * window.c (prefer_window_split_horizontally): New variable.
14761 (display_buffer): Consider splitting window horizontally depending
14762 on prefer_window_split_horizontally.
14763
147642007-09-08 Eli Zaretskii <eliz@gnu.org>
14765
14766 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
14767
147682007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14769
14770 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
14771
14772 * frame.c (x_set_frame_parameters): Check number is positive before
14773 using XFASTINT.
14774
14775 * window.c (freeze_window_start): Don't presume selected_window holds
14776 a window object.
14777 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
14778
147792007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
14780
14781 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
14782
147832007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
14784
14785 * window.c (Vsplit_window_preferred_function): New var.
14786 (Fdisplay_buffer): Use it.
14787 (syms_of_window): Export, and initialize it.
14788
147892007-09-06 Pixel <pixel@mandriva.com> (tiny change)
14790
14791 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
14792
147932007-09-06 Glenn Morris <rgm@gnu.org>
14794
14795 * gtkutil.c (menu_grab_callback) <cnt>:
14796 * xselect.c (x_reply_selection_request) <cnt>: Move static
14797 variable to file scope.
14798
147992007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
14800
14801 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
14802 consistent values of selected_frame and selected_window.
14803
148042007-09-04 Jason Rumney <jasonr@gnu.org>
14805
14806 * w32console.c (initialize_w32_display): Zero unused hooks.
14807
148082007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
14809
14810 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
14811 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
14812
148132007-09-04 Jason Rumney <jasonr@gnu.org>
14814
14815 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
14816 in w32console.c. Set up input. Remove XXX comments that have been
14817 confirmed as correct.
14818
14819 * s/ms-w32.h (MULTI_KBOARD): Define.
14820
14821 * w32console.c (one_and_only_w32cons): Remove.
14822 (initialize_w32_display): Take terminal argument.
14823
14824 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
14825 initialize_w32_display.
14826 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
14827
14828 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
14829
14830 * keyboard.c (discard_mouse_events): Discard it.
14831 (make_lispy_event): Translate it to a lisp event.
14832 (lispy_wheel_names): Add wheel-left and right events.
14833 (syms_of_keyboard): Enlarge wheel_syms.
14834
14835 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
14836 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
14837
14838 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
14839
14840 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
14841 from WM_MOUSEHWHEEL.
14842 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
14843
14844 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
14845 terminal.
14846
14847 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
14848 keyboard for the terminal.
14849
148502007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
14851
14852 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
14853 (Vresume_tty_hook): Rename from Vresume_tty_functions.
14854 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
14855 and resume-tty-function to resume-tty-hook.
14856 (Fsuspend_tty, Fresume_tty): Use new names.
14857
148582007-09-02 Jan Djärv <jan.h.d@swipnet.se>
14859
14860 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
14861 if it starts with "n:".
14862
148632007-08-31 Jan Djärv <jan.h.d@swipnet.se>
14864
14865 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
14866
148672007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
14868
14869 * frame.h:
14870 * frame.c (Qterm_environment_variable): Remove.
14871 (syms_of_frame): Don't init and staticpro it.
14872
14873 * callproc.c (getenv_internal): Remove special case for $TERM.
14874
14875 * callproc.c (Vinitial_environment): New variable.
14876 (set_initial_environment): Initialize it.
14877 (syms_of_callproc): Declare it.
14878 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
14879 TERM under which a process runs is never related to the TERM in which
14880 Emacs is running.
14881
148822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
14883
14884 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
14885 * s/darwin.h: ... do it here.
14886
148872007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
14888
14889 * lisp.h (set_initial_environment): Rename from set_global_environment.
14890
14891 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
14892 removed by mistake on the multi-tty branch.
14893
14894 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
14895 (Fmodify_frame_parameters): Return a value.
14896
14897 * image.c (png_load): Comment-out var only used in commented-out code.
14898
14899 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
14900 before passing it to mark_object.
14901
14902 * xfaces.c (internal_resolve_face_name): Return a value.
14903 (internal_resolve_face_name, resolve_face_name_error): Comment out.
14904
14905 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
14906 (x_icon): Comment-out var only used in commented-out code.
14907
149082007-08-29 Romain Francoise <romain@orebokech.com>
14909
14910 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
14911 QUIT hasn't been provided.
14912
149132007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
14914
14915 * callproc.c (child_setup, getenv_internal): Use the
14916 display-environment-variable and term-environment-variable frame params.
14917 (set_initial_environment): Initialise Vprocess_environment.
14918
14919 * config.in: Disable multi-keyboard support on a mac.
14920
14921 * frame.c (Qterm_environment_variable)
14922 (Qdisplay_environment_variable): New variables.
14923 (syms_of_frame): Intern and staticpro them.
14924 (Fmake_terminal_frame): Disable output method test.
14925
14926 * frame.h: Declare them here.
14927
14928 * macfns.c (x_set_mouse_color): Get rif from the frame.
14929 (x_set_tool_bar_lines): Don't use updating_frame.
14930 (mac_window): Add 2 new parameters for consistency with other systems.
14931 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
14932 frame parameters following what is done in X11 and w32. Don't use
14933 FRAME_MAC_DISPLAY_INFO.
14934 (Fx_open_connection, start_hourglass): Remove window-system check.
14935 (x_create_tip_frame): Get the keyboard from the terminal.
14936
14937 * macmenu.c: Reorder includes.
14938 (Fx_popup_menu): Use terminal specific mouse_position_hook.
14939
14940 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
14941 terminal parameter.
14942 (x_clear_frame): Add a frame parameter.
14943 (note_mouse_movement): Get rif from the frame.
14944 (mac_term_init): Initialize the terminal.
14945 (mac_initialize): Make static and move terminal initialization ...
14946 (mac_create_terminal): ... to this new function.
14947
14948 * macterm.h (struct mac_display_info): Add terminal.
14949 (mac_initialize): Delete declaration.
14950
14951 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
14952
14953 * sysdep.c: Comment out text after #endif.
14954
14955 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
14956 is defined. Better initialize ttys in windows. Use terminal
14957 specific mouse_position_hook.
14958
14959 * termhooks.h (union display_info): Add mac_display_info.
14960
14961 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
14962 Set the default minibuffer frame, window_system and the rest of the
14963 frame parameters following what is done in X11.
14964
14965 * w32term.c (w32_initialize): Make static.
14966
14967 * xselect.c (x_handle_selection_clear): Only access
14968 terminal->kboard when MULTI_KBOARD is defined.
14969
14970 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
14971 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
14972
149732007-08-29 Jason Rumney <jasonr@gnu.org>
14974
14975 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
14976 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
14977
14978 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
14979 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
14980
14981 * keyboard.c (restore_kboard_configuration): Only define when
14982 MULTI_KBOARD defined.
14983
14984 * makefile.w32-in: Update dependancies from Makefile.in.
14985 (OBJ1): Add terminal.$(O)
14986
14987 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
14988 Don't define function body.
14989 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
14990
14991 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
14992
14993 * w32.c (request_sigio, unrequest_sigio): Remove.
14994
14995 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
14996 (w32con_clear_frame, w32con_clear_end_of_line)
14997 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
14998 (w32con_delete_glyphs, w32con_set_terminal_window)
14999 (scroll_line, w32_sys_ring_bell): Add frame arg.
15000 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
15001 Add terminal arg.
15002 (PICK_FRAME): Remove.
15003 (w32con_write_glyphs): Use frame specific terminal coding.
15004 (one_and_only_w32cons): New global variable.
15005 (initialize_w32_display): Use it for storing hooks.
15006 (create_w32cons_output): New function.
15007
15008 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
15009 arg a frame.
15010
15011 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
15012 Set window_system.
15013 (x_set_tool_bar_lines): Don't use updating_frame.
15014 (Fx_create_frame): Set terminal and ref count.
15015 (Fx_open_connection): Remove window-system check.
15016
15017 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
15018
15019 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
15020 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
15021 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
15022 Add frame arg.
15023 (x_delete_terminal, w32_create_terminal): New functions.
15024 (w32_term_init): Create a terminal.
15025 (w32_initialize): Move terminal specific initialization to
15026 w32_create_terminal.
15027
15028 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
15029 (w32_clear_rect, w32_clear_area): Use background from frame.
15030 (w32_display_info): Add terminal.
15031 (w32_sys_ring_bell, x_delete_display): Declare here.
15032
15033 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
15034
15035 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
15036
150372007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
15038
15039 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
15040 Fix get_named_tty calls for the controlling tty.
15041
150422007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
15043
15044 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
15045
150462007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
15047
15048 * term.c (tty_insert_glyphs): Add missing first parameter.
15049
150502007-08-29 Károly Lőrentey <karoly@lorentey.hu>
15051
15052 * buffer.c (Fbuffer_list, Fbury_buffer):
15053 Take frame->buried_buffer_list into account.
15054
15055 * cm.c (current_tty): New variable, for cmputc().
15056 (cmputc): Use it.
15057 (cmcheckmagic): Add tty parameter, look up terminal streams there.
15058 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
15059 (cmgoto): Add tty parameter. Pass it on to calccost().
15060 Use emacs_tputs() instead of tputs().
15061
15062 * cm.h (emacs_tputs): New macro to set current_tty, and then call
15063 tputs().
15064 (current_tty): New variable, for cmputc().
15065 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
15066
15067 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
15068 (internal_condition_case, internal_condition_case_1)
15069 (internal_condition_case_2): Don't abort when x_catching_errors.
15070
15071 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
15072 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
15073 prevent crashes caused by bogus longjmps in read_char.
15074
15075 * keymap.h (Fset_keymap_parent): Add EXFUN.
15076
15077 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
15078 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
15079 Remove redundant definition.
15080
15081 * macfns.c (x_set_mouse_color, x_make_gc):
15082 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15083
15084 * w32term.c (x_free_frame_resources):
15085 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15086 (w32_initialize): Use the accessor macros for terminal characteristics.
15087
15088 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
15089 Use the accessor macros for terminal characteristics.
15090 * msdos.c (internal_terminal_init): Use the accessor macros for
15091 terminal characteristics.
15092 (ScreenVisualBell, internal_terminal_init):
15093 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15094
15095 * termopts.h (no_redraw_on_reenter): Declare.
15096
15097 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
15098 (mark_terminals, mark_ttys): Declare.
15099 (Fgarbage_collect): Call them.
15100 (mark_object): Mark buried_buffer_list.
15101
15102 * prefix-args.c: Include stdlib.h for exit.
15103
15104 * syssignal.h: Add comment.
15105
15106 * indent.c: Include stdio.h.
15107
15108 * window.h (Vinitial_window_system): Declare.
15109 (Vwindow_system): Delete declaration.
15110
15111 * fontset.c (Finternal_char_font): Use FRAME_RIF.
15112
15113 * image.c (lookup_image): Don't initialize `c' until the xasserts
15114 have been run.
15115
15116 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
15117 FRAME_FOREGROUND_PIXEL.
15118
15119 * print.c (print_preprocess): Don't lose print_depth levels while
15120 iterating.
15121
15122 * widget.c (update_from_various_frame_slots):
15123 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15124
15125 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
15126 frames.
15127 (window_internal_height): Remove bogus make_number call.
15128 (init_window_once): Call make_terminal_frame with two zero parameters.
15129
15130 * fileio.c (Fread_file_name): Update comment.
15131
15132 * callint.c (Fcall_interactively):
15133 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
15134 Make sure it is correctly unwound.
15135
15136 * xsmfns.c (x_session_close): New function.
15137
15138 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
15139 Delete declarations.
15140
15141 * xterm.h: Remove declaration for x_fully_uncatch_errors.
15142 (x_output): Remove background_pixel and foreground_pixel fields.
15143 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
15144 (x_delete_device, x_session_close): Declare.
15145
15146 * lread.c: Include setjmp.h. Update declaration of `read_char'.
15147 (read_filtered_event): Call `read_char' with a local
15148 `wrong_kboard_jmpbuf'.
15149
15150 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
15151 Don't call single_kboard_state. Use FRAME_RIF.
15152
15153 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
15154 systems.
15155
15156 * lisp.h (set_process_environment): Rename to `set_global_environment'.
15157 (Fframe_with_environment, Fset_input_meta_mode)
15158 (Fset_quit_char): EXFUN.
15159 (x_create_device, tty_output, terminal, tty_display_info): Declare.
15160 (init_sys_modes, reset_sys_modes): Update prototypes.
15161 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
15162
15163 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
15164 Vlocal_key_translation_map, and Vkeyboard_translate_table.
15165 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
15166 Delete declarations.
15167 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
15168 (temporarily_switch_to_single_kboard, tty_read_avail_input):
15169 New declarations.
15170
15171 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
15172 already does that during init_display(). Call syms_of_keymap
15173 before syms_of_keyboard. Call `syms_of_terminal'.
15174 Call set_initial_environment, not set_process_environment.
15175 (shut_down_emacs): Call reset_all_sys_modes() instead of
15176 reset_sys_modes().
15177
15178 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
15179 (internal_resolve_face_name, resolve_face_name_error): New functions.
15180 (resolve_face_name): Protect against loops and errors thrown by Fget.
15181 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
15182 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
15183
15184 * scroll.c: Replace CURTTY() with local variables throughout the
15185 file (where applicable).
15186 (calculate_scrolling, calculate_direct_scrolling)
15187 (scrolling_1, scroll_cost): Use the accessor macros for terminal
15188 characteristics.
15189
15190 * keymap.c (Vfunction_key_map): Remove.
15191 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
15192 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
15193 (Vkey_translation_map): Remove.
15194 (syms_of_keymap): Remove DEFVAR for key-translation-map.
15195 (Fdescribe_buffer_bindings)
15196 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
15197 Update for terminal-local key-translation-map.
15198
15199 * Makefile.in (callproc.o): Update dependencies.
15200 (lisp, shortlisp): Add termdev.elc.
15201 (obj): Add terminal.o.
15202 (terminal.o): Add dependencies.
15203 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
15204 (data.o, fns.o): Add termhooks.h dependency.
15205 (SOME_MACHINE_LISP): Add dnd.elc.
15206 (minibuf.o): Fix typo.
15207 Update dependencies.
15208
15209 * data.c (do_symval_forwarding, store_symval_forwarding)
15210 (find_symbol_value): Use the selected frame's keyboard, not
15211 current_kboard.
15212
15213 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
15214 Vwindow_system.
15215
15216 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
15217 Fmenu_bar_open.
15218 (syms_of_xmenu): Update defsubr.
15219 (mouse_position_for_popup, Fx_popup_menu)
15220 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
15221 (set_frame_menubar, free_frame_menubar)
b97439ce 15222 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
15223 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
15224 an X frame.
15225
15226 * xselect.c (x_own_selection): Abort if not an X frame.
15227 (some_frame_on_display): Check if it is an X frame.
15228 (x_handle_selection_clear): Deal with MULTI_KBOARD.
15229
15230 * coding.c: Include frame.h and termhooks.h.
15231 (terminal_coding, keyboard_coding): Delete.
15232 (Fset_terminal_coding_system_internal)
15233 (Fset_keyboard_coding_system_internal)
15234 (Fkeyboard_coding_system)
15235 (Fterminal_coding_system): Add a terminal parameter.
15236 Get terminal_coding from the terminal.
15237 (init_coding_once): Don't call setup_coding_system here.
15238
15239 * dispextern.h (set_scroll_region, turn_off_insert)
15240 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
15241 (tty_clear_end_of_line, tty_setup_colors)
15242 (delete_tty, updating_frame)
15243 (produce_special_glyphs, produce_glyphs, write_glyphs)
15244 (insert_glyphs): Remove.
15245 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
15246 (tty_turn_off_highlight, get_tty_size): Add declaration.
15247 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
15248
15249 * frame.h (enum output_method): Add output_initial.
15250 (struct x_output): Delete.
15251 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
15252 Access foreground_pixel and background_pixel directly from the frame.
15253 (tty_display): Delete.
15254 (struct frame): Add buried_buffer_list, foreground_pixel,
15255 background_pixel and terminal. Delete kboard.
15256 (union output_data): Add tty.
15257 (FRAME_KBOARD): Get the kboard from the terminal.
15258 (FRAME_INITIAL_P): New macro.
15259 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
15260 (Qterm_environment_variable, Qdisplay_environment_variable)
15261 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
15262 New declarations.
15263
15264 * termchar.h (tty_output, tty_display_info): New structures.
15265 (tty_list): Declare.
15266 (FRAME_TTY, CURTTY): New macros.
15267 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
15268 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
15269 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
15270 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
15271
15272 * callproc.c: Include frame.h and termhooks.h, for terminal
15273 parameters.
15274 (add_env): New function.
15275 (child_setup): Use it.
15276 (child_setup, getenv_internal): Handle the new Vprocess_environment.
15277 (getenv_internal): Fix get_terminal_param call.
15278 (Fgetenv_internal, egetenv): Update doc.
15279 (syms_of_callproc): Initialize Vprocess_environment to nil.
15280 Register and initialize them. Remove obsolete defvars. Update doc
15281 strings.
15282 (child_setup): Handle Vlocal_environment_variables.
15283 (getenv_internal): Add terminal parameter.
15284 Handle Vlocal_environment_variables.
15285 (Fgetenv_internal): Add terminal parameter.
15286 (child_setup, getenv_internal, Fgetenv_internal): Store the local
15287 environment in a frame (not terminal) parameter. Update doc strings.
15288 (set_initial_environment): Rename from set_global_environment.
15289 Store Emacs environment in initial frame parameter.
15290
15291 * xdisp.c (redisplay_internal): Update references to
15292 `previous_terminal_frame'.
15293 (display_mode_line, Fformat_mode_line): Replace calls to
15294 `push_frame_kboard' with `push_kboard'.
15295 (get_glyph_string_clip_rects): Add extra parentheses and
15296 braces to prevent compiler warnings.
15297 (calc_pixel_width_or_height): Add xassert to check that the
15298 frame is alive. Don't call `lookup_image' on a termcap frame.
15299 (message2_nolog, message3_nolog, redisplay_internal)
15300 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
15301 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
15302 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
15303 (Fx_display_pixel_width, Fx_display_pixel_height)
15304 (Fx_display_planes, Fx_display_color_cells)
15305 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
15306 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
15307 (Fx_display_backing_store, Fx_display_visual_class)
15308 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
15309 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
15310
15311 * xfns.c (x_set_foreground_color x_set_background_color)
15312 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
15313 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15314 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
15315 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
15316 terminal that is being deleted.
15317 (Fx_create_frame): Use `store_frame_param' to set `window-system'
15318 frame parameter, and make sure it overrides any user-supplied setting.
15319 (Fx_close_connection, Fx_synchronize): Unify argument names with
15320 the rest of the DEFUNs.
15321
15322 * dispnew.c (Fsend_string_to_terminal): Update call to
15323 `get_tty_terminal'.
15324 (Fredraw_frame, Fsend_string_to_terminal)
15325 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
15326 FRAME_TERMCAP_P and FRAME_TTY.
15327 (window_change_signal): Don't believe width/height values that are
15328 impossibly small.
15329 (Vinitial_window_system): Rename from Vwindow_system.
15330 (termscript, Wcm, rif): Delete.
15331
15332 * termhooks.h (struct terminal): New struct containing the
15333 previously global text display hooks and new members NAME,
15334 DELETED and PARAM_ALIST.
15335 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
15336 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
15337 (FRAME_RIF): New macros.
15338 (get_terminal_param, get_device): New declarations.
15339 (termscript): Delete declaration.
15340
15341 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
15342 (XTflash, x_free_frame_resources, x_scroll_bar_create)
15343 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
15344 FRAME_FOREGROUND_PIXEL.
15345 (x_fully_uncatch_errors): Disable definition.
15346 (x_scroll_bar_expose): Fix reference to foreground pixel.
15347 (XTread_socket): Disable loop on all X displays.
15348 (x_delete_terminal): Don't set terminal->deleted and let
15349 delete_terminal delete the frames on the terminal.
15350 (x_delete_display): Doc update to reflect changes in
15351 delete_terminal.
15352 (x_display_info) <terminal>: Move member earlier in the struct.
15353 (deleting_tty): Remove old variable.
15354 (Fsuspend_tty): Call clear_tty_hooks.
15355 (Fresume_tty, init_tty): Call set_tty_hooks.
15356 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
15357 errors on X frames.
15358 (x_catch_errors_unwind): Abort if x_error_message is NULL.
15359 (handle_one_xevent): Initialize `f' to NULL.
15360 (x_delete_terminal, x_create_terminal): New functions.
15361 (XTset_terminal_modes, XTreset_terminal_modes)
15362 (XTread_socket, x_connection_closed, x_term_init)
15363 (x_term_init, x_delete_display): Add terminal parameter.
15364 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
15365 X connections.
15366
15367 * frame.c: Include termchar.h.
15368 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
15369 (Qwindow_system, Qenvironment, Qterm_environment_variable)
15370 (Qdisplay_environment_variable): New vars.
15371 (Fframep): Deal with output_initial.
15372 (Fframe-live-p): Doc fix.
15373 (Fwindow-system): New function.
15374 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
15375 (make_terminal_frame): Don't create frames on a terminal that is
15376 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
15377 (store_frame_param): Check for found_for_frame before calling XFRAME.
15378 (Fmake_terminal_frame): Handle NULL tty names correctly.
15379 (syms_of_frame): Enhance doc string of `default-frame-alist'.
15380 (Fdelete_frame): Remove unused variable `count'. Don't allow other
15381 frames to refer to a deleted frame in their 'environment parameter.
15382 (Fframe_with_environment): New function.
15383 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
15384 (get_future_frame_param): New function.
15385 (Fmake_terminal_frame): Use it.
15386 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
15387
15388 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
15389 * sysdep.c (reset_sys_modes): Update for renames.
15390
15391 * keyboard.c (tty_read_avail_input): New function.
15392 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
15393 (syms_of_keyboard): Defsubr them.
15394 (Fset_input_meta_mode, Fset_quit_char): New functions.
15395 (Fset_input_mode): Split to above functions.
15396 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
15397 parameter. Use it in call to `read_char'.
15398 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
15399 Set wrong_kboard_jmpbuf correctly in recursive calls.
15400 Use current_kboard to access Vkeyboard_translate_table.
15401 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
15402 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
15403 Update longjmp invocations. Remember the original current_kboard,
15404 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
15405 changes it. Comment out unnecessary calls to
15406 `record_single_kboard_state' and `any_kboard_state'.
15407 Update recursive calls.
15408 (wrong_kboard_jmpbuf): Remove global variable.
15409 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
15410 Handle deleted interrupted_kboards correctly; that is a legal
15411 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
15412 and read_char calls. Abort if interrupted_kboard died in read_char.
15413 (any_kboard_state, single_kboard_state)
15414 (push_frame_kboard): Remove function.
15415 (pop_kboard): Switch out of single_kboard mode if the kboard has
15416 been deleted. Remove unused variable. Help debugging by not
15417 changing current_kboard unnecessarily. Set current_kboard to the
15418 kboard of the selected frame when the stored kboard object has
15419 been deleted before pop_kboard.
15420 (temporarily_switch_to_single_kboard): Change first parameter to a
15421 frame pointer. Throw an error when caller wants to change kboards
15422 while in single_kboard mode. Don't push_kboard if we weren't in
15423 single kboard state. Don't pop_kboard if we popped into any
15424 kboard state.
15425 (restore_kboard_configuration): Abort if pop_kboard changed the
15426 kboard in single_kboard mode. Call pop_kboard only after setting
15427 up single_kboard mode.
15428 (Frecursive_edit): Switch to single_kboard mode only in nested
15429 command loops.
15430 (cmd_error, command_loop, command_loop_1, timer_check):
15431 Comment out unnecessary call to `any_kboard_state' and
15432 `record_single_kboard_state'.
15433 (delete_kboard): Exit single_kboard mode if we have just deleted
15434 that kboard. Use FRAME_KBOARD.
15435 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
15436 `fatal_error_signal'.
15437 (record_single_kboard_state): Don't push_kboard if we weren't in
15438 single kboard state. Don't pop_kboard if we popped into any
15439 kboard state.
15440 (push_frame_kboard): Rename to push_kboard.
15441 (kbd_buffer_get_event): Use FRAME_TERMINAL.
15442 (read_avail_input): Read input from all terminals.
15443 (mark_kboards): Also mark Vkeyboard_translate_table.
15444 (kbd_buffer_store_event_hold): Simplify condition.
15445 (read_key_sequence): Reinitialize fkey and keytran at each replay.
15446 (Vkeyboard_translate_table): Move to struct kboard.
15447 (init_kboard): Initialize Vkeyboard_translate_table.
15448 (syms_of_keyboard): Use DEFVAR_KBOARD to define
15449 Vkeyboard_translate_table. Update doc strings. Update docs of
15450 local-function-key-map and function-key-map.
15451
15452 * terminal.c: New file.
15453
15454 * term.c: Include errno.h.
15455 (Vring_bell_function, device_list, initial_device)
15456 (next_device_id, ring_bell, update_begin, update_end)
15457 (set_terminal_window, cursor_to, raw_cursor_to)
15458 (clear_to_end, clear_frame, clear_end_of_line)
15459 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
15460 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
15461 (syms_of_term): Move their initialization to terminal.c.
15462 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
15463 (Ftty_display_color_cells)
15464 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
15465 (clear_tty_hooks, set_tty_hooks)
15466 (init_tty, maybe_fatal): New functions.
15467 (Ftty_type): Return nil if terminal is not on a tty instead of
15468 throwing an error. Doc update.
15469 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
15470 Doc update. Initialize new subrs and variables.
15471 (delete_tty): Use terminal->deleted.
15472 (tty_set_terminal_modes): Rename from set_terminal_modes.
15473 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
15474 (set_scroll_region): Rename to `tty_set_scroll_region'.
15475 (turn_on_insert): Rename to `tty_turn_on_insert'.
15476 (turn_off_insert): Rename to `tty_turn_off_insert'.
15477 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
15478 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
15479 (toggle_highligh): Rename to `tty_toggle_highlight'.
15480 (background_highlight): Rename to `tty_background_highlight'.
15481 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
15482 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
15483 (tty_set_scroll_region, tty_background_highlight)
15484 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
15485 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
15486 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
15487 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
15488 Add static modifier.
15489 (tty_reset_terminal_modes, tty_set_terminal_window)
15490 (tty_set_scroll_region, tty_background_highlight)
15491 (tty_highlight_if_desired, tty_cursor_to)
15492 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
15493 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
15494 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
15495 renames.
15496
154972007-08-28 Jan Djärv <jan.h.d@swipnet.se>
15498
15499 * keyboard.c: Qrtl is new.
15500 (parse_tool_bar_item): Handle :rtl keyword.
15501 (syms_of_keyboard): Intern :rtl keyword.
15502
15503 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
15504
15505 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
15506 so no Lisp code is executed.
15507 (file_for_image, find_rtl_image): New functions.
15508 (xg_get_image_for_pixmap): Use file_for_image.
15509 (update_frame_tool_bar): If direction is RTL, use RTL image if
15510 defined. Use Gtk stock images if defined.
15511
155122007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15513
15514 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
15515 for nonexistent or zero-width glyph in composition glyph.
15516
155172007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
15518
15519 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
15520
15521 * xdisp.c (Finvisible_p): New function.
15522 (syms_of_xdisp): defsubr it.
15523
155242007-08-24 Juanma Barranquero <lekktu@gmail.com>
15525
15526 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
15527 Doc fixes.
15528
155292007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15530
15531 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
15532
155332007-08-24 Martin Rudalics <rudalics@gmx.at>
15534
15535 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
15536 whether decoding has modified buffer contents.
15537
155382007-08-24 Jason Rumney <jasonr@gnu.org>
15539
15540 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
15541 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
15542 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
15543 (init_svg_functions) [HAVE_NTGUI]: New function.
15544 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
15545 (svg_load_image): Use them.
15546 (svg_load_image) [HAVE_NTGUI]: Implement background.
15547
155482007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15549
15550 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
15551 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
15552 (LIBX): Remove @RSVG_LIBS@.
15553 (LIBES): Add $(RSVG_LIBS).
15554
15555 * image.c (svg_load_image): Blend with specified background if exists.
15556 Use IMAGE_BACKGROUND. Add Mac OS Support.
15557
15558 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
15559 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
15560 Remove macros.
15561 [MAC_OSX] (socket_callback): Do nothing.
15562 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
15563 ReceiveNextEvent.
15564 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
15565 socket_callback.
15566 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
15567
155682007-08-22 Glenn Morris <rgm@gnu.org>
15569
15570 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
15571
155722007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
15573
15574 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
15575
15576 * image.c: Add support for SVG images. Some additional comments
15577 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
15578 (svg_image_p): New function to test for SVG image.
15579 (svg_load): New function to load SVG image.
15580 (svg_load_image): New function, helper for svg_load.
15581 (Qsvg): New Lisp_object.
15582 (svg_keyword_index): New enum.
15583 (svg_format): New static `image_keyword' struct.
15584 (svg_type): New static `image_type' struct.
15585 (librsvg/rsvg.h): Include it.
15586
155872007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
15588
15589 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
15590
155912007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
15592
15593 * lread.c (Qold_style_backquotes): New var.
15594 (syms_of_lread): Init and staticpro it.
15595 (load_warn_old_style_backquotes): New fun.
15596 (Fload): Use them to warn about old style backquotes.
15597 (end_of_file_error, Fload): Remove unused vars.
15598
15599 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
15600
15601 * lread.c (Vold_style_backquotes): New var.
15602 (syms_of_lread): Init and export it to Elisp.
15603 (read1): Set it when we find an old-style (back)quote.
15604
156052007-08-22 Jason Rumney <jasonr@gnu.org>
15606
15607 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
15608
156092007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
15610
15611 * puresize.h (BASE_PURESIZE): Increase to 1140000.
15612
156132007-08-19 Richard Stallman <rms@gnu.org>
15614
15615 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
15616
156172007-08-19 Andreas Schwab <schwab@suse.de>
15618
15619 * alloc.c (pure): Round PURESIZE up.
15620
156212007-08-17 Jan Djärv <jan.h.d@swipnet.se>
15622
15623 * xterm.c (handle_one_xevent): Remove check that mouse click is in
15624 active frame.
15625
156262007-08-16 Richard Stallman <rms@gnu.org>
15627
15628 * eval.c (Fcommandp): Add parens to clarify.
15629
15630 * minibuf.c (Fall_completions): Use enum for type of table.
15631
15632 * emacs.c (USAGE2): Improve text.
15633
156342007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
15635
15636 * term.c (tty_default_color_capabilities): Declare static
15637 variables in file scope, to avoid HPUX compiler problem.
15638
156392007-08-13 Jan Djärv <jan.h.d@swipnet.se>
15640
15641 * gtkutil.c (update_frame_tool_bar): Use -1 as index
15642 to gtk_toolbar_insert.
15643
156442007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
15645
15646 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
15647
15648 * insdel.c (reset_var_on_error): New fun.
15649 (signal_before_change, signal_after_change):
15650 Use it to reset (after|before)-change-functions to nil in case of error.
15651 Bind inhibit-modification-hooks to t.
15652 Don't bind (after|before)-change-functions to nil while they run.
15653
156542007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15655
15656 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
15657 filling pixmap with stippled background.
15658
156592007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15660
15661 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
15662 Don't use invisible frame as parent window for repositioning.
15663
156642007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
15665
15666 * print.c (new_backquote_output): Rename from old_backquote_output.
15667 (print): Inverse its logic (according to its name) so as to match the
15668 behavior of new_backquote_flag in lread.c.
15669
156702007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15671
15672 * gmalloc.c (posix_memalign): New function.
15673
15674 * macterm.c (frame_highlight, frame_unhighlight): Don't call
15675 ActivateControl/DeactivateControl here.
15676 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
15677 frame-notice-user-settings is non-nil.
15678 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
15679 for kEventParamFMFontStyle.
15680 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
15681 mac_pass_command_to_system and mac_pass_control_to_system here.
15682 (XTread_socket): Call ActivateControl/DeactivateControl here.
15683 (XTread_socket) [TARGET_API_MAC_CARBON]:
15684 Check mac_pass_command_to_system and mac_pass_control_to_system here.
15685 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
15686 for window repositioning.
15687
156882007-08-08 Glenn Morris <rgm@gnu.org>
15689
15690 * Replace `iff' in doc-strings and comments.
15691
156922007-08-07 Chong Yidong <cyd@stupidchicken.com>
15693
15694 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
15695
156962007-08-07 Martin Rudalics <rudalics@gmx.at>
15697
15698 * fileio.c (Finsert_file_contents): Run format-decode and
15699 after_insert_file_functions on entire buffer when REPLACE is
15700 non-nil and inhibit modification_hooks and point_motion_hooks.
15701 For consistency, run after_insert_file_functions iff something
15702 got inserted. Move signal_after_change and update_compositions
15703 after code running after_insert_file_functions. Make sure that
15704 undo_list doesn't record intermediate steps of the decoding process.
15705
157062007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15707
15708 * emacs.c (main)
15709 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
15710 Call malloc_enable_thread on interactive startup.
15711
15712 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
15713 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
15714 [USE_PTHREAD]: Conditionalize with it.
15715 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
15716 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
15717 New functions.
15718
157192007-08-06 Chong Yidong <cyd@stupidchicken.com>
15720
15721 * xdisp.c (redisplay_window): When restoring original buffer
15722 position, make sure it is still valid.
15723
15724 * image.c (png_load): Ignore png-supplied background color.
15725
157262007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15727
15728 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
15729 Use kCFAbsoluteTimeIntervalSince1970.
15730
15731 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
15732 New variable.
15733 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
15734 event loop should be quit.
15735 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
15736 Quit dialog event loop if quit_dialog_event_loop is set.
15737
15738 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
15739 (Selection): New typedef. Use instead of ScrapRef.
15740 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
15741 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
15742 (mac_clear_selection): Rename from clear_scrap.
15743 (get_flavor_type_from_symbol): New argument SEL and subsume function of
15744 scrap_has_target_type. All uses changed.
15745 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15746 (mac_selection_has_target_p): New functions.
15747 (mac_put_selection_value): Rename from put_scrap_string.
15748 (mac_get_selection_value): Rename from get_scrap_string.
15749 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
15750 (put_scrap_private_timestamp, scrap_has_target_type)
15751 (get_scrap_private_timestamp): Remove functions.
15752 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
15753 (x_own_selection, x_get_local_selection):
15754 Use mac_valid_selection_value_p.
15755 (x_own_selection): Don't use put_scrap_private_timestamp.
15756 Record OWNERSHIP-INFO into Vselection_alist instead.
15757 (x_get_local_selection): Don't check type if request is local.
15758 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
15759 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
15760
157612007-08-04 Jan Djärv <jan.h.d@swipnet.se>
15762
15763 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
15764 add comment explaining why.
15765
157662007-08-03 Richard Stallman <rms@gnu.org>
15767
15768 * fileio.c (Fvisited_file_modtime): Use make_time.
15769
157702007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
15771
15772 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
15773 build.
15774
157752007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
15776
15777 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
15778
157792007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
15780
15781 * puresize.h (BASE_PURESIZE): Increase to 1130000.
15782
157832007-07-30 Richard Stallman <rms@gnu.org>
15784
15785 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
15786
157872007-07-29 Jan Djärv <jan.h.d@swipnet.se>
15788
15789 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
15790
157912007-07-28 Nick Roberts <nickrob@snap.net.nz>
15792
15793 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
15794 remote default-directory.
15795
15796 * buffer.c (mode-line-format): Update doc string.
15797
157982007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15799
15800 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
15801 scroll bar gap.
15802 (x_scroll_bar_create): Set bar->fringe_extended_p.
15803 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
15804 on frame edge. Check fringe background extension. Don't clear
15805 extended fringe background area.
15806
15807 * w32term.h (struct scroll_bar): New member fringe_extended_p.
15808 (w32_fill_area): Enclose multiple statements with do ... while (0).
15809
15810 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
15811 Extend fringe background to scroll bar gap.
15812 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
15813 Set bar->fringe_extended_p.
15814 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
15815 Put leftmost/rightmost scroll bars on frame edge. Check fringe
15816 background extension. Don't clear extended fringe background area.
15817
15818 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
15819 New member fringe_extended_p.
15820
158212007-07-25 Glenn Morris <rgm@gnu.org>
15822
15823 * Relicense all FSF files to GPLv3 or later.
15824
15825 * COPYING: Switch to GPLv3.
15826
158272007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
15828
15829 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
15830
15831 * data.c (Finteractive_form): Check for the presence of an
15832 `interactive-form' symbol property more thoroughly.
15833
15834 * data.c (Finteractive_form): Use an `interactive-form' property if
15835 present, analogous to the function-documentation property.
15836
158372007-07-24 Jason Rumney <jasonr@gnu.org>
15838
15839 * w32fns.c (x_real_positions): Get real position from OS instead of
15840 calculating it.
15841
158422007-07-23 Jason Rumney <jasonr@gnu.org>
15843
15844 * filelock.c (current_lock_owner): Allow for @ sign in username.
15845
158462007-07-22 Nick Roberts <nickrob@snap.net.nz>
15847
15848 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
15849 remote default-directory.
15850
15851 * buffer.c (mode-line-format): Describe above case in doc string.
15852
158532007-07-20 Eli Zaretskii <eliz@gnu.org>
15854
15855 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
15856 Define if not defined.
15857
158582007-07-18 Jason Rumney <jasonr@gnu.org>
15859
15860 * w32proc.c (w32_executable_type): Handle 64 bit executables.
15861
158622007-07-18 Richard Stallman <rms@gnu.org>
15863
15864 * data.c (Fsetq_default): Doc fix.
15865
15866 * eval.c (Fsetq): Doc fix.
15867
158682007-07-18 Juanma Barranquero <lekktu@gmail.com>
15869
15870 * coding.c (Ffind_operation_coding_system):
15871 * eval.c (For, Fand): Doc fixes.
15872 Reported by Johan Bockgård.
15873
158742007-07-18 Jan Djärv <jan.h.d@swipnet.se>
15875
15876 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
15877
15878 * xterm.h: Declare x_ewmh_activate_frame.
15879
15880 * xterm.c (x_ewmh_activate_frame): New function.
15881 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
15882
158832007-07-17 Martin Rudalics <rudalics@gmx.at>
15884
15885 * window.c (Fdisplay_buffer): If largest or LRU window is the
15886 only window, split it even if it is not eligible for splitting.
15887 This restores the original behavior broken by the 2007-07-15
15888 change.
15889
158902007-07-17 Glenn Morris <rgm@gnu.org>
15891
15892 * abbrev.c (abbrev_check_chars): New function.
15893 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15894 Call abbrev_check_chars to check abbrev characters are word
15895 constituents. Doc fix.
15896
158972007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
15898
15899 * process.c (Fstart_process, Fmake_network_process)
15900 (read_process_output): Fix up last changes.
15901
159022007-07-16 Eli Zaretskii <eliz@gnu.org>
15903
15904 * makefile.w32-in (clean): Don't delete *~.
15905
159062007-07-16 Andreas Schwab <schwab@suse.de>
15907
15908 * window.c (Fdisplay_buffer): Use NILP.
15909 (Fset_window_scroll_bars): Likewise.
15910
159112007-07-15 Martin Rudalics <rudalics@gmx.at>
15912
15913 * window.c (window_min_size_2): New function.
15914 (window_min_size_1, size_window, Fdisplay_buffer)
15915 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
15916 windows without mode- or header-lines when window-min-height is
15917 too small.
15918 (size_window): Reset nodelete_p after testing it, following an
15919 earlier note by Kim F. Storm.
15920 (display_buffer): Do not set split_height_threshold to twice the
15921 value of window_min_height to avoid changing the value of a
15922 customizable variable. Rather explicitly check whether the
15923 height of the window that shall be splitted is at least as large
15924 as split_height_threshold.
15925 (Fwindow_full_width_p): New defun.
15926 (syms_of_window): Defsubr it.
15927
15928 * window.h: Add EXFUN for Fwindow_full_width_p.
15929
159302007-07-14 Jason Rumney <jasonr@gnu.org>
15931
15932 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
15933
159342007-07-14 Richard Stallman <rms@gnu.org>
15935
15936 * eval.c (maybe_call_debugger): New function.
15937 (find_handler_clause): Use maybe_call_debugger.
15938 Call it when the handler says `debug'.
15939 Eliminate DEBUGGER_VALUE_PTR.
15940 (Fsignal): Eliminate debugger_value.
15941 (Qdebug): New variable.
15942 (syms_of_eval): Initialize it.
15943
159442007-07-14 Juanma Barranquero <lekktu@gmail.com>
15945
15946 * eval.c (Fprogn):
15947 * keyboard.c (Ftrack_mouse):
15948 * print.c (Fwith_output_to_temp_buffer):
15949 * window.c (Fsave_window_excursion): Doc fix.
15950
159512007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
15952
15953 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
15954
159552007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
15956
15957 * process.h (struct Lisp_Process): Turn slots infd, outfd,
15958 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
15959 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
15960 read_output_delay, and read_output_skip from Lisp_Objects to ints.
15961 Remove unused encoding_carryover.
15962 * process.c: Adjust all functions accordingly.
15963
159642007-07-12 Richard Stallman <rms@gnu.org>
15965
15966 * term.c: Include unistd.h only if HAVE_UNISTD_H.
15967
159682007-07-11 Jason Rumney <jasonr@gnu.org>
15969
15970 * makefile.w32-in (LIBS): Include OLE32.
15971
15972 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
15973 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
15974
159752007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
15976
15977 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
15978 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
15979 from a Lisp_Object into a bare pointer.
15980 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15981 Adjust the code correspondingly.
15982
15983 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
15984
15985 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
15986 (term_show_mouse_face): Remove unused var `j'.
15987 (handle_one_term_event): Remove unused vars `i' and `j'.
15988 Don't cast return value of ttyname since it's not necessary.
15989
159902007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
15991
15992 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
15993 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
15994
15995 * fns.c (map_char_table): Use an array of int for `indices' rather than
15996 an array of Lisp_Objects (which are only ever integers anyway).
15997 (Fmap_char_table): Update caller.
15998 * lisp.h: Update prototype.
15999 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
16000 * fontset.c (Ffontset_info):
16001 * casetab.c (set_case_table): Update callers.
16002
16003 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
16004
16005 * keymap.c (struct accessible_keymaps_data)
16006 (struct where_is_internal_data): New structures.
16007 (accessible_keymaps_1, where_is_internal_1): Use them to change
16008 interface to adhere to the one used by map_keymap.
16009 (Faccessible_keymaps, where_is_internal): Use map_keymap.
16010 (accessible_keymaps_char_table, where_is_internal_2): Remove.
16011
16012 * keymap.h (map_keymap_function_t): More informative prototype.
16013
160142007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
16015
16016 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
16017 (looking_at_1): Don't change search_regs and last_thing_searched
16018 if `inhibit-changing-match-data' is non-nil.
16019 (string_match_1, search_buffer, set_search_regs): Likewise.
16020 (syms_of_search): Add Lisp level definition for
16021 `inhibit-changing-match-data' and set it to nil.
16022 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
16023 start and end of the match, instead of using values in search_regs.
16024
160252007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
16026
16027 * minibuf.c (Fcompleting_read): New value `confirm-only'
16028 for `require-match'.
16029
160302007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
16031
16032 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
16033 part of the 2007-06-27 change to syms_of_fileio.
16034
160352007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16036
16037 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
16038 Check WINDOWP before using XWINDOW. Consolidate return statements.
16039
160402007-06-27 Richard Stallman <rms@gnu.org>
16041
16042 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
16043
160442007-06-27 Juanma Barranquero <lekktu@gmail.com>
16045
16046 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
16047
160482007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16049
16050 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
16051 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
16052 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
16053 (_free_internal, memalign): Use them.
16054 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
16055 Initialize to PTHREAD_MUTEX_INITIALIZER.
16056 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
16057 (morecore_nolock): Rename from morecore. All uses changed.
16058 Use only nolock versions of internal allocation functions.
16059 (_malloc_internal_nolock, _realloc_internal_nolock)
16060 (_free_internal_nolock): New functions created from
16061 _malloc_internal, _realloc_internal, and _free_internal.
16062 (_malloc_internal, _realloc_internal, _free_internal): Use them.
16063 Copy hook value to automatic variable before its use.
16064 (memalign): Copy hook value to automatic variable before its use.
16065
160662007-06-26 Kenichi Handa <handa@m17n.org>
16067
16068 * coding.c (Ffind_operation_coding_system): Docstring improved.
16069 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
16070
160712007-06-25 David Kastrup <dak@gnu.org>
16072
16073 * keymap.c (Fcurrent_active_maps): Add `position' argument.
16074 (Fwhere_is_internal): Adjust call to `current-active-maps' to
16075 cater for additional parameter.
16076
16077 * keymap.h: Adjust number of parameters to `current-active-maps'.
16078
16079 * doc.c (Fsubstitute_command_keys): Adjust call of
16080 `current-active-maps'.
16081
160822007-06-25 David Kastrup <dak@gnu.org>
16083
16084 * callint.c (Fcall_interactively): Make the parsing of interactive
16085 specs somewhat more readable.
16086
160872007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16088
16089 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
16090 to scroll bar gap also when bitmap fills fringe. Draw only foreground
16091 if extended background has already been filled.
16092
160932007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16094
16095 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
16096 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
16097
16098 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
16099 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
16100 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
16101 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
16102 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
16103 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
16104 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
16105 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
16106 Run timers during dialog popup.
16107 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
16108
161092007-06-21 Jason Rumney <jasonr@gnu.org>
16110
16111 * image.c (convert_mono_to_color_image): Swap fore and background.
16112
161132007-06-20 Jason Rumney <jasonr@gnu.org>
16114
16115 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
16116 (w32_free_bdf_font): Unmap memory not handle.
16117
161182007-06-20 Sam Steingold <sds@gnu.org>
16119
16120 * gmalloc.c (__morecore): Fix the declaration to comply with the
16121 definition.
16122
161232007-06-20 Juanma Barranquero <lekktu@gmail.com>
16124
16125 * w32term.c (w32_delete_display): Remove leftover declaration.
16126 (w32_define_cursor, w32_initialize): Make static.
16127
16128 * w32.c (_wsa_errlist): Fix typo in error message.
16129 (init_environment): Ignore any environment variable from the
16130 registry having a null value.
16131
161322007-06-20 Glenn Morris <rgm@gnu.org>
16133
16134 * Makefile.in (LIBGIF): Default to -lgif.
16135
161362007-06-17 Jason Rumney <jasonr@gnu.org>
16137
16138 * w32menu.c (add_menu_item): Don't use multibyte string functions on
16139 unicode strings.
16140
161412007-06-16 Juanma Barranquero <lekktu@gmail.com>
16142
16143 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
16144 Fix typo in docstring.
16145
161462007-06-16 Eli Zaretskii <eliz@gnu.org>
16147
16148 * w32menu.c (add_menu_item): Escape `&' characters in menu items
16149 and their keybindings.
16150
161512007-06-15 Chong Yidong <cyd@stupidchicken.com>
16152
16153 * composite.c (update_compositions): Fix last fix.
16154
161552007-06-14 Jason Rumney <jasonr@gnu.org>
16156
16157 * w32.c (get_process_times_fn): New function pointer.
16158 (globals_of_w32): Intialize it if present in kernel32.dll.
16159 (w32_get_internal_run_time): New function.
16160
16161 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
16162
161632007-06-14 Kenichi Handa <handa@etlken.m17n.org>
16164
16165 * composite.c (update_compositions): Check the validness of
16166 compositions.
16167
161682007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16169
16170 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
16171 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
16172
16173 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
16174 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
16175
16176 * macgui.h (USE_MAC_TOOLBAR): New define.
16177
16178 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
16179 Return immediately unless popup is activated.
16180
16181 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
16182 background to scroll bar gap.
16183 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
16184 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
16185 scroll bars on frame edge. Check fringe background extension.
16186 Don't clear extended fringe background area.
16187 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
16188 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
16189 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
16190 [USE_MAC_TOOLBAR]: New macros.
16191 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
16192 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
16193 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
16194 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
16195 [USE_MAC_TOOLBAR]: New functions.
16196 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
16197 manually if previous repositioning has failed.
16198 (mac_handle_keyboard_event): Use precomputed event kind.
16199 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
16200 as tool bar item click. Handle mouse movement over tool bar items.
16201
16202 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
16203 toolbar_win_gravity.
16204 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
16205 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
16206 Add externs.
16207
16208 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
16209 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
16210
162112007-06-14 Chong Yidong <cyd@stupidchicken.com>
16212
16213 * image.c (search_image_cache): Remove unused variable.
16214
162152007-06-13 Chong Yidong <cyd@stupidchicken.com>
16216
16217 * xfns.c, xmenu.c: Link to xaw3d if available.
16218
162192007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16220
16221 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
16222 frame_foreground and frame_background.
16223
16224 * image.c (lookup_image): Save frame foreground and background colors.
16225 (search_image_cache): Check if saved and current frame colors match.
16226
162272007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16228
16229 * regex.c (regex_compile): Remove the `regnum' counter.
16230 Use bufp->re_nsub instead. Add support for \(?N:RE\).
16231
162322007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16233
16234 * term.c: Include intervals.h to declare Fget_text_property.
16235
162362007-06-10 Jason Rumney <jasonr@gnu.org>
16237
16238 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
16239
162402007-06-08 Juanma Barranquero <lekktu@gmail.com>
16241
16242 * callint.c (Fcall_interactively):
16243 * editfns.c (Fdelete_and_extract_region):
16244 * fileio.c (Fread_file_name):
16245 * fns.c (Fmapconcat):
16246 * keyboard.c (cmd_error_internal):
16247 * keymap.c (Fkey_description):
16248 * lread.c (openp):
16249 * minibuf.c (read_minibuf):
16250 * search.c (wordify):
16251 * sunfns.c (sel_read):
16252 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
16253 * xfns.c (x_default_scroll_bar_color_parameter):
16254 * xmenu.c (menu_help_callback):
16255 * xselect.c (Fx_get_atom_name):
16256 * xterm.c (x_term_init): Use empty_unibyte_string.
16257
162582007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
16259
16260 * alloc.c (init_strings): Initialize canonical empty strings.
16261 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
16262 canonical empty string when the requested size is 0.
16263
16264 * emacs.c (empty_unibyte_string): Rename from empty_string.
16265 (empty_multibyte_string): New canonical empty string.
16266 (syms_of_emacs): Don't initialize empty_string.
16267
16268 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
16269 string, if appropriate.
16270 (empty_unibyte_string, empty_multibyte_string): New externs.
16271 (empty_string): Remove extern.
16272
16273 * lread.c (syms_of_lread): Use empty_unibyte_string.
16274
162752007-06-07 Jason Rumney <jasonr@gnu.org>
16276
16277 * s/ms-w32.h: Don't define HAVE_TZNAME.
16278
16279 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
16280
162812007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16282
16283 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
16284
16285 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
16286 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
16287
16288 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
16289 Don't call next handler.
16290 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
16291 Remove argument. Install handler to application.
16292 (set_frame_menubar): Don't change deep_p.
16293 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
16294 FRAME_OUTER_TO_INNER_DIFF_Y.
16295 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16296 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16297 [HAVE_DIALOGS]: New macros.
16298 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
16299 Use them.
16300 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
16301
16302 * macselect.c [MAC_OSX] (install_service_handler): Rename from
16303 init_service_handler. All callers changed. Return OSStatus value.
16304
16305 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
16306 All callers changed so as not to call SetPortWindowPort.
16307 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
16308 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
16309 mac_draw_string_common.
16310 (mac_draw_image_string_qd): Likewise.
16311 (mac_draw_string_common): Use them. Add INLINE.
16312 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
16313 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
16314 GetGlobalMouse.
16315 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
16316 and FRAME_OUTER_TO_INNER_DIFF_Y.
16317 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
16318 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
16319 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
16320 repositioning window to mac_handle_window_event.
16321 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
16322 saving window location to mac_handle_window_event
16323 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
16324 (install_menu_target_item_handler): Remove argument in extern.
16325 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
16326 Also accept command events.
16327 (do_keystroke): New function created from XTread_socket.
16328 (init_command_handler): Remove functions.
16329 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
16330 and save window location by kEventWindowShowing and kEventWindowHiding
16331 handlers here. Don't call next handler for window state change and
16332 focus events.
16333 (mac_handle_application_event, mac_handle_keyboard_event)
16334 [TARGET_API_MAC_CARBON]: New functions.
16335 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
16336 kEventWindowShowing and kEventWindowHiding events. Move installation
16337 of mouse, font, text input and menu target item handlers to
16338 install_application_handler.
16339 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
16340 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16341 New function.
16342 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16343 Register it.
16344 (XTread_socket) [TARGET_API_MAC_CARBON]:
16345 Consolidate SendEventToEventTarget calls.
16346 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
16347 Move application activation handler to mac_handle_application_event.
16348 Move keyboard handler to mac_handle_keyboard_event.
16349 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
16350 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
16351 init_command_handler. Call install_application_handler.
16352
16353 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
16354 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
16355
163562007-06-07 Glenn Morris <rgm@gnu.org>
16357
16358 * emacs.c (main): Use `emacs-copyright' in --version output.
16359
163602007-06-06 Chong Yidong <cyd@stupidchicken.com>
16361
16362 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
16363
163642007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16365
16366 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
16367
16368 * macgui.h: Replace WindowPtr with WindowRef.
16369
16370 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
16371 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
16372 Replace ControlHandle with ControlRef.
16373 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
16374
16375 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
16376 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
16377 Replace ControlHandle with ControlRef.
16378 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
16379 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
16380
16381 * macterm.h (struct scroll_bar): Rename member control_handle_low
16382 and control_handle_high to control_ref_low and control_ref_high.
16383 All uses changed.
16384 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
16385 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
16386 respectively. All uses changed.
16387 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
16388 (install_window_handler, remove_window_handler): Replace WindowPtr
16389 with WindowRef in externs.
16390
163912007-06-05 Juanma Barranquero <lekktu@gmail.com>
16392
16393 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
16394
163952007-06-03 Nick Roberts <nickrob@snap.net.nz>
16396
16397 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
16398
16399 * frame.c (Fmouse_position, Fmouse_pixel_position):
16400 Condition on HAVE_GPM too.
16401
16402 * term.c (term_mouse_highlight): Remove unused variables.
16403 (Fterm_open_connection): Set gpm_zerobased to 1.
16404 (term_mouse_movement, term_mouse_click, handle_one_term_event):
16405 Use zero based co-ordinates.
16406 (handle_one_term_event): Report a drag as mouse movement too.
16407
16408 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
16409
164102007-06-03 Chong Yidong <cyd@stupidchicken.com>
16411
16412 * image.c (search_image_cache): New function. Require background
16413 color match if background color is unspecified in the image spec.
16414 (uncache_image, lookup_image): Use it.
16415
164162007-06-01 Juanma Barranquero <lekktu@gmail.com>
16417
16418 * window.c (Fshrink_window): Reflow docstring.
16419
164202007-06-02 Chong Yidong <cyd@stupidchicken.com>
16421
16422 * Version 22.1 released.
16423
164242007-06-01 Richard Stallman <rms@gnu.org>
16425
16426 * xfns.c (x_encode_text): Add GCPRO.
16427
164282007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16429
16430 * xfns.c (x_set_name_internal): Save encoded name before
16431 x_encode_text in case string data is relocated.
16432
164332007-05-31 Richard Stallman <rms@gnu.org>
16434
16435 * buffer.c (syms_of_buffer): Doc fix.
16436
164372007-05-30 Nick Roberts <nickrob@snap.net.nz>
16438
16439 * sysdep.c (init_sys_modes): Add rather than replace with
16440 O_NONBLOCK.
16441
16442 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
16443 term_mouse_moveto.
16444
16445 * termhooks.h (term_mouse_moveto): New extern.
16446
16447 * term.c (mouse_face_window): Rename...
16448 (Qmouse_face_window): ...to this.
16449 (term_show_mouse_face, term_clear_mouse_face)
16450 (term_mouse_highlight): Use Qmouse_face_window.
16451 (term_mouse_moveto): New function.
16452 (term_mouse_position): Make it work.
16453 (syms_of_term): Uncomment assignment to mouse_position_hook.
16454 Staticpro Qmouse_face_window.
16455
164562007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16457
16458 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
16459 around current_column call.
16460
164612007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
16462
16463 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
16464 * xdisp.c (next_element_from_buffer):
16465 * window.c (delete_window):
16466 * term.c (term_mouse_highlight):
16467 * msdos.c (getdefdir):
16468 * macterm.c (mac_create_bitmap_from_bitmap_data)
16469 (init_font_name_table):
16470 * fns.c (Fsxhash):
16471 * data.c (Fmake_local_variable):
16472 * ccl.c (ccl_driver): Likewise.
16473
164742007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16475
16476 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
16477 Call mac_wakeup_from_rne on window size change.
16478
164792007-05-25 Chong Yidong <cyd@stupidchicken.com>
16480
16481 * image.c (uncache_image): Fix typo.
16482
164832007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
16484
16485 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
16486
164872007-05-22 Richard Stallman <rms@gnu.org>
16488
16489 * xterm.c (x_connection_closed): Remove NO_RETURN.
16490
164912007-05-22 Martin Rudalics <rudalics@gmx.at>
16492
16493 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
16494
164952007-05-21 Chong Yidong <cyd@stupidchicken.com>
16496
16497 * image.c (uncache_image): New function.
16498 (Fimage_refresh): New function.
16499
165002007-05-20 Jan Djärv <jan.h.d@swipnet.se>
16501
16502 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
16503
165042007-05-20 Nick Roberts <nickrob@snap.net.nz>
16505
16506 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
16507 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
16508
165092007-05-20 Nick Roberts <nickrob@snap.net.nz>
16510
16511 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
16512 conditional on [HAVE_GPM_H].
16513
165142007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16515
16516 * syntax.c (skip_chars): Update syntax-table only after we checked that
16517 the new location is valid.
16518
165192007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16520
16521 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
16522 mac_get_window_bounds.
16523
165242007-05-20 Nick Roberts <nickrob@snap.net.nz>
16525
16526 * Makefile.in (LIBGPM): Allow it to be set from configure.
16527 If set then link Emacs with it.
16528
16529 * config.in: Regenerate.
16530
16531 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
16532 New externs.
16533
16534 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
16535 Include gpm.h.
16536 (handle_one_term_event, term_gpm): New externs.
16537
16538 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
16539 and allow it to be interrupted by SIGIO.
16540
16541 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
16542 (wait_reading_process_output): Wait on gpm_fd too.
16543 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
16544 (add_gpm_wait_descriptor_called_flag): New variable.
16545 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
16546
16547 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
16548 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
16549 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
16550 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
16551 (make_lispy_event): Add case GPM_CLICK_EVENT.
16552 (read_avail_input): Handle mouse input.
16553
16554 * term.c (write_glyphs_with_face): New function.
16555 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
16556 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
16557 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
16558 (mouse_face_face_id, term_gpm, pos_x, pos_y)
16559 (last_mouse_x, last_mouse_y): New variables.
16560 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
16561 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
16562 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
16563 (Fterm_close_connection): New functions.
16564 (term_init): Initialise mouse_face_window.
16565
165662007-05-19 Chong Yidong <cyd@stupidchicken.com>
16567
16568 * xdisp.c (redisplay_window): If first window line is a
16569 continuation line, recompute the new window start instead of
16570 recentering.
16571
165722007-05-18 Glenn Morris <rgm@gnu.org>
16573
16574 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
16575 Suggested by Alfred M. Szmidt <ams@gnu.org>.
16576
165772007-05-17 Glenn Morris <rgm@gnu.org>
16578
16579 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
16580
165812007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16582
16583 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
16584 dead key repeat and up events.
16585
165862007-05-14 Chong Yidong <cyd@stupidchicken.com>
16587
16588 * image.c (pbm_load): Check image size for monochrome pbm.
16589
165902007-05-13 Chong Yidong <cyd@stupidchicken.com>
16591
16592 * xterm.c (XTread_socket): Revert last change.
16593
165942007-05-12 Chong Yidong <cyd@stupidchicken.com>
16595
16596 * image.c (pbm_load): Correctly check image size for greyscale pbm.
16597
16598 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
16599
166002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
16601
16602 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
16603 mixup (YAILOM).
16604
166052007-05-07 Andreas Schwab <schwab@suse.de>
16606
16607 * keymap.c (Flookup_key): Fix typo in last change.
16608
166092007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
16610
16611 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
16612 mapping for unibyte strings.
16613
166142007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16615
16616 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
16617 (Fx_popup_dialog) [MAC_OSX]: Likewise.
16618
166192007-04-29 Richard Stallman <rms@gnu.org>
16620
16621 * insdel.c (replace_range): For undo, record insertion first.
16622
166232007-04-29 Andreas Schwab <schwab@suse.de>
16624
16625 * lisp.h (VECSIZE): Use OFFSETOF.
16626
166272007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16628
16629 * xdisp.c (try_window_reusing_current_matrix): Fix number of
16630 disabled lines.
16631
166322007-04-28 Richard Stallman <rms@gnu.org>
16633
16634 * lread.c (read_escape): In a string, \s is always space.
16635
166362007-04-27 Jan Djärv <jan.h.d@swipnet.se>
16637
16638 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
16639
16640 * gtkutil.c (xg_update_menubar, create_menus): Create empty
16641 submenu for menu bar items.
16642
16643See ChangeLog.10 for earlier changes.
16644
16645;; Local Variables:
16646;; coding: utf-8
16647;; add-log-time-zone-rule: t
16648;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
16649;; End:
16650
16651 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
16652
16653 This file is part of GNU Emacs.
16654
16655 GNU Emacs is free software: you can redistribute it and/or modify
16656 it under the terms of the GNU General Public License as published by
16657 the Free Software Foundation, either version 3 of the License, or
16658 (at your option) any later version.
16659
16660 GNU Emacs is distributed in the hope that it will be useful,
16661 but WITHOUT ANY WARRANTY; without even the implied warranty of
16662 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16663 GNU General Public License for more details.
16664
16665 You should have received a copy of the GNU General Public License
16666 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
16667
16668;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40